D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
usr
/
local
/
psa
/
admin
/
cp
/
public
/
javascript
/
Filename :
vendors.js
back
Copy
(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["vendors"],[,,,,,,,(e,t,r)=>{"use strict";var n=r(8),o=r(10),i=r(54),a=r(55);n&&!i.correct&&(o(RegExp.prototype,"flags",{configurable:!0,get:a}),i.correct=!0)},(e,t,r)=>{"use strict";var n=r(9);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{"use strict";var n=r(11),o=r(29);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},(e,t,r)=>{"use strict";var n=r(12),o=r(9),i=r(14),a=r(15),s=r(8),l=r(19).CONFIGURABLE,c=r(20),u=r(25),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return i(this)&&f(this).source||c(this)},"toString")},(e,t,r)=>{"use strict";var n=r(13),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},(e,t,r)=>{"use strict";var n=r(9);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,r)=>{"use strict";var n=r(12),o=r(16),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},(e,t,r)=>{"use strict";var n=r(17),o=Object;e.exports=function(e){return o(n(e))}},(e,t,r)=>{"use strict";var n=r(18),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,r)=>{"use strict";var n=r(8),o=r(15),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},(e,t,r)=>{"use strict";var n=r(12),o=r(14),i=r(21),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},(e,t,r)=>{"use strict";var n=r(22),o=r(23),i=r(24),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},(e,t,r)=>{"use strict";var n=r(23),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{"use strict";var n,o,i,a=r(26),s=r(23),l=r(27),c=r(28),u=r(15),d=r(21),f=r(52),p=r(53),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(h);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var v=f("state");p[v]=!0,n=function(e,t){if(u(e,v))throw new m(h);return t.facade=e,c(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{"use strict";var n=r(23),o=r(14),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},(e,t,r)=>{"use strict";var n=r(14);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,r)=>{"use strict";var n=r(8),o=r(29),i=r(51);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{"use strict";var n=r(8),o=r(30),i=r(32),a=r(33),s=r(34),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=u(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{"use strict";var n=r(8),o=r(9),i=r(31);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{"use strict";var n=r(23),o=r(27),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},(e,t,r)=>{"use strict";var n=r(8),o=r(9);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,r)=>{"use strict";var n=r(27),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},(e,t,r)=>{"use strict";var n=r(35),o=r(37);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},(e,t,r)=>{"use strict";var n=r(36),o=r(27),i=r(37),a=r(44),s=r(47),l=r(48),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},(e,t,r)=>{"use strict";var n=r(13),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,r)=>{"use strict";var n=r(38),o=r(14),i=r(39),a=r(40),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},(e,t,r)=>{"use strict";var n=r(23),o=r(14);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},(e,t,r)=>{"use strict";var n=r(12);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{"use strict";var n=r(41);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{"use strict";var n=r(42),o=r(9),i=r(23).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},(e,t,r)=>{"use strict";var n,o,i=r(23),a=r(43),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},(e,t,r)=>{"use strict";var n=r(23).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},(e,t,r)=>{"use strict";var n=r(45),o=r(18);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},(e,t,r)=>{"use strict";var n=r(14),o=r(46),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,r)=>{"use strict";var n=r(36),o=r(14),i=r(27),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},(e,t,r)=>{"use strict";var n=r(23),o=r(49),i=r(15),a=r(50),s=r(41),l=r(40),c=n.Symbol,u=o("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},(e,t,r)=>{"use strict";var n=r(21);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},(e,t,r)=>{"use strict";var n=r(12),o=0,i=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{"use strict";var n=r(49),o=r(50),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},e=>{"use strict";e.exports={}},(e,t,r)=>{"use strict";var n=r(23),o=r(9),i=n.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:a}},(e,t,r)=>{"use strict";var n=r(33);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,r)=>{"use strict";r(57),r(88)},(e,t,r)=>{"use strict";var n=r(58),o=r(23),i=r(78).clear;n({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},(e,t,r)=>{"use strict";var n=r(23),o=r(59).f,i=r(28),a=r(64),s=r(24),l=r(65),c=r(77);e.exports=function(e,t){var r,u,d,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=o(r,u))&&p.value:r[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,u,f,e)}}},(e,t,r)=>{"use strict";var n=r(8),o=r(36),i=r(60),a=r(51),s=r(61),l=r(34),c=r(15),u=r(30),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},(e,t,r)=>{"use strict";var n=r(62),o=r(17);e.exports=function(e){return n(o(e))}},(e,t,r)=>{"use strict";var n=r(12),o=r(9),i=r(63),a=Object,s=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},(e,t,r)=>{"use strict";var n=r(12),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},(e,t,r)=>{"use strict";var n=r(14),o=r(29),i=r(11),a=r(24);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},(e,t,r)=>{"use strict";var n=r(15),o=r(66),i=r(59),a=r(29);e.exports=function(e,t,r){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},(e,t,r)=>{"use strict";var n=r(38),o=r(12),i=r(67),a=r(76),s=r(33),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},(e,t,r)=>{"use strict";var n=r(68),o=r(75).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},(e,t,r)=>{"use strict";var n=r(12),o=r(15),i=r(61),a=r(69).indexOf,s=r(53),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,u=[];for(r in n)!o(s,r)&&o(n,r)&&l(u,r);for(;t.length>c;)o(n,r=t[c++])&&(~a(u,r)||l(u,r));return u}},(e,t,r)=>{"use strict";var n=r(61),o=r(70),i=r(73),a=function(e){return function(t,r,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var c,u=o(a,l);if(e&&r!=r){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},(e,t,r)=>{"use strict";var n=r(71),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},(e,t,r)=>{"use strict";var n=r(72);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},(e,t,r)=>{"use strict";var n=r(74);e.exports=function(e){return n(e.length)}},(e,t,r)=>{"use strict";var n=r(71),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,r)=>{"use strict";var n=r(9),o=r(14),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===u||r!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},(e,t,r)=>{"use strict";var n,o,i,a,s=r(23),l=r(79),c=r(80),u=r(14),d=r(15),f=r(9),p=r(82),h=r(83),m=r(31),g=r(84),y=r(85),v=r(86),b=s.setImmediate,_=s.clearImmediate,w=s.process,S=s.Dispatch,E=s.Function,k=s.MessageChannel,x=s.String,T=0,O={},C="onreadystatechange";f(function(){n=s.location});var j=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},P=function(e){return function(){j(e)}},I=function(e){j(e.data)},R=function(e){s.postMessage(x(e),n.protocol+"//"+n.host)};b&&_||(b=function(e){g(arguments.length,1);var t=u(e)?e:E(e),r=h(arguments,1);return O[++T]=function(){l(t,void 0,r)},o(T),T},_=function(e){delete O[e]},v?o=function(e){w.nextTick(P(e))}:S&&S.now?o=function(e){S.now(P(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=I,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(R)?(o=R,s.addEventListener("message",I,!1)):o=C in m("script")?function(e){p.appendChild(m("script"))[C]=function(){p.removeChild(this),j(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:_}},(e,t,r)=>{"use strict";var n=r(13),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},(e,t,r)=>{"use strict";var n=r(81),o=r(45),i=r(13),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{"use strict";var n=r(63),o=r(12);e.exports=function(e){if("Function"===n(e))return o(e)}},(e,t,r)=>{"use strict";var n=r(38);e.exports=n("document","documentElement")},(e,t,r)=>{"use strict";var n=r(12);e.exports=n([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},(e,t,r)=>{"use strict";var n=r(43);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},(e,t,r)=>{"use strict";var n=r(87);e.exports="NODE"===n},(e,t,r)=>{"use strict";var n=r(23),o=r(43),i=r(63),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},(e,t,r)=>{"use strict";var n=r(58),o=r(23),i=r(78).set,a=r(89),s=o.setImmediate?a(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},(e,t,r)=>{"use strict";var n,o=r(23),i=r(79),a=r(14),s=r(87),l=r(43),c=r(83),u=r(84),d=o.Function,f=/MSIE .\./.test(l)||"BUN"===s&&((n=o.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return f?function(n,o){var s=u(arguments.length,1)>r,l=a(n)?n:d(n),f=s?c(arguments,r):[],p=s?function(){i(l,this,f)}:l;return t?e(p,o):e(p)}:e}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(95);function o(e,t,r){return(t=(0,n.default)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(96),o=r(97);function i(e){var t=(0,o.default)(e,"string");return"symbol"==(0,n.default)(t)?t:t+""}},(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(96);function o(e,t){if("object"!=(0,n.default)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.default)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCode:()=>o.ErrorCode,FormatError:()=>o.FormatError,IntlMessageFormat:()=>n.IntlMessageFormat,InvalidValueError:()=>o.InvalidValueError,InvalidValueTypeError:()=>o.InvalidValueTypeError,MissingValueError:()=>o.MissingValueError,PART_TYPE:()=>i.PART_TYPE,default:()=>a,formatToParts:()=>i.formatToParts,isFormatXMLElementFn:()=>i.isFormatXMLElementFn});var n=r(103),o=r(119),i=r(118);const a=n.IntlMessageFormat},(e,t,r)=>{"use strict";r.r(t),r.d(t,{IntlMessageFormat:()=>c});var n=r(104),o=r(105),i=r(106),a=r(118);function s(e,t){return t?Object.keys(e).reduce(function(r,o){var i,a;return r[o]=(i=e[o],(a=t[o])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},i||{}),a||{}),Object.keys(i).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},i[t]),a[t]||{}),e},{})):i),r},(0,n.__assign)({},e)):e}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var c=function(){function e(t,r,i,c){void 0===r&&(r=e.defaultLocale);var u,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===a.PART_TYPE.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,a.formatToParts)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=c||{},p=(f.formatters,(0,n.__rest)(f,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},p),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,i),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:l(u.number),strategy:o.strategies.variadic}),getDateTimeFormat:(0,o.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:l(u.dateTime),strategy:o.strategies.variadic}),getPluralRules:(0,o.memoize)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:l(u.pluralRules),strategy:o.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=i.parse,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>D,__assign:()=>i,__asyncDelegator:()=>x,__asyncGenerator:()=>k,__asyncValues:()=>T,__await:()=>E,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>A,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>L,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>o,__generator:()=>m,__importDefault:()=>I,__importStar:()=>P,__makeTemplateObject:()=>O,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>B,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>_,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>v,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===l?o.unshift(s):d[c]=s)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function k(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof E?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},j=function(e){return j=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},j(e)};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=j(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return C(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function R(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function A(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function B(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}const F={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:_,__spreadArrays:w,__spreadArray:S,__await:E,__asyncGenerator:k,__asyncDelegator:x,__asyncValues:T,__makeTemplateObject:O,__importStar:P,__importDefault:I,__classPrivateFieldGet:R,__classPrivateFieldSet:A,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:L,__rewriteRelativeImportExtension:B}},(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:u,n=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:r,serializer:n})}function o(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function i(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function a(e,t,r,n,o){return r.bind(t,e,n,o)}function s(e,t){return a(e,this,1===e.length?o:i,t.cache.create(),t.serializer)}r.r(t),r.d(t,{memoize:()=>n,strategies:()=>d});var l=function(){return JSON.stringify(arguments)},c=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),u={create:function(){return new c}},d={variadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SKELETON_TYPE:()=>a.SKELETON_TYPE,TYPE:()=>a.TYPE,_Parser:()=>u,createLiteralElement:()=>a.createLiteralElement,createNumberElement:()=>a.createNumberElement,isArgumentElement:()=>a.isArgumentElement,isDateElement:()=>a.isDateElement,isDateTimeSkeleton:()=>a.isDateTimeSkeleton,isLiteralElement:()=>a.isLiteralElement,isNumberElement:()=>a.isNumberElement,isNumberSkeleton:()=>a.isNumberSkeleton,isPluralElement:()=>a.isPluralElement,isPoundElement:()=>a.isPoundElement,isSelectElement:()=>a.isSelectElement,isStructurallySame:()=>s.isStructurallySame,isTagElement:()=>a.isTagElement,isTimeElement:()=>a.isTimeElement,parse:()=>c});var n=r(104),o=r(107),i=r(108),a=r(109),s=r(117);function l(e){e.forEach(function(e){if(delete e.location,(0,a.isSelectElement)(e)||(0,a.isPluralElement)(e))for(var t in e.options)delete e.options[t].location,l(e.options[t].value);else(0,a.isNumberElement)(e)&&(0,a.isNumberSkeleton)(e.style)||((0,a.isDateElement)(e)||(0,a.isTimeElement)(e))&&(0,a.isDateTimeSkeleton)(e.style)?delete e.style.location:(0,a.isTagElement)(e)&&l(e.children)})}function c(e,t){void 0===t&&(t={}),t=(0,n.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new i.Parser(e,t).parse();if(r.err){var a=SyntaxError(o.ErrorKind[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return(null==t?void 0:t.captureLocation)||l(r.val),r.val}var u=i.Parser},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ErrorKind:()=>n}),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>P});var n,o=r(104),i=r(107),a=r(109),s=r(110),l=r(111),c=r(115),u=new RegExp("^".concat(s.SPACE_SEPARATOR_REGEX.source,"*")),d=new RegExp("".concat(s.SPACE_SEPARATOR_REGEX.source,"*$"));function f(e,t){return{start:e,end:t}}var p=!!String.prototype.startsWith&&"_a".startsWith("a",1),h=!!String.fromCodePoint,m=!!Object.fromEntries,g=!!String.prototype.codePointAt,y=!!String.prototype.trimStart,v=!!String.prototype.trimEnd,b=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_=!0;try{_="a"===(null===(n=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===n?void 0:n[0])}catch(e){_=!1}var w,S=p?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},E=h?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},k=m?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},x=g?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},T=y?function(e){return e.trimStart()}:function(e){return e.replace(u,"")},O=v?function(e){return e.trimEnd()}:function(e){return e.replace(d,"")};function C(e,t){return new RegExp(e,t)}if(_){var j=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");w=function(e,t){var r;return j.lastIndex=t,null!==(r=j.exec(e)[1])&&void 0!==r?r:""}}else w=function(e,t){for(var r=[];;){var n=x(e,t);if(void 0===n||A(n)||M(n))break;r.push(n),t+=n>=65536?2:1}return E.apply(void 0,r)};var P=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((s=this.parseArgument(e,r)).err)return s;n.push(s.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(i.ErrorKind.UNMATCHED_CLOSING_TAG,f(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&I(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;n.push(s.val)}}else{var l=this.clonePosition();this.bump(),n.push({type:a.TYPE.pound,location:f(l,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.TYPE.literal,value:"<".concat(n,"/>"),location:f(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!I(this.char()))return this.error(i.ErrorKind.INVALID_TAG,f(l,this.clonePosition()));var c=this.clonePosition();return n!==this.parseTagName()?this.error(i.ErrorKind.UNMATCHED_CLOSING_TAG,f(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.TYPE.tag,value:n,children:s,location:f(r,this.clonePosition())},err:null}:this.error(i.ErrorKind.INVALID_TAG,f(l,this.clonePosition())))}return this.error(i.ErrorKind.UNCLOSED_TAG,f(r,this.clonePosition()))}return this.error(i.ErrorKind.INVALID_TAG,f(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&R(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var l=f(r,this.clonePosition());return{val:{type:a.TYPE.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(I(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return E.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),E(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.ErrorKind.EMPTY_ARGUMENT,f(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(i.ErrorKind.MALFORMED_ARGUMENT,f(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.TYPE.argument,value:n,location:f(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(i.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(i.ErrorKind.MALFORMED_ARGUMENT,f(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=w(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:f(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var s,u=this.clonePosition(),d=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(d){case"":return this.error(i.ErrorKind.EXPECT_ARGUMENT_TYPE,f(u,p));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(b=O(x.val)).length)return this.error(i.ErrorKind.EXPECT_ARGUMENT_STYLE,f(this.clonePosition(),this.clonePosition()));h={style:b,styleLocation:f(m,this.clonePosition())}}if((C=this.tryParseArgumentClose(n)).err)return C;var g=f(n,this.clonePosition());if(h&&S(null==h?void 0:h.style,"::",0)){var y=T(h.style.slice(2));if("number"===d)return(x=this.parseNumberSkeletonFromString(y,h.styleLocation)).err?x:{val:{type:a.TYPE.number,value:r,location:g,style:x.val},err:null};if(0===y.length)return this.error(i.ErrorKind.EXPECT_DATE_TIME_SKELETON,g);var v=y;this.locale&&(v=(0,c.getBestPattern)(y,this.locale));var b={type:a.SKELETON_TYPE.dateTime,pattern:v,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,l.parseDateTimeSkeleton)(v):{}};return{val:{type:"date"===d?a.TYPE.date:a.TYPE.time,value:r,location:g,style:b},err:null}}return{val:{type:"number"===d?a.TYPE.number:"date"===d?a.TYPE.date:a.TYPE.time,value:r,location:g,style:null!==(s=null==h?void 0:h.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,f(_,(0,o.__assign)({},_)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if("select"!==d&&"offset"===w.value){if(!this.bumpIf(":"))return this.error(i.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(i.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=x.val}var C,j=this.tryParsePluralOrSelectOptions(e,d,t,w);if(j.err)return j;if((C=this.tryParseArgumentClose(n)).err)return C;var P=f(n,this.clonePosition());return"select"===d?{val:{type:a.TYPE.select,value:r,options:k(j.val),location:P},err:null}:{val:{type:a.TYPE.plural,value:r,options:k(j.val),offset:E,pluralType:"plural"===d?"cardinal":"ordinal",location:P},err:null};default:return this.error(i.ErrorKind.INVALID_ARGUMENT_TYPE,f(u,p))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(i.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,f(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=(0,l.parseNumberSkeletonFromString)(e)}catch(e){return this.error(i.ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.SKELETON_TYPE.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?(0,l.parseNumberSkeleton)(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,a=!1,s=[],l=new Set,c=n.value,u=n.location;;){if(0===c.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(i.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,i.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=f(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}if(l.has(c))return this.error("select"===t?i.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:i.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?i.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:i.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,f(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:f(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===t?i.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:i.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,f(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(i.ErrorKind.MISSING_OTHER_CLAUSE,f(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=f(n,this.clonePosition());return o?b(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=x(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(S(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&A(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function I(e){return e>=97&&e<=122||e>=65&&e<=90}function R(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function A(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function M(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}},(e,t,r)=>{"use strict";var n,o;function i(e){return e.type===n.literal}function a(e){return e.type===n.argument}function s(e){return e.type===n.number}function l(e){return e.type===n.date}function c(e){return e.type===n.time}function u(e){return e.type===n.select}function d(e){return e.type===n.plural}function f(e){return e.type===n.pound}function p(e){return e.type===n.tag}function h(e){return!(!e||"object"!=typeof e||e.type!==o.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==o.dateTime)}function g(e){return{type:n.literal,value:e}}function y(e,t){return{type:n.number,value:e,style:t}}r.r(t),r.d(t,{SKELETON_TYPE:()=>o,TYPE:()=>n,createLiteralElement:()=>g,createNumberElement:()=>y,isArgumentElement:()=>a,isDateElement:()=>l,isDateTimeSkeleton:()=>m,isLiteralElement:()=>i,isNumberElement:()=>s,isNumberSkeleton:()=>h,isPluralElement:()=>d,isPoundElement:()=>f,isSelectElement:()=>u,isTagElement:()=>p,isTimeElement:()=>c}),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(n||(n={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPACE_SEPARATOR_REGEX:()=>n,WHITE_SPACE_REGEX:()=>o});var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,o=/[\t-\r \x85\u200E\u200F\u2028\u2029]/},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>n.parseDateTimeSkeleton,parseNumberSkeleton:()=>o.parseNumberSkeleton,parseNumberSkeletonFromString:()=>o.parseNumberSkeletonFromString});var n=r(112),o=r(113)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>o});var n=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function o(e){var t={};return e.replace(n,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseNumberSkeleton:()=>m,parseNumberSkeletonFromString:()=>i});var n=r(104),o=r(114);function i(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(o.WHITE_SPACE_REGEX).filter(function(e){return e.length>0});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),l=0,c=s;l<c.length;l++){if(0===c[l].length)throw new Error("Invalid number skeleton")}t.push({stem:a,options:s})}return t}function a(e){return e.replace(/^(.*?)-/,"")}var s=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,l=/^(@+)?(\+|#+)?[rs]?$/g,c=/(\*)(0+)|(#+)(0+)|(0+)/g,u=/^(0+)$/;function d(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(l,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function f(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function p(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!u.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function h(e){var t=f(e);return t||{}}function m(e){for(var t={},r=0,o=e;r<o.length;r++){var i=o[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return(0,n.__assign)((0,n.__assign)({},e),h(t))},{}));continue;case"engineering":t=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return(0,n.__assign)((0,n.__assign)({},e),h(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(c,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(u.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(s.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(s,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var m=i.options[0];"w"===m?t=(0,n.__assign)((0,n.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):m&&(t=(0,n.__assign)((0,n.__assign)({},t),d(m)))}else if(l.test(i.stem))t=(0,n.__assign)((0,n.__assign)({},t),d(i.stem));else{var g=f(i.stem);g&&(t=(0,n.__assign)((0,n.__assign)({},t),g));var y=p(i.stem);y&&(t=(0,n.__assign)((0,n.__assign)({},t),y))}}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WHITE_SPACE_REGEX:()=>n});var n=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBestPattern:()=>o});var n=r(116);function o(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var s=1+(1&a),l=a<2?1:3+(a>>1),c=i(t);for("H"!=c&&"k"!=c||(l=0);l-- >0;)r+="a";for(;s-- >0;)r=c+r}else r+="J"===o?"H":o}return r}function i(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,o=e.language;return"root"!==o&&(r=e.maximize().region),(n.timeData[r||""]||n.timeData[o||""]||n.timeData["".concat(o,"-001")]||n.timeData["001"])[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeData:()=>n});var n={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hoistSelectors:()=>c,isStructurallySame:()=>d});var n=r(104),o=r(109);function i(e){return Array.isArray(e)?(0,n.__spreadArray)([],e.map(i),!0):null!==e&&"object"==typeof e?Object.keys(e).reduce(function(t,r){return t[r]=i(e[r]),t},{}):e}function a(e,t,r){var o=i(t),a=o.options;return o.options=Object.keys(a).reduce(function(t,o){var i=c((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],e.slice(0,r),!0),a[o].value,!0),e.slice(r+1),!0));return t[o]={value:i},t},{}),o}function s(e){return(0,o.isPluralElement)(e)||(0,o.isSelectElement)(e)}function l(e){return!!e.find(function(e){return!!s(e)||!!(0,o.isTagElement)(e)&&l(e.children)})}function c(e){for(var t=0;t<e.length;t++){var r=e[t];if(s(r))return[a(e,r,t)];if((0,o.isTagElement)(r)&&l([r]))throw new Error("Cannot hoist plural/select within a tag element. Please put the tag element inside each plural/select option")}return e}function u(e,t){void 0===t&&(t=new Map),e.forEach(function(e){if((0,o.isArgumentElement)(e)||(0,o.isDateElement)(e)||(0,o.isTimeElement)(e)||(0,o.isNumberElement)(e)){if(e.value in t&&t.get(e.value)!==e.type)throw new Error("Variable ".concat(e.value," has conflicting types"));t.set(e.value,e.type)}((0,o.isPluralElement)(e)||(0,o.isSelectElement)(e))&&(t.set(e.value,e.type),Object.keys(e.options).forEach(function(r){u(e.options[r].value,t)})),(0,o.isTagElement)(e)&&(t.set(e.value,e.type),u(e.children,t))})}function d(e,t){var r=new Map,n=new Map;return u(e,r),u(t,n),r.size!==n.size?{success:!1,error:new Error("Different number of variables: [".concat(Array.from(r.keys()).join(", "),"] vs [").concat(Array.from(n.keys()).join(", "),"]"))}:Array.from(r.entries()).reduce(function(e,t){var r=t[0],i=t[1];if(!e.success)return e;var a=n.get(r);return null==a?{success:!1,error:new Error("Missing variable ".concat(r," in message"))}:a!==i?{success:!1,error:new Error("Variable ".concat(r," has conflicting types: ").concat(o.TYPE[i]," vs ").concat(o.TYPE[a]))}:e},{success:!0})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PART_TYPE:()=>n,formatToParts:()=>s,isFormatXMLElementFn:()=>a});var n,o=r(106),i=r(119);function a(e){return"function"==typeof e}function s(e,t,r,l,c,u,d){if(1===e.length&&(0,o.isLiteralElement)(e[0]))return[{type:n.literal,value:e[0].value}];for(var f=[],p=0,h=e;p<h.length;p++){var m=h[p];if((0,o.isLiteralElement)(m))f.push({type:n.literal,value:m.value});else if((0,o.isPoundElement)(m))"number"==typeof u&&f.push({type:n.literal,value:r.getNumberFormat(t).format(u)});else{var g=m.value;if(!c||!(g in c))throw new i.MissingValueError(g,d);var y=c[g];if((0,o.isArgumentElement)(m))y&&"string"!=typeof y&&"number"!=typeof y||(y="string"==typeof y||"number"==typeof y?String(y):""),f.push({type:"string"==typeof y?n.literal:n.object,value:y});else if((0,o.isDateElement)(m)){var v="string"==typeof m.style?l.date[m.style]:(0,o.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;f.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(y)})}else if((0,o.isTimeElement)(m)){v="string"==typeof m.style?l.time[m.style]:(0,o.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:l.time.medium;f.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(y)})}else if((0,o.isNumberElement)(m)){(v="string"==typeof m.style?l.number[m.style]:(0,o.isNumberSkeleton)(m.style)?m.style.parsedOptions:void 0)&&v.scale&&(y*=v.scale||1),f.push({type:n.literal,value:r.getNumberFormat(t,v).format(y)})}else{if((0,o.isTagElement)(m)){var b=m.children,_=m.value,w=c[_];if(!a(w))throw new i.InvalidValueTypeError(_,"function",d);var S=w(s(b,t,r,l,c,u).map(function(e){return e.value}));Array.isArray(S)||(S=[S]),f.push.apply(f,S.map(function(e){return{type:"string"==typeof e?n.literal:n.object,value:e}}))}if((0,o.isSelectElement)(m)){if(!(E=m.options[y]||m.options.other))throw new i.InvalidValueError(m.value,y,Object.keys(m.options),d);f.push.apply(f,s(E.value,t,r,l,c))}else if((0,o.isPluralElement)(m)){var E;if(!(E=m.options["=".concat(y)])){if(!Intl.PluralRules)throw new i.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.ErrorCode.MISSING_INTL_API,d);var k=r.getPluralRules(t,{type:m.pluralType}).select(y-(m.offset||0));E=m.options[k]||m.options.other}if(!E)throw new i.InvalidValueError(m.value,y,Object.keys(m.options),d);f.push.apply(f,s(E.value,t,r,l,c,y-(m.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===n.literal&&t.type===n.literal?r.value+=t.value:e.push(t),e},[])}(f)}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCode:()=>n,FormatError:()=>i,InvalidValueError:()=>a,InvalidValueTypeError:()=>s,MissingValueError:()=>l});var n,o=r(104);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var i=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return(0,o.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,r,o,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),n.INVALID_VALUE,i)||this}return(0,o.__extends)(t,e),t}(i),s=function(e){function t(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,o)||this}return(0,o.__extends)(t,e),t}(i),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,o.__extends)(t,e),t}(i)},,,(e,t,r)=>{r(123);var n=r(125),o=n.Service,i=n.apiLoader;i.services.firehose={},n.Firehose=o.defineService("firehose",["2015-08-04"]),Object.defineProperty(i.services.firehose,"2015-08-04",{get:function(){var e=r(282);return e.paginators=r(283).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},(e,t,r)=>{var n=r(124);n.crypto.lib=r(244),n.Buffer=r(247).Buffer,n.url=r(254),n.querystring=r(256),n.realClock=r(259),n.environment="js",n.createEventStream=r(260).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var o=r(125);if(e.exports=o,r(156),r(157),r(266),r(272),r(273),r(274),r(278),o.XML.Parser=r(279),r(280),void 0===i)var i={browser:!0}},(e,t,r)=>{var n,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(125).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,function(n){var i=e[n],a=r(n),s=a+"=";if(Array.isArray(i)){var l=[];o.arrayEach(i,function(e){l.push(r(e))}),s=a+"="+l.sort().join("&"+a+"=")}else null!=i&&(s=a+"="+r(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(233).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null==e?e:o.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null==e?e:o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof o.Buffer.alloc)return o.Buffer.alloc(e,t,r);var n=new o.Buffer(e);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){o.Buffer.isBuffer(e)||(e=o.buffer.toBuffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var o=r+n;o>e.length&&(o=e.length),t.push(e.slice(r,o)),r=o},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r<e.length;r++)n+=e[r].length;for(t=o.buffer.alloc(n),r=0;r<e.length;r++)e[r].copy(t,i),i+=e[r].length;return t}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=o.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return r(233).lstatSync(e.path).size;throw o.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return o.arrayEach(e.split(/\r?\n/),function(e){if("["===(e=e.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===e[e.length-1]){if("__proto__"===(t=e.substring(1,e.length-1))||"__proto__"===t.split(/\s/)[1])throw o.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var n=e.indexOf("="),i=e.length-1;if(-1!==n&&0!==n&&n!==i){var a=e.substring(0,n).trim(),s=e.substring(n+1).trim();r[t]=r[t]||{},r[t][a]=s}}}),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(e.apply(null,t))}}},date:{getDate:function(){return n||(n=r(125)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=o.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=o.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=o.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),o.date[t](o.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw o.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(e){var t=o.crypto.crc32Table,r=~0;"string"==typeof e&&(e=o.buffer.toBuffer(e));for(var n=0;n<e.length;n++){r=r>>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=o.buffer.toBuffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=o.buffer.toBuffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var l=i.update(t).digest(r);return n&&n(null,l),l}var c=0,u=new FileReader;u.onerror=function(){n(new Error("Failed to read data."))},u.onload=function(){var e=new o.Buffer(new Uint8Array(u.result));i.update(e),c+=e.length,u._continueReading()},u._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),u.readAsArrayBuffer(a.call(t,c,e))}},u._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return o.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,r,e[r])===o.abort)break}},arrayEach:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,e[r],parseInt(r,10))===o.abort)break}},update:function(e,t){return o.each(t,function(t,r){e[t]=r}),e},merge:function(e,t){return o.update(o.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=o.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;for(var n in"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((r=o.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(o.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),t||{})if("["===n[0]&&"]"===n[n.length-1]){if("code"===(n=n.slice(1,-1))||"message"===n)continue;e["["+n+"]"]="See error."+n+" for details.",Object.defineProperty(e,n,{value:e[n]||t&&t[n]||r&&r[n],enumerable:!1,writable:!0})}return e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var n=function(){};n.prototype=e.prototype,r=new n}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,o.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var n=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=n)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&o.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,r,n,o){var i={configurable:!0,enumerable:void 0===n||n};"function"!=typeof r||o?(i.value=r,i.writable=!0):i.get=r,Object.defineProperty(e,t,i)},memoizedProperty:function(e,t,r,n){var i=null;o.property(e,t,function(){return null===i&&(i=r()),i},n)},hoistPayloadMember:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r],i=n.output;if(i.payload&&!n.hasEventOutput){var a=i.members[i.payload],s=e.data[i.payload];"structure"===a.type&&o.each(s,function(t,r){o.property(e.data,t,r,!1)})}},computeSha256:function(e,t){if(o.isNode()){var n=o.stream.Stream,i=r(233);if("function"==typeof n&&e instanceof n){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var a={};"number"==typeof e.start&&(a.start=e.start),"number"==typeof e.end&&(a.end=e.end),e=i.createReadStream(e.path,a)}}o.crypto.sha256(e,"hex",function(e,r){e?t(e):t(null,r)})},isClockSkewed:function(e){if(e)return o.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var o=0;o<e.length;o++){var i=e[o];r?i.deletePromisesFromClass&&i.deletePromisesFromClass():i.addPromisesToClass&&i.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,n=Array.prototype.slice.call(arguments);return new t(function(t,o){n.push(function(e,r){e?o(e):t(r)}),r[e].apply(r,n)})}},isDualstackAvailable:function(e){if(!e)return!1;var t=r(146);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e))&&!!t[e].dualstackAvailable},calculateRetryDelay:function(e,t,r){t||(t={});var n=t.customBackoff||null;if("function"==typeof n)return n(e,r);var o="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*o)},handleRequestWithRetries:function(e,t,r){t||(t={});var i=n.HttpClient.getInstance(),a=t.httpOptions||{},s=0,l=function(e){var n=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&s<n){var i=o.calculateRetryDelay(s,t.retryDelayOptions,e);if(i>=0)return s++,void setTimeout(c,i+(e.retryAfter||0))}r(e)},c=function(){var t="";i.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var n=e.statusCode;if(n<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,a=o.error(new Error,{statusCode:n,retryable:n>=500||429===n});i&&a.retryable&&(a.retryAfter=i),l(a)}})},l)};n.util.defer(c)},uuid:{v4:function(){return r(234).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};if(process.env[o.configOptInEnv])n=e.loadFrom({isConfig:!0,filename:process.env[o.sharedConfigFileEnv]});var i={};try{i=e.loadFrom({filename:t||process.env[o.configOptInEnv]&&process.env[o.sharedCredentialsFileEnv]})}catch(e){if(!process.env[o.configOptInEnv])throw e}for(var a=0,s=Object.keys(n);a<s.length;a++)r[s[a]]=l(r[s[a]]||{},n[s[a]]);for(a=0,s=Object.keys(i);a<s.length;a++)r[s[a]]=l(r[s[a]]||{},i[s[a]]);return r;function l(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++)e[n[r]]=t[n[r]];return e}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o},(e,t,r)=>{var n={util:r(124)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.1692.0",Signers:{},Protocol:{Json:r(126),Query:r(130),Rest:r(134),RestJson:r(135),RestXml:r(136)},XML:{Builder:r(137),Parser:null},JSON:{Builder:r(127),Parser:r(128)},Model:{Api:r(142),Operation:r(143),Shape:r(132),Paginator:r(144),ResourceWaiter:r(145)},apiLoader:r(147),EndpointCache:r(148).EndpointCache}),r(150),r(151),r(155),r(158),r(159),r(217),r(220),r(221),r(222),r(231),r(232),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},(e,t,r)=>{var n=r(124),o=r(127),i=r(128),a=r(129).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,l=new o;1===i&&(i="1.0"),r.awsQueryCompatible&&(t.params||(t.params={}),Object.assign(t.params,e.params)),t.body=l.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=n,a(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var o=JSON.parse(r.body.toString()),i=o.__type||o.code||o.Code;for(var a in i&&(t.code=i.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=o.message||o.Message||null,o||{})"code"!==a&&"message"!==a&&(t["["+a+"]"]="See error."+a+" for details.",Object.defineProperty(t,a,{value:o[a],enumerable:!1,writable:!0}))}catch(o){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new i;e.data=n.parse(t,r)}}}},(e,t,r)=>{var n=r(124);function o(){}function i(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var r={};return n.each(e,function(e,n){var o=t.members[e];if(o){if("body"!==o.location)return;var a=o.isLocationName?o.name:e,s=i(n,o);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var o=i(n,t.value);void 0!==o&&(r[e]=o)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=i(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}o.prototype.build=function(e,t){return JSON.stringify(i(e,t))},e.exports=o},(e,t,r)=>{var n=r(124);function o(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;if(t.isDocument)return e;var r={},o=t.members,a=t.api&&t.api.awsQueryCompatible;return n.each(o,function(t,n){var o=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,o)){var s=i(e[o],n);void 0!==s&&(r[t]=s)}else a&&n.defaultValue&&"list"===n.type&&(r[t]="function"==typeof n.defaultValue?n.defaultValue():n.defaultValue)}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var o=i(n,t.value);r[e]=void 0===o?null:o}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=i(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}o.prototype.parse=function(e,t){return i(JSON.parse(e),t)},e.exports=o},(e,t,r)=>{var n=r(124),o=r(125);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,r,i,a=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],o=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===o}(e))return e;if(a.endpoint&&a.endpoint.hostPrefix){var s=function(e,t,r){return n.each(r.members,function(r,o){if(!0===o.hostLabel){if("string"!=typeof t[r]||""===t[r])throw n.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var i=new RegExp("\\{"+r+"\\}","g");e=e.replace(i,t[r])}}),e}(a.endpoint.hostPrefix,e.params,a.input);!function(e,t){e.host&&(e.host=t+e.host);e.hostname&&(e.hostname=t+e.hostname)}(e.httpRequest.endpoint,s),t=e.httpRequest.endpoint.hostname,r=t.split("."),i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,n.arrayEach(r,function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!i.test(e))throw o.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}return e}}},(e,t,r)=>{var n=r(125),o=r(124),i=r(131),a=r(132),s=r(129).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new i).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=o.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new n.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=o.error(new Error,{code:t.Code,message:t.Message}):e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{},i=r;if(i.resultWrapper){var s=a.create({type:"structure"});s.members[i.resultWrapper]=r,s.memberNames=[i.resultWrapper],o.property(r,"name",r.resultWrapper),r=s}var l=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var c=a.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=c}var u=l.parse(e.httpResponse.body.toString(),r);e.requestId=u._XAMZRequestId||u.requestId,u._XAMZRequestId&&delete u._XAMZRequestId,i.resultWrapper&&u[i.resultWrapper]&&(o.update(u,u[i.resultWrapper]),delete u[i.resultWrapper]),e.data=u}}},(e,t,r)=>{var n=r(124);function o(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function a(e,t,r,o){n.each(r.members,function(r,n){var a=t[r];if(null!=a){var l=i(n);s(l=e?e+"."+l:l,a,n,o)}})}function s(e,t,r,o){null!=t&&("structure"===r.type?a(e,t,r,o):"list"===r.type?function(e,t,r,o){var a=r.member||{};0!==t.length?n.arrayEach(t,function(t,n){var l="."+(n+1);if("ec2"===r.api.protocol)l+="";else if(r.flattened){if(a.name){var c=e.split(".");c.pop(),c.push(i(a)),e=c.join(".")}}else l="."+(a.name?a.name:"member")+l;s(e+l,t,a,o)}):"ec2"!==r.api.protocol&&o.call(this,e,null)}(e,t,r,o):"map"===r.type?function(e,t,r,o){var i=1;n.each(t,function(t,n){var a=(r.flattened?".":".entry.")+i+++".",l=a+(r.key.name||"key"),c=a+(r.value.name||"value");s(e+l,t,r.key,o),s(e+c,n,r.value,o)})}(e,t,r,o):o(e,r.toWireFormat(t).toString()))}o.prototype.serialize=function(e,t,r){a("",e,t,r)},e.exports=o},(e,t,r)=>{var n=r(133),o=r(124);function i(e,t,r){null!=r&&o.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||o.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},i(this,"shape",e.shape),i(this,"api",t.api,!1),i(this,"type",e.type),i(this,"enum",e.enum),i(this,"min",e.min),i(this,"max",e.max),i(this,"pattern",e.pattern),i(this,"location",e.location||this.location||"body"),i(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),i(this,"isStreaming",e.streaming||this.isStreaming||!1),i(this,"requiresLength",e.requiresLength,!1),i(this,"isComposite",e.isComposite||!1),i(this,"isShape",!0,!1),i(this,"isQueryName",Boolean(e.queryName),!1),i(this,"isLocationName",Boolean(e.locationName),!1),i(this,"isIdempotent",!0===e.idempotencyToken),i(this,"isJsonValue",!0===e.jsonvalue),i(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),i(this,"isEventStream",Boolean(e.eventstream),!1),i(this,"isEvent",Boolean(e.event),!1),i(this,"isEventPayload",Boolean(e.eventpayload),!1),i(this,"isEventHeader",Boolean(e.eventheader),!1),i(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),i(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),i(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(i(this,"documentation",e.documentation),i(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&i(this,"isXmlAttribute",e.xmlAttribute||!1),i(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function l(e){s.apply(this,arguments),i(this,"isComposite",!0),e.flattened&&i(this,"flattened",e.flattened||!1)}function c(e,t){var r=this,o=null,c=!this.isShape;l.apply(this,arguments),c&&(i(this,"defaultValue",function(){return{}}),i(this,"members",{}),i(this,"memberNames",[]),i(this,"required",[]),i(this,"isRequired",function(){return!1}),i(this,"isDocument",Boolean(e.document))),e.members&&(i(this,"members",new n(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(a(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,n=0,o=t.length;n<o;n++)if(e[t[n]].isEventPayload)return t[n]}),a(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,n=[],o=0,i=t.length;o<i;o++)e[t[o]].isEventHeader&&n.push(t[o]);return n}))),e.required&&(i(this,"required",e.required),i(this,"isRequired",function(t){if(!o){o={};for(var r=0;r<e.required.length;r++)o[e.required[r]]=!0}return o[t]},!1,!0)),i(this,"resultWrapper",e.resultWrapper||null),e.payload&&i(this,"payload",e.payload),"string"==typeof e.xmlNamespace?i(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(i(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),i(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function u(e,t){var r=this,n=!this.isShape;if(l.apply(this,arguments),n&&i(this,"defaultValue",function(){return[]}),e.member&&a(this,"member",function(){return s.create(e.member,t)}),this.flattened){var o=this.name;a(this,"name",function(){return r.member.name||o})}}function d(e,t){var r=!this.isShape;l.apply(this,arguments),r&&(i(this,"defaultValue",function(){return{}}),i(this,"key",s.create({type:"string"},t)),i(this,"value",s.create({type:"string"},t))),e.key&&a(this,"key",function(){return s.create(e.key,t)}),e.value&&a(this,"value",function(){return s.create(e.value,t)})}function f(){s.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function p(){s.apply(this,arguments),this.toType=function(e){var t=o.base64.decode(e);if(this.isSensitive&&o.isNode()&&"function"==typeof o.Buffer.alloc){var r=o.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=o.base64.encode}function h(){p.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:u,map:d,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)i(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)i(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)i(this,"timestampFormat","rfc822");else if("querystring"===this.location)i(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":i(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":i(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?o.date.parseTimestamp(e):null},this.toWireFormat=function(e){return o.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:f,base64:h,binary:p},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var o=Object.keys(e);t.documentation||(o=o.filter(function(e){return!e.match(/documentation/)}));var i=function(){n.constructor.call(this,e,t,r)};return i.prototype=n,new i}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:u,MapShape:d,StringShape:f,BooleanShape:m,Base64Shape:h},e.exports=s},(e,t,r)=>{var n=r(124).memoizedProperty;function o(e,t,r,o){n(this,o(e),function(){return r(e,t)})}e.exports=function(e,t,r,n,i){for(var a in n=n||String,e)Object.prototype.hasOwnProperty.call(e,a)&&(o.call(this,a,e[a],r,n),i&&i(a,e[a]))}},(e,t,r)=>{var n=r(124),o=r(129).populateHostPrefix;function i(e,t,r,o){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,function(e,t){var r=o[e];if(null!=r)if("uri"===t.location){var l=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(l,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map(function(e){return n.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?n.each(r,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return n.uriEscape(String(e))}):a[e]=n.uriEscape(String(t))}):a[t.name]=n.uriEscape(t.toWireFormat(r).toString()))}),s){i+=i.indexOf("?")>=0?"&":"?";var l=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t<a[e].length;t++)l.push(n.uriEscape(String(e))+"="+a[e][t])}),i+=l.join("&")}return i}e.exports={buildRequest:function(e){!function(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}(e),function(e){var t=e.service.api.operations[e.operation],r=t.input,n=i(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=n}(e),function(e){var t=e.service.api.operations[e.operation];n.each(t.input.members,function(t,r){var o=e.params[t];null!=o&&("headers"===r.location&&"map"===r.type?n.each(o,function(t,n){e.httpRequest.headers[r.name+t]=n}):"header"===r.location&&(o=r.toWireFormat(o).toString(),r.isJsonValue&&(o=n.base64.encode(o)),e.httpRequest.headers[r.name]=o))})}(e),o(e)},extractError:function(){},extractData:function(e){var t=e.request,r={},o=e.httpResponse,i=t.service.api.operations[t.operation].output,a={};n.each(o.headers,function(e,t){a[e.toLowerCase()]=t}),n.each(i.members,function(e,t){var i=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var s=t.isLocationName?t.name:"",l=new RegExp("^"+s+"(.+)","i");n.each(o.headers,function(t,n){var o=t.match(l);null!==o&&(r[e][o[1]]=n)})}else if("header"===t.location){if(void 0!==a[i]){var c=t.isJsonValue?n.base64.decode(a[i]):a[i];r[e]=t.toType(c)}}else"statusCode"===t.location&&(r[e]=parseInt(o.statusCode,10))}),e.data=r},generateURI:i}},(e,t,r)=>{var n=r(125),o=r(124),i=r(134),a=r(126),s=r(127),l=r(128),c=["GET","HEAD","DELETE"];function u(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}e.exports={buildRequest:function(e){i.buildRequest(e),c.indexOf(e.httpRequest.method)<0&&function(e){var t=new s,r=e.service.api.operations[e.operation].input;if(r.payload){var n,o=r.members[r.payload];n=e.params[r.payload],"structure"===o.type?(e.httpRequest.body=t.build(n||{},o),u(e)):void 0!==n&&(e.httpRequest.body=n,("binary"===o.type||o.isStreaming)&&u(e,!0))}else e.httpRequest.body=t.build(e.params,r),u(e)}(e)},extractError:function(e){a.extractError(e)},extractData:function(e){i.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],s=t.service.api.operations[t.operation].output||{};if(r.hasEventOutput,s.payload){var c=s.members[s.payload],u=e.httpResponse.body;if(c.isEventStream)d=new l,e.data[s.payload]=o.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:u,d,c);else if("structure"===c.type||"list"===c.type){var d=new l;e.data[s.payload]=d.parse(u,c)}else"binary"===c.type||c.isStreaming?e.data[s.payload]=u:e.data[s.payload]=c.toType(u)}else{var f=e.data;a.extractData(e),e.data=o.merge(f,e.data)}},unsetContentLength:function(e){void 0===o.getRequestPayloadShape(e)&&c.indexOf(e.httpRequest.method)>=0&&delete e.httpRequest.headers["Content-Length"]}}},(e,t,r)=>{var n=r(125),o=r(124),i=r(134);e.exports={buildRequest:function(e){i.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,i=e.params,a=t.payload;if(a){var s=t.members[a];if(void 0===(i=i[a]))return;if("structure"===s.type){var l=s.name;e.httpRequest.body=r.toXML(i,s,l,!0)}else e.httpRequest.body=i}else e.httpRequest.body=r.toXML(i,t,t.name||t.shape||o.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;i.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=o.error(new Error,{code:t.Code,message:t.Message}):e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;i.extractData(e);var r=e.request,a=e.httpResponse.body,s=r.service.api.operations[r.operation],l=s.output,c=(s.hasEventOutput,l.payload);if(c){var u=l.members[c];u.isEventStream?(t=new n.XML.Parser,e.data[c]=o.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,u)):"structure"===u.type?(t=new n.XML.Parser,e.data[c]=t.parse(a.toString(),u)):"binary"===u.type||u.isStreaming?e.data[c]=a:e.data[c]=u.toType(a)}else if(a.length>0){var d=(t=new n.XML.Parser).parse(a.toString(),l);o.update(e.data,d)}}}},(e,t,r)=>{var n=r(124),o=r(138).XmlNode,i=r(140).XmlText;function a(){}function s(e,t,r){switch(r.type){case"structure":return function(e,t,r){n.arrayEach(r.memberNames,function(n){var i=r.members[n];if("body"===i.location){var a=t[n],c=i.name;if(null!=a)if(i.isXmlAttribute)e.addAttribute(c,a);else if(i.flattened)s(e,a,i);else{var u=new o(c);e.addChildNode(u),l(u,i),s(u,a,i)}}})}(e,t,r);case"map":return function(e,t,r){var i=r.key.name||"key",a=r.value.name||"value";n.each(t,function(t,n){var l=new o(r.flattened?r.name:"entry");e.addChildNode(l);var c=new o(i),u=new o(a);l.addChildNode(c),l.addChildNode(u),s(c,t,r.key),s(u,n,r.value)})}(e,t,r);case"list":return function(e,t,r){r.flattened?n.arrayEach(t,function(t){var n=r.member.name||r.name,i=new o(n);e.addChildNode(i),s(i,t,r.member)}):n.arrayEach(t,function(t){var n=r.member.name||"member",i=new o(n);e.addChildNode(i),s(i,t,r.member)})}(e,t,r);default:return function(e,t,r){e.addChildNode(new i(r.toWireFormat(t)))}(e,t,r)}}function l(e,t,r){var n,o="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(o+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(o,n)}a.prototype.toXML=function(e,t,r,n){var i=new o(r);return l(i,t,!0),s(i,e,t),i.children.length>0||n?i.toString():""},e.exports=a},(e,t,r)=>{var n=r(139).escapeAttribute;function o(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}o.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},o.prototype.addChildNode=function(e){return this.children.push(e),this},o.prototype.removeAttribute=function(e){return delete this.attributes[e],this},o.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,o=0,i=Object.keys(r);o<i.length;o++){var a=i[o],s=r[a];null!=s&&(t+=" "+a+'="'+n(""+s)+'"')}return t+(e?">"+this.children.map(function(e){return e.toString()}).join("")+"</"+this.name+">":"/>")},e.exports={XmlNode:o}},e=>{e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},(e,t,r)=>{var n=r(141).escapeElement;function o(e){this.value=e}o.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:o}},e=>{e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},(e,t,r)=>{var n=r(133),o=r(143),i=r(132),a=r(144),s=r(145),l=r(146),c=r(124),u=c.property,d=c.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var f=t.serviceIdentifier;delete t.serviceIdentifier,u(this,"isApi",!0,!1),u(this,"apiVersion",e.metadata.apiVersion),u(this,"endpointPrefix",e.metadata.endpointPrefix),u(this,"signingName",e.metadata.signingName),u(this,"globalEndpoint",e.metadata.globalEndpoint),u(this,"signatureVersion",e.metadata.signatureVersion),u(this,"jsonVersion",e.metadata.jsonVersion),u(this,"targetPrefix",e.metadata.targetPrefix),u(this,"protocol",e.metadata.protocol),u(this,"timestampFormat",e.metadata.timestampFormat),u(this,"xmlNamespaceUri",e.metadata.xmlNamespace),u(this,"abbreviation",e.metadata.serviceAbbreviation),u(this,"fullName",e.metadata.serviceFullName),u(this,"serviceId",e.metadata.serviceId),f&&l[f]&&u(this,"xmlNoDefaultLists",l[f].xmlNoDefaultLists,!1),d(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),u(this,"operations",new n(e.operations,t,function(e,r){return new o(e,r,t)},c.string.lowerFirst,function(e,t){!0===t.endpointoperation&&u(r,"endpointOperation",c.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&u(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)})),u(this,"shapes",new n(e.shapes,t,function(e,r){return i.create(r,t)})),u(this,"paginators",new n(e.paginators,t,function(e,r){return new a(e,r,t)})),u(this,"waiters",new n(e.waiters,t,function(e,r){return new s(e,r,t)},c.string.lowerFirst)),t.documentation&&(u(this,"documentation",e.documentation),u(this,"documentationUrl",e.documentationUrl)),u(this,"awsQueryCompatible",e.metadata.awsQueryCompatible)}},(e,t,r)=>{var n=r(132),o=r(124),i=o.property,a=o.memoizedProperty;e.exports=function(e,t,r){var o=this;r=r||{},i(this,"name",t.name||e),i(this,"api",r.api,!1),t.http=t.http||{},i(this,"endpoint",t.endpoint),i(this,"httpMethod",t.http.method||"POST"),i(this,"httpPath",t.http.requestUri||"/"),i(this,"authtype",t.authtype||""),i(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var s=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;i(this,"httpChecksumRequired",s,!1),a(this,"input",function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)}),a(this,"output",function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)}),a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var o=0;o<t.errors.length;o++)e.push(n.create(t.errors[o],r));return e}),a(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(i(this,"documentation",t.documentation),i(this,"documentationUrl",t.documentationUrl)),a(this,"idempotentMembers",function(){var e=[],t=o.input,r=t.members;if(!t.members)return e;for(var n in r)r.hasOwnProperty(n)&&!0===r[n].isIdempotent&&e.push(n);return e}),a(this,"hasEventOutput",function(){return function(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var n in t)if(!t.hasOwnProperty(n)&&!0===t[n].isEventStream)return!0;return!1}(o.output)})}},(e,t,r)=>{var n=r(124).property;e.exports=function(e,t){n(this,"inputToken",t.input_token),n(this,"limitKey",t.limit_key),n(this,"moreResults",t.more_results),n(this,"outputToken",t.output_token),n(this,"resultKey",t.result_key)}},(e,t,r)=>{var n=r(124),o=n.property;e.exports=function(e,t,r){r=r||{},o(this,"name",e),o(this,"api",r.api,!1),t.operation&&o(this,"operation",n.string.lowerFirst(t.operation));var i=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&o(i,e,r)})}},e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog","cors":true},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp","cors":true},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"},"privatenetworks":{"name":"PrivateNetworks"},"supportapp":{"prefix":"support-app","name":"SupportApp"},"controltower":{"name":"ControlTower"},"iotfleetwise":{"name":"IoTFleetWise"},"migrationhuborchestrator":{"name":"MigrationHubOrchestrator"},"connectcases":{"name":"ConnectCases"},"resourceexplorer2":{"prefix":"resource-explorer-2","name":"ResourceExplorer2"},"scheduler":{"name":"Scheduler"},"chimesdkvoice":{"prefix":"chime-sdk-voice","name":"ChimeSDKVoice"},"ssmsap":{"prefix":"ssm-sap","name":"SsmSap"},"oam":{"name":"OAM"},"arczonalshift":{"prefix":"arc-zonal-shift","name":"ARCZonalShift"},"omics":{"name":"Omics"},"opensearchserverless":{"name":"OpenSearchServerless"},"securitylake":{"name":"SecurityLake"},"simspaceweaver":{"name":"SimSpaceWeaver"},"docdbelastic":{"prefix":"docdb-elastic","name":"DocDBElastic"},"sagemakergeospatial":{"prefix":"sagemaker-geospatial","name":"SageMakerGeospatial"},"codecatalyst":{"name":"CodeCatalyst"},"pipes":{"name":"Pipes"},"sagemakermetrics":{"prefix":"sagemaker-metrics","name":"SageMakerMetrics"},"kinesisvideowebrtcstorage":{"prefix":"kinesis-video-webrtc-storage","name":"KinesisVideoWebRTCStorage"},"licensemanagerlinuxsubscriptions":{"prefix":"license-manager-linux-subscriptions","name":"LicenseManagerLinuxSubscriptions"},"kendraranking":{"prefix":"kendra-ranking","name":"KendraRanking"},"cleanrooms":{"name":"CleanRooms"},"cloudtraildata":{"prefix":"cloudtrail-data","name":"CloudTrailData"},"tnb":{"name":"Tnb"},"internetmonitor":{"name":"InternetMonitor"},"ivsrealtime":{"prefix":"ivs-realtime","name":"IVSRealTime"},"vpclattice":{"prefix":"vpc-lattice","name":"VPCLattice"},"osis":{"name":"OSIS"},"mediapackagev2":{"name":"MediaPackageV2"},"paymentcryptography":{"prefix":"payment-cryptography","name":"PaymentCryptography"},"paymentcryptographydata":{"prefix":"payment-cryptography-data","name":"PaymentCryptographyData"},"codegurusecurity":{"prefix":"codeguru-security","name":"CodeGuruSecurity"},"verifiedpermissions":{"name":"VerifiedPermissions"},"appfabric":{"name":"AppFabric"},"medicalimaging":{"prefix":"medical-imaging","name":"MedicalImaging"},"entityresolution":{"name":"EntityResolution"},"managedblockchainquery":{"prefix":"managedblockchain-query","name":"ManagedBlockchainQuery"},"neptunedata":{"name":"Neptunedata"},"pcaconnectorad":{"prefix":"pca-connector-ad","name":"PcaConnectorAd"},"bedrock":{"name":"Bedrock"},"bedrockruntime":{"prefix":"bedrock-runtime","name":"BedrockRuntime"},"datazone":{"name":"DataZone"},"launchwizard":{"prefix":"launch-wizard","name":"LaunchWizard"},"trustedadvisor":{"name":"TrustedAdvisor"},"inspectorscan":{"prefix":"inspector-scan","name":"InspectorScan"},"bcmdataexports":{"prefix":"bcm-data-exports","name":"BCMDataExports"},"costoptimizationhub":{"prefix":"cost-optimization-hub","name":"CostOptimizationHub"},"eksauth":{"prefix":"eks-auth","name":"EKSAuth"},"freetier":{"name":"FreeTier"},"repostspace":{"name":"Repostspace"},"workspacesthinclient":{"prefix":"workspaces-thin-client","name":"WorkSpacesThinClient"},"b2bi":{"name":"B2bi"},"bedrockagent":{"prefix":"bedrock-agent","name":"BedrockAgent"},"bedrockagentruntime":{"prefix":"bedrock-agent-runtime","name":"BedrockAgentRuntime"},"qbusiness":{"name":"QBusiness"},"qconnect":{"name":"QConnect"},"cleanroomsml":{"name":"CleanRoomsML"},"marketplaceagreement":{"prefix":"marketplace-agreement","name":"MarketplaceAgreement"},"marketplacedeployment":{"prefix":"marketplace-deployment","name":"MarketplaceDeployment"},"networkmonitor":{"name":"NetworkMonitor"},"supplychain":{"name":"SupplyChain"},"artifact":{"name":"Artifact"},"chatbot":{"name":"Chatbot"},"timestreaminfluxdb":{"prefix":"timestream-influxdb","name":"TimestreamInfluxDB"},"codeconnections":{"name":"CodeConnections"},"deadline":{"name":"Deadline"},"controlcatalog":{"name":"ControlCatalog"},"route53profiles":{"name":"Route53Profiles"},"mailmanager":{"name":"MailManager"},"taxsettings":{"name":"TaxSettings"},"applicationsignals":{"prefix":"application-signals","name":"ApplicationSignals"},"pcaconnectorscep":{"prefix":"pca-connector-scep","name":"PcaConnectorScep"},"apptest":{"name":"AppTest"},"qapps":{"name":"QApps"},"ssmquicksetup":{"prefix":"ssm-quicksetup","name":"SSMQuickSetup"},"pcs":{"name":"PCS"}}')},e=>{function t(e,r){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][r]}t.services={},e.exports=t},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(149),o=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,o=this.populateValue(r);this.cache.put(n,o)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),o=this.cache.get(r);if(o){for(var i=o.length-1;i>=0;i--){o[i].Expire<n&&o.splice(i,1)}if(0===o.length)return void this.cache.remove(r)}return o},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),n=0;n<r.length;n++){var o=r[n];void 0!==e[o]&&t.push(e[o])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map(function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();t.EndpointCache=o},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.key=e,this.value=t},n=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var n=this.removeFromTail().key;delete this.nodeMap[n]}var o=new r(e,t);this.nodeMap[e]=o,this.prependToList(o)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t],n=this.nodeMap[r];this.detachFromList(n),delete this.nodeMap[r]}},e}();t.LRUCache=n},(e,t,r)=>{var n=r(125);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,o=-1,i=0;i<n;++i)r[i]===t&&(o=i);o>-1&&r.splice(o,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),o=n.length;return this.callListeners(n,t,r),o>0},callListeners:function(e,t,r,o){var i=this,a=o||null;function s(o){if(o&&(a=n.util.error(a||new Error,o),i._haltHandlersOnError))return r.call(i,a);i.callListeners(e,t,r,a)}for(;e.length>0;){var l=e.shift();if(l._isAsync)return void l.apply(i,t.concat([s]));try{l.apply(i,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&i._haltHandlersOnError)return void r.call(i,a)}r.call(i,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},(e,t,r)=>{var n=r(125),o=r(142),i=r(152),a=n.util.inherit,s=0,l=r(154);n.Service=a({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;l.isFipsRegion(t)&&(e.region=l.getRealRegion(t),e.useFipsEndpoint=!0),l.isGlobalRegion(t)&&(e.region=l.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var o=n.util.copy(e),i=new r(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return o},enumerable:!1,configurable:!0}),i._clientId=++s,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||i.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){process.nextTick(function(){r.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){process.nextTick(function(){r.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,o=t.length-1;o>=0;o--)if("*"!==t[o][t[o].length-1]&&(r=t[o]),t[o].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var o=this.api.operations[e];o&&(t=n.util.copy(t),n.util.each(this.config.params,function(e,r){o.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var i=new n.Request(this,e,t);return this.addAllRequestListeners(i),this.attachMonitoringEmitter(i),r&&i.send(r),i},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(n.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(r.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var o=n.error;n.httpResponse.statusCode>299?(o.code&&(r.FinalAwsException=o.code),o.message&&(r.FinalAwsExceptionMessage=o.message)):((o.code||o.name)&&(r.FinalSdkException=o.code||o.name),o.message&&(r.FinalSdkExceptionMessage=o.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,o,i,a,s,l=0,c=this,u=!0;e.on("validate",function(){i=n.util.realClock.now(),s=Date.now()},u),e.on("sign",function(){r=n.util.realClock.now(),t=Date.now(),a=e.httpRequest.region,l++},u),e.on("validateResponse",function(){o=Math.round(n.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=o>=0?o:0,r.Region=a,c.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var i=c.attemptFailEvent(e);i.Timestamp=t,o=o||Math.round(n.util.realClock.now()-r),i.AttemptLatency=o>=0?o:0,i.Region=a,c.emit("apiCallAttempt",[i])}),e.addNamedListener("API_CALL","complete",function(){var t=c.apiCallEvent(e);if(t.AttemptCount=l,!(t.AttemptCount<=0)){t.Timestamp=s;var r=Math.round(n.util.realClock.now()-i);t.Latency=r>=0?r:0;var o=e.response;o.error&&o.error.retryable&&"number"==typeof o.retryCount&&"number"==typeof o.maxRetries&&o.retryCount>=o.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,o="";e&&(o=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:"");return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===o||"v4-unsigned-body"===o?"v4":"bearer"===o?"bearer":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var o=new Error;throw n.util.error(o,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})})},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var o=a(n.Service,r||{});if("string"==typeof e){n.Service.addVersions(o,t);var i=o.serviceIdentifier||e;o.serviceIdentifier=i}else o.prototype.api=e,n.Service.defineMethods(o);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var s=n.util.clientSideMonitoring.Publisher,l=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(l),l.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(o.prototype),n.Service.addDefaultMonitoringListeners(o.prototype),o},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){var i=a(e,{serviceIdentifier:e.serviceIdentifier});function s(t){t.isApi?i.prototype.api=t:i.prototype.api=new o(t,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof t){if(r)s(r);else try{s(n.apiLoader(e.serviceIdentifier,t))}catch(r){throw n.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=i}else s(t);return n.Service.defineMethods(i),i},hasService:function(e){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])})},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),e.exports=n.Service},(e,t,r)=>{var n=r(124),o=r(153);function i(e,t){n.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],[t,"internal-*"],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}(e),r=e.config.useFipsEndpoint,n=e.config.useDualstackEndpoint,a=0;a<t.length;a++){var s=t[a];if(s){var l=r?n?o.dualstackFipsRules:o.fipsRules:n?o.dualstackRules:o.rules;if(Object.prototype.hasOwnProperty.call(l,s)){var c=l[s];"string"==typeof c&&(c=o.patterns[c]),e.isGlobalEndpoint=!!c.globalEndpoint,c.signingRegion&&(e.signingRegion=c.signingRegion),c.signatureVersion||(c.signatureVersion="v4");var u="bearer"===(e.api&&e.api.signatureVersion);return void i(e,Object.assign({},c,{signatureVersion:u?"bearer":c.signatureVersion}))}}}},getEndpointSuffix:function(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov","^eu\\-isoe\\-west\\-1$":"cloud.adc-e.uk","^us\\-isof\\-\\w+\\-\\d+$":"csp.hci.ic.gov"},r=Object.keys(t),n=0;n<r.length;n++){var o=RegExp(r[n]),i=t[r[n]];if(o.test(e))return i}return"amazonaws.com"}}},e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"eu-isoe-*/*":"euIsoe","us-iso-*/*":"usIso","us-isob-*/*":"usIsob","us-isof-*/*":"usIsof","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"us-isof-*/route53":"globalUsIsof","eu-isoe-*/route53":"globalEuIsoe","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-iso-*/iam":{"endpoint":"{service}.us-iso-east-1.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-gov-*/iam":"globalGovCloud","*/ce":{"endpoint":"{service}.us-east-1.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"cn-*/ce":{"endpoint":"{service}.cn-northwest-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/access-analyzer":"fipsWithServiceOnly","us-gov-*/acm":"fipsWithServiceOnly","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/api.sagemaker":"fipsWithServiceOnly","us-gov-*/appconfig":"fipsWithServiceOnly","us-gov-*/application-autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling-plans":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cassandra":"fipsWithServiceOnly","us-gov-*/clouddirectory":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/cloudshell":"fipsWithServiceOnly","us-gov-*/cloudtrail":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/connect":"fipsWithServiceOnly","us-gov-*/databrew":"fipsWithServiceOnly","us-gov-*/dlm":"fipsWithServiceOnly","us-gov-*/dms":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/ec2":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticache":"fipsWithServiceOnly","us-gov-*/elasticbeanstalk":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/events":"fipsWithServiceOnly","us-gov-*/fis":"fipsWithServiceOnly","us-gov-*/glacier":"fipsWithServiceOnly","us-gov-*/greengrass":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/imagebuilder":"fipsWithServiceOnly","us-gov-*/kafka":"fipsWithServiceOnly","us-gov-*/kinesis":"fipsWithServiceOnly","us-gov-*/logs":"fipsWithServiceOnly","us-gov-*/mediaconvert":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/networkmanager":"fipsWithServiceOnly","us-gov-*/organizations":"fipsWithServiceOnly","us-gov-*/outposts":"fipsWithServiceOnly","us-gov-*/participant.connect":"fipsWithServiceOnly","us-gov-*/ram":"fipsWithServiceOnly","us-gov-*/rds":"fipsWithServiceOnly","us-gov-*/redshift":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/serverlessrepo":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/sns":"fipsWithServiceOnly","us-gov-*/sqs":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/streams.dynamodb":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-*/swf":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"globalUsIsof":{"endpoint":"{service}.csp.hci.ic.gov","globalEndpoint":true,"signingRegion":"us-isof-south-1"},"globalEuIsoe":{"endpoint":"{service}.cloud.adc-e.uk","globalEndpoint":true,"signingRegion":"eu-isoe-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"euIsoe":{"endpoint":"{service}.{region}.cloud.adc-e.uk"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"usIsof":{"endpoint":"{service}.{region}.csp.hci.ic.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"},"dualstackByDefault":{"endpoint":"{service}.{region}.api.aws"},"fipsDualstackByDefault":{"endpoint":"{service}-fips.{region}.api.aws"},"globalDualstackByDefault":{"endpoint":"{service}.global.api.aws"},"fipsGlobalDualstackByDefault":{"endpoint":"{service}-fips.global.api.aws"}}}')},e=>{e.exports={isFipsRegion:function(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},isGlobalRegion:function(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)},getRealRegion:function(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},(e,t,r)=>{var n,o=r(125);r(156),r(157),o.Config=o.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),o.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){var t,r=this;function n(t){e(t,t?null:r.credentials)}function i(e,t){return new o.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get(function(e){e&&(e=i("Could not load credentials from "+r.credentials.constructor.name,e)),n(e)}):(t=null,r.credentials.accessKeyId&&r.credentials.secretAccessKey||(t=i("Missing credentials")),n(t)):r.credentialProvider?r.credentialProvider.resolve(function(e,t){e&&(e=i("Could not load credentials from any providers",e)),r.credentials=t,n(e)}):n(i("No credentials to load"))},getToken:function(e){var t,r=this;function n(t){e(t,t?null:r.token)}function i(e,t){return new o.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}r.token?"function"==typeof r.token.get?r.token.get(function(e){e&&(e=i("Could not load token from "+r.token.constructor.name,e)),n(e)}):(t=null,r.token.token||(t=i("Missing token")),n(t)):r.tokenProvider?r.tokenProvider.resolve(function(e,t){e&&(e=i("Could not load token from any providers",e)),r.token=t,n(e)}):n(i("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),o.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||o.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(o.util.readFileSync(e)),r=new o.FileSystemCredentials(e),n=new o.CredentialProviderChain;return n.providers.unshift(r),n.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){o.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=o.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=o.util.copy(e)).credentials=new o.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"==typeof Promise&&(n=Promise);var t=[o.Request,o.Credentials,o.CredentialProviderChain];o.S3&&(t.push(o.S3),o.S3.ManagedUpload&&t.push(o.S3.ManagedUpload)),o.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),o.config=new o.Config},(e,t,r)=>{var n=r(125);n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){n.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):n.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},(e,t,r)=>{var n=r(125);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,o=t.providers.slice(0);!function e(i,a){if(!i&&a||r===o.length)return n.util.arrayEach(t.resolveCallbacks,function(e){e(i,a)}),void(t.resolveCallbacks.length=0);var s=o[r++];(a="function"==typeof s?s.call():s).get?a.get(function(t){e(t,t?null:a)}):e(null,a)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},(e,t,r)=>{var n=r(125),o=n.util.inherit;n.Endpoint=o({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e);n.util.update(this,n.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=o({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=o({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),n.HttpClient=o({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},(e,t,r)=>{var n=r(125),o=r(150),i=r(160).discoverEndpoint;function a(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}function s(e){var t=e.service;return t.config.signatureVersion?t.config.signatureVersion:t.api.signatureVersion?t.api.signatureVersion:a(e)}n.EventListeners={Core:{}},n.EventListeners={Core:(new o).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();"bearer"!==s(e)?e.service.config.getCredentials(function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()}):e.service.config.getToken(function(r){r&&(e.response.error=n.util.error(r,{code:"TokenError"})),t()})}),e("VALIDATE_REGION","validate",function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var o=n.util.copy(e.params),i=0,a=r.length;i<a;i++)o[r[i]]||(o[r[i]]=n.util.uuid.v4());e.params=o}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new n.ParamValidator(r).validate(t,e.params)}}),e("COMPUTE_CHECKSUM","afterBuild",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,o=r&&(n.util.Buffer.isBuffer(r)||"string"==typeof r),i=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&o&&!i["Content-MD5"]){var a=n.util.crypto.md5(r,"base64");i["Content-MD5"]=a}}}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],o=r?r.authtype:"";if(!e.service.api.signatureVersion&&!o&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===n.Signers.V4){var i=e.httpRequest.body||"";if(o.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(i,function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=a(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var o=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(n){if(r&&r.isStreaming){if(r.requiresLength)throw n;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw n}throw n}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("SET_TRACE_ID","afterBuild",function(e){var t="X-Amzn-Trace-Id";if(n.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var r=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof o&&o.length>0&&(e.httpRequest.headers[t]=o)}}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)});t("DISCOVER_ENDPOINT","sign",i,!0),t("SIGN","sign",function(e,t){var r=e.service,n=s(e);if(!n||0===n.length)return t();"bearer"===n?r.config.getToken(function(n,o){if(n)return e.response.error=n,t();try{new(r.getSignerClass(e))(e.httpRequest).addAuthorization(o)}catch(t){e.response.error=t}t()}):r.config.getCredentials(function(n,o){if(n)return e.response.error=n,t();try{var i=r.getSkewCorrectedDate(),a=r.getSignerClass(e),s=(e.service.api.operations||{})[e.operation],l=new a(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:s,signatureVersion:r.api.signatureVersion});l.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],l.addAuthorization(o,i),e.signedAt=i}catch(t){e.response.error=t}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),e("ERROR","error",function(e,t){if(t.request.service.api.awsQueryCompatible){var r=t.httpResponse.headers,n=r?r["x-amzn-query-error"]:void 0;n&&n.includes(";")&&(t.error.code=n.split(";")[0])}},!0),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var o=e.request.httpRequest.stream,i=e.request.service,a=i.api,s=e.request.operation,l=a.operations[s]||{};r.on("headers",function(o,a,s){if(e.request.emit("httpHeaders",[o,a,e,s]),!e.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(l.hasEventOutput&&i.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!o||!o.didCallback){if(2===n.HttpClient.streamsApiVersion&&l.hasEventOutput&&i.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function o(r){if("RequestAbortedError"!==r.code){var o="TimeoutError"===r.code?r.code:"NetworkingError";r=n.util.error(r,{code:o,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function i(){var t,i=n.HttpClient.getInstance(),a=e.request.service.config.httpOptions||{};try{var s=i.handleRequest(e.request.httpRequest,a,r,o);(t=s).on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}catch(e){o(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):i()}):i()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,o){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=o,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var i=t.date||t.Date,a=r.request.service;if(i){var s=Date.parse(i);a.config.correctClockSkew&&a.isClockSkewed(s)&&a.applyClockOffset(s)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(n.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],o={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(n.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,this.httpRequest.path=this.httpRequest.endpoint.path,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))}),t("RESET_RETRY_STATE","afterRetry",function(e,t){var r,n=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,n=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,n=!0)),n&&r>=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=n.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new o).addNamedListeners(function(e){e("LOG_REQUEST","complete",function(e){var t=e.request,o=t.service.config.logger;if(o){var i=function(){var i=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,s=!!o.isTTY,l=e.httpResponse.statusCode,c=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(c=a(t.service.api.operations[t.operation].input,t.params));var u=r(161).inspect(c,!0,null),d="";return s&&(d+="[33m"),d+="[AWS "+t.service.serviceIdentifier+" "+l,d+=" "+i.toString()+"s "+e.retryCount+" retries]",s&&(d+="[0;1m"),d+=" "+n.util.string.lowerFirst(t.operation),d+="("+u+")",s&&(d+="[0m"),d}();"function"==typeof o.log?o.log(i):"function"==typeof o.write&&o.write(i+"\n")}function a(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,function(t,n){Object.prototype.hasOwnProperty.call(e.members,t)?r[t]=a(e.members[t],n):r[t]=n}),r;case"list":var o=[];return n.util.arrayEach(t,function(t,r){o.push(a(e.member,t))}),o;case"map":var i={};return n.util.each(t,function(t,r){i[t]=a(e.value,r)}),i;default:return t}}})}),Json:(new o).addNamedListeners(function(e){var t=r(126);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new o).addNamedListeners(function(e){var t=r(134);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new o).addNamedListeners(function(e){var t=r(135);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)}),RestXml:(new o).addNamedListeners(function(e){var t=r(136);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new o).addNamedListeners(function(e){var t=r(130);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}},(e,t,r)=>{var n=r(125),o=r(124),i=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function a(e){var t=e.service,r=t.api||{},n=(r.operations,{});return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function s(e,t,r){r&&null!=t&&"structure"===r.type&&r.required&&r.required.length>0&&o.arrayEach(r.required,function(n){var o=r.members[n];if(!0===o.endpointDiscoveryId){var i=o.isLocationName?o.name:n;e[i]=String(t[n])}else s(e,t[n],o)})}function l(e,t){var r={};return s(r,e.params,t),r}function c(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,s=l(e,i?i.input:void 0),c=a(e);Object.keys(s).length>0&&(c=o.update(c,s),i&&(c.operation=i.name));var u=n.endpointCache.get(c);if(!u||1!==u.length||""!==u[0].Address)if(u&&u.length>0)e.httpRequest.updateEndpoint(u[0].Address);else{var d=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:s});f(d),d.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),d.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),d.send(function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])})}}var u={};function d(e,t){var r=e.service,i=r.api,s=i.operations?i.operations[e.operation]:void 0,c=s?s.input:void 0,d=l(e,c),p=a(e);Object.keys(d).length>0&&(p=o.update(p,d),s&&(p.operation=s.name));var h=n.EndpointCache.getKeyString(p),m=n.endpointCache.get(h);if(m&&1===m.length&&""===m[0].Address)return u[h]||(u[h]=[]),void u[h].push({request:e,callback:t});if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address),t();else{var g=r.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:d});g.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f(g),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),g.send(function(r,i){if(r){if(e.response.error=o.error(r,{retryable:!1}),n.endpointCache.remove(p),u[h]){var a=u[h];o.arrayEach(a,function(e){e.request.response.error=o.error(r,{retryable:!1}),e.callback()}),delete u[h]}}else if(i&&(n.endpointCache.put(h,i.Endpoints),e.httpRequest.updateEndpoint(i.Endpoints[0].Address),u[h])){a=u[h];o.arrayEach(a,function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address),e.callback()}),delete u[h]}t()})}}function f(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function p(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,s=i.service.api.operations||{},c=l(i,s[i.operation]?s[i.operation].input:void 0),u=a(i);Object.keys(c).length>0&&(u=o.update(u,c),s[i.operation]&&(u.operation=s[i.operation].name)),n.endpointCache.remove(u)}}function h(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw o.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=n.config[e.serviceIdentifier]||{};return Boolean(n.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var a=(r.api.operations||{})[e.operation],s=a?a.endpointDiscoveryRequired:"NULL",l=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!o.isBrowser()){for(var r=0;r<i.length;r++){var a=i[r];if(Object.prototype.hasOwnProperty.call(process.env,a)){if(""===process.env[a]||void 0===process.env[a])throw o.error(new Error,{code:"ConfigurationException",message:"environmental variable "+a+" cannot be set to nothing"});return!h(process.env[a])}}var s={};try{s=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(e){}var l=s[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(l,"endpoint_discovery_enabled")){if(void 0===l.endpoint_discovery_enabled)throw o.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!h(l.endpoint_discovery_enabled)}}}(e),u=r.api.hasRequiredEndpointDiscovery;switch((l||u)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),s){case"OPTIONAL":(l||u)&&(c(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",p)),t();break;case"REQUIRED":if(!1===l){e.response.error=o.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",p),d(e,t);break;default:t()}},requiredDiscoverEndpoint:d,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:l,getCacheKey:a,invalidateCachedEndpoint:p}},(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])g(s)||!w(s)?a+=" "+s:a+=" "+l(s);return a},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var i={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function l(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function u(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=d(e,o,n)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(k(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return f(r)}var c,u="",w=!1,x=["{","}"];(h(r)&&(w=!0,x=["[","]"]),k(r))&&(u=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(u=" "+RegExp.prototype.toString.call(r)),S(r)&&(u=" "+Date.prototype.toUTCString.call(r)),E(r)&&(u=" "+f(r)),0!==a.length||w&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=w?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)C(t,String(a))?i.push(p(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,r,n,o,!0))}),i}(e,r,n,s,a):a.map(function(t){return p(e,r,n,s,t,w)}),e.seen.pop(),function(e,t,r){var n=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,x)):x[0]+u+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,o,i){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),C(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(r)?d(e,l.value,null):d(e,l.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===x(e)}function E(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(a.test(e)){var r=process.pid;i[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(162),t.isArray=h,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=w,t.isDate=S,t.types.isDate=S,t.isError=E,t.types.isNativeError=E,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(215);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(216),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){process.nextTick(i.bind(null,null,e))},function(e){process.nextTick(P.bind(null,e,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},(e,t,r)=>{"use strict";var n=r(163),o=r(200),i=r(204),a=r(214);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function _(e){return"[object WeakSet]"===u(e)}function w(e){return"[object ArrayBuffer]"===u(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===u(e)}function k(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===u(e)}function O(e){return void 0!==x&&(void 0===T.working&&(T.working=T(new x)),T.working?T(e):e instanceof x)}function C(e){return g(e,d)}function j(e){return g(e,f)}function P(e){return g(e,p)}function I(e){return l&&g(e,h)}function R(e){return c&&g(e,m)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=C,t.isStringObject=j,t.isBooleanObject=P,t.isBigIntObject=I,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return C(e)||j(e)||P(e)||I(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},(e,t,r)=>{"use strict";var n=r(164)(),o=r(166)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},(e,t,r)=>{"use strict";var n=r(165);e.exports=function(){return n()&&!!Symbol.toStringTag}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(167),o=r(192),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},(e,t,r)=>{"use strict";var n,o=r(168),i=r(169),a=r(170),s=r(171),l=r(172),c=r(173),u=r(174),d=r(175),f=r(176),p=r(177),h=r(178),m=r(179),g=r(180),y=r(181),v=r(182),b=Function,_=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(184),S=r(186),E=function(){throw new u},k=w?function(){try{return E}catch(e){try{return w(arguments,"callee").get}catch(e){return E}}}():E,x=r(187)(),T=r(188),O=r(190),C=r(189),j=r(197),P=r(195),I={},R="undefined"!=typeof Uint8Array&&T?T(Uint8Array):n,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&T?T(T([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&T?T((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&T?T((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&T?T(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":j,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":C};if(T)try{null.error}catch(e){var M=T(T(e));A["%Error.prototype%"]=M}var D=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&T&&(r=T(o.prototype))}return A[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(193),B=r(199),F=L.call(P,Array.prototype.concat),z=L.call(j,Array.prototype.splice),U=L.call(P,String.prototype.replace),H=L.call(P,String.prototype.slice),q=L.call(P,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,G=function(e,t){var r,n=e;if(B(N,n)&&(n="%"+(r=N[n])[0]+"%"),B(A,n)){var o=A[n];if(o===I&&(o=D(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return U(e,V,function(e,t,r,o){n[n.length]=r?U(o,W,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=G("%"+n+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(n=l[0],z(r,F([0,1],l)));for(var d=1,f=!0;d<r.length;d+=1){var p=r[d],h=H(p,0,1),m=H(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),B(A,i="%"+(n+="."+p)+"%"))a=A[i];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=r.length){var g=w(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=B(a,p),a=a[p];f&&!s&&(A[i]=a)}}return a}},e=>{"use strict";e.exports=Object},e=>{"use strict";e.exports=Error},e=>{"use strict";e.exports=EvalError},e=>{"use strict";e.exports=RangeError},e=>{"use strict";e.exports=ReferenceError},e=>{"use strict";e.exports=SyntaxError},e=>{"use strict";e.exports=TypeError},e=>{"use strict";e.exports=URIError},e=>{"use strict";e.exports=Math.abs},e=>{"use strict";e.exports=Math.floor},e=>{"use strict";e.exports=Math.max},e=>{"use strict";e.exports=Math.min},e=>{"use strict";e.exports=Math.pow},e=>{"use strict";e.exports=Math.round},(e,t,r)=>{"use strict";var n=r(183);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},(e,t,r)=>{"use strict";var n=r(185);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(165);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},(e,t,r)=>{"use strict";var n=r(189),o=r(190),i=r(191);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},(e,t,r)=>{"use strict";var n=r(168);e.exports=n.getPrototypeOf||null},(e,t,r)=>{"use strict";var n,o=r(192),i=r(184);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},(e,t,r)=>{"use strict";var n=r(193),o=r(174),i=r(195),a=r(196);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},(e,t,r)=>{"use strict";var n=r(194);e.exports=Function.prototype.bind||n},e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},e=>{"use strict";e.exports=Function.prototype.call},(e,t,r)=>{"use strict";var n=r(193),o=r(197),i=r(195),a=r(198);e.exports=a||n.call(i,o)},e=>{"use strict";e.exports=Function.prototype.apply},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(193);e.exports=i.call(n,o)},(e,t,r)=>{"use strict";var n=r(166),o=r(201)(/^\s*(?:function)?\*/),i=r(164)(),a=r(188),s=n("Object.prototype.toString"),l=n("Function.prototype.toString"),c=r(203);e.exports=function(e){if("function"!=typeof e)return!1;if(o(l(e)))return!0;if(!i)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=c();return t&&a(e)===t.prototype}},(e,t,r)=>{"use strict";var n=r(166),o=r(202),i=n("RegExp.prototype.exec"),a=r(174);e.exports=function(e){if(!o(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},(e,t,r)=>{"use strict";var n,o=r(166),i=r(164)(),a=r(199),s=r(184);if(i){var l=o("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,d)}catch(e){return e===c}}}else{var f=o("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===f(e)}}e.exports=n},e=>{"use strict";const t=function*(){}.constructor;e.exports=()=>t},(e,t,r)=>{"use strict";var n=r(205),o=r(207),i=r(209),a=r(166),s=r(184),l=r(188),c=a("Object.prototype.toString"),u=r(164)(),d="undefined"==typeof globalThis?r.g:globalThis,f=o(),p=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(f,u&&s&&l?function(e){var t=new d[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=s(r,Symbol.toStringTag);if(!n&&r){var o=l(r);n=s(o,Symbol.toStringTag)}m["$"+e]=i(n.get)}}:function(e){var t=new d[e],r=t.slice||t.set;r&&(m["$"+e]=i(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,function(r,n){if(!t)try{r(e),t=p(n,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return n(m,function(r,n){if(!t)try{"$"+r(e)===n&&(t=p(n,1))}catch(e){}}),t}(e):null}},(e,t,r)=>{"use strict";var n=r(206),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=e,"[object Array]"===o.call(s)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o(function(){throw 42},null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(d=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},(e,t,r)=>{"use strict";var n=r(208),o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},(e,t,r)=>{"use strict";var n=r(210),o=r(186),i=r(192),a=r(213);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},(e,t,r)=>{"use strict";var n=r(167),o=r(211),i=r(212)(),a=r(184),s=r(174),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},(e,t,r)=>{"use strict";var n=r(186),o=r(173),i=r(174),a=r(184);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},(e,t,r)=>{"use strict";var n=r(186),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},(e,t,r)=>{"use strict";var n=r(193),o=r(197),i=r(196);e.exports=function(){return i(n,o,arguments)}},(e,t,r)=>{"use strict";var n=r(204);e.exports=function(e){return!!n(e)}},e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},(e,t,r)=>{var n=r(125),o=r(218),i=n.util.inherit,a=n.util.domain,s=r(219),l={success:1,error:1,complete:1};var c=new o;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,function(e){if(e)if(n=r,Object.prototype.hasOwnProperty.call(l,n._asm.currentState)){if(!(a&&r.domain instanceof a.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error);var n})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},c.setupStates(),n.Request=i({constructor:function(e,t,r){var i=e.endpoint,s=e.config.region,l=e.config.customUserAgent;e.signingRegion?s=e.signingRegion:e.isGlobalEndpoint&&(s="us-east-1"),this.domain=a&&a.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new n.HttpRequest(i,s),this.httpRequest.appendToUserAgent(l),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new o(c.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.error=n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=n.util.fn.makeAsync(e,3),this.on("complete",function t(r){e.call(r,r.error,r.data,function(o){!1!==o&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,n.util.fn.noop))})}).send()},eachItem:function(e){var t=this;this.eachPage(function(r,o){if(r)return e(r,null);if(null===o)return e(null,null);var i=t.service.paginationConfig(t.operation).resultKey;Array.isArray(i)&&(i=i[0]);var a=s.search(o,i),l=!0;return n.util.arrayEach(a,function(t){if(!1===(l=e(null,t)))return n.util.abort}),l})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=n.util.stream,t=this,r=null;return 2===n.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick(function(){t.send()})):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",function(e){r.sent||"data"!==e||(r.sent=!0,process.nextTick(function(){t.send()}))})),this.on("error",function(e){r.emit("error",e)}),this.on("httpHeaders",function(o,i,a){if(o<300){t.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),t.on("httpError",function(e){a.error=e,a.error.retryable=!1});var s,l=!1;if("HEAD"!==t.httpRequest.method&&(s=parseInt(i["content-length"],10)),void 0!==s&&!isNaN(s)&&s>=0){l=!0;var c=0}var u=function(){l&&c!==s?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},d=a.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(l){var f=new e.PassThrough;f._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},f.on("end",u),r.on("error",function(e){l=!1,d.unpipe(f),f.emit("end"),f.end()}),d.pipe(f).pipe(r,{end:!1})}else d.pipe(r);else l&&d.on("data",function(e){e&&e.length&&(c+=e.length)}),d.on("data",function(e){r.emit("data",e)}),d.on("end",u);d.on("error",function(e){l=!1,r.emit("error",e)})}}),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},e=>{function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var o=this,i=o.states[o.currentState];i.fn.call(r||o,n,function(n){if(n){if(!i.fail)return t?t.call(r,n):null;o.currentState=i.fail}else{if(!i.accept)return t?t.call(r):null;o.currentState=i.accept}if(o.currentState===e)return t?t.call(r,n):null;o.runTo(e,t,r,n)})},t.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=t},(e,t)=>{!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,o){if(e===o)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(o))return!1;if(!0===t(e)){if(e.length!==o.length)return!1;for(var i=0;i<e.length;i++)if(!1===n(e[i],o[i]))return!1;return!0}if(!0===r(e)){var a={};for(var s in e)if(hasOwnProperty.call(e,s)){if(!1===n(e[s],o[s]))return!1;a[s]=!0}for(var l in o)if(hasOwnProperty.call(o,l)&&!0!==a[l])return!1;return!0}return!1}function o(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}return!1}var i;i="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var a=0,s=2,l={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},c="EOF",u="UnquotedIdentifier",d="QuotedIdentifier",f="Rbracket",p="Rparen",h="Comma",m="Colon",g="Rbrace",y="Number",v="Current",b="Expref",_="Pipe",w="Or",S="And",E="EQ",k="GT",x="LT",T="GTE",O="LTE",C="NE",j="Flatten",P="Star",I="Filter",R="Dot",A="Not",M="Lbrace",D="Lbracket",N="Lparen",L="Literal",B={".":R,"*":P,",":h,":":m,"{":M,"}":g,"]":f,"(":N,")":p,"@":v},F={"<":!0,">":!0,"=":!0,"!":!0},z={" ":!0,"\t":!0,"\n":!0};function U(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function H(e){return e>="0"&&e<="9"||"-"===e}function q(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function V(){}V.prototype={tokenize:function(e){var t,r,n,o=[];for(this._current=0;this._current<e.length;)if(U(e[this._current]))t=this._current,r=this._consumeUnquotedIdentifier(e),o.push({type:u,value:r,start:t});else if(void 0!==B[e[this._current]])o.push({type:B[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(H(e[this._current]))n=this._consumeNumber(e),o.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),o.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),o.push({type:d,value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:L,value:r,start:t});else if("`"===e[this._current]){t=this._current;var i=this._consumeLiteral(e);o.push({type:L,value:i,start:t})}else if(void 0!==F[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==z[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:S,value:"&&",start:t})):o.push({type:b,value:"&",start:t});else{if("|"!==e[this._current]){var a=new Error("Unknown character:"+e[this._current]);throw a.name="LexerError",a}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:w,value:"||",start:t})):o.push({type:_,value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t=this._current;for(this._current++;this._current<e.length&&q(e[this._current]);)this._current++;return e.slice(t,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;H(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:y,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:I,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:j,value:"[]",start:t}):{type:D,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:C,value:"!=",start:t}):{type:A,value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:O,value:"<=",start:t}):{type:x,value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:T,value:">=",start:t}):{type:k,value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:E,value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var o=this._current;"\\"!==e[o]||"\\"!==e[o+1]&&"`"!==e[o+1]?o++:o+=2,this._current=o}var a=i(e.slice(r,this._current));return a=a.replace("\\`","`"),t=this._looksLikeJSON(a)?JSON.parse(a):JSON.parse('"'+a+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var W={};function G(){}function $(e){this.runtime=e}function K(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[s,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}W[c]=0,W[u]=0,W[d]=0,W[f]=0,W[p]=0,W[h]=0,W[g]=0,W[y]=0,W[v]=0,W[b]=0,W[_]=1,W[w]=2,W[S]=3,W[E]=5,W[k]=5,W[x]=5,W[T]=5,W[O]=5,W[C]=5,W[j]=9,W[P]=20,W[I]=21,W[R]=40,W[A]=45,W[M]=50,W[D]=55,W[N]=60,G.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==c){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new V).tokenize(e);t.push({type:c,value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e<W[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case L:return{type:"Literal",value:e.value};case u:return{type:"Field",name:e.value};case d:var n={type:"Field",name:e.value};if(this._lookahead(0)===N)throw new Error("Quoted identifier not allowed for function names.");return n;case A:return{type:"NotExpression",children:[t=this.expression(W.Not)]};case P:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===f?{type:"Identity"}:this._parseProjectionRHS(W.Star)]};case I:return this.led(e.type,{type:"Identity"});case M:return this._parseMultiselectHash();case j:return{type:"Projection",children:[{type:j,children:[{type:"Identity"}]},t=this._parseProjectionRHS(W.Flatten)]};case D:return this._lookahead(0)===y||this._lookahead(0)===m?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===P&&this._lookahead(1)===f?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(W.Star)]}):this._parseMultiselectList();case v:return{type:v};case b:return{type:"ExpressionReference",children:[r=this.expression(W.Expref)]};case N:for(var o=[];this._lookahead(0)!==p;)this._lookahead(0)===v?(r={type:v},this._advance()):r=this.expression(0),o.push(r);return this._match(p),o[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case R:var n=W.Dot;return this._lookahead(0)!==P?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case _:return r=this.expression(W.Pipe),{type:_,children:[t,r]};case w:return{type:"OrExpression",children:[t,r=this.expression(W.Or)]};case S:return{type:"AndExpression",children:[t,r=this.expression(W.And)]};case N:for(var o,i=t.name,a=[];this._lookahead(0)!==p;)this._lookahead(0)===v?(o={type:v},this._advance()):o=this.expression(0),this._lookahead(0)===h&&this._match(h),a.push(o);return this._match(p),{type:"Function",name:i,children:a};case I:var s=this.expression(0);return this._match(f),{type:"FilterProjection",children:[t,r=this._lookahead(0)===j?{type:"Identity"}:this._parseProjectionRHS(W.Filter),s]};case j:return{type:"Projection",children:[{type:j,children:[t]},this._parseProjectionRHS(W.Flatten)]};case E:case C:case k:case T:case x:case O:return this._parseComparator(t,e);case D:var l=this._lookaheadToken(0);return l.type===y||l.type===m?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(P),this._match(f),{type:"Projection",children:[t,r=this._parseProjectionRHS(W.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if(this._lookahead(0)===m||this._lookahead(1)===m)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(f),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(W.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);r!==f&&t<3;){if(r===m)t++,this._advance();else{if(r!==y){var n=this._lookahead(0),o=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw o.name="Parsererror",o}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match(f),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(W[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[u,d,P].indexOf(t)>=0?this.expression(e):t===D?(this._match(D),this._parseMultiselectList()):t===M?(this._match(M),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(W[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===D)t=this.expression(e);else if(this._lookahead(0)===I)t=this.expression(e);else{if(this._lookahead(0)!==R){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match(R),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==f;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===h&&(this._match(h),this._lookahead(0)===f))throw new Error("Unexpected token Rbracket")}return this._match(f),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],o=[u,d];;){if(e=this._lookaheadToken(0),o.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match(m),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),this._lookahead(0)===h)this._match(h);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:n}}},$.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,i){var a,s,l,c,u,d,f,p,h;switch(e.type){case"Field":return null!==i&&r(i)?void 0===(d=i[e.name])?null:d:null;case"Subexpression":for(l=this.visit(e.children[0],i),h=1;h<e.children.length;h++)if(null===(l=this.visit(e.children[1],l)))return null;return l;case"IndexExpression":return f=this.visit(e.children[0],i),this.visit(e.children[1],f);case"Index":if(!t(i))return null;var m=e.value;return m<0&&(m=i.length+m),void 0===(l=i[m])&&(l=null),l;case"Slice":if(!t(i))return null;var g=e.children.slice(0),y=this.computeSliceParams(i.length,g),w=y[0],S=y[1],P=y[2];if(l=[],P>0)for(h=w;h<S;h+=P)l.push(i[h]);else for(h=w;h>S;h+=P)l.push(i[h]);return l;case"Projection":var I=this.visit(e.children[0],i);if(!t(I))return null;for(p=[],h=0;h<I.length;h++)null!==(s=this.visit(e.children[1],I[h]))&&p.push(s);return p;case"ValueProjection":if(!r(I=this.visit(e.children[0],i)))return null;p=[];var R=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(I);for(h=0;h<R.length;h++)null!==(s=this.visit(e.children[1],R[h]))&&p.push(s);return p;case"FilterProjection":if(!t(I=this.visit(e.children[0],i)))return null;var A=[],M=[];for(h=0;h<I.length;h++)o(a=this.visit(e.children[2],I[h]))||A.push(I[h]);for(var D=0;D<A.length;D++)null!==(s=this.visit(e.children[1],A[D]))&&M.push(s);return M;case"Comparator":switch(c=this.visit(e.children[0],i),u=this.visit(e.children[1],i),e.name){case E:l=n(c,u);break;case C:l=!n(c,u);break;case k:l=c>u;break;case T:l=c>=u;break;case x:l=c<u;break;case O:l=c<=u;break;default:throw new Error("Unknown comparator: "+e.name)}return l;case j:var N=this.visit(e.children[0],i);if(!t(N))return null;var L=[];for(h=0;h<N.length;h++)t(s=N[h])?L.push.apply(L,s):L.push(s);return L;case"Identity":return i;case"MultiSelectList":if(null===i)return null;for(p=[],h=0;h<e.children.length;h++)p.push(this.visit(e.children[h],i));return p;case"MultiSelectHash":if(null===i)return null;var B;for(p={},h=0;h<e.children.length;h++)p[(B=e.children[h]).name]=this.visit(B.value,i);return p;case"OrExpression":return o(a=this.visit(e.children[0],i))&&(a=this.visit(e.children[1],i)),a;case"AndExpression":return!0===o(c=this.visit(e.children[0],i))?c:this.visit(e.children[1],i);case"NotExpression":return o(c=this.visit(e.children[0],i));case"Literal":return e.value;case _:return f=this.visit(e.children[0],i),this.visit(e.children[1],f);case v:return i;case"Function":var F=[];for(h=0;h<e.children.length;h++)F.push(this.visit(e.children[h],i));return this.runtime.callFunction(e.name,F);case"ExpressionReference":var z=e.children[0];return z.jmespathType=b,z;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],o=t[2],i=[null,null,null];if(null===o)o=1;else if(0===o){var a=new Error("Invalid slice, step cannot be 0");throw a.name="RuntimeError",a}var s=o<0;return r=null===r?s?e-1:0:this.capSliceRange(e,r,o),n=null===n?s?-1:e:this.capSliceRange(e,n,o),i[0]=r,i[1]=n,i[2]=o,i},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},K.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,o,i,a;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var s=0;s<r.length;s++){a=!1,o=r[s].types,i=this._getTypeName(t[s]);for(var c=0;c<o.length;c++)if(this._typeMatches(i,o[c],t[s])){a=!0;break}if(!a){var u=o.map(function(e){return l[e]}).join(",");throw new Error("TypeError: "+e+"() expected argument "+(s+1)+" to be type "+u+" but received type "+l[i]+" instead.")}}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=a:9===t&&(n=s);for(var o=0;o<r.length;o++)if(!this._typeMatches(this._getTypeName(r[o]),n,r[o]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return s;case"[object Number]":return a;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===b?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===s){for(var t=e[0],r="",n=t.length-1;n>=0;n--)r+=t[n];return r}var o=e[0].slice(0);return o.reverse(),o},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],o=e[1],i=0;i<o.length;i++)t.push(r.visit(n,o[i]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var o in n)t[o]=n[o]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case a:return"number";case s:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],o=0;o<r.length;o++)n.push(t[r[o]]);return n},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===s?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===a?e[0]:r!==s||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,n=e[1],o=this._getTypeName(r.visit(n,t[0]));if([a,s].indexOf(o)<0)throw new Error("TypeError");for(var i=this,l=[],c=0;c<t.length;c++)l.push([c,t[c]]);l.sort(function(e,t){var a=r.visit(n,e[1]),s=r.visit(n,t[1]);if(i._getTypeName(a)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(a));if(i._getTypeName(s)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(s));return a>s?1:a<s?-1:e[0]-t[0]});for(var u=0;u<l.length;u++)t[u]=l[u][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[1],o=e[0],i=this.createKeyFunction(n,[a,s]),l=-1/0,c=0;c<o.length;c++)(r=i(o[c]))>l&&(l=r,t=o[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],o=e[0],i=this.createKeyFunction(n,[a,s]),l=1/0,c=0;c<o.length;c++)(r=i(o[c]))<l&&(l=r,t=o[c]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(o){var i=n.visit(e,o);if(t.indexOf(r._getTypeName(i))<0){var a="TypeError: expected one of "+t+", received "+r._getTypeName(i);throw new Error(a)}return i}}},e.tokenize=function(e){return(new V).tokenize(e)},e.compile=function(e){return(new G).parse(e)},e.search=function(e,t){var r=new G,n=new K,o=new $(n);n._interpreter=o;var i=r.parse(t);return o.search(i,e)},e.strictDeepEqual=n}(t)},(e,t,r)=>{var n=r(125),o=n.util.inherit,i=r(219);n.Response=o({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,o=this.request.operation;try{t=r.paginationConfig(o,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var i=n.util.copy(this.request.params);if(this.nextPageTokens){var a=t.inputToken;"string"==typeof a&&(a=[a]);for(var s=0;s<a.length;s++)i[a[s]]=this.nextPageTokens[s];return r.makeRequest(this.request.operation,i,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!i.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),n.util.arrayEach.call(this,t,function(e){var t=i.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},(e,t,r)=>{var n=r(125),o=n.util.inherit,i=r(219);function a(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,o="retry";r.forEach(function(r){if(!n){var i=t.matchers[r.matcher];i&&i(e,r.expected,r.argument)&&(n=!0,o=r.state)}}),!n&&e.error&&(o="failure"),"success"===o?t.setSuccess(e):t.setError(e,"retry"===o)}n.ResourceWaiter=o({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}return i.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);var o=n.length;if(!o)return!1;for(var a=0;a<o;a++)if(!i.strictDeepEqual(n[a],t))return!1;return!0},pathAny:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);for(var o=n.length,a=0;a<o;a++)if(i.strictDeepEqual(n[a],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new n.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))}),e("CHECK_OUTPUT","extractData",a),e("CHECK_ERROR","extractError",a)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&("number"==typeof(e=n.util.copy(e)).$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=n.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=n.util.copy(this.service.api.waiters[e])}})},(e,t,r)=>{var n=r(125),o=n.util.inherit;n.Signers.RequestSigner=o({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https;case"bearer":return n.Signers.Bearer}throw new Error("Unknown signing version "+e)},r(223),r(224),r(225),r(226),r(228),r(229),r(230)},(e,t,r)=>{var n=r(125),o=n.util.inherit;n.Signers.V2=o(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=n.Signers.V2},(e,t,r)=>{var n=r(125),o=n.util.inherit;n.Signers.V3=o(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),e.exports=n.Signers.V3},(e,t,r)=>{var n=r(125),o=n.util.inherit;r(224),n.Signers.V3Https=o(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=n.Signers.V3Https},(e,t,r)=>{var n=r(125),o=r(227),i=n.util.inherit,a="presigned-expires";n.Signers.V4=i(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),o={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(o["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(o["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(o["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(o["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,function(e,t){if(e!==a&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?o[r]=t:0===r.indexOf("x-amz-")&&(o[e]=t)}});var i=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=i+n.util.queryParamsToString(o)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=o.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var o=e[1];if(null==o||"function"!=typeof o.toString)throw n.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(o.toString()))}}),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return n.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function(e){return o.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return n.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",a,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[a]}}),e.exports=n.Signers.V4},(e,t,r)=>{var n=r(125),o={},i=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,l){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((l=!1!==l)&&c in o)return o[c];var u=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),d=n.util.crypto.hmac(u,r,"buffer"),f=n.util.crypto.hmac(d,s,"buffer"),p=n.util.crypto.hmac(f,a,"buffer");return l&&(o[c]=p,i.push(c),i.length>50&&delete o[i.shift()]),p},emptyCache:function(){o={},i=[]}}},(e,t,r)=>{var n=r(125),o=n.util.inherit;n.Signers.S3=o(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),o="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=o},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],o=t[1],i="";if(e.virtualHostedBucket&&(i+="/"+e.virtualHostedBucket),i+=r,o){var a=[];n.util.arrayEach.call(this,o.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var n={name:t};void 0!==r&&(this.subResources[t]?n.value=r:n.value=decodeURIComponent(r)),a.push(n)}}),a.sort(function(e,t){return e.name<t.name?-1:1}),a.length&&(o=[],n.util.arrayEach(a,function(e){void 0===e.value?o.push(e.name):o.push(e.name+"="+e.value)}),i+="?"+o.join("&"))}return i},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),e.exports=n.Signers.S3},(e,t,r)=>{var n=r(125),o=n.util.inherit,i="presigned-expires";function a(e){var t=e.httpRequest.headers[i],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>604800){throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[i]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var o=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[i]=parseInt(n.util.date.unixTimestamp(o)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),o={};r.search&&(o=n.util.queryStringParse(r.search.substr(1)));var a=e.httpRequest.headers.Authorization.split(" ");if("AWS"===a[0])a=a[1].split(":"),o.Signature=a.pop(),o.AWSAccessKeyId=a.join(":"),n.util.each(e.httpRequest.headers,function(e,t){e===i&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete o[e],e=e.toLowerCase()),o[e]=t}),delete e.httpRequest.headers[i],delete o.Authorization,delete o.Host;else if("AWS4-HMAC-SHA256"===a[0]){a.shift();var s=a.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=s,delete o.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(o)}n.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[i]=t||3600,e.on("build",a),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))})}}),e.exports=n.Signers.Presign},(e,t,r)=>{var n=r(125);n.Signers.Bearer=n.util.inherit(n.Signers.RequestSigner,{constructor:function(e){n.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.headers.Authorization="Bearer "+e.token}})},(e,t,r)=>{var n=r(125);n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var o=this.errors.join("\n* ");throw o="There were "+this.errors.length+" validation errors:\n* "+o,n.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;var n;this.validateType(t,r,["object"],"structure");for(var o=0;e.required&&o<e.required.length;o++){var i=t[n=e.required[o]];null==i&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r)}for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n],s=e.members[n];if(void 0!==s){var l=[r,n].join(".");this.validateMember(s,a,l)}else null!=a&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(e.member,t[n],r+"["+n+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.validateMember(e.key,o,r+"[key='"+o+"']"),this.validateMember(e.value,t[o],r+"['"+o+"']"),n++);this.validateRange(e,n,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,o){if(null==e)return!1;for(var i=!1,a=0;a<r.length;a++){if("string"==typeof r[a]){if(typeof e===r[a])return!0}else if(r[a]instanceof RegExp){if((e||"").toString().match(r[a]))return!0}else{if(e instanceof r[a])return!0;if(n.util.isType(e,r[a]))return!0;o||i||(r=r.slice()),r[a]=n.util.typeName(r[a])}i=!0}var s=o;s||(s=r.join(", ").replace(/,([^,]+)$/,", or$1"));var l=s.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+l+" "+s),!1},validateNumber:function(e,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!=e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(n.util.isNode()){var r=n.util.stream.Stream;if(n.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var i=0;i<o.length;i++){if(n.util.isType(e,o[i]))return;if(n.util.typeName(e.constructor)===o[i])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},e=>{var t=["The AWS SDK for JavaScript (v2) is in maintenance mode."," SDK releases are limited to address critical bug fixes and security issues only.\n","Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check the blog post at https://a.co/cUPnyil"].join("\n");e.exports={suppress:!1},setTimeout(function(){e.exports.suppress||"undefined"!=typeof process&&("object"==typeof process.env&&void 0!==process.env.AWS_EXECUTION_ENV&&0===process.env.AWS_EXECUTION_ENV.indexOf("AWS_Lambda_")||"object"==typeof process.env&&void 0!==process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE||"function"==typeof process.emitWarning&&process.emitWarning(t,{type:"NOTE"}))},0)},,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}});var n=s(r(235)),o=s(r(238)),i=s(r(241)),a=s(r(242));function s(e){return e&&e.__esModule?e:{default:e}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,i=s(r(236)),a=s(r(237));function s(e){return e&&e.__esModule?e:{default:e}}var l=0,c=0;var u=function(e,t,r){var s=t&&r||0,u=t||[],d=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=e.random||(e.rng||i.default)();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=h-l+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||h>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=m,o=f;var y=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[s++]=y>>>24&255,u[s++]=y>>>16&255,u[s++]=y>>>8&255,u[s++]=255&y;var v=h/4294967296*1e4&268435455;u[s++]=v>>>8&255,u[s++]=255&v,u[s++]=v>>>24&15|16,u[s++]=v>>>16&255,u[s++]=f>>>8|128,u[s++]=255&f;for(var b=0;b<6;++b)u[s+b]=d[b];return t||(0,a.default)(u)};t.default=u},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),n=new Uint8Array(16)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);var o=function(e,t){var n=t||0,o=r;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};t.default=o},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(239)),o=i(r(240));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);t.default=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=function(e,n,i,a){var s=i&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e)),"string"==typeof n&&(n=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,function(e){t.push(parseInt(e,16))}),t}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var l=r(n.concat(e));if(l[6]=15&l[6]|t,l[8]=63&l[8]|128,i)for(var c=0;c<16;++c)i[s+c]=l[c];return i||(0,o.default)(l)};try{n.name=e}catch(e){}return n.DNS=i,n.URL=a,n},t.URL=t.DNS=void 0;var n,o=(n=r(237))&&n.__esModule?n:{default:n};const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},(e,t)=>{"use strict";function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(l=i)|s>>>32-l,n);var s,l}function o(e,t,r,o,i,a,s){return n(t&r|~t&o,e,t,i,a,s)}function i(e,t,r,o,i,a,s){return n(t&o|r&~o,e,t,i,a,s)}function a(e,t,r,o,i,a,s){return n(t^r^o,e,t,i,a,s)}function s(e,t,r,o,i,a,s){return n(r^(t|~o),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,r,n,o=[],i=32*e.length,a="0123456789abcdef";for(t=0;t<i;t+=8)r=e[t>>5]>>>t%32&255,n=parseInt(a.charAt(r>>>4&15)+a.charAt(15&r),16),o.push(n);return o}(function(e,t){var n,l,c,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,h=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)l=f,c=p,u=h,d=m,f=o(f,p,h,m,e[n],7,-680876936),m=o(m,f,p,h,e[n+1],12,-389564586),h=o(h,m,f,p,e[n+2],17,606105819),p=o(p,h,m,f,e[n+3],22,-1044525330),f=o(f,p,h,m,e[n+4],7,-176418897),m=o(m,f,p,h,e[n+5],12,1200080426),h=o(h,m,f,p,e[n+6],17,-1473231341),p=o(p,h,m,f,e[n+7],22,-45705983),f=o(f,p,h,m,e[n+8],7,1770035416),m=o(m,f,p,h,e[n+9],12,-1958414417),h=o(h,m,f,p,e[n+10],17,-42063),p=o(p,h,m,f,e[n+11],22,-1990404162),f=o(f,p,h,m,e[n+12],7,1804603682),m=o(m,f,p,h,e[n+13],12,-40341101),h=o(h,m,f,p,e[n+14],17,-1502002290),f=i(f,p=o(p,h,m,f,e[n+15],22,1236535329),h,m,e[n+1],5,-165796510),m=i(m,f,p,h,e[n+6],9,-1069501632),h=i(h,m,f,p,e[n+11],14,643717713),p=i(p,h,m,f,e[n],20,-373897302),f=i(f,p,h,m,e[n+5],5,-701558691),m=i(m,f,p,h,e[n+10],9,38016083),h=i(h,m,f,p,e[n+15],14,-660478335),p=i(p,h,m,f,e[n+4],20,-405537848),f=i(f,p,h,m,e[n+9],5,568446438),m=i(m,f,p,h,e[n+14],9,-1019803690),h=i(h,m,f,p,e[n+3],14,-187363961),p=i(p,h,m,f,e[n+8],20,1163531501),f=i(f,p,h,m,e[n+13],5,-1444681467),m=i(m,f,p,h,e[n+2],9,-51403784),h=i(h,m,f,p,e[n+7],14,1735328473),f=a(f,p=i(p,h,m,f,e[n+12],20,-1926607734),h,m,e[n+5],4,-378558),m=a(m,f,p,h,e[n+8],11,-2022574463),h=a(h,m,f,p,e[n+11],16,1839030562),p=a(p,h,m,f,e[n+14],23,-35309556),f=a(f,p,h,m,e[n+1],4,-1530992060),m=a(m,f,p,h,e[n+4],11,1272893353),h=a(h,m,f,p,e[n+7],16,-155497632),p=a(p,h,m,f,e[n+10],23,-1094730640),f=a(f,p,h,m,e[n+13],4,681279174),m=a(m,f,p,h,e[n],11,-358537222),h=a(h,m,f,p,e[n+3],16,-722521979),p=a(p,h,m,f,e[n+6],23,76029189),f=a(f,p,h,m,e[n+9],4,-640364487),m=a(m,f,p,h,e[n+12],11,-421815835),h=a(h,m,f,p,e[n+15],16,530742520),f=s(f,p=a(p,h,m,f,e[n+2],23,-995338651),h,m,e[n],6,-198630844),m=s(m,f,p,h,e[n+7],10,1126891415),h=s(h,m,f,p,e[n+14],15,-1416354905),p=s(p,h,m,f,e[n+5],21,-57434055),f=s(f,p,h,m,e[n+12],6,1700485571),m=s(m,f,p,h,e[n+3],10,-1894986606),h=s(h,m,f,p,e[n+10],15,-1051523),p=s(p,h,m,f,e[n+1],21,-2054922799),f=s(f,p,h,m,e[n+8],6,1873313359),m=s(m,f,p,h,e[n+15],10,-30611744),h=s(h,m,f,p,e[n+6],15,-1560198380),p=s(p,h,m,f,e[n+13],21,1309151649),f=s(f,p,h,m,e[n+4],6,-145523070),m=s(m,f,p,h,e[n+11],10,-1120210379),h=s(h,m,f,p,e[n+2],15,718787259),p=s(p,h,m,f,e[n+9],21,-343485551),f=r(f,l),p=r(p,c),h=r(h,u),m=r(m,d);return[f,p,h,m]}(function(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e[t/8])<<t%32;return r}(e),8*e.length))};t.default=l},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(236)),o=i(r(237));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||(0,o.default)(a)};t.default=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(239)),o=i(r(243));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);t.default=a},(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){var t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=new Array(i.length);for(var a=0;a<i.length;a++)e[a]=i.charCodeAt(a)}e.push(128);var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l);for(a=0;a<l;a++){c[a]=new Array(16);for(var u=0;u<16;u++)c[a][u]=e[64*a+4*u]<<24|e[64*a+4*u+1]<<16|e[64*a+4*u+2]<<8|e[64*a+4*u+3]}for(c[l-1][14]=8*(e.length-1)/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=8*(e.length-1)&4294967295,a=0;a<l;a++){for(var d=new Array(80),f=0;f<16;f++)d[f]=c[a][f];for(f=16;f<80;f++)d[f]=n(d[f-3]^d[f-8]^d[f-14]^d[f-16],1);var p=o[0],h=o[1],m=o[2],g=o[3],y=o[4];for(f=0;f<80;f++){var v=Math.floor(f/20),b=n(p,5)+r(v,h,m,g)+y+t[v]+d[f]>>>0;y=g,g=m,m=n(h,30)>>>0,h=p,p=b}o[0]=o[0]+p>>>0,o[1]=o[1]+h>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+y>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o},(e,t,r)=>{var n=r(245),o=r(251),i=r(252),a=r(253);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new o;if("sha256"===e)return new a;if("sha1"===e)return new i;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new n(o,t);if("sha256"===e)return new n(a,t);if("sha1"===e)return new n(i,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},(e,t,r)=>{var n=r(246);function o(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var o=new e;o.update(r),r=o.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}(e,t),o=new Uint8Array(e.BLOCK_SIZE);o.set(r);for(var i=0;i<e.BLOCK_SIZE;i++)r[i]^=54,o[i]^=92;this.hash.update(r),this.outer.update(o);for(i=0;i<r.byteLength;i++)r[i]=0}e.exports=o,o.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(e){this.error=e}return this},o.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},(e,t,r)=>{var n=r(247).Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},(e,t,r)=>{"use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */var n=r(248),o=r(249),i=r(250);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,r);e=s(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|p(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|p(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return q(U(t,e.length-r),e,r,n)}function w(e,t,r,n){return q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return w(e,t,r,n)}function E(e,t,r,n){return q(H(t),e,r,n)}function k(e,t,r,n){return q(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return c(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return u(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function j(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=z(e[i]);return o}function I(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,r,n,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function N(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,i){return i||N(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||N(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;r=new l(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||A(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);A(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=l.isBuffer(e)?e:U(new l(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),u=0,d=l>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,l=n-o;s<l;s+=a)i.push(c(e,s,s+a>l?l:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function c(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(l(n));return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(e,t)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+p]=255&a,p+=h,a/=256,c-=8);e[r+p-h]|=128*m}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{var n=r(246),o=r(247).Buffer,i=64;function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(i)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(e,t,r,n,o,i){return((t=(t+e&4294967295)+(n+i&4294967295)&4294967295)<<o|t>>>32-o)+r&4294967295}function l(e,t,r,n,o,i,a){return s(t&r|~t&n,e,t,o,i,a)}function c(e,t,r,n,o,i,a){return s(t&n|r&~n,e,t,o,i,a)}function u(e,t,r,n,o,i,a){return s(t^r^n,e,t,o,i,a)}function d(e,t,r,n,o,i,a){return s(r^(t|~n),e,t,o,i,a)}e.exports=a,a.BLOCK_SIZE=i,a.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,o=t.byteLength;for(this.bytesHashed+=o;o>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),o--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,a=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%i>=56){for(var s=this.bufferLength;s<i;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,a>>>0,!0),r.setUint32(60,Math.floor(a/4294967296),!0),this.hashBuffer(),this.finished=!0}var l=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)l.setUint32(4*s,this.state[s],!0);var c=new o(l.buffer,l.byteOffset,l.byteLength);return e?c.toString(e):c},a.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3];r=l(r,n,o,i,e.getUint32(0,!0),7,3614090360),i=l(i,r,n,o,e.getUint32(4,!0),12,3905402710),o=l(o,i,r,n,e.getUint32(8,!0),17,606105819),n=l(n,o,i,r,e.getUint32(12,!0),22,3250441966),r=l(r,n,o,i,e.getUint32(16,!0),7,4118548399),i=l(i,r,n,o,e.getUint32(20,!0),12,1200080426),o=l(o,i,r,n,e.getUint32(24,!0),17,2821735955),n=l(n,o,i,r,e.getUint32(28,!0),22,4249261313),r=l(r,n,o,i,e.getUint32(32,!0),7,1770035416),i=l(i,r,n,o,e.getUint32(36,!0),12,2336552879),o=l(o,i,r,n,e.getUint32(40,!0),17,4294925233),n=l(n,o,i,r,e.getUint32(44,!0),22,2304563134),r=l(r,n,o,i,e.getUint32(48,!0),7,1804603682),i=l(i,r,n,o,e.getUint32(52,!0),12,4254626195),o=l(o,i,r,n,e.getUint32(56,!0),17,2792965006),r=c(r,n=l(n,o,i,r,e.getUint32(60,!0),22,1236535329),o,i,e.getUint32(4,!0),5,4129170786),i=c(i,r,n,o,e.getUint32(24,!0),9,3225465664),o=c(o,i,r,n,e.getUint32(44,!0),14,643717713),n=c(n,o,i,r,e.getUint32(0,!0),20,3921069994),r=c(r,n,o,i,e.getUint32(20,!0),5,3593408605),i=c(i,r,n,o,e.getUint32(40,!0),9,38016083),o=c(o,i,r,n,e.getUint32(60,!0),14,3634488961),n=c(n,o,i,r,e.getUint32(16,!0),20,3889429448),r=c(r,n,o,i,e.getUint32(36,!0),5,568446438),i=c(i,r,n,o,e.getUint32(56,!0),9,3275163606),o=c(o,i,r,n,e.getUint32(12,!0),14,4107603335),n=c(n,o,i,r,e.getUint32(32,!0),20,1163531501),r=c(r,n,o,i,e.getUint32(52,!0),5,2850285829),i=c(i,r,n,o,e.getUint32(8,!0),9,4243563512),o=c(o,i,r,n,e.getUint32(28,!0),14,1735328473),r=u(r,n=c(n,o,i,r,e.getUint32(48,!0),20,2368359562),o,i,e.getUint32(20,!0),4,4294588738),i=u(i,r,n,o,e.getUint32(32,!0),11,2272392833),o=u(o,i,r,n,e.getUint32(44,!0),16,1839030562),n=u(n,o,i,r,e.getUint32(56,!0),23,4259657740),r=u(r,n,o,i,e.getUint32(4,!0),4,2763975236),i=u(i,r,n,o,e.getUint32(16,!0),11,1272893353),o=u(o,i,r,n,e.getUint32(28,!0),16,4139469664),n=u(n,o,i,r,e.getUint32(40,!0),23,3200236656),r=u(r,n,o,i,e.getUint32(52,!0),4,681279174),i=u(i,r,n,o,e.getUint32(0,!0),11,3936430074),o=u(o,i,r,n,e.getUint32(12,!0),16,3572445317),n=u(n,o,i,r,e.getUint32(24,!0),23,76029189),r=u(r,n,o,i,e.getUint32(36,!0),4,3654602809),i=u(i,r,n,o,e.getUint32(48,!0),11,3873151461),o=u(o,i,r,n,e.getUint32(60,!0),16,530742520),r=d(r,n=u(n,o,i,r,e.getUint32(8,!0),23,3299628645),o,i,e.getUint32(0,!0),6,4096336452),i=d(i,r,n,o,e.getUint32(28,!0),10,1126891415),o=d(o,i,r,n,e.getUint32(56,!0),15,2878612391),n=d(n,o,i,r,e.getUint32(20,!0),21,4237533241),r=d(r,n,o,i,e.getUint32(48,!0),6,1700485571),i=d(i,r,n,o,e.getUint32(12,!0),10,2399980690),o=d(o,i,r,n,e.getUint32(40,!0),15,4293915773),n=d(n,o,i,r,e.getUint32(4,!0),21,2240044497),r=d(r,n,o,i,e.getUint32(32,!0),6,1873313359),i=d(i,r,n,o,e.getUint32(60,!0),10,4264355552),o=d(o,i,r,n,e.getUint32(24,!0),15,2734768916),n=d(n,o,i,r,e.getUint32(52,!0),21,1309151649),r=d(r,n,o,i,e.getUint32(16,!0),6,4149444226),i=d(i,r,n,o,e.getUint32(44,!0),10,3174756917),o=d(o,i,r,n,e.getUint32(8,!0),15,718787259),n=d(n,o,i,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=o+t[2]&4294967295,t[3]=i+t[3]&4294967295}},(e,t,r)=>{var n=r(247).Buffer,o=r(246);new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}e.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=(e=o.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},i.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},i.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),o=new DataView(r.buffer);return o.setUint32(0,this.h0,!1),o.setUint32(4,this.h1,!1),o.setUint32(8,this.h2,!1),o.setUint32(12,this.h3,!1),o.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,o=this.h0,i=this.h1,a=this.h2,s=this.h3,l=this.h4;for(e=0;e<80;e++){e<20?(r=s^i&(a^s),n=1518500249):e<40?(r=i^a^s,n=1859775393):e<60?(r=i&a|s&(i|a),n=2400959708):(r=i^a^s,n=3395469782);var c=(o<<5|o>>>27)+r+l+n+(0|this.block[e]);l=s,s=a,a=i<<30|i>>>2,i=o,o=c}for(this.h0=this.h0+o|0,this.h1=this.h1+i|0,this.h2=this.h2+a|0,this.h3=this.h3+s|0,this.h4=this.h4+l|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},(e,t,r)=>{var n=r(247).Buffer,o=r(246),i=64,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function l(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=l,l.BLOCK_SIZE=i,l.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=0,r=(e=o.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},l.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%i>=56){for(var a=this.bufferLength;a<i;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(a=this.bufferLength;a<56;a++)r.setUint8(a,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var s=new n(32);for(a=0;a<8;a++)s[4*a]=this.state[a]>>>24&255,s[4*a+1]=this.state[a]>>>16&255,s[4*a+2]=this.state[a]>>>8&255,s[4*a+3]=this.state[a]>>>0&255;return e?s.toString(e):s},l.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],s=t[3],l=t[4],c=t[5],u=t[6],d=t[7],f=0;f<i;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var p=this.temp[f-2],h=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,m=((p=this.temp[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[f]=(h+this.temp[f-7]|0)+(m+this.temp[f-16]|0)}var g=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&c^~l&u)|0)+(d+(a[f]+this.temp[f]|0)|0)|0,y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;d=u,u=c,c=l,l=s+g|0,s=o,o=n,n=r,r=g+y|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=s,t[4]+=l,t[5]+=c,t[6]+=u,t[7]+=d}},(e,t,r)=>{var n=r(255);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(256);function y(e,t,r){if(e&&b(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}function v(e){return"string"==typeof e}function b(e){return"object"==typeof e&&null!==e}function _(e){return null===e}o.prototype.parse=function(e,t,r){if(!v(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e;o=o.trim();var a=i.exec(o);if(a){var s=(a=a[0]).toLowerCase();this.protocol=s,o=o.substr(a.length)}if(r||a||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var y="//"===o.substr(0,2);!y||a&&h[a]||(o=o.substr(2),this.slashes=!0)}if(!h[a]&&(y||a&&!m[a])){for(var b,_,w=-1,S=0;S<u.length;S++){-1!==(E=o.indexOf(u[S]))&&(-1===w||E<w)&&(w=E)}-1!==(_=-1===w?o.lastIndexOf("@"):o.lastIndexOf("@",w))&&(b=o.slice(0,_),o=o.slice(_+1),this.auth=decodeURIComponent(b)),w=-1;for(S=0;S<c.length;S++){var E;-1!==(E=o.indexOf(c[S]))&&(-1===w||E<w)&&(w=E)}-1===w&&(w=o.length),this.host=o.slice(0,w),o=o.slice(w),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var x=this.hostname.split(/\./),T=(S=0,x.length);S<T;S++){var O=x[S];if(O&&!O.match(d)){for(var C="",j=0,P=O.length;j<P;j++)O.charCodeAt(j)>127?C+="x":C+=O[j];if(!C.match(d)){var I=x.slice(0,S),R=x.slice(S+1),A=O.match(f);A&&(I.push(A[1]),R.unshift(A[2])),R.length&&(o="/"+R.join(".")+o),this.hostname=I.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!k){var M=this.hostname.split("."),D=[];for(S=0;S<M.length;++S){var N=M[S];D.push(N.match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(N):N)}this.hostname=D.join(".")}var L=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+L,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!p[s])for(S=0,T=l.length;S<T;S++){var F=l[S],z=encodeURIComponent(F);z===F&&(z=escape(F)),o=o.split(F).join(z)}var U=o.indexOf("#");-1!==U&&(this.hash=o.substr(U),o=o.slice(0,U));var H=o.indexOf("?");if(-1!==H?(this.search=o.substr(H),this.query=o.substr(H+1),t&&(this.query=g.parse(this.query)),o=o.slice(0,H)):t&&(this.search="",this.query={}),o&&(this.pathname=o),m[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"",N=this.search||"";this.path=L+N}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(i=g.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(v(e)){var t=new o;t.parse(e,!1,!0),e=t}var r=new o;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||h[e.protocol])r.pathname=e.pathname;else{for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var i=r.pathname||"",a=r.search||"";r.path=i+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),c=l||s||r.host&&e.pathname,u=c,d=r.pathname&&r.pathname.split("/")||[],f=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(f&&(r.hostname="",r.port=null,r.host&&(""===d[0]?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),c=c&&(""===n[0]||""===d[0])),l)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=n;else if(n.length)d||(d=[]),d.pop(),d=d.concat(n),r.search=e.search,r.query=e.query;else if(null!=e.search){if(f)r.hostname=r.host=d.shift(),(w=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=w.shift(),r.host=r.hostname=w.shift());return r.search=e.search,r.query=e.query,_(r.pathname)&&_(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var p=d.slice(-1)[0],g=(r.host||e.host)&&("."===p||".."===p)||""===p,y=0,b=d.length;b>=0;b--)"."==(p=d[b])?d.splice(b,1):".."===p?(d.splice(b,1),y++):y&&(d.splice(b,1),y--);if(!c&&!u)for(;y--;y)d.unshift("..");!c||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),g&&"/"!==d.join("/").substr(-1)&&d.push("");var w,S=""===d[0]||d[0]&&"/"===d[0].charAt(0);f&&(r.hostname=r.host=S?"":d.length?d.shift():"",(w=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=w.shift(),r.host=r.hostname=w.shift()));return(c=c||r.host&&d.length)&&!S&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),_(r.pathname)&&_(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var i,a=2147483647,s=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function h(e){throw RangeError(d[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(u,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function v(e){return m(e,function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)}).join("")}function b(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=s)e=f(e/35);return f(n+36*e/(e+38))}function S(e){var t,r,n,o,i,l,c,u,d,p,m=[],g=e.length,y=0,_=128,S=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&h("not-basic"),m.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=y,l=1,c=s;o>=g&&h("invalid-input"),((u=b(e.charCodeAt(o++)))>=s||u>f((a-y)/l))&&h("overflow"),y+=u*l,!(u<(d=c<=S?1:c>=S+26?26:c-S));c+=s)l>f(a/(p=s-d))&&h("overflow"),l*=p;S=w(y-i,t=m.length+1,0==i),f(y/t)>a-_&&h("overflow"),_+=f(y/t),y%=t,m.splice(y++,0,_)}return v(m)}function E(e){var t,r,n,o,i,l,c,u,d,m,g,v,b,S,E,k=[];for(v=(e=y(e)).length,t=128,r=0,i=72,l=0;l<v;++l)(g=e[l])<128&&k.push(p(g));for(n=o=k.length,o&&k.push("-");n<v;){for(c=a,l=0;l<v;++l)(g=e[l])>=t&&g<c&&(c=g);for(c-t>f((a-r)/(b=n+1))&&h("overflow"),r+=(c-t)*b,t=c,l=0;l<v;++l)if((g=e[l])<t&&++r>a&&h("overflow"),g==t){for(u=r,d=s;!(u<(m=d<=i?1:d>=i+26?26:d-i));d+=s)E=u-m,S=s-m,k.push(p(_(m+E%S,0))),u=f(E/S);k.push(p(_(u,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return k.join("")}i={version:"1.3.2",ucs2:{decode:y,encode:v},decode:S,encode:E,toASCII:function(e){return g(e,function(e){return c.test(e)?"xn--"+E(e):e})},toUnicode:function(e){return g(e,function(e){return l.test(e)?S(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},(e,t,r)=>{"use strict";t.decode=t.parse=r(257),t.encode=t.stringify=r(258)},e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,p,h=e[c].replace(a,"%20"),m=h.indexOf(n);m>=0?(u=h.substr(0,m),d=h.substr(m+1)):(u=h,d=""),f=decodeURIComponent(u),p=decodeURIComponent(d),t(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i}},e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map(function(e){return i+encodeURIComponent(t(e))}).join(r):i+encodeURIComponent(t(e[o]))}).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},(e,t,r)=>{var n=r(261).eventMessageChunker,o=r(262).parseEvent;e.exports={createEventStream:function(e,t,r){for(var i=n(e),a=[],s=0;s<i.length;s++)a.push(o(t,i[s],r));return a}}},e=>{e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r<e.length;){var n=e.readInt32BE(r),o=e.slice(r,n+r);r+=n,t.push(o)}return t}}},(e,t,r)=>{var n=r(263).parseMessage;e.exports={parseEvent:function(e,t,r){var o=n(t),i=o.headers[":message-type"];if(i){if("error"===i.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(o);if("event"!==i.value)return}var a=o.headers[":event-type"],s=r.members[a.value];if(s){var l={},c=s.eventPayloadMemberName;if(c){var u=s.members[c];"binary"===u.type?l[c]=o.body:l[c]=e.parse(o.body.toString(),u)}for(var d=s.eventHeaderMemberNames,f=0;f<d.length;f++){var p=d[f];o.headers[p]&&(l[p]=s.members[p].toType(o.headers[p].value))}var h={};return h[a.value]=l,h}}}},(e,t,r)=>{var n=r(264).Int64,o=r(265).splitMessage,i="boolean";function a(e){for(var t={},r=0;r<e.length;){var o=e.readUInt8(r++),a=e.slice(r,r+o).toString();switch(r+=o,e.readUInt8(r++)){case 0:t[a]={type:i,value:!0};break;case 1:t[a]={type:i,value:!1};break;case 2:t[a]={type:"byte",value:e.readInt8(r++)};break;case 3:t[a]={type:"short",value:e.readInt16BE(r)},r+=2;break;case 4:t[a]={type:"integer",value:e.readInt32BE(r)},r+=4;break;case 5:t[a]={type:"long",value:new n(e.slice(r,r+8))},r+=8;break;case 6:var s=e.readUInt16BE(r);r+=2,t[a]={type:"binary",value:e.slice(r,r+s)},r+=s;break;case 7:var l=e.readUInt16BE(r);r+=2,t[a]={type:"string",value:e.slice(r,r+l).toString()},r+=l;break;case 8:t[a]={type:"timestamp",value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var c=e.slice(r,r+16).toString("hex");r+=16,t[a]={type:"uuid",value:c.substr(0,8)+"-"+c.substr(8,4)+"-"+c.substr(12,4)+"-"+c.substr(16,4)+"-"+c.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=o(e);return{headers:a(t.headers),body:t.body}}}},(e,t,r)=>{var n=r(125).util,o=n.buffer.toBuffer;function i(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function a(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}i.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&a(t),new i(t)},i.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(e.toString("hex"),16)*(t?-1:1)},i.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:i}},(e,t,r)=>{var n=r(125).util,o=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=o(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var i=12+e.readUInt32BE(4);return{headers:e.slice(12,i),body:e.slice(i,e.length-4)}}}},(e,t,r)=>{var n=r(125),o=r(267);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,n){r||t.service.credentialsFrom(n,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{r(123);var n=r(125),o=n.Service,i=n.apiLoader;i.services.sts={},n.STS=o.defineService("sts",["2011-06-15"]),r(268),Object.defineProperty(i.services.sts,"2011-06-15",{get:function(){var e=r(270);return e.paginators=r(271).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},(e,t,r)=>{var n=r(125),o=r(269);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=o(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),a=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);e.httpRequest.updateEndpoint(a),e.httpRequest.region=r.region}}})},(e,t,r)=>{var n=r(125);function o(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=o(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=o(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var i={};try{i=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(e){}return i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)&&(r=o(i[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+i[t.sharedConfig]+'".'})),r}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{},"ProvidedContexts":{"type":"list","member":{"type":"structure","members":{"ProviderArn":{},"ContextAssertion":{}}}}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sl":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{"type":"string","sensitive":true},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sq":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{var n=r(125),o=r(267);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new o(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(n,o){var i={};n?e(n):(o&&(i.TokenCode=o),t.service[r](i,function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,o){if(r){var i=r;return r instanceof Error&&(i=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}))}e(null,o)}):e(null)}})},(e,t,r)=>{var n=r(125),o=r(267);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)})},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new o(e)}}})},(e,t,r)=>{var n=r(125),o=r(275),i=r(267);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new o(t)}this.sts=this.sts||new i(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},(e,t,r)=>{r(123);var n=r(125),o=n.Service,i=n.apiLoader;i.services.cognitoidentity={},n.CognitoIdentity=o.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(i.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(276);return e.paginators=r(277).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30","auth":["aws.auth#sigv4"]},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none","auth":["smithy.api#noAuth"]},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},e=>{"use strict";e.exports=JSON.parse('{"pagination":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},(e,t,r)=>{var n=r(125),o=r(267);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{var n=r(124),o=r(132);function i(){}function a(e,t){for(var r=e.getElementsByTagName(t),n=0,o=r.length;n<o;n++)if(r[n].parentNode===e)return r[n]}function s(e,t){switch(t||(t={}),t.type){case"structure":return l(e,t);case"map":return function(e,t){var r={},n=t.key.name||"key",o=t.value.name||"value",i=t.flattened?t.name:"entry",l=e.firstElementChild;for(;l;){if(l.nodeName===i){var c=a(l,n).textContent,u=a(l,o);r[c]=s(u,t.value)}l=l.nextElementSibling}return r}(e,t);case"list":return function(e,t){var r=[],n=t.flattened?t.name:t.member.name||"member",o=e.firstElementChild;for(;o;)o.nodeName===n&&r.push(s(o,t.member)),o=o.nextElementSibling;return r}(e,t);case void 0:case null:return function(e){if(null==e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;var t={type:"structure",members:{}},r=e.firstElementChild;for(;r;){var n=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,n)?t.members[n].type="list":t.members[n]={name:n},r=r.nextElementSibling}return l(e,t)}(e);default:return function(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new o.create({type:r}))}var n=e.textContent;""===n&&(n=null);return"function"==typeof t.toType?t.toType(n):n}(e,t)}}function l(e,t){var r={};return null===e||n.each(t.members,function(n,o){if(o.isXmlAttribute){if(Object.prototype.hasOwnProperty.call(e.attributes,o.name)){var i=e.attributes[o.name].value;r[n]=s({textContent:i},o)}}else{var l=o.flattened?e:a(e,o.name);l?r[n]=s(l,o):o.flattened||"list"!==o.type||t.api.xmlNoDefaultLists||(r[n]=o.defaultValue)}}),r}i.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,o;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(e){throw n.error(new Error("Parse error in document"),{originalError:e,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var i=r.getElementsByTagName("parsererror")[0];if(i&&(i.parentNode===r||"body"===i.parentNode.nodeName||i.parentNode.parentNode===r||"body"===i.parentNode.parentNode.nodeName)){var l=i.getElementsByTagName("div")[0]||i;throw n.error(new Error(l.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(e){o=e}if(r&&r.documentElement&&!o){var c=s(r.documentElement,t),u=a(r.documentElement,"ResponseMetadata");return u&&(c.ResponseMetadata=s(u,{})),c}if(o)throw n.error(o||new Error,{code:"XMLParserError",retryable:!0});return{}},e.exports=i},(e,t,r)=>{var n=r(125),o=r(281).EventEmitter;r(158),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,i){var a=this,s=e.endpoint,l=new o,c=s.protocol+"//"+s.hostname;80!==s.port&&443!==s.port&&(c+=":"+s.port),c+=e.path;var u=new XMLHttpRequest,d=!1;e.stream=u,u.addEventListener("readystatechange",function(){try{if(0===u.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!d&&(l.statusCode=u.status,l.headers=a.parseHeaders(u.getAllResponseHeaders()),l.emit("headers",l.statusCode,l.headers,u.statusText),d=!0),this.readyState===this.DONE&&a.finishRequest(u,l)},!1),u.upload.addEventListener("progress",function(e){l.emit("sendProgress",e)}),u.addEventListener("progress",function(e){l.emit("receiveProgress",e)},!1),u.addEventListener("timeout",function(){i(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),u.addEventListener("error",function(){i(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),u.addEventListener("abort",function(){i(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(l),u.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&u.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(u.timeout=t.timeout),t.xhrWithCredentials&&(u.withCredentials=!0);try{u.responseType="arraybuffer"}catch(e){}try{e.body?u.send(e.body):u.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;u.send(e.body.buffer)}return l},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var o=e.response;r=new n.util.Buffer(o.byteLength);for(var i=new Uint8Array(o),a=0;a<r.length;++a)r[a]=i[a]}try{r||"string"!=typeof e.responseText||(r=new n.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,a,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(o(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(s=Array.prototype.slice.call(arguments,1),a=(c=i.slice()).length,l=0;l<a;l++)c[l].apply(this,s);return!0},t.prototype.addListener=function(e,i){var a;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var o,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(o=this._events[e]).length,i=-1,o===t||r(o.listener)&&o.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(o)){for(s=a;s-- >0;)if(o[s]===t||o[s].listener&&o[s].listener===t){i=s;break}if(i<0)return this;1===o.length?(o.length=0,delete this._events[e]):o.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2015-08-04","endpointPrefix":"firehose","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceAbbreviation":"Firehose","serviceFullName":"Amazon Kinesis Firehose","serviceId":"Firehose","signatureVersion":"v4","targetPrefix":"Firehose_20150804","uid":"firehose-2015-08-04","auth":["aws.auth#sigv4"]},"operations":{"CreateDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamType":{},"KinesisStreamSourceConfiguration":{"type":"structure","required":["KinesisStreamARN","RoleARN"],"members":{"KinesisStreamARN":{},"RoleARN":{}}},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"},"S3DestinationConfiguration":{"shape":"Sa","deprecated":true},"ExtendedS3DestinationConfiguration":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationConfiguration":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3Configuration"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationConfiguration":{"type":"structure","required":["HECEndpoint","HECEndpointType","S3Configuration"],"members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationConfiguration":{"type":"structure","required":["EndpointConfiguration","S3Configuration"],"members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"}}},"Tags":{"shape":"S3r"},"AmazonOpenSearchServerlessDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"}}},"MSKSourceConfiguration":{"type":"structure","required":["MSKClusterARN","TopicName","AuthenticationConfiguration"],"members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"ReadFromTimestamp":{"type":"timestamp"}}},"SnowflakeDestinationConfiguration":{"type":"structure","required":["AccountUrl","Database","Schema","Table","RoleARN","S3Configuration"],"members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationConfiguration":{"type":"structure","required":["RoleARN","CatalogConfiguration","S3Configuration"],"members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{"DeliveryStreamARN":{}}}},"DeleteDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"AllowForceDelete":{"type":"boolean"}}},"output":{"type":"structure","members":{}}},"DescribeDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"Limit":{"type":"integer"},"ExclusiveStartDestinationId":{}}},"output":{"type":"structure","required":["DeliveryStreamDescription"],"members":{"DeliveryStreamDescription":{"type":"structure","required":["DeliveryStreamName","DeliveryStreamARN","DeliveryStreamStatus","DeliveryStreamType","VersionId","Destinations","HasMoreDestinations"],"members":{"DeliveryStreamName":{},"DeliveryStreamARN":{},"DeliveryStreamStatus":{},"FailureDescription":{"shape":"S5b"},"DeliveryStreamEncryptionConfiguration":{"type":"structure","members":{"KeyARN":{},"KeyType":{},"Status":{},"FailureDescription":{"shape":"S5b"}}},"DeliveryStreamType":{},"VersionId":{},"CreateTimestamp":{"type":"timestamp"},"LastUpdateTimestamp":{"type":"timestamp"},"Source":{"type":"structure","members":{"KinesisStreamSourceDescription":{"type":"structure","members":{"KinesisStreamARN":{},"RoleARN":{},"DeliveryStartTimestamp":{"type":"timestamp"}}},"MSKSourceDescription":{"type":"structure","members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"DeliveryStartTimestamp":{"type":"timestamp"},"ReadFromTimestamp":{"type":"timestamp"}}}}},"Destinations":{"type":"list","member":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{},"S3DestinationDescription":{"shape":"S5n"},"ExtendedS3DestinationDescription":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationDescription":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3DestinationDescription"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"RetryOptions":{"shape":"S21"},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationDescription":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationDescription":{"type":"structure","members":{"EndpointConfiguration":{"type":"structure","members":{"Url":{"shape":"S3c"},"Name":{}}},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"}}},"SnowflakeDestinationDescription":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"AmazonOpenSearchServerlessDestinationDescription":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"}}},"IcebergDestinationDescription":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3DestinationDescription":{"shape":"S5n"}}}}}},"HasMoreDestinations":{"type":"boolean"}}}}}},"ListDeliveryStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"DeliveryStreamType":{},"ExclusiveStartDeliveryStreamName":{}}},"output":{"type":"structure","required":["DeliveryStreamNames","HasMoreDeliveryStreams"],"members":{"DeliveryStreamNames":{"type":"list","member":{}},"HasMoreDeliveryStreams":{"type":"boolean"}}}},"ListTagsForDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"shape":"S3s"}},"HasMoreTags":{"type":"boolean"}}}},"PutRecord":{"input":{"type":"structure","required":["DeliveryStreamName","Record"],"members":{"DeliveryStreamName":{},"Record":{"shape":"S68"}}},"output":{"type":"structure","required":["RecordId"],"members":{"RecordId":{},"Encrypted":{"type":"boolean"}}}},"PutRecordBatch":{"input":{"type":"structure","required":["DeliveryStreamName","Records"],"members":{"DeliveryStreamName":{},"Records":{"type":"list","member":{"shape":"S68"}}}},"output":{"type":"structure","required":["FailedPutCount","RequestResponses"],"members":{"FailedPutCount":{"type":"integer"},"Encrypted":{"type":"boolean"},"RequestResponses":{"type":"list","member":{"type":"structure","members":{"RecordId":{},"ErrorCode":{},"ErrorMessage":{}}}}}}},"StartDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"}}},"output":{"type":"structure","members":{}}},"StopDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{}}},"output":{"type":"structure","members":{}}},"TagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","Tags"],"members":{"DeliveryStreamName":{},"Tags":{"shape":"S3r"}}},"output":{"type":"structure","members":{}}},"UntagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","TagKeys"],"members":{"DeliveryStreamName":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDestination":{"input":{"type":"structure","required":["DeliveryStreamName","CurrentDeliveryStreamVersionId","DestinationId"],"members":{"DeliveryStreamName":{},"CurrentDeliveryStreamVersionId":{},"DestinationId":{},"S3DestinationUpdate":{"shape":"S6t","deprecated":true},"ExtendedS3DestinationUpdate":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationUpdate":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationUpdate":{"type":"structure","members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"SnowflakeDestinationUpdate":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationUpdate":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S7":{"type":"structure","required":["KeyType"],"members":{"KeyARN":{},"KeyType":{}}},"Sa":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"Se":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"Si":{"type":"structure","members":{"NoEncryptionConfig":{},"KMSEncryptionConfig":{"type":"structure","required":["AWSKMSKeyARN"],"members":{"AWSKMSKeyARN":{}}}}},"Sl":{"type":"structure","members":{"Enabled":{"type":"boolean"},"LogGroupName":{},"LogStreamName":{}}},"Sq":{"type":"structure","members":{"Enabled":{"type":"boolean"},"Processors":{"type":"list","member":{"type":"structure","required":["Type"],"members":{"Type":{},"Parameters":{"type":"list","member":{"type":"structure","required":["ParameterName","ParameterValue"],"members":{"ParameterName":{},"ParameterValue":{}}}}}}}}},"Sz":{"type":"structure","members":{"SchemaConfiguration":{"type":"structure","members":{"RoleARN":{},"CatalogId":{},"DatabaseName":{},"TableName":{},"Region":{},"VersionId":{}}},"InputFormatConfiguration":{"type":"structure","members":{"Deserializer":{"type":"structure","members":{"OpenXJsonSerDe":{"type":"structure","members":{"ConvertDotsInJsonKeysToUnderscores":{"type":"boolean"},"CaseInsensitive":{"type":"boolean"},"ColumnToJsonKeyMappings":{"type":"map","key":{},"value":{}}}},"HiveJsonSerDe":{"type":"structure","members":{"TimestampFormats":{"type":"list","member":{}}}}}}}},"OutputFormatConfiguration":{"type":"structure","members":{"Serializer":{"type":"structure","members":{"ParquetSerDe":{"type":"structure","members":{"BlockSizeBytes":{"type":"integer"},"PageSizeBytes":{"type":"integer"},"Compression":{},"EnableDictionaryCompression":{"type":"boolean"},"MaxPaddingBytes":{"type":"integer"},"WriterVersion":{}}},"OrcSerDe":{"type":"structure","members":{"StripeSizeBytes":{"type":"integer"},"BlockSizeBytes":{"type":"integer"},"RowIndexStride":{"type":"integer"},"EnablePadding":{"type":"boolean"},"PaddingTolerance":{"type":"double"},"Compression":{},"BloomFilterColumns":{"shape":"S1m"},"BloomFilterFalsePositiveProbability":{"type":"double"},"DictionaryKeyThreshold":{"type":"double"},"FormatVersion":{}}}}}}},"Enabled":{"type":"boolean"}}},"S1m":{"type":"list","member":{}},"S1o":{"type":"structure","members":{"RetryOptions":{"shape":"S1p"},"Enabled":{"type":"boolean"}}},"S1p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S1v":{"type":"structure","required":["DataTableName"],"members":{"DataTableName":{},"DataTableColumns":{},"CopyOptions":{}}},"S1z":{"type":"string","sensitive":true},"S20":{"type":"string","sensitive":true},"S21":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S24":{"type":"structure","required":["Enabled"],"members":{"SecretARN":{},"RoleARN":{},"Enabled":{"type":"boolean"}}},"S2c":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2f":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S2i":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"}}},"S2j":{"type":"list","member":{}},"S2k":{"type":"list","member":{}},"S2l":{"type":"structure","required":["DefaultDocumentIdFormat"],"members":{"DefaultDocumentIdFormat":{}}},"S2t":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2w":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S34":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S37":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S3b":{"type":"structure","required":["Url"],"members":{"Url":{"shape":"S3c"},"Name":{},"AccessKey":{"type":"string","sensitive":true}}},"S3c":{"type":"string","sensitive":true},"S3f":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S3i":{"type":"structure","members":{"ContentEncoding":{},"CommonAttributes":{"type":"list","member":{"type":"structure","required":["AttributeName","AttributeValue"],"members":{"AttributeName":{"type":"string","sensitive":true},"AttributeValue":{"type":"string","sensitive":true}}}}}},"S3o":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S3r":{"type":"list","member":{"shape":"S3s"}},"S3s":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}},"S3y":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S41":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S47":{"type":"structure","required":["RoleARN","Connectivity"],"members":{"RoleARN":{},"Connectivity":{}}},"S4b":{"type":"string","sensitive":true},"S4c":{"type":"string","sensitive":true},"S4d":{"type":"string","sensitive":true},"S4e":{"type":"string","sensitive":true},"S4f":{"type":"string","sensitive":true},"S4g":{"type":"string","sensitive":true},"S4h":{"type":"string","sensitive":true},"S4i":{"type":"structure","members":{"Enabled":{"type":"boolean"},"SnowflakeRole":{"type":"string","sensitive":true}}},"S4l":{"type":"string","sensitive":true},"S4m":{"type":"string","sensitive":true},"S4n":{"type":"structure","required":["PrivateLinkVpceId"],"members":{"PrivateLinkVpceId":{"type":"string","sensitive":true}}},"S4p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S4s":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S4w":{"type":"list","member":{"type":"structure","required":["DestinationTableName","DestinationDatabaseName"],"members":{"DestinationTableName":{},"DestinationDatabaseName":{},"UniqueKeys":{"shape":"S1m"},"S3ErrorOutputPrefix":{}}}},"S4z":{"type":"structure","members":{"CatalogARN":{}}},"S5b":{"type":"structure","required":["Type","Details"],"members":{"Type":{},"Details":{}}},"S5n":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"S5r":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds","VpcId"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"},"VpcId":{}}},"S68":{"type":"structure","required":["Data"],"members":{"Data":{"type":"blob"}}},"S6t":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,l.default)(t,d)).validate_length&&e.length>t.max_allowed_length)return!1;if(!t.allow_fragments&&(0,i.default)(e,"#"))return!1;if(!t.allow_query_components&&((0,i.default)(e,"?")||(0,i.default)(e,"&")))return!1;var r,c,p,h,m,g,y,v;y=e.split("#"),e=y.shift(),y=e.split("?");var b=(e=y.shift()).match(/^([a-z][a-z0-9+\-.]*):/i),_=!1,w=function(n){return _=!0,r=n.toLowerCase(),(!t.require_valid_protocol||-1!==t.protocols.indexOf(r))&&e.substring(b[0].length)};if(b){var S=b[1],E=e.substring(b[0].length);if("//"===E.slice(0,2)){if(!1===(e=w(S)))return!1}else{var k=E.indexOf("/"),x=-1===k?E:E.substring(0,k),T=x.indexOf("@");if(-1!==T){var O=x.substring(0,T);if(/^[a-zA-Z0-9\-_.%:]*$/.test(O)){if(t.require_protocol)return!1}else if(!1===(e=w(S)))return!1}else if(!1===(e=w(S)))return!1}}else if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!_&&!t.allow_protocol_relative_urls)return!1;e=e.slice(2)}if(""===e)return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((c=y.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var C=c.split(":"),j=(A=2,function(e){if(Array.isArray(e))return e}(R=C)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(R,A)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(R,A)||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.")}()),P=j[0],I=j[1];if(""===P&&""===I)return!1}var R,A;h=y.join("@"),g=null,v=null;var M=h.match(f);M?(p="",v=M[1],g=M[2]||null):(p=(y=h.split(":")).shift(),y.length&&(g=y.join(":")));if(null!==g&&g.length>0){if(m=parseInt(g,10),!/^[0-9]+$/.test(g)||m<=0||m>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return(0,o.default)(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!((0,s.default)(p)||(0,a.default)(p,t)||v&&(0,s.default)(v,6)))return!1;if(p=p||v,t.host_blacklist&&(0,o.default)(p,t.host_blacklist))return!1;return!0};var n=c(r(285)),o=c(r(286)),i=c(r(287)),a=c(r(288)),s=c(r(290)),l=c(r(289));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},f=/^\[([^\]]+)\](?::([0-9]+))?$/;e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw new TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw new TypeError("Expected a string but received a ".concat(e.constructor.name))},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];if(e===o||r(o)&&o.test(e))return!0}return!1},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t){return-1!==e.indexOf(t)};e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),i=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return r.every(function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))})};var n=i(r(285)),o=i(r(289));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(t);var n=("object"===i(r)?r.version:arguments[1])||"";if(!n)return e(t,{version:4})||e(t,{version:6});if("4"===n.toString())return l.test(t);if("6"===n.toString())return u.test(t);return!1};var n,o=(n=r(285))&&n.__esModule?n:{default:n};function i(e){return i="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},i(e)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(a,"[.]){3}").concat(a),l=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,,(e,t,r)=>{"use strict";var n=r(296);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>C,captureCheckIn:()=>S,captureEvent:()=>h,captureException:()=>f,captureMessage:()=>p,captureSession:()=>R,close:()=>x,endSession:()=>P,flush:()=>k,isEnabled:()=>O,isInitialized:()=>T,lastEventId:()=>w,setContext:()=>m,setExtra:()=>y,setExtras:()=>g,setTag:()=>b,setTags:()=>v,setUser:()=>_,startSession:()=>j,withMonitor:()=>E});var n=r(301),o=r(309),i=r(310),a=r(315),s=r(314),l=r(311),c=r(321),u=r(317),d=r(305);function f(e,t){return(0,n.getCurrentScope)().captureException(e,(0,c.parseEventHintOrCaptureContext)(t))}function p(e,t){const r="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,n.getCurrentScope)().captureMessage(e,r,o)}function h(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function m(e,t){(0,n.getIsolationScope)().setContext(e,t)}function g(e){(0,n.getIsolationScope)().setExtras(e)}function y(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function v(e){(0,n.getIsolationScope)().setTags(e)}function b(e,t){(0,n.getIsolationScope)().setTag(e,t)}function _(e){(0,n.getIsolationScope)().setUser(e)}function w(){return(0,n.getIsolationScope)().lastEventId()}function S(e,t){const r=(0,n.getCurrentScope)(),i=(0,n.getClient)();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,r);o.DEBUG_BUILD&&a.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&a.debug.warn("Cannot capture check-in. No client defined.");return(0,l.uuid4)()}function E(e,t,r){const o=S({monitorSlug:e,status:"in_progress"},r),i=(0,u.timestampInSeconds)();function a(t){S({monitorSlug:e,status:t,checkInId:o,duration:(0,u.timestampInSeconds)()-i})}return(0,n.withIsolationScope)(()=>{let e;try{e=t()}catch(e){throw a("error"),e}return(0,s.isThenable)(e)?e.then(e=>(a("ok"),e),e=>{throw a("error"),e}):(a("ok"),e)})}async function k(e){const t=(0,n.getClient)();return t?t.flush(e):(o.DEBUG_BUILD&&a.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function x(e){const t=(0,n.getClient)();return t?t.close(e):(o.DEBUG_BUILD&&a.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function T(){return!!(0,n.getClient)()}function O(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,n.getIsolationScope)().addEventProcessor(e)}function j(e){const t=(0,n.getIsolationScope)(),r=(0,n.getCurrentScope)(),{userAgent:o}=d.GLOBAL_OBJ.navigator||{},a=(0,i.makeSession)({user:r.getUser()||t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession();return"ok"===s?.status&&(0,i.updateSession)(s,{status:"exited"}),P(),t.setSession(a),a}function P(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,i.closeSession)(t),I(),e.setSession()}function I(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function R(e=!1){e?P():I()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>f,getCurrentScope:()=>s,getGlobalScope:()=>c,getIsolationScope:()=>l,getTraceContextFromScope:()=>p,withIsolationScope:()=>d,withScope:()=>u});var n=r(302),o=r(303),i=r(308),a=r(319);function s(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function l(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function c(){return(0,o.getGlobalSingleton)("globalScope",()=>new i.Scope)}function u(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function f(){return s().getClient()}function p(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=t,i={trace_id:r,span_id:o||(0,a.generateSpanId)()};return n&&(i.parent_span_id=n),i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>a,setAsyncContextStrategy:()=>i});var n=r(303),o=r(306);function i(e){const t=(0,n.getMainCarrier)();(0,n.getSentryCarrier)(t).acs=e}function a(e){const t=(0,n.getSentryCarrier)(e);return t.acs?t.acs:(0,o.getStackAsyncContextStrategy)()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGlobalSingleton:()=>s,getMainCarrier:()=>i,getSentryCarrier:()=>a});var n=r(304),o=r(305);function i(){return a(o.GLOBAL_OBJ),o.GLOBAL_OBJ}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}function s(e,t,r=o.GLOBAL_OBJ){const i=r.__SENTRY__=r.__SENTRY__||{},a=i[n.SDK_VERSION]=i[n.SDK_VERSION]||{};return a[e]||(a[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="10.22.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GLOBAL_OBJ:()=>n});const n=globalThis},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContextStack:()=>s,getStackAsyncContextStrategy:()=>f});var n=r(307),o=r(308),i=r(314),a=r(303);class s{constructor(e,t){let r,n;r=e||new o.Scope,n=t||new o.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return(0,i.isThenable)(r)?r.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){const e=(0,a.getMainCarrier)(),t=(0,a.getSentryCarrier)(e);return t.stack=t.stack||new s((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function c(e){return l().withScope(e)}function u(e,t){const r=l();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function f(){return{withIsolationScope:d,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>i,getDefaultIsolationScope:()=>a});var n=r(303),o=r(308);function i(){return(0,n.getGlobalSingleton)("defaultCurrentScope",()=>new o.Scope)}function a(){return(0,n.getGlobalSingleton)("defaultIsolationScope",()=>new o.Scope)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>p});var n=r(309),o=r(310),i=r(315),a=r(314),s=r(318),l=r(311),c=r(319),u=r(320),d=r(316),f=r(317);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:Math.random()}}clone(){const e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,u._setSpanForScope)(e,(0,u._getSpanForScope)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,o.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof p?t.getScopeData():(0,a.isPlainObject)(t)?e:void 0,{tags:n,extra:o,user:i,contexts:s,level:l,fingerprint:c=[],propagationContext:u}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,u._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,f.dateTimestampInSeconds)(),...e,message:e.message?(0,d.truncate)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,u._getSpanForScope)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||(0,l.uuid4)();if(!this._client)return n.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...t,event_id:r},this),r}captureMessage(e,t,r){const o=r?.event_id||(0,l.uuid4)();if(!this._client)return n.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:o},this),o}captureEvent(e,t){const r=t?.event_id||(0,l.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>s,makeSession:()=>i,updateSession:()=>a});var n=r(311),o=r(317);function i(e){const t=(0,o.timestampInSeconds)(),r={sid:(0,n.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(r)};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>m,addExceptionMechanism:()=>d,addExceptionTypeValue:()=>u,checkOrSetAlreadyCaught:()=>g,getEventDescription:()=>c,parseSemver:()=>h,uuid4:()=>s});var n=r(312),o=r(316),i=r(305);let a;function s(e=function(){const e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return a||(a=[1e7]+1e3+4e3+8e3+1e11),a.replace(/[018]/g,e=>(e^(16*Math.random()&15)>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function c(e){const{message:t,event_id:r}=e;if(t)return t;const n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){const n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function d(e,t){const r=l(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}const f=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function p(e){return parseInt(e||"",10)}function h(e){const t=e.match(f)||[],r=p(t[1]),n=p(t[2]),o=p(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function m(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map(e=>(0,o.snipLine)(e,0));const a=Math.min(n-1,i);t.context_line=(0,o.snipLine)(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>(0,o.snipLine)(e,0))}function g(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch{}return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>c,convertToPlainObject:()=>f,dropUndefinedKeys:()=>g,extractExceptionKeysForMessage:()=>m,fill:()=>l,getOriginalFunction:()=>d,markFunctionWrapped:()=>u,objectify:()=>v});var n=r(309),o=r(313),i=r(315),a=r(314),s=r(316);function l(e,t,r){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const a=r(o);"function"==typeof a&&u(a,o);try{e[t]=a}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch{}}function d(e){return e.__sentry_original__}function f(e){if((0,a.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if((0,a.isEvent)(e)){const t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,a.isInstanceOf)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function p(e){try{return(0,a.isElement)(e)?(0,o.htmlTreeAsString)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function h(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function m(e,t=40){const r=Object.keys(f(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,s.truncate)(n,t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,s.truncate)(n,t)}return""}function g(e){return y(e,new Map)}function y(e,t){if(null===e||"object"!=typeof e)return e;const r=t.get(e);if(void 0!==r)return r;if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(e=>{r.push(y(e,t))}),r}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const r={};t.set(e,r);return Object.keys(e).forEach(n=>{const o=e[n];void 0!==o&&(r[n]=y(o,t))}),r}return e}function v(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,a.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>c,getLocationHref:()=>l,htmlTreeAsString:()=>a});var n=r(314);const o=r(305).GLOBAL_OBJ,i=80;function a(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,o=[];let a=0,l=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||i;for(;r&&a++<n&&(d=s(r,f),!("html"===d||a>1&&l+o.length*u+d.length>=p));)o.push(d),l+=d.length,r=r.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function s(e,t){const r=e,i=[];if(!r?.tagName)return"";if(o.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}i.push(r.tagName.toLowerCase());const a=t?.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(a?.length)a.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&i.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=r.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function l(){try{return o.document.location.href}catch{return""}}function c(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>l,isElement:()=>h,isError:()=>o,isErrorEvent:()=>a,isEvent:()=>p,isInstanceOf:()=>v,isParameterizedString:()=>u,isPlainObject:()=>f,isPrimitive:()=>d,isRegExp:()=>m,isRequest:()=>_,isString:()=>c,isSyntheticEvent:()=>y,isThenable:()=>g,isVueViewModel:()=>b});const n=Object.prototype.toString;function o(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function i(e,t){return n.call(e)===`[object ${t}]`}function a(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function c(e){return i(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return i(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return i(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}function y(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function b(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function _(e){return"undefined"!=typeof Request&&v(e,Request)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>a,consoleSandbox:()=>l,debug:()=>f,originalConsoleMethods:()=>s});var n=r(303),o=r(309),i=r(305);const a=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,r={},n=Object.keys(s);n.forEach(e=>{const n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function c(){return d().enabled}function u(e,...t){o.DEBUG_BUILD&&c()&&l(()=>{i.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return o.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const f={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>s,safeJoin:()=>a,snipLine:()=>i,stringMatchesSomePattern:()=>l,truncate:()=>o});var n=r(314);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function a(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const o=e[t];try{(0,n.isVueViewModel)(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t,r=!1){return!!(0,n.isString)(e)&&((0,n.isRegExp)(t)?t.test(e):!!(0,n.isString)(t)&&(r?e===t:e.includes(t)))}function l(e,t=[],r=!1){return t.some(t=>s(e,t,r))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>i,timestampInSeconds:()=>l});var n=r(305);const o=1e3;function i(){return Date.now()/o}let a,s;function l(){return(a??(a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return i;const t=e.timeOrigin;return()=>(t+e.now())/o}()))()}function c(){return s||(s=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];const t=36e5,r=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,a=i<t,s=e.timing?.navigationStart,l="number"==typeof s?Math.abs(s+r-o):t;return a||l<t?i<=l?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[o,"dateNow"]}()),s[0]}},(e,t,r)=>{"use strict";function n(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const o={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=n(o[e],t[e],r-1));return o}r.r(t),r.d(t,{merge:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateSpanId:()=>i,generateTraceId:()=>o});var n=r(311);function o(){return(0,n.uuid4)()}function i(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>a,_setSpanForScope:()=>i});var n=r(312);const o="_sentrySpan";function i(e,t){t?(0,n.addNonEnumerableProperty)(e,o,t):delete e[o]}function a(e){return e[o]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyClientOptions:()=>h,applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>p});var n=r(322),o=r(301),i=r(323),a=r(308),s=r(325),l=r(336),c=r(311),u=r(337),d=r(316),f=r(317);function p(e,t,r,n,l,d){const{normalizeDepth:p=3,normalizeMaxBreadth:y=1e3}=e,v={...t,event_id:t.event_id||r.event_id||(0,c.uuid4)(),timestamp:t.timestamp||(0,f.dateTimestampInSeconds)()},b=r.integrations||e.integrations.map(e=>e.name);h(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,b),l&&l.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const _=function(e,t){if(!t)return e;const r=e?e.clone():new a.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,c.addExceptionMechanism)(v,r.mechanism);const w=l?l.getEventProcessors():[],S=(0,o.getGlobalScope)().getScopeData();if(d){const e=d.getScopeData();(0,s.mergeScopeData)(S,e)}if(_){const e=_.getScopeData();(0,s.mergeScopeData)(S,e)}const E=[...r.attachments||[],...S.attachments];E.length&&(r.attachments=E),(0,s.applyScopeDataToEvent)(v,S);const k=[...w,...S.eventProcessors];return(0,i.notifyEventProcessors)(k,v,r).then(e=>(e&&g(e),"number"==typeof p&&p>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}}))},...e.user&&{user:(0,u.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,u.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,u.normalize)(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,u.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}})));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,u.normalize)(e.contexts.flags,3,r));return n}(e,p,y):e))}function h(e,t){const{environment:r,release:o,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i);const s=e.request;s?.url&&(s.url=(0,d.truncate)(s.url,a))}function m(e,t){const r=(0,l.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function g(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}function y(e){if(e)return function(e){return e instanceof a.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>v.includes(e))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n});const n="production"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{notifyEventProcessors:()=>s});var n=r(309),o=r(315),i=r(314),a=r(324);function s(e,t,r,n=0){try{const o=l(t,r,e,n);return(0,i.isThenable)(o)?o:(0,a.resolvedSyncPromise)(o)}catch(e){return(0,a.rejectedSyncPromise)(e)}}function l(e,t,r,a){const s=r[a];if(!e||!s)return e;const c=s({...e},t);return n.DEBUG_BUILD&&null===c&&o.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,i.isThenable)(c)?c.then(e=>l(e,t,r,a+1)):l(c,t,r,a+1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>i,resolvedSyncPromise:()=>o});var n=r(314);function o(e){return new a(t=>{t(e)})}function i(e){return new a((t,r)=>{r(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,r)=>{let n,o;return this.then(t=>{o=!1,n=t,e&&e()},t=>{o=!0,n=t,e&&e()}).then(()=>{o?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&((0,n.isThenable)(t)?t.then(r,o):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(1,e)},o=e=>{t(2,e)};try{e(r,o)}catch(e){o(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>a,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>s});var n=r(326),o=r(318),i=r(331);function a(e,t){const{fingerprint:r,span:o,breadcrumbs:a,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:r,tags:n,user:o,contexts:i,level:a,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra});Object.keys(n).length&&(e.tags={...n,...e.tags});Object.keys(o).length&&(e.user={...o,...e.user});Object.keys(i).length&&(e.contexts={...i,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),o&&function(e,t){e.contexts={trace:(0,i.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,i.getRootSpan)(t),o=(0,i.spanToJSON)(r).description;o&&!e.transaction&&"transaction"===e.type&&(e.transaction=o)}(e,o),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function s(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:f,attachments:p,propagationContext:h,transactionName:m,span:g}=t;l(e,"extra",r),l(e,"tags",n),l(e,"user",i),l(e,"contexts",a),e.sdkProcessingMetadata=(0,o.merge)(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function l(e,t,r){e[t]=(0,o.merge)(e[t],r,1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>p,getDynamicSamplingContextFromClient:()=>h,getDynamicSamplingContextFromScope:()=>m,getDynamicSamplingContextFromSpan:()=>g,spanToBaggageHeader:()=>y});var n=r(322),o=r(301),i=r(327),a=r(328),s=r(329),l=r(330),c=r(312),u=r(331),d=r(333);const f="_frozenDsc";function p(e,t){const r=e;(0,c.addNonEnumerableProperty)(r,f,t)}function h(e,t){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},i={environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:o,trace_id:e,org_id:(0,s.extractOrgIdFromClient)(t)};return t.emit("createDsc",i),i}function m(e,t){const r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function g(e){const t=(0,o.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),s=n.data,c=r.spanContext().traceState,p=c?.get("sentry.sample_rate")??s[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[i.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function m(e){return"number"!=typeof p&&"string"!=typeof p||(e.sample_rate=`${p}`),e}const g=r[f];if(g)return m(g);const y=c?.get("sentry.dsc"),v=y&&(0,a.baggageHeaderToDynamicSamplingContext)(y);if(v)return m(v);const b=h(e.spanContext().traceId,t),_=s[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],w=n.description;return"url"!==_&&w&&(b.transaction=w),(0,l.hasSpansEnabled)()&&(b.sampled=String((0,u.spanIsSampled)(r)),b.sample_rand=c?.get("sentry.sample_rand")??(0,d.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,r),b}function y(e){const t=g(e);return(0,a.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>h,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>g,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>m,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>p,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>y,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>f,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>d,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_URL_FULL:()=>v,SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE:()=>b});const n="sentry.source",o="sentry.sample_rate",i="sentry.previous_trace_sample_rate",a="sentry.op",s="sentry.origin",l="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",d="sentry.custom_span_name",f="sentry.profile_id",p="sentry.exclusive_time",h="cache.hit",m="cache.key",g="cache.item_size",y="http.request.method",v="url.full",b="sentry.link.type"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>l,SENTRY_BAGGAGE_KEY_PREFIX:()=>a,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>s,baggageHeaderToDynamicSamplingContext:()=>c,dynamicSamplingContextToSentryBaggageHeader:()=>u,objectToBaggageHeader:()=>p,parseBaggageHeader:()=>d});var n=r(309),o=r(315),i=r(314);const a="sentry-",s=/^sentry-/,l=8192;function c(e){const t=d(e);if(!t)return;const r=Object.entries(t).reduce((e,[t,r])=>{if(t.match(s)){e[t.slice(a.length)]=r}return e},{});return Object.keys(r).length>0?r:void 0}function u(e){if(!e)return;return p(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e),{}))}function d(e){if(e&&((0,i.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const r=f(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{}):f(e)}function f(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function p(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===i?a:`${e},${a}`;return s.length>l?(n.DEBUG_BUILD&&o.debug.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>l,dsnToString:()=>s,extractOrgIdFromClient:()=>d,extractOrgIdFromDsnHost:()=>u,makeDsn:()=>f});var n=r(309),o=r(315);const i=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:r,path:n,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${a}`}function l(e){const t=a.exec(e);if(!t)return void(0,o.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[r,n,i="",s="",l="",u=""]=t.slice(1);let d="",f=u;const p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:s,pass:i,path:d,projectId:f,port:l,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.match(i);return t?.[1]}function d(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=u(r)),n}function f(e){const t="string"==typeof e?l(e):c(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>o});var n=r(301);function o(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,n.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>m,TRACE_FLAG_SAMPLED:()=>g,addChildSpanToSpan:()=>P,convertSpanLinksForEnvelope:()=>S,getActiveSpan:()=>M,getRootSpan:()=>A,getSpanDescendants:()=>R,getStatusMessage:()=>O,removeChildSpanFromSpan:()=>I,showSpanDropWarning:()=>D,spanIsSampled:()=>T,spanTimeInputToSeconds:()=>E,spanToJSON:()=>x,spanToTraceContext:()=>b,spanToTraceHeader:()=>_,spanToTraceparentHeader:()=>w,spanToTransactionTraceContext:()=>v,updateSpanName:()=>N});var n=r(302),o=r(303),i=r(301),a=r(327),s=r(332),l=r(333),c=r(312),u=r(319),d=r(317),f=r(334),p=r(315),h=r(320);const m=0,g=1;let y=!1;function v(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:o,parent_span_id:i,status:a,origin:s,links:l}=x(e);return{parent_span_id:i,span_id:t,trace_id:r,data:n,op:o,status:a,origin:s,links:l}}function b(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),o=n?t:x(e).parent_span_id,i=(0,l.getCapturedScopesOnSpan)(e).scope;return{parent_span_id:o,span_id:n?i?.getPropagationContext().propagationSpanId||(0,u.generateSpanId)():t,trace_id:r}}function _(e){const{traceId:t,spanId:r}=e.spanContext(),n=T(e);return(0,f.generateSentryTraceHeader)(t,r,n)}function w(e){const{traceId:t,spanId:r}=e.spanContext(),n=T(e);return(0,f.generateTraceparentHeader)(t,r,n)}function S(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:o})=>({span_id:e,trace_id:t,sampled:r===g,attributes:o,...n})):void 0}function E(e){return"number"==typeof e?k(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?k(e.getTime()):(0,d.timestampInSeconds)()}function k(e){return e>9999999999?e/1e3:e}function x(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:o,name:i,endTime:s,status:l,links:c}=e;return{span_id:t,trace_id:r,data:n,description:i,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:E(o),timestamp:E(s)||void 0,status:O(l),op:n[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:S(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function T(e){const{traceFlags:t}=e.spanContext();return t===g}function O(e){if(e&&e.code!==s.SPAN_STATUS_UNSET)return e.code===s.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const C="_sentryChildSpans",j="_sentryRootSpan";function P(e,t){const r=e[j]||e;(0,c.addNonEnumerableProperty)(t,j,r),e[C]?e[C].add(t):(0,c.addNonEnumerableProperty)(e,C,new Set([t]))}function I(e,t){e[C]&&e[C].delete(t)}function R(e){const t=new Set;return function e(r){if(!t.has(r)&&T(r)){t.add(r);const n=r[C]?Array.from(r[C]):[];for(const t of n)e(t)}}(e),Array.from(t)}function A(e){return e[j]||e}function M(){const e=(0,o.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,h._getSpanForScope)((0,i.getCurrentScope)())}function D(){y||((0,p.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y=!0)}function N(e,t){e.updateName(t),e.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPAN_STATUS_ERROR:()=>i,SPAN_STATUS_OK:()=>o,SPAN_STATUS_UNSET:()=>n,getSpanStatusFromHttpCode:()=>a,setHttpStatus:()=>s});const n=0,o=1,i=2;function a(e){if(e<400&&e>=100)return{code:o};if(e>=400&&e<500)switch(e){case 401:return{code:i,message:"unauthenticated"};case 403:return{code:i,message:"permission_denied"};case 404:return{code:i,message:"not_found"};case 409:return{code:i,message:"already_exists"};case 413:return{code:i,message:"failed_precondition"};case 429:return{code:i,message:"resource_exhausted"};case 499:return{code:i,message:"cancelled"};default:return{code:i,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:i,message:"unimplemented"};case 503:return{code:i,message:"unavailable"};case 504:return{code:i,message:"deadline_exceeded"};default:return{code:i,message:"internal_error"}}return{code:i,message:"unknown_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);const r=a(t);"unknown_error"!==r.message&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCapturedScopesOnSpan:()=>c,setCapturedScopesOnSpan:()=>l});var n=r(312),o=r(305);const i="_sentryScope",a="_sentryIsolationScope";function s(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}function l(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,a,function(e){try{const t=o.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),(0,n.addNonEnumerableProperty)(e,i,t))}function c(e){const t=e;return{scope:t[i],isolationScope:s(t[a])}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>l,extractTraceparentData:()=>c,generateSentryTraceHeader:()=>d,generateTraceparentHeader:()=>f,propagationContextFromHeaders:()=>u,shouldContinueTrace:()=>p});var n=r(315),o=r(328),i=r(329),a=r(335),s=r(319);const l=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c(e){if(!e)return;const t=e.match(l);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function u(e,t){const r=c(e),n=(0,o.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,s.generateTraceId)(),sampleRand:Math.random()};const i=function(e,t){const r=(0,a.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const n=(0,a.parseSampleRate)(t?.sample_rate);return n&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*n:n+Math.random()*(1-n):Math.random()}(r,n);n&&(n.sample_rand=i.toString());const{traceId:l,parentSpanId:u,parentSampled:d}=r;return{traceId:l,parentSpanId:u,sampled:d,dsc:n||{},sampleRand:i}}function d(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function f(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){return`00-${e}-${t}-${r?"01":"00"}`}function p(e,t){const r=(0,i.extractOrgIdFromClient)(e);if(t&&r&&t!==r)return n.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${r})`),!1;return!(e.getOptions().strictTraceContinuation||!1)||!(t&&!r||!t&&r)||(n.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${r})`),!1)}},(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}r.r(t),r.d(t,{parseSampleRate:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>c,getFilenameToDebugIdMap:()=>l});var n=r(305);let o,i,a,s;function l(e){const t=n.GLOBAL_OBJ._sentryDebugIds,r=n.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};const l=t?Object.keys(t):[],c=r?Object.keys(r):[];if(s&&l.length===i&&c.length===a)return s;i=l.length,a=c.length,s={},o||(o={});const u=(t,r)=>{for(const n of t){const t=r[n],i=o?.[n];if(i&&s&&t)s[i[0]]=t,o&&(o[n]=[i[0],t]);else if(t){const r=e(n);for(let e=r.length-1;e>=0;e--){const i=r[e],a=i?.filename;if(a&&s&&o){s[a]=t,o[n]=[a,t];break}}}}};return t&&u(l,t),r&&u(c,r),s}function c(e,t){const r=l(e);if(!r)return[];const n=[];for(const e of t)e&&r[e]&&n.push({type:"sourcemap",code_file:e,debug_id:r[e]});return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>a,normalizeToSize:()=>s,normalizeUrlToBase:()=>c});var n=r(314),o=r(312),i=r(338);function a(e,t=100,r=1/0){try{return l("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function s(e,t=3,r=102400){const n=a(e,t);return o=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?s(e,t-1,r):n;var o}function l(e,t,r=1/0,a=1/0,s=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[c,u]=s;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.isVueViewModel)(t))return"[VueViewModel]";if((0,n.isSyntheticEvent)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,i.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===f)return d.replace("object ","");if(c(t))return"[Circular ~]";const p=t;if(p&&"function"==typeof p.toJSON)try{return l("",p.toJSON(),f-1,a,s)}catch{}const h=Array.isArray(t)?[]:{};let m=0;const g=(0,o.convertToPlainObject)(t);for(const e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=a){h[e]="[MaxProperties ~]";break}const t=g[e];h[e]=l(e,t,f-1,a,s),m++}return u(t),h}function c(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>o,createStackParser:()=>s,getFramesFromEvent:()=>p,getFunctionName:()=>f,stackParserFromStackParserOptions:()=>l,stripSentryFramesAndReverse:()=>c});const n=50,o="?",i=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,o=0)=>{const a=[],s=e.split("\n");for(let e=r;e<s.length;e++){let r=s[e];r.length>1024&&(r=r.slice(0,1024));const l=i.test(r)?r.replace(i,"$1"):r;if(!l.match(/\S*Error: /)){for(const e of t){const t=e(l);if(t){a.push(t);break}}if(a.length>=n+o)break}}return c(a.slice(o))}}function l(e){return Array.isArray(e)?s(...e):e}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),a.test(u(t).function||"")&&(t.pop(),a.test(u(t).function||"")&&t.pop()),t.slice(0,n).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||o}))}function u(e){return e[e.length-1]||{}}const d="<anonymous>";function f(e){try{return e&&"function"==typeof e&&e.name||d}catch{return d}}function p(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}},,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useReactiveVar:()=>i});var n=r(348),o=r(349);function i(e){return(0,o.useSyncExternalStore)(n.useCallback(function(t){return e.onNextChange(function r(){t(),e.onNextChange(r)})},[e]),e,e)}},(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(296))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{useSyncExternalStore:()=>a});r(350);var o=r(348),i=r(358),a=(n||(n=r.t(o,2))).useSyncExternalStore||function(e,t,r){var n=t();var a=o.useState({inst:{value:n,getSnapshot:t}}),l=a[0].inst,c=a[1];return i.canUseLayoutEffect?o.useLayoutEffect(function(){Object.assign(l,{value:n,getSnapshot:t}),s(l)&&c({inst:l})},[e,n,t]):Object.assign(l,{value:n,getSnapshot:t}),o.useEffect(function(){return s(l)&&c({inst:l}),e(function(){s(l)&&c({inst:l})})},[e]),n};function s(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEV:()=>a,InvariantError:()=>n.InvariantError,__DEV__:()=>a,global:()=>i.default,invariant:()=>n.invariant,maybe:()=>o.maybe,newInvariantError:()=>n.newInvariantError});var n=r(351),o=r(355),i=r(354),a=!1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloErrorMessageHandler:()=>u,InvariantError:()=>n.InvariantError,invariant:()=>l,newInvariantError:()=>c});var n=r(352),o=r(353),i=r(354),a=r(356);function s(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var o=t;(t=f(o))||(t=p(o,r),r=[])}e.apply(void 0,[t].concat(r))}}var l=Object.assign(function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];e||(0,n.invariant)(e,f(t,r)||p(t,r))},{debug:s(n.invariant.debug),log:s(n.invariant.log),warn:s(n.invariant.warn),error:s(n.invariant.error)});function c(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new n.InvariantError(f(e,t)||p(e,t))}var u=Symbol.for("ApolloErrorMessageHandler_"+o.version);function d(e){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function f(e,t){if(void 0===t&&(t=[]),e)return i.default[u]&&i.default[u](e,t.map(d))}function p(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:o.version,message:e,args:t.map(d)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InvariantError:()=>s,default:()=>p,invariant:()=>l,setVerbosity:()=>f});var n=r(104),o="Invariant Violation",i=Object.setPrototypeOf,a=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,a(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],u=c.indexOf("log");function d(e){return function(){if(c.indexOf(e)>=u)return(console[e]||console.log).apply(console,arguments)}}function f(e){var t=c[u];return u=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));const p=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{version:()=>n});var n="3.13.9"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(355);const o=(0,n.maybe)(function(){return globalThis})||(0,n.maybe)(function(){return window})||(0,n.maybe)(function(){return self})||(0,n.maybe)(function(){return global})||(0,n.maybe)(function(){return n.maybe.constructor("return this")()})},(e,t,r)=>{"use strict";function n(e){try{return e()}catch(e){}}r.r(t),r.d(t,{maybe:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{stringifyForDisplay:()=>o});var n=r(357);function o(e,t){void 0===t&&(t=0);var r=(0,n.makeUniqueId)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeUniqueId:()=>o});var n=new Map;function o(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canUseAsyncIteratorSymbol:()=>l,canUseDOM:()=>c,canUseLayoutEffect:()=>d,canUseSymbol:()=>s,canUseWeakMap:()=>i,canUseWeakSet:()=>a});var n=r(350),o="ReactNative"==(0,n.maybe)(function(){return navigator.product}),i="function"==typeof WeakMap&&!(o&&!global.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,l=s&&Symbol.asyncIterator,c="function"==typeof(0,n.maybe)(function(){return window.document.createElement}),u=(0,n.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,d=(c||o)&&!u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSlot:()=>o,forgetCache:()=>s,makeVar:()=>c,recallCache:()=>l});var n=r(360),o=new n.Slot,i=new WeakMap;function a(e){var t=i.get(e);return t||i.set(e,t={vars:new Set,dep:(0,n.dep)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var l=Array.from(r);r.clear(),l.forEach(function(t){return t(e)})}}else{var c=o.getValue();c&&(i(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{KeyTrie:()=>n.Trie,Slot:()=>a.Slot,asyncFromGen:()=>a.asyncFromGen,bindContext:()=>a.bindContext,defaultMakeCacheKey:()=>c,dep:()=>s.dep,noContext:()=>a.noContext,nonReactive:()=>a.nonReactive,setTimeout:()=>a.setTimeout,wrap:()=>d});var n=r(361),o=r(362),i=r(363),a=r(364),s=r(368);let l;function c(...e){return(l||(l=new n.Trie("function"==typeof WeakMap))).lookupArray(e)}const u=new Set;function d(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=c,normalizeResult:s,subscribe:l,cache:d=o.StrongCache}=Object.create(null)){const f="function"==typeof d?new d(t,e=>e.dispose()):d,p=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=f.get(t);o||(f.set(t,o=new i.Entry(e)),o.normalizeResult=s,o.subscribe=l,o.forget=()=>f.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return f.set(t,o),u.add(f),a.parentEntrySlot.hasValue()||(u.forEach(e=>e.clean()),u.clear()),c};function h(e){const t=e&&f.get(e);t&&t.setDirty()}function m(e){const t=e&&f.get(e);if(t)return t.peek()}function g(e){return!!e&&f.delete(e)}return Object.defineProperty(p,"size",{get:()=>f.size,configurable:!1,enumerable:!1}),Object.freeze(p.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:s,subscribe:l,cache:f}),p.dirtyKey=h,p.dirty=function(){h(n.apply(null,arguments))},p.peekKey=m,p.peek=function(){return m(n.apply(null,arguments))},p.forgetKey=g,p.forget=function(){return g(n.apply(null,arguments))},p.makeCacheKey=n,p.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(p)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Trie:()=>s});const n=()=>Object.create(null),{forEach:o,slice:i}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return o.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(i.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),o=n&&n.get(r);o&&(t=o.removeArray(i.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{StrongCache:()=>o});class o{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Entry:()=>u});var n=r(364),o=r(367);const i=[];function a(e,t){if(!e)throw new Error(t||"assertion failure")}function s(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function c(e){return e.slice(0)}class u{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++u.count}peek(){if(1===this.value.length&&!p(this))return d(this),this.value[0]}recompute(e){return a(!this.recomputing,"already recomputing"),d(this),p(this)?function(e,t){_(e),n.parentEntrySlot.withValue(e,f,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{(0,o.maybeUnsubscribe)(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,p(e))return;m(e)}(e);return l(e.value)}(this,e):l(this.value)}setDirty(){this.dirty||(this.dirty=!0,h(this),(0,o.maybeUnsubscribe)(this))}dispose(){this.setDirty(),_(this),g(this,(e,t)=>{e.setDirty(),w(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=i.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&((0,o.arrayFromSet)(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),i.push(this.deps),this.deps=null)}}function d(e){const t=n.parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),p(e)?y(t,e):v(t,e),t}function f(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=c(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!s(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function p(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){g(e,y)}function m(e){g(e,v)}function g(e,t){const r=e.parents.size;if(r){const n=(0,o.arrayFromSet)(e.parents);for(let o=0;o<r;++o)t(n[o],e)}}function y(e,t){a(e.childValues.has(t)),a(p(t));const r=!p(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=i.pop()||new Set;e.dirtyChildren.add(t),r&&h(e)}function v(e,t){a(e.childValues.has(t)),a(!p(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,c(t.value)):s(r,t.value)||e.setDirty(),b(e,t),p(e)||m(e)}function b(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(i.length<100&&i.push(r),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{w(e,r)}),e.forgetDeps(),a(null===e.dirtyChildren)}function w(e,t){t.parents.delete(e),e.childValues.delete(t),b(e,t)}u.count=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>n.asyncFromGen,bindContext:()=>n.bind,noContext:()=>n.noContext,nonReactive:()=>i,parentEntrySlot:()=>o,setTimeout:()=>n.setTimeout});var n=r(365);const o=new n.Slot;function i(e){return o.withValue(void 0,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>s,bind:()=>o,noContext:()=>i,setTimeout:()=>a,wrapYieldingFiberMethods:()=>c});var n=r(366);const{bind:o,noContext:i}=n.Slot;function a(e,t){return setTimeout(o(e),t)}function s(e){return function(){const t=e.apply(this,arguments),r=o(t.next),n=o(t.throw);return new Promise((e,o)=>{function i(r,n){try{var i=r.call(t,n)}catch(e){return o(e)}const l=i.done?e:a;var c;(c=i.value)&&"function"==typeof c.then?i.value.then(l,i.done?o:s):l(i.value)}const a=e=>i(r,e),s=e=>i(n,e);a()})}}const l=[];function c(e){if(l.indexOf(e)<0){const t=(e,t)=>{const r=e[t];e[t]=function(){return i(r,arguments,this)}};t(e,"yield"),t(e.prototype,"run"),t(e.prototype,"throwInto"),l.push(e)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>c});let n=null;const o={};let i=1;function a(e){try{return e()}catch(e){}}const s="@wry/context:Slot",l=a(()=>globalThis)||a(()=>global)||Object.create(null),c=l[s]||Array[s]||function(e){try{Object.defineProperty(l,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===o)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=o),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,o){const i={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:i};try{return t.apply(o,r)}finally{n=a}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const o=n;try{return n=null,e.apply(r,t)}finally{n=o}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arrayFromSet:()=>o,hasOwnProperty:()=>n,maybeUnsubscribe:()=>i});const{hasOwnProperty:n}=Object.prototype,o=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function i(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dep:()=>a});var n=r(364),o=r(367);const i={setDirty:!0,dispose:!0,forget:!0};function a(e){const t=new Map,r=e&&e.subscribe;function a(e){const i=n.parentEntrySlot.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&((0,o.maybeUnsubscribe)(n),n.unsubscribe=r(e))}}return a.dirty=function(e,r){const n=t.get(e);if(n){const a=r&&o.hasOwnProperty.call(i,r)?r:"setDirty";(0,o.arrayFromSet)(n).forEach(e=>e[a]()),t.delete(e),(0,o.maybeUnsubscribe)(n)}},a}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.r(t),r.d(t,{Observable:()=>k});var s=function(){return"function"==typeof Symbol},l=function(e){return s()&&Boolean(Symbol[e])},c=function(e){return l(e)?Symbol[e]:"@@"+e};s()&&!l("observable")&&(Symbol.observable=Symbol("observable"));var u=c("iterator"),d=c("observable"),f=c("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function m(e){return e instanceof k}function g(e){g.log?g.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){g(e)}})}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(e){g(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,r){e._state="running";var n=e._observer;try{var o=p(n,t);switch(t){case"next":o&&o.call(n,r);break;case"error":if(b(e),!o)throw r;o.call(n,r);break;case"complete":b(e),o&&o.call(n)}}catch(e){g(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function w(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(_(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void _(e,t,r);e._queue.push({type:t,value:r})}}var S=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new E(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(b(this),v(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){w(this._subscription,"next",e)},t.error=function(e){w(this._subscription,"error",e)},t.complete=function(){w(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new S(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,o=!1,i=arguments[1];return new r(function(r){return t.subscribe({next:function(t){var a=!o;if(o=!0,!a||n)try{i=e(i,t)}catch(e){return r.error(e)}else i=t},error:function(e){r.error(e)},complete:function(){if(!o&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(i),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=h(this);return new o(function(t){var n,i=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===r.length?(n=void 0,t.complete()):e(o.from(r[i++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r(function(n){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var i=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){n.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&n.complete()}return function(){o.forEach(function(e){return e.unsubscribe()}),i.unsubscribe()}})},t[d]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var o=p(t,d);if(o){var i=o.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return m(i)&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(l("iterator")&&(o=p(t,u)))return new r(function(e){y(function(){if(!e.closed){for(var r,i=n(o.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){y(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},a(e,null,[{key:f,get:function(){return this}}]),e}();s()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:d,hostReportError:g},configurable:!0})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloClient:()=>f,mergeOptions:()=>d.mergeOptions});var n=r(104),o=r(350),i=r(429),a=r(430),s=r(353),l=r(447),c=r(473),u=r(493),d=r(495),f=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,o.newInvariantError)(16);var i=e.uri,d=e.credentials,f=e.headers,p=e.cache,h=e.documentTransform,m=e.ssrMode,g=void 0!==m&&m,y=e.ssrForceFetchDelay,v=void 0===y?0:y,b=e.connectToDevTools,_=e.queryDeduplication,w=void 0===_||_,S=e.defaultOptions,E=e.defaultContext,k=e.assumeImmutableResults,x=void 0===k?p.assumeImmutableResults:k,T=e.resolvers,O=e.typeDefs,C=e.fragmentMatcher,j=e.name,P=e.version,I=e.devtools,R=e.dataMasking,A=e.link;A||(A=i?new l.HttpLink({uri:i,credentials:d,headers:f}):a.ApolloLink.empty()),this.link=A,this.cache=p,this.disableNetworkFetches=g||v>0,this.queryDeduplication=w,this.defaultOptions=S||Object.create(null),this.typeDefs=O,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},I),{enabled:null!==(t=null==I?void 0:I.enabled)&&void 0!==t?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),v&&setTimeout(function(){return r.disableNetworkFetches=!1},v),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.version,this.localState=new u.LocalState({cache:p,client:this,resolvers:T,fragmentMatcher:C}),this.queryManager=new c.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:h,queryDeduplication:w,ssrMode:g,dataMasking:!!R,clientAwareness:{name:j,version:P},localState:this.localState,assumeImmutableResults:x,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,d.mergeOptions)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,d.mergeOptions)(this.defaultOptions.query,e)),(0,o.invariant)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,d.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(o){return(0,n.__assign)((0,n.__assign)({},o),{data:t.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.__assign)((0,n.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,i.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{execute:()=>n});var n=r(430).ApolloLink.execute},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloLink:()=>d});var n=r(350),o=r(427),i=r(431),a=r(432),s=r(433);function l(e,t){return t?t(e):o.Observable.of()}function c(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,a=c(r),s=c(n||new e(l));return i=u(a)&&u(s)?new e(function(e){return t(e)?a.request(e)||o.Observable.of():s.request(e)||o.Observable.of()}):new e(function(e,r){return t(e)?a.request(e,r)||o.Observable.of():s.request(e,r)||o.Observable.of()}),Object.assign(i,{left:a,right:s})},e.execute=function(e,t){return e.request((0,a.createOperation)(t.context,(0,s.transformOperation)((0,i.validateOperation)(t))))||o.Observable.of()},e.concat=function(t,r){var n=c(t);if(u(n))return n;var i,a=c(r);return i=u(a)?new e(function(e){return n.request(e,function(e){return a.request(e)||o.Observable.of()})||o.Observable.of()}):new e(function(e,t){return n.request(e,function(e){return a.request(e,t)||o.Observable.of()})||o.Observable.of()}),Object.assign(i,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(l)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.newInvariantError)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{validateOperation:()=>o});var n=r(350);function o(e){for(var t=["query","operationName","variables","extensions","context"],r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];if(t.indexOf(i)<0)throw(0,n.newInvariantError)(46,i)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOperation:()=>o});var n=r(104);function o(e,t){var r=(0,n.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,n.__assign)((0,n.__assign)({},r),e(r)):(0,n.__assign)((0,n.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,n.__assign)({},r)}}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{transformOperation:()=>o});var n=r(434);function o(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,n.getOperationName)(t.query)||void 0:""),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkDocument:()=>i,getDefaultValues:()=>f,getFragmentDefinition:()=>u,getFragmentDefinitions:()=>l,getMainDefinition:()=>d,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>c});var n=r(350),o=r(435);function i(e){(0,n.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.newInvariantError)(89,e.kind);return e});return(0,n.invariant)(t.length<=1,90,t.length),e}function a(e){return i(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.invariant)(t&&"query"===t.operation,91),t}function u(e){(0,n.invariant)("Document"===e.kind,92),(0,n.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,94),t}function d(e){var t;i(e);for(var r=0,o=e.definitions;r<o.length;r++){var a=o[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n.newInvariantError)(95)}function f(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,o.valueToObjectRepresentation)(t,e.variable.name,e.defaultValue)}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{argumentsObjectFromField:()=>m,getStoreKeyName:()=>h,getTypenameFromResult:()=>y,isDocumentNode:()=>c,isField:()=>v,isInlineFragment:()=>b,isReference:()=>l,makeReference:()=>s,resultKeyNameFromField:()=>g,storeKeyNameFromField:()=>d,valueToObjectRepresentation:()=>u});var n=r(350),o=r(436),i=r(437),a=r(443);function s(e){return{__ref:String(e)}}function l(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,o.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,r,o){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return u(i,e.name,e.value,o)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var a=(o||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,o),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n.newInvariantError)(96,t.value,r.kind);e[t.value]=null}}function d(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var o=n.name,i=n.value;return u(r[e.name.value],o,i,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,o=e.value;return u(n,r,o,t)})),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],p=a.canonicalStringify,h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o={};return n.forEach(function(e){o[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(o),")")}return r.connection.key}var i=e;if(t){var a=p(t);i+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+="@".concat(e,"(").concat(p(r[e]),")"):i+="@".concat(e))}),i},{setStringify:function(e){var t=p;return p=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,o=e.value;return u(r,n,o,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e,t,r){for(var n,o=0,a=t.selections;o<a.length;o++){if(v(c=a[o])){if("__typename"===c.name.value)return e[g(c)]}else n?n.push(c):n=[c]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,l=n;s<l.length;s++){var c=l[s],u=y(e,(0,i.getFragmentFromSelection)(c,r).selectionSet,r);if("string"==typeof u)return u}}function v(e){return"Field"===e.kind}function b(e){return"InlineFragment"===e.kind}},(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}function o(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}r.r(t),r.d(t,{isNonNullObject:()=>n,isPlainObject:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createFragmentMap:()=>s,getFragmentFromSelection:()=>l,getFragmentQueryDocument:()=>a,isFullyUnmaskedOperation:()=>c});var n=r(104),o=r(350),i=r(438);function a(e,t){var r=t,i=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,o.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,o.invariant)(1===i.length,86,i.length),r=i[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function l(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,o.invariant)(n,87,r),n||null;default:return null}}function c(e){var t=!0;return(0,i.visit)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return i.BREAK}}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BREAK:()=>s,getEnterLeaveForKind:()=>u,getVisitFn:()=>d,visit:()=>l,visitInParallel:()=>c});var n=r(439),o=r(440),i=r(441),a=r(442);const s=Object.freeze({});function l(e,t,r=i.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,u(t,e));let c,d,f,p=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:v[v.length-1],y=f,f=b.pop(),a)if(p){y=y.slice();let e=0;for(const[t,r]of g){const n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else{y={...y};for(const[e,t]of g)y[e]=t}m=c.index,h=c.keys,g=c.edits,p=c.inArray,c=c.prev}else if(f){if(d=p?m:h[m],y=f[d],null==y)continue;v.push(d)}let u;if(!Array.isArray(y)){var _,w;(0,i.isNode)(y)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,o.inspect)(y)}.`);const r=e?null===(_=l.get(y.kind))||void 0===_?void 0:_.leave:null===(w=l.get(y.kind))||void 0===w?void 0:w.enter;if(u=null==r?void 0:r.call(t,y,d,f,v,b),u===s)break;if(!1===u){if(!e){v.pop();continue}}else if(void 0!==u&&(g.push([d,u]),!e)){if(!(0,i.isNode)(u)){v.pop();continue}y=u}}var S;if(void 0===u&&a&&g.push([d,y]),e)v.pop();else c={inArray:p,index:m,keys:h,edits:g,prev:c},p=Array.isArray(y),h=p?y:null!==(S=r[y.kind])&&void 0!==S?S:[],m=-1,g=[],f&&b.push(f),f=y}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:e}function c(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(a.Kind)){let o=!1;const i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:r,leave:s}=u(e[t],n);o||(o=null!=r||null!=s),i[t]=r,a[t]=s}if(!o)continue;const l={enter(...r){const n=r[0];for(let a=0;a<e.length;a++)if(null===t[a]){var o;const l=null===(o=i[a])||void 0===o?void 0:o.apply(e[a],r);if(!1===l)t[a]=n;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...r){const n=r[0];for(let i=0;i<e.length;i++)if(null===t[i]){var o;const n=null===(o=a[i])||void 0===o?void 0:o.apply(e[i],r);if(n===s)t[i]=s;else if(void 0!==n&&!1!==n)return n}else t[i]===n&&(t[i]=null)}};r[n]=l}return r}function u(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function d(e,t,r){const{enter:n,leave:o}=u(e,t);return r?o:n}},(e,t,r)=>{"use strict";function n(e,t){if(!Boolean(e))throw new Error(t)}r.r(t),r.d(t,{devAssert:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{inspect:()=>i});const n=10,o=2;function i(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>o)return"[Array]";const r=Math.min(n,e.length),i=e.length-r,s=[];for(let n=0;n<r;++n)s.push(a(e[n],t));1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`);return"["+s.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>o)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map(([e,r])=>e+": "+a(r,t));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Location:()=>n,OperationTypeNode:()=>l,QueryDocumentKeys:()=>i,Token:()=>o,isNode:()=>s});class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(e,t,r,n,o,i){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(i));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{Kind:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canonicalStringify:()=>a});var n,o=r(444),i=r(446),a=Object.assign(function(e){return JSON.stringify(e,s)},{reset:function(){n=new o.AutoCleanedStrongCache(i.cacheSizes.canonicalStringify||1e3)}});function s(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var o=Object.keys(t);if(o.every(l))return t;var i=JSON.stringify(o),a=n.get(i);if(!a){o.sort();var s=JSON.stringify(o);a=n.get(s)||o,n.set(i,a),n.set(s,a)}var c=Object.create(r);return a.forEach(function(e){c[e]=t[e]}),c}}return t}function l(e,t,r){return 0===t||r[t-1]<=e}a.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>l,AutoCleanedWeakCache:()=>s});var n=r(362),o=r(445),i=new WeakSet;function a(e){e.size<=(e.max||-1)||i.has(e)||(i.add(e),setTimeout(function(){e.clean(),i.delete(e)},100))}var s=function(e,t){var r=new o.WeakCache(e,t);return r.set=function(e,t){var r=o.WeakCache.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){var r=new n.StrongCache(e,t);return r.set=function(e,t){var r=n.StrongCache.prototype.set.call(this,e,t);return a(this),r},r}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{WeakCache:()=>l});const o=n,i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="undefined"!=typeof WeakMap?WeakMap:Map,s="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class l{constructor(e=1/0,t=o){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSizes:()=>a});var n=r(104),o=r(350),i=Symbol.for("apollo.cacheSize"),a=(0,n.__assign)({},o.global[i])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpLink:()=>a});var n=r(104),o=r(430),i=r(448),a=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,i.createHttpLink)(t).request)||this;return r.options=t,r}return(0,n.__extends)(t,e),t}(o.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createHttpLink:()=>v});var n=r(104),o=r(350),i=r(430),a=r(427),s=r(449),l=r(450),c=r(451),u=r(452),d=r(463),f=r(469),p=r(470),h=r(471),m=r(434),g=r(472),y=(0,o.maybe)(function(){return fetch}),v=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,v=e.fetch,b=e.print,_=void 0===b?d.defaultPrinter:b,w=e.includeExtensions,S=e.preserveHeaderCase,E=e.useGETForQueries,k=e.includeUnusedVariables,x=void 0!==k&&k,T=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);var O={http:{includeExtensions:w,preserveHeaderCase:S},options:T.fetchOptions,credentials:T.credentials,headers:T.headers};return new i.ApolloLink(function(e){var t=(0,c.selectURI)(e,r),i=e.getContext(),b={};if(i.clientAwareness){var w=i.clientAwareness,S=w.name,k=w.version;S&&(b["apollographql-client-name"]=S),k&&(b["apollographql-client-version"]=k)}var T=(0,n.__assign)((0,n.__assign)({},b),i.headers),C={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:T};if((0,s.hasDirectives)(["client"],e.query)){var j=(0,g.removeClientSetsFromDocument)(e.query);if(!j)return(0,p.fromError)(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=j}var P,I=(0,d.selectHttpOptionsAndBodyInternal)(e,_,d.fallbackHttpConfig,O,C),R=I.options,A=I.body;A.variables&&!x&&(A.variables=(0,h.filterOperationVariables)(A.variables,e.query)),R.signal||"undefined"==typeof AbortController||(P=new AbortController,R.signal=P.signal);var M,D="OperationDefinition"===(M=(0,m.getMainDefinition)(e.query)).kind&&"subscription"===M.operation,N=(0,s.hasDirectives)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(R.method="GET"),N||D){R.headers=R.headers||{};var L="multipart/mixed;";D?L+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(L+="deferSpec=20220824,application/json"),R.headers.accept=L}if("GET"===R.method){var B=(0,f.rewriteURIForGET)(t,A),F=B.newURI,z=B.parseError;if(z)return(0,p.fromError)(z);t=F}else try{R.body=(0,l.serializeFetchParameter)(A,"Payload")}catch(z){return(0,p.fromError)(z)}return new a.Observable(function(r){var n=v||(0,o.maybe)(function(){return fetch})||y,i=r.next.bind(r);return n(t,R).then(function(t){var r;e.setContext({response:t});var n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,u.readMultipartBody)(t,i):(0,u.parseAndCheckHttpResponse)(e)(t).then(i)}).then(function(){P=void 0,r.complete()}).catch(function(e){P=void 0,(0,u.handleError)(e,r)}),function(){P&&P.abort()}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDirectiveNames:()=>a,getFragmentMaskMode:()=>f,getInclusionDirectives:()=>d,hasAllDirectives:()=>l,hasAnyDirectives:()=>s,hasClientExports:()=>u,hasDirectives:()=>c,shouldInclude:()=>i});var n=r(350),o=r(438);function i(e,t){var r=e.directives;return!r||!r.length||d(r).every(function(e){var r=e.directive,o=e.ifArgument,i=!1;return"Variable"===o.value.kind?(i=t&&t[o.value.name.value],(0,n.invariant)(void 0!==i,78,r.name.value)):i=o.value.value,"skip"===r.name.value?!i:i})}function a(e){var t=[];return(0,o.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}var s=function(e,t){return c(e,t,!1)},l=function(e,t){return c(e,t,!0)};function c(e,t,r){var n=new Set(e),i=n.size;return(0,o.visit)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return o.BREAK}}),r?!n.size:n.size<i}function u(e){return e&&c(["client","export"],e,!0)}function d(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(r=e.name.value)||"include"===r){var r,o=e.arguments,i=e.name.value;(0,n.invariant)(o&&1===o.length,79,i);var a=o[0];(0,n.invariant)(a.name&&"if"===a.name.value,80,i);var s=a.value;(0,n.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,i),t.push({directive:e,ifArgument:a})}}),t}function f(e){var t,r,n=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var o=null===(r=n.arguments)||void 0===r?void 0:r.find(function(e){return"mode"===e.name.value});return o&&"value"in o.value&&"migrate"===o.value.value?"migrate":"unmask"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{serializeFetchParameter:()=>o});var n=r(350),o=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var o=(0,n.newInvariantError)(42,t,e.message);throw o.parseError=e,o}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{selectURI:()=>n});var n=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleError:()=>f,parseAndCheckHttpResponse:()=>p,parseHeaders:()=>u,parseJsonBody:()=>d,readMultipartBody:()=>c});var n=r(104),o=r(453),i=r(458),a=r(459),s=r(460),l=Object.prototype.hasOwnProperty;function c(e,t){return(0,n.__awaiter)(this,void 0,void 0,function(){var r,i,l,c,f,p,h,m,g,y,v,b,_,w,S,E,k,x,T,O,C,j,P,I;return(0,n.__generator)(this,function(R){switch(R.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(I=e.headers)||void 0===I?void 0:I.get("content-type"),l="boundary=",c=(null==i?void 0:i.includes(l))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(l))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="\r\n--".concat(c),p="",h=(0,o.responseIterator)(e),m=!0,R.label=1;case 1:return m?[4,h.next()]:[3,3];case 2:for(g=R.sent(),y=g.value,v=g.done,b="string"==typeof y?y:r.decode(y),_=p.length-f.length+1,m=!v,w=(p+=b).indexOf(f,_);w>-1;){if(S=void 0,j=[p.slice(0,w),p.slice(w+f.length)],p=j[1],E=(S=j[0]).indexOf("\r\n\r\n"),k=u(S.slice(0,E)),(x=k["content-type"])&&-1===x.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(T=S.slice(E))if(O=d(e,T),Object.keys(O).length>1||"data"in O||"incremental"in O||"errors"in O||"payload"in O)if((0,s.isApolloPayloadResult)(O)){if(C={},"payload"in O){if(1===Object.keys(O).length&&null===O.payload)return[2];C=(0,n.__assign)({},O.payload)}"errors"in O&&(C=(0,n.__assign)((0,n.__assign)({},C),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in C?C.extensions:null),(P={},P[a.PROTOCOL_ERRORS_SYMBOL]=O.errors,P))})),t(C)}else t(O);else if(1===Object.keys(O).length&&"hasNext"in O&&!O.hasNext)return[2];w=p.indexOf(f)}return[3,1];case 3:return[2]}})})}function u(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),o=e.slice(r+1).trim();t[n]=o}}),t}function d(e,t){if(e.status>=300){(0,i.throwServerError)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function f(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function p(e){return function(t){return t.text().then(function(e){return d(t,e)}).then(function(r){return Array.isArray(r)||l.call(r,"data")||l.call(r,"errors")||(0,i.throwServerError)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{responseIterator:()=>l});var n=r(358),o=r(454),i=r(455),a=r(456),s=r(457);function l(e){var t=e;if(e.body&&(t=e.body),function(e){return!(!n.canUseAsyncIteratorSymbol||!e[Symbol.asyncIterator])}(t))return(0,o.default)(t);if(function(e){return!!e.getReader}(t))return(0,s.default)(t.getReader());if(function(e){return!!e.stream}(t))return(0,s.default)(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return(0,a.default)(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return(0,i.default)(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}},(e,t,r)=>{"use strict";function n(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(358);function o(e){var t=null,r=null,o=!1,i=[],a=[];function s(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function l(e){r=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){o=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",l),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",l),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):o?e({value:void 0,done:!0}):void a.push([e,t])})}};return n.canUseAsyncIteratorSymbol&&(u[Symbol.asyncIterator]=function(){return this}),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(358);function o(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,r){e.then(function(e){t({value:e,done:!1})}).catch(r)}))}};return n.canUseAsyncIteratorSymbol&&(r[Symbol.asyncIterator]=function(){return this}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(358);function o(e){var t={next:function(){return e.read()}};return n.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{throwServerError:()=>n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloError:()=>l,PROTOCOL_ERRORS_SYMBOL:()=>i,graphQLResultHasProtocolErrors:()=>a,isApolloError:()=>s});var n=r(104),o=(r(350),r(436)),i=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[i])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){function t(r){var i,a,s=r.graphQLErrors,l=r.protocolErrors,c=r.clientErrors,u=r.networkError,d=r.errorMessage,f=r.extraInfo,p=e.call(this,d)||this;return p.name="ApolloError",p.graphQLErrors=s||[],p.protocolErrors=l||[],p.clientErrors=c||[],p.networkError=u||null,p.message=d||(i=p,a=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],i.graphQLErrors,!0),i.clientErrors,!0),i.protocolErrors,!0),i.networkError&&a.push(i.networkError),a.map(function(e){return(0,o.isNonNullObject)(e)&&e.message||"Error message not found."}).join("\n")),p.extraInfo=f,p.cause=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([u],s||[],!0),l||[],!0),c||[],!0).find(function(e){return!!e})||null,p.__proto__=t.prototype,p}return(0,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isApolloPayloadResult:()=>c,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>l,mergeIncrementalData:()=>u});var n=r(436),o=r(461),i=r(462);function a(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function l(e){return a(e)||s(e)}function c(e){return(0,n.isNonNullObject)(e)&&"payload"in e}function u(e,t){var r=e,n=new i.DeepMerger;return a(t)&&(0,o.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,o=e.path,i=o.length-1;i>=0;--i){var a=o[i],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArray:()=>n,isNonEmptyArray:()=>o});var n=Array.isArray;function o(e){return Array.isArray(e)&&e.length>0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeepMerger:()=>c,mergeDeep:()=>a,mergeDeepArray:()=>s});var n=r(104),o=r(436),i=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,o=1;o<r;++o)t=n.merge(t,e[o]);return t}var l=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=l),this.reconciler=e,this.isObject=o.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,o.isNonNullObject)(t)&&(0,o.isNonNullObject)(e)?(Object.keys(t).forEach(function(o){if(i.call(e,o)){var s=e[o];if(t[o]!==s){var l=r.reconciler.apply(r,(0,n.__spreadArray)([e,t,o],a,!1));l!==s&&((e=r.shallowCopyForMerge(e))[o]=l)}}else(e=r.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,o.isNonNullObject)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultPrinter:()=>a,fallbackHttpConfig:()=>i,selectHttpOptionsAndBody:()=>s,selectHttpOptionsAndBodyInternal:()=>l});var n=r(104),o=r(464),i={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return r.unshift(t),l.apply(void 0,(0,n.__spreadArray)([e,a],r,!1))}function l(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a={},s={};r.forEach(function(e){a=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},a),e.options),{headers:(0,n.__assign)((0,n.__assign)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),s=(0,n.__assign)((0,n.__assign)({},s),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var o={};return Object.keys(n).forEach(function(e){o[n[e].originalName]=n[e].value}),o}(a.headers,s.preserveHeaderCase));var l=e.operationName,c=e.extensions,u=e.variables,d=e.query,f={operationName:l,variables:u};return s.includeExtensions&&(f.extensions=c),s.includeQuery&&(f.query=t(d,o.print)),{options:a,body:f}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>s});var n,o=r(465),i=r(444),a=r(446),s=Object.assign(function(e){var t=n.get(e);return t||(t=(0,o.print)(e),n.set(e,t)),t},{reset:function(){n=new i.AutoCleanedWeakCache(a.cacheSizes.print||2e3)}});s.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>a});var n=r(466),o=r(468),i=r(438);function a(e){return(0,i.visit)(e,s)}const s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=u("(",l(e.variableDefinitions,", "),")"),r=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+u(" = ",r)+u(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const i=u("",e,": ")+t;let a=i+u("(",l(r,", "),")");return a.length>80&&(a=i+u("(\n",d(l(r,"\n")),"\n)")),l([a,l(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+u(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",u("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${e}${u("(",l(r,", "),")")} on ${t} ${u("",l(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+u("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>u("",e,"\n")+l(["schema",l(t," "),c(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>u("",e,"\n")+l(["type",t,u("implements ",l(r," & ")),l(n," "),c(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>u("",e,"\n")+t+(f(r)?u("(\n",d(l(r,"\n")),"\n)"):u("(",l(r,", "),")"))+": "+n+u(" ",l(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>u("",e,"\n")+l([t+": "+r,u("= ",n),l(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>u("",e,"\n")+l(["interface",t,u("implements ",l(r," & ")),l(n," "),c(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>u("",e,"\n")+l(["union",t,l(r," "),u("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>u("",e,"\n")+l(["enum",t,l(r," "),c(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>u("",e,"\n")+l(["input",t,l(r," "),c(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>u("",e,"\n")+"directive @"+t+(f(r)?u("(\n",d(l(r,"\n")),"\n)"):u("(",l(r,", "),")"))+(n?" repeatable":"")+" on "+l(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,u("implements ",l(t," & ")),l(r," "),c(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,u("implements ",l(t," & ")),l(r," "),c(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),u("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),c(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),c(r)]," ")}};function l(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function c(e){return u("{\n",d(l(e,"\n")),"\n}")}function u(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function d(e){return u(" ",e.replace(/\n/g,"\n "))}function f(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dedentBlockStringLines:()=>o,isPrintableAsBlockString:()=>a,printBlockString:()=>s});var n=r(467);function o(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],l=i(s);l!==s.length&&(n=null!==(a=n)&&void 0!==a?a:t,o=t,0!==t&&l<r&&(r=l))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=n)&&void 0!==t?t:0,o+1)}function i(e){let t=0;for(;t<e.length&&(0,n.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,r=!1,n=!0,o=!1;for(let i=0;i<e.length;++i)switch(e.codePointAt(i)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!o)return!1;o=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!t&&(!n||!o)}function s(e,t){const r=e.replace(/"""/g,'\\"""'),o=r.split(/\r\n|[\n\r]/g),i=1===o.length,a=o.length>1&&o.slice(1).every(e=>0===e.length||(0,n.isWhiteSpace)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!i||e.length>70||u||a||s);let f="";const p=i&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=r,(d||u)&&(f+="\n"),'"""'+f+'"""'}},(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function o(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return i(e)||95===e}function s(e){return i(e)||o(e)||95===e}r.r(t),r.d(t,{isDigit:()=>o,isLetter:()=>i,isNameContinue:()=>s,isNameStart:()=>a,isWhiteSpace:()=>n})},(e,t,r)=>{"use strict";function n(e){return`"${e.replace(o,i)}"`}r.r(t),r.d(t,{printString:()=>n});const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{rewriteURIForGET:()=>o});var n=r(450);function o(e,t){var r=[],o=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&o("query",t.query),t.operationName&&o("operationName",t.operationName),t.variables){var i=void 0;try{i=(0,n.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}o("variables",i)}if(t.extensions){var a=void 0;try{a=(0,n.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}o("extensions",a)}var s="",l=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),l=e.substr(0,c));var u=-1===l.indexOf("?")?"?":"&";return{newURI:l+u+r.join("&")+s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromError:()=>o});var n=r(427);function o(e){return new n.Observable(function(t){t.error(e)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterOperationVariables:()=>i});var n=r(104),o=r(438);function i(e,t){var r=(0,n.__assign)({},e),i=new Set(Object.keys(e));return(0,o.visit)(t,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}),i.forEach(function(e){delete r[e]}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonReactiveToNamedFragments:()=>E,addTypenameToDocument:()=>g,buildQueryFromSelectionSet:()=>w,removeArgumentsFromDocument:()=>b,removeClientSetsFromDocument:()=>S,removeConnectionDirectiveFromDocument:()=>v,removeDirectivesFromDocument:()=>m,removeFragmentSpreadFromDocument:()=>_});var n=r(104),o=(r(350),r(442)),i=r(438),a=r(434),s=r(435),l=r(437),c=r(461),u={kind:o.Kind.FIELD,name:{kind:o.Kind.NAME,value:"__typename"}};function d(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===o.Kind.FRAGMENT_SPREAD&&d(t[e.name.value],t)})}function f(e){return d((0,a.getOperationDefinition)(e)||(0,a.getFragmentDefinition)(e),(0,l.createFragmentMap)((0,a.getFragmentDefinitions)(e)))?null:e}function p(e){var t=new Map,r=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach(function(t,r){r(e)&&(n=t)}),n}}function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function m(e,t){(0,a.checkDocument)(t);for(var r=h(""),s=h(""),l=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,c.isArray)(n)){if(n.kind===o.Kind.OPERATION_DEFINITION)return r(n.name&&n.name.value);if(n.kind===o.Kind.FRAGMENT_DEFINITION)return s(n.name.value)}return null},u=0,d=t.definitions.length-1;d>=0;--d)t.definitions[d].kind===o.Kind.OPERATION_DEFINITION&&++u;var m=p(e),g=function(e){return(0,c.isNonEmptyArray)(e)&&e.map(m).some(function(e){return e&&e.remove})},y=new Map,v=!1,b={enter:function(e){if(g(e.directives))return v=!0,null}},_=(0,i.visit)(t,{Field:b,InlineFragment:b,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,o){var i=l(o);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,o){if(g(e.directives))return v=!0,null;var i=l(o);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){y.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===y.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===o.Kind.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return v=!0,null}}});if(!v)return t;var w=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},S=new Set;_.definitions.forEach(function(e){e.kind===o.Kind.OPERATION_DEFINITION?w(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){S.add(e)}):e.kind!==o.Kind.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||S.add(e.name.value)}),S.forEach(function(e){w(s(e)).fragmentSpreads.forEach(function(e){S.add(e)})});var E={enter:function(e){if(t=e.name.value,!S.has(t)||s(t).removed)return null;var t}};return f((0,i.visit)(_,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.__assign)((0,n.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var g=Object.assign(function(e){return(0,i.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.Kind.OPERATION_DEFINITION){var i=e.selections;if(i)if(!i.some(function(e){return(0,s.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var a=r;if(!((0,s.isField)(a)&&a.directives&&a.directives.some(function(e){return"export"===e.name.value})))return(0,n.__assign)((0,n.__assign)({},e),{selections:(0,n.__spreadArray)((0,n.__spreadArray)([],i,!0),[u],!1)})}}}}})},{added:function(e){return e===u}}),y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function v(e){return m([y],(0,a.checkDocument)(e))}function b(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&t.value.kind===o.Kind.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return f((0,i.visit)(t,{OperationDefinition:{enter:function(t){return(0,n.__assign)((0,n.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function _(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return f((0,i.visit)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function w(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,i.visit)(e,{OperationDefinition:{enter:function(e){return(0,n.__assign)((0,n.__assign)({},e),{operation:"query"})}}})}function S(e){return(0,a.checkDocument)(e),m([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function E(e){return(0,a.checkDocument)(e),(0,i.visit)(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some(function(e){return"unmask"===e.name.value})))return(0,n.__assign)((0,n.__assign)({},e),{directives:(0,n.__spreadArray)((0,n.__spreadArray)([],e.directives||[],!0),[{kind:o.Kind.DIRECTIVE,name:{kind:o.Kind.NAME,value:"nonreactive"}}],!1)})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryManager:()=>R});var n=r(104),o=r(350),i=(r(474),r(429)),a=r(449),s=r(472),l=r(460),c=r(443),u=r(427),d=r(475),f=r(434),p=r(435),h=r(476),m=r(477),g=r(461),y=r(436),v=r(480),b=r(357),_=r(459),w=r(481),S=r(482),E=r(487),k=r(464),x=r(361),T=r(444),O=r(446),C=r(488),j=r(492),P=Object.prototype.hasOwnProperty,I=Object.create(null),R=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new T.AutoCleanedWeakCache(O.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new x.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new d.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,o.newInvariantError)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t,r,i,a,s,l,c,u=e.mutation,d=e.variables,f=e.optimisticResponse,p=e.updateQueries,m=e.refetchQueries,g=void 0===m?[]:m,y=e.awaitRefetchQueries,b=void 0!==y&&y,w=e.update,S=e.onQueryUpdated,E=e.fetchPolicy,k=void 0===E?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.fetchPolicy)||"network-only":E,x=e.errorPolicy,T=void 0===x?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":x,O=e.keepRootFields,C=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:return(0,o.invariant)(u,28),(0,o.invariant)("network-only"===k||"no-cache"===k,29),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),r?[4,this.localState.addExportedVariables(u,d,C)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:d,loading:!0,error:null}),a=f&&this.markMutationOptimistic(f,{mutationId:t,document:u,variables:d,fetchPolicy:k,errorPolicy:T,context:C,updateQueries:p,update:w,keepRootFields:O}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return(0,h.asyncMap)(s.getObservableFromLink(u,(0,n.__assign)((0,n.__assign)({},C),{optimisticResponse:a?f:void 0}),d,{},!1),function(e){if((0,v.graphQLResultHasError)(e)&&"none"===T)throw new _.ApolloError({graphQLErrors:(0,v.getGraphQLErrorsFromResult)(e)});i&&(i.loading=!1,i.error=null);var r=(0,n.__assign)({},e);return"function"==typeof g&&(g=g(r)),"ignore"===T&&(0,v.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:u,variables:d,fetchPolicy:k,errorPolicy:T,context:C,update:w,updateQueries:p,awaitRefetchQueries:b,refetchQueries:g,removeOptimistic:a?t:void 0,onQueryUpdated:S,keepRootFields:O})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:u,data:r.data,fetchPolicy:k,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof _.ApolloError?e:new _.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var o=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&(0,E.shouldWriteResult)(o,e.errorPolicy)){if((0,l.isExecutionPatchIncrementalResult)(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.isExecutionPatchIncrementalResult)(o)&&(0,g.isNonEmptyArray)(o.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=(0,l.mergeIncrementalData)(s.result,o)),void 0!==c&&(o.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&P.call(u,s)){var l=u[s],c=r.queries.get(n),d=c.document,p=c.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete&&m){var g=l(m,{mutationResult:o,queryName:d&&(0,f.getOperationName)(d)||void 0,queryVariables:p});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s=e.update,c=!(0,l.isExecutionPatchResult)(o)||(0,l.isExecutionPatchIncrementalResult)(o)&&!o.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(o=(0,n.__assign)((0,n.__assign)({},o),{data:u.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}c&&s(t,o,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:I}):e;return o!==I&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,a.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,a.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,s.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,s.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,f.getDefaultValues)((0,f.getOperationDefinition)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new E.QueryInfo(this),o=new w.ObservableQuery({queryManager:this,queryInfo:r,options:e});return o.lastQuery=t,w.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(o.queryId,r),r.init({document:t,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,o.invariant)(e.query,30),(0,o.invariant)("Document"===e.query.kind,31),(0,o.invariant)(!e.returnPartialData,32),(0,o.invariant)(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:i})).then(function(o){return o&&(0,n.__assign)((0,n.__assign)({},o),{data:r.maskOperation({document:i,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,o.newInvariantError)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=S.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,i=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),a.set(e,!1);else if((0,p.isDocumentNode)(e)){var r=(0,k.print)(t.transform(e));i.set(r,(0,f.getOperationName)(e)),a.set(r,!1)}else(0,y.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,i=t.document;if(o){if("all"===e)return void r.set(n,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&a.has(s)||i&&a.has((0,k.print)(i)))&&(r.set(n,o),s&&a.set(s,!0),i&&a.set((0,k.print)(i),!0))}}),s.size&&s.forEach(function(e){var i=(0,b.makeUniqueId)("legacyOneTimeQuery"),a=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),s=new w.ObservableQuery({queryManager:t,queryInfo:a,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,o.invariant)(s.queryId===i),a.setObservableQuery(s),r.set(i,s)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,o){var i=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&r.push(n.refetch()),(t.queries.get(o)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,o=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,s=e.context,l=void 0===s?{}:s,c=e.extensions,d=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,l,e,d).map(function(n){"no-cache"!==o&&((0,E.shouldWriteResult)(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=(0,v.graphQLResultHasError)(n),s=(0,_.graphQLResultHasProtocolErrors)(n);if(i||s){var l={};if(i&&(l.graphQLErrors=n.errors),s&&(l.protocolErrors=n.extensions[_.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new _.ApolloError(l)}return"ignore"===a&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,l).then(f);return new u.Observable(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,o,a){var s,l,d=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var p=this.getDocumentInfo(e),g=p.serverQuery,y=p.clientQuery;if(g){var v=this.inFlightLinkObservables,b=this.link,_={query:g,variables:r,operationName:(0,f.getOperationName)(g)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:o};if(t=_.context,a){var w=(0,k.print)(g),S=(0,c.canonicalStringify)(r),E=v.lookup(w,S);if(!(l=E.observable)){var x=new m.Concast([(0,i.execute)(b,_)]);l=E.observable=x,x.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?x.beforeNext(e):v.remove(w,S)})}}else l=new m.Concast([(0,i.execute)(b,_)])}else l=new m.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);return y&&(l=(0,h.asyncMap)(l,function(e){return d.localState.runResolvers({document:y,remoteResult:e,context:t,variables:r})})),l},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return(0,h.asyncMap)(this.getObservableFromLink(o,r.context,r.variables),function(i){var a=(0,v.getGraphQLErrorsFromResult)(i),s=a.length>0,l=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===l)throw e.markError(new _.ApolloError({graphQLErrors:a}));e.markResult(i,o,r,t),e.markReady()}var c={data:i.data,loading:!1,networkStatus:S.NetworkStatus.ready};return s&&"none"===l&&(c.data=void 0),s&&"ignore"!==l&&(c.errors=a,c.networkStatus=S.NetworkStatus.error),c},function(t){var r=(0,_.isApolloError)(t)?t:new _.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var o=this;void 0===r&&(r=S.NetworkStatus.loading),void 0===n&&(n=t.query);var i,a,s=this.getVariables(n,t.variables),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,u=void 0===c?l&&l.fetchPolicy||"cache-first":c,d=t.errorPolicy,f=void 0===d?l&&l.errorPolicy||"none":d,p=t.returnPartialData,h=void 0!==p&&p,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,b=void 0===v?{}:v,_=Object.assign({},t,{query:n,variables:s,fetchPolicy:u,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:y,context:b}),w=function(n){_.variables=n;var i=o.fetchQueryByPolicy(e,_,r);return"standby"!==_.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},E=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){E(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(_.query).hasClientExports)i=new m.Concast(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then(function(e){return e.sources})),a=!0;else{var k=w(_.variables);a=k.fromLink,i=new m.Concast(k.sources)}return i.promise.then(E,E),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,o=e.optimistic,i=void 0!==o&&o,a=e.removeOptimistic,s=void 0===a?i?(0,b.makeUniqueId)("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var u=new Map;return r&&this.cache.batch({update:r,optimistic:i&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof E.QueryInfo&&e.watcher.observableQuery;if(n){if(l){c.delete(n.queryId);var o=l(n,t,r);return!0===o&&(o=n.refetch()),!1!==o&&u.set(n,o),o}null!==l&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,o=e.oq,i=e.lastDiff,a=e.diff;l&&(a||(a=t.cache.diff(o.queryInfo.getDiffOptions())),n=l(o,a,i)),l&&!0!==n||(n=o.refetch()),!1!==n&&u.set(o,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,r=e.data;return this.dataMasking?(0,j.maskOperation)(r,t,this.cache):r},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,C.maskFragment)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var o=this,i=t.query,a=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||S.NetworkStatus.loading);var s=t.result;var l=function(e){return u.Observable.of((0,n.__assign)({data:e,loading:(0,S.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===c&&r===S.NetworkStatus.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},y="no-cache"===s?0:r===S.NetworkStatus.refetch&&"merge"!==l?1:2,v=function(){return o.getResultsFromLink(e,y,{query:i,variables:a,context:f,fetchPolicy:s,errorPolicy:c})},b=p&&"number"==typeof h&&h!==r&&(0,S.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":return(_=m()).complete?{fromLink:!1,sources:[g(_,e.markReady())]}:d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var _;return(_=m()).complete||d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[g(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[g(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new E.QueryInfo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,equal:()=>s});const{toString:n,hasOwnProperty:o}=Object.prototype,i=Function.prototype.toString,a=new Map;function s(e,t){try{return c(e,t)}finally{a.clear()}}const l=s;function c(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const r=u(e),n=u(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!o.call(t,r[e]))return!1;for(let n=0;n<i;++n){const o=r[n];if(!c(e[o],t[o]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(p(e,t))return!0;const n=e.entries(),o="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,i]=e.value;if(!t.has(r))return!1;if(o&&!c(i,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=i.call(e);return r===i.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,f)}}return!1}function u(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}const f="{ [native code] }";function p(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentTransform:()=>d});var n=r(361),o=r(358),i=r(434),a=r(350),s=r(445),l=r(360),c=r(446);function u(e){return e}var d=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=o.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(u,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new n.Trie(o.canUseWeakMap);this.performWork=(0,l.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.invariant)(Array.isArray(n),77),r.lookupArray(n)},max:c.cacheSizes["documentTransform.cache"],cache:s.WeakCache})}},e.prototype.performWork=function(e){return(0,i.checkDocument)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{asyncMap:()=>o});var n=r(427);function o(e,t,r){return new n.Observable(function(n){var o={then:function(e){return new Promise(function(t){return t(e())})}};function i(e,t){return function(r){if(e){var i=function(){return n.closed?0:e(r)};o=o.then(i,i).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:i(t,"next"),error:i(r,"error"),complete:function(){o.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Concast:()=>l});var n=r(104),o=r(427),i=r(478),a=r(479);function s(e){return e&&"function"==typeof e.then}var l=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,i.iterateObserversSafely)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,i.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var o=(void 0===n?[]:n).shift();o?s(o)?o.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=o.subscribe(r.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,i.iterateObserversSafely)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new o.Observable(t)]),s(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(o.Observable);(0,a.fixObservableSubclass)(l)},(e,t,r)=>{"use strict";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}r.r(t),r.d(t,{iterateObserversSafely:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fixObservableSubclass:()=>i});var n=r(427),o=r(358);function i(e){function t(t){Object.defineProperty(e,t,{value:n.Observable})}return o.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGraphQLErrorsFromResult:()=>a,graphQLResultHasError:()=>i});var n=r(461),o=r(460);function i(e){var t=a(e);return(0,n.isNonEmptyArray)(t)}function a(e){var t=(0,n.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,o.isExecutionPatchIncrementalResult)(e)&&(0,n.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObservableQuery:()=>v,logMissingFieldErrors:()=>_});var n=r(104),o=r(350),i=r(474),a=r(482),s=r(427),l=r(434),c=r(483),u=r(484),d=r(478),f=r(479),p=r(485),h=r(459),m=r(486),g=r(360),y=Object.assign,v=(Object.hasOwnProperty,function(e){function t(r){var o=r.queryManager,i=r.queryInfo,a=r.options,s=this,c=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=b)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return c&&(o.queries.set(s.queryId,i),c=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=i,s.queryManager=o,s.waitForOwnResult=w(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var u=o.defaultOptions.watchQuery,d=(void 0===u?{}:u).fetchPolicy,f=void 0===d?"cache-first":d,p=a.fetchPolicy,h=void 0===p?f:p,m=a.initialFetchPolicy,g=void 0===m?"standby"===h?f:h:m;s.options=(0,n.__assign)((0,n.__assign)({},a),{initialFetchPolicy:g,fetchPolicy:h}),s.queryId=i.queryId||o.generateQueryId();var y=(0,l.getOperationDefinition)(s.query);return s.queryName=y&&y.name&&y.name.value,s}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:r},o=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||a.NetworkStatus.ready,o=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,a.isNetworkRequestInFlight)(r),networkStatus:r}),s=this.options.fetchPolicy,l=void 0===s?"cache-first":s;if(w(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),(0,i.equal)(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,!c.complete||o.networkStatus!==a.NetworkStatus.loading||"cache-first"!==l&&"cache-only"!==l||(o.networkStatus=a.NetworkStatus.ready,o.loading=!1)):o.partial=!0,o.networkStatus===a.NetworkStatus.ready&&(o.error||o.errors)&&(o.networkStatus=a.NetworkStatus.error)}return e&&this.updateLastResult(o),o},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,o=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,m.equalByQuery)(o,this.last.result,e,this.variables):!(0,i.equal)(this.last.result,e))||t&&!(0,i.equal)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,i.equal)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return t.fetchPolicy="no-cache"===r?"no-cache":"network-only",e&&!(0,i.equal)(this.options.variables,e)&&(t.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,a.NetworkStatus.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,l=s.networkStatus;s.networkStatus=a.NetworkStatus.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,o.invariant)(u,22),this.queryManager.fetchQuery(i,r,a.NetworkStatus.fetchMore).then(function(o){if(t.queryManager.removeQuery(i),s.networkStatus===a.NetworkStatus.fetchMore&&(s.networkStatus=l),d)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:o.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var f=t.getLast("result"),p=u(f.data,{fetchMoreResult:o.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},f),{networkStatus:l,loading:(0,a.isNetworkRequestInFlight)(l),data:p}),t.variables)}return t.maskResult(o)}).finally(function(){d&&!c.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var o=e.updateQuery;o&&t.updateQuery(function(e,t){return o(e,(0,n.__assign)({subscriptionData:r},t))})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,p.compact)(this.options,e||{});y(this.options,t)},t.prototype.setVariables=function(e){return(0,i.equal)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},a.NetworkStatus.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,o=r.complete,i=e(n,{variables:this.variables,complete:!!o,previousData:n});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,o=t.initialFetchPolicy,i=void 0===o?n:o;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){(0,o.invariant)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,a.isNetworkRequestInFlight)(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},a.NetworkStatus.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,i.equal)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,u.cloneDeep)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var o=t===a.NetworkStatus.refetch||t===a.NetworkStatus.fetchMore||t===a.NetworkStatus.poll,s=this.options.variables,l=this.options.fetchPolicy,c=(0,p.compact)(this.options,e||{}),u=o?c:y(this.options,c),d=this.transformDocument(u.query);this.lastQuery=d,o||(this.updatePolling(),!e||!e.variables||(0,i.equal)(e.variables,s)||"standby"===u.fetchPolicy||u.fetchPolicy!==l&&"function"!=typeof u.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=w(u.fetchPolicy));var f=function(){r.concast===v&&(r.waitForOwnResult=!1)},m=u.variables&&(0,n.__assign)({},u.variables),g=this.fetch(u,t,d),v=g.concast,b=g.fromLink,_={next:function(e){(0,i.equal)(r.variables,m)&&(f(),r.reportResult(e,m))},error:function(e){(0,i.equal)(r.variables,m)&&((0,h.isApolloError)(e)||(e=new h.ApolloError({networkError:e})),f(),r.reportError(e,m))}};return o||!b&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=_),v.addObserver(_),v},t.prototype.reobserve=function(e,t){return(0,c.preventUnhandledRejection)(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,d.iterateObserversSafely)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:a.NetworkStatus.error,loading:!1});this.updateLastResult(r,t),(0,d.iterateObserversSafely)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,n.__assign)((0,n.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){(this.cancelNotifyTimeout(),this.dirty)&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&(0,a.isNetworkRequestInFlight)(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()));this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new g.Slot,t}(s.Observable));function b(e){}function _(e){0}function w(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.fixObservableSubclass)(v)},(e,t,r)=>{"use strict";var n;function o(e){return!!e&&e<7}function i(e){return 7===e||8===e}r.r(t),r.d(t,{NetworkStatus:()=>n,isNetworkRequestInFlight:()=>o,isNetworkRequestSettled:()=>i}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},(e,t,r)=>{"use strict";function n(e){return e.catch(function(){}),e}r.r(t),r.d(t,{preventUnhandledRejection:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cloneDeep:()=>o});var n=Object.prototype.toString;function o(e){return i(e)}function i(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=i(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var o=Object.create(Object.getPrototypeOf(e));return t.set(e,o),Object.keys(e).forEach(function(r){o[r]=i(e[r],t)}),o;default:return e}}},(e,t,r)=>{"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.r(t),r.d(t,{compact:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{equalByQuery:()=>c});var n=r(104),o=r(474),i=r(449),a=r(437),s=r(434),l=r(435);function c(e,t,r,i){var l=t.data,c=(0,n.__rest)(t,["data"]),d=r.data,f=(0,n.__rest)(r,["data"]);return(0,o.default)(c,f)&&u((0,s.getMainDefinition)(e).selectionSet,l,d,{fragmentMap:(0,a.createFragmentMap)((0,s.getFragmentDefinitions)(e)),variables:i})}function u(e,t,r,n){if(t===r)return!0;var s=new Set;return e.selections.every(function(e){if(s.has(e))return!0;if(s.add(e),!(0,i.shouldInclude)(e,n.variables))return!0;if(d(e))return!0;if((0,l.isField)(e)){var c=(0,l.resultKeyNameFromField)(e),f=t&&t[c],p=r&&r[c],h=e.selectionSet;if(!h)return(0,o.default)(f,p);var m=Array.isArray(f),g=Array.isArray(p);if(m!==g)return!1;if(m&&g){var y=f.length;if(p.length!==y)return!1;for(var v=0;v<y;++v)if(!u(h,f[v],p[v],n))return!1;return!0}return u(h,f,p,n)}var b=(0,a.getFragmentFromSelection)(e,n.fragmentMap);return b?!!d(b)||u(b.selectionSet,t,r,n):void 0})}function d(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryInfo:()=>p,shouldWriteResult:()=>h});var n=r(104),o=r(474),i=r(462),a=r(460),s=r(461),l=r(480),c=r(358),u=r(482),d=new(c.canUseWeakMap?WeakMap:Map);function f(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return d.set(e,(d.get(e)+1)%1e15),r.apply(this,arguments)})}var p=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;d.has(r)||(d.set(r,0),f(r,"evict"),f(r,"modify"),f(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||u.NetworkStatus.loading;return this.variables&&this.networkStatus!==u.NetworkStatus.loading&&!(0,o.equal)(this.variables,e.variables)&&(t=u.NetworkStatus.setVariables),(0,o.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,o.equal)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),(0,o.equal)(n&&n.result,e&&e.result)||null===(r=this.observableQuery)||void 0===r||r.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,o.equal)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===d.get(this.cache)&&(0,o.equal)(t,r.variables)&&(0,o.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var l,c=this,u=new i.DeepMerger,f=(0,s.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null===(l=this.observableQuery)||void 0===l||l.resetNotifications(),"incremental"in e&&(0,s.isNonEmptyArray)(e.incremental)){var p=(0,a.mergeIncrementalData)(this.getDiff().result,e);e.data=p}else if("hasNext"in e&&e.hasNext){var m=this.getDiff();e.data=u.merge(m.result,e.data)}this.graphQLErrors=f,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(h(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(c.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),c.lastWrite={result:e,variables:r.variables,dmCount:d.get(c.cache)};else if(c.lastDiff&&c.lastDiff.diff.complete)return void(e.data=c.lastDiff.diff.result);var a=c.getDiffOptions(r.variables),s=i.diff(a);!c.stopped&&(0,o.equal)(c.variables,r.variables)&&c.updateWatch(r.variables),c.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=u.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=u.NetworkStatus.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function h(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,l.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskFragment:()=>u});var n=r(442),o=r(489),i=r(350),a=r(474),s=r(490),l=r(437),c=r(434);function u(e,t,r,u){if(!r.fragmentMatches)return e;var d=t.definitions.filter(function(e){return e.kind===n.Kind.FRAGMENT_DEFINITION});void 0===u&&((0,i.invariant)(1===d.length,49,d.length),u=d[0].name.value);var f=d.find(function(e){return e.name.value===u});return(0,i.invariant)(!!f,50,u),null==e||(0,a.default)(e,{})?e:(0,s.maskDefinition)(e,f.selectionSet,{operationType:"fragment",operationName:f.name.value,fragmentMap:(0,l.createFragmentMap)((0,c.getFragmentDefinitions)(t)),cache:r,mutableTargets:new o.MapImpl,knownChanged:new o.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MapImpl:()=>i,SetImpl:()=>a,disableWarningsSlot:()=>s,warnOnImproperCacheImplementation:()=>c});var n=r(360),o=(r(350),r(358)),i=o.canUseWeakMap?WeakMap:Map,a=o.canUseWeakSet?WeakSet:Set,s=new n.Slot,l=!1;function c(){l||(l=!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskDefinition:()=>c});var n=r(442),o=r(449),i=r(435),a=r(491),s=r(489),l=r(350);function c(e,t,r){return s.disableWarningsSlot.withValue(!0,function(){var n=u(e,t,r,!1);return Object.isFrozen(e)&&(0,a.maybeDeepFreeze)(n),n})}function u(e,t,r,a,s){var c=r.knownChanged,d=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(e,r.mutableTargets);if(Array.isArray(e)){for(var f=0,p=Array.from(e.entries());f<p.length;f++){var h=p[f],m=h[0],g=h[1];if(null!==g){var y=u(g,t,r,a,void 0);c.has(y)&&c.add(d),d[m]=y}else d[m]=null}return c.has(d)?d:e}for(var v=0,b=t.selections;v<b.length;v++){var _=b[v],w=void 0;if(a&&c.add(d),_.kind===n.Kind.FIELD){var S=(0,i.resultKeyNameFromField)(_),E=_.selectionSet;if(void 0===(w=d[S]||e[S]))continue;if(E&&null!==w){y=u(e[S],E,r,a,void 0);c.has(y)&&(w=y)}d[S]=w}if(_.kind!==n.Kind.INLINE_FRAGMENT||_.typeCondition&&!r.cache.fragmentMatches(_,e.__typename)||(w=u(e,_.selectionSet,r,a,s)),_.kind===n.Kind.FRAGMENT_SPREAD){var k=_.name.value,x=r.fragmentMap[k]||(r.fragmentMap[k]=r.cache.lookupFragment(k));(0,l.invariant)(x,47,k);var T=(0,o.getFragmentMaskMode)(_);"mask"!==T&&(w=u(e,x.selectionSet,r,"migrate"===T,s))}c.has(w)&&c.add(d)}return"__typename"in e&&!("__typename"in d)&&(d.__typename=e.__typename),Object.keys(d).length!==Object.keys(e).length&&c.add(d),c.has(d)?d:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deepFreeze:()=>o,maybeDeepFreeze:()=>i});var n=r(436);function o(e){var t=new Set([e]);return t.forEach(function(e){(0,n.isNonNullObject)(e)&&function(e){0;return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.isNonNullObject)(e[r])&&t.add(e[r])})}),e}function i(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskOperation:()=>l});var n=r(350),o=r(437),i=r(434),a=r(490),s=r(489);function l(e,t,r){var l;if(!r.fragmentMatches)return e;var c=(0,i.getOperationDefinition)(t);return(0,n.invariant)(c,51),null==e?e:(0,a.maskDefinition)(e,c.selectionSet,{operationType:c.operation,operationName:null===(l=c.name)||void 0===l?void 0:l.value,fragmentMap:(0,o.createFragmentMap)((0,i.getFragmentDefinitions)(t)),cache:r,mutableTargets:new s.MapImpl,knownChanged:new s.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LocalState:()=>h});var n=r(104),o=r(350),i=r(438),a=r(494),s=r(449),l=r(437),c=r(434),u=r(435),d=r(472),f=r(462),p=r(359),h=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,f.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,f.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,o,i,this.fragmentMatcher,s).then(function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,s.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,d.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)})]:[2,(0,n.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,i.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return i.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,d.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,o,i,a){var s,u,d,f,p,h,m,g,y,v;return void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,n.__generator)(this,function(b){return s=(0,c.getMainDefinition)(e),u=(0,c.getFragmentDefinitions)(e),d=(0,l.createFragmentMap)(u),f=this.collectSelectionsToResolve(s,d),p=s.operation,h=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",g=(m=this).cache,y=m.client,v={fragmentMap:d,context:(0,n.__assign)((0,n.__assign)({},r),{cache:g,client:y}),variables:o,fragmentMatcher:i,defaultOperationType:h,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var a,l,c,d,p,h=this;return(0,n.__generator)(this,function(m){return a=i.fragmentMap,l=i.context,c=i.variables,d=[r],p=function(e){return(0,n.__awaiter)(h,void 0,void 0,function(){var f,p;return(0,n.__generator)(this,function(n){return(t||i.selectionsToResolve.has(e))&&(0,s.shouldInclude)(e,c)?(0,u.isField)(e)?[2,this.resolveField(e,t,r,i).then(function(t){var r;void 0!==t&&d.push(((r={})[(0,u.resultKeyNameFromField)(e)]=t,r))})]:((0,u.isInlineFragment)(e)?f=e:(f=a[e.name.value],(0,o.invariant)(f,19,e.name.value)),f&&f.typeCondition&&(p=f.typeCondition.name.value,i.fragmentMatcher(r,p,l))?[2,this.resolveSelectionSet(f.selectionSet,t,r,i).then(function(e){d.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(p)).then(function(){return(0,f.mergeDeepArray)(d)})]})})},e.prototype.resolveField=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,function(){var i,a,s,l,c,d,f,h,m,g=this;return(0,n.__generator)(this,function(n){return r?(i=o.variables,a=e.name.value,s=(0,u.resultKeyNameFromField)(e),l=a!==s,c=r[s]||r[a],d=Promise.resolve(c),o.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||o.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(m=h[l?a:s])&&(d=Promise.resolve(p.cacheSlot.withValue(this.cache,m,[r,(0,u.argumentsObjectFromField)(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}])))),[2,d.then(function(r){var n,i;if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(o.exportedVariables[e.value.value]=r)})}),!e.selectionSet)return r;if(null==r)return r;var a=null!==(i=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==i&&i;return Array.isArray(r)?g.resolveSubSelectedArray(e,t||a,r,o):e.selectionSet?g.resolveSelectionSet(e.selectionSet,t||a,r,o):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var o=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?o.resolveSubSelectedArray(e,t,r,n):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(s){if(!n.has(s)){var l=new Set;n.set(s,l),(0,i.visit)(s,{Directive:function(e,t,n,o,i){"client"===e.name.value&&i.forEach(function(e){r(e)&&(0,a.isSelectionNode)(e)&&l.add(e)})},FragmentSpread:function(n,i,s,c,u){var d=t[n.name.value];(0,o.invariant)(d,20,n.name.value);var f=e(d);f.size>0&&(u.forEach(function(e){r(e)&&(0,a.isSelectionNode)(e)&&l.add(e)}),l.add(n),f.forEach(function(e){l.add(e)}))}})}return n.get(s)}(e)},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isConstValueNode:()=>l,isDefinitionNode:()=>o,isExecutableDefinitionNode:()=>i,isSelectionNode:()=>a,isTypeDefinitionNode:()=>d,isTypeExtensionNode:()=>p,isTypeNode:()=>c,isTypeSystemDefinitionNode:()=>u,isTypeSystemExtensionNode:()=>f,isValueNode:()=>s});var n=r(442);function o(e){return i(e)||u(e)||f(e)}function i(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function s(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function l(e){return s(e)&&(e.kind===n.Kind.LIST?e.values.some(l):e.kind===n.Kind.OBJECT?e.fields.some(e=>l(e.value)):e.kind!==n.Kind.VARIABLE)}function c(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function u(e){return e.kind===n.Kind.SCHEMA_DEFINITION||d(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function d(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===n.Kind.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeOptions:()=>i});var n=r(104),o=r(485);function i(e,t){return(0,o.compact)(e,t,t.variables&&{variables:(0,o.compact)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{from:()=>n});var n=r(430).ApolloLink.from},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeOrFieldNameRegExp:()=>v,defaultDataIdFromObject:()=>p,extractFragmentContext:()=>E,fieldNameFromStoreName:()=>b,getTypenameFromStoreObject:()=>y,hasOwn:()=>d,isArray:()=>l.isArray,isNullish:()=>f,makeProcessedFieldsMerger:()=>S,normalizeConfig:()=>m,selectionSetMatchesResult:()=>_,shouldCanonizeResults:()=>g,storeValueIsStoreObject:()=>w});var n=r(449),o=r(437),i=r(434),a=r(435),s=r(462),l=r(461),c=r(436),u=r(485),d=Object.prototype.hasOwnProperty;function f(e){return null==e}function p(e,t){var r=e.__typename,n=e.id,o=e._id;if("string"==typeof r&&(t&&(t.keyObject=f(n)?f(o)?void 0:{_id:o}:{id:n}),f(n)&&!f(o)&&(n=o),!f(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var h={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,u.compact)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,a.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var v=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(v);return t?t[0]:e}function _(e,t,r){return!!(0,c.isNonNullObject)(t)&&((0,l.isArray)(t)?t.every(function(t){return _(e,t,r)}):e.selections.every(function(e){if((0,a.isField)(e)&&(0,n.shouldInclude)(e,r)){var o=(0,a.resultKeyNameFromField)(e);return d.call(t,o)&&(!e.selectionSet||_(e.selectionSet,t[o],r))}return!0}))}function w(e){return(0,c.isNonNullObject)(e)&&!(0,a.isReference)(e)&&!(0,l.isArray)(e)}function S(){return new s.DeepMerger}function E(e,t){var r=(0,o.createFragmentMap)((0,i.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InMemoryCache:()=>_});var n=r(104),o=(r(350),r(360)),i=r(474),a=r(499),s=r(500),l=r(446),c=r(475),u=r(464),d=r(435),f=r(472),p=r(443),h=r(501),m=r(504),g=r(502),y=r(359),v=r(505),b=r(497),_=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.DocumentTransform(f.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=y.makeVar,r.txCount=0,r.config=(0,b.normalizeConfig)(t),r.addTypename=!!r.config.addTypename,r.policies=new v.Policies({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new g.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new m.StoreWriter(this,this.storeReader=new h.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,b.shouldCanonizeResults)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||l.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,g.supportsResultCaching)(r)){var n=e.optimistic,o=e.id,i=e.variables;return r.makeCacheKey(e.query,e.callback,(0,p.canonicalStringify)({optimistic:n,id:o,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof s.MissingFieldError)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(b.hasOwn.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,y.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,y.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;p.canonicalStringify.reset(),u.print.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(b.hasOwn.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),p.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,y.forgetCache)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,o=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,c=function(e){var n=r,i=n.data,a=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=o(r)}finally{--r.txCount,r.data=i,r.optimisticData=a}},u=new Set;return l&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&u.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,i.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(a.ApolloCache)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloCache:()=>f});var n=r(104),o=r(360),i=r(427),a=r(446),s=r(437),l=r(462),c=r(445),u=r(486),d=(r(350),r(488)),f=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.wrap)(s.getFragmentQueryDocument,{max:a.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:c.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,o=e.fragment,a=e.fragmentName,s=e.from,c=e.optimistic,f=void 0===c||c,p=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(o,a),m=void 0===s||"string"==typeof s?s:this.identify(s),g=!!e[Symbol.for("apollo.dataMasking")],y=(0,n.__assign)((0,n.__assign)({},p),{returnPartialData:!0,id:m,query:h,optimistic:f});return new i.Observable(function(i){return r.watch((0,n.__assign)((0,n.__assign)({},y),{immediate:!0,callback:function(s){var c=g?(0,d.maskFragment)(s.result,o,r,a):s.result;if(!t||!(0,u.equalByQuery)(h,{data:t.result},{data:c},e.variables)){var f={data:c,complete:!!s.complete};s.missing&&(f.missing=(0,l.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,n.__assign)((0,n.__assign)({},s),{result:c}),i.next(f)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,o=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(o,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,o=e.fragment,i=e.fragmentName,a=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(o,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var o=r.readQuery(e),i=t(o);return null==i?o:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var o=r.readFragment(e),i=t(o);return null==i?o:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:i})),i)}})},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MissingFieldError:()=>o});var n=r(104),o=function(e){function t(r,n,o,i){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=o,s.variables=i,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreReader:()=>k});var n=r(104),o=r(350),i=r(442),a=r(360),s=r(446),l=r(449),c=r(437),u=r(434),d=r(435),f=r(472),p=r(462),h=r(491),m=(r(436),r(358)),g=r(485),y=r(443),v=r(502),b=r(497),_=r(461),w=r(500),S=r(503);function E(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var k=function(){function e(e){var t=this;this.knownResults=new(m.canUseWeakMap?WeakMap:Map),this.config=(0,g.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,b.shouldCanonizeResults)(e)}),this.canon=e.canon||new S.ObjectCanon,this.executeSelectionSet=(0,a.wrap)(function(e){var r,o=e.context.canonizeResults,i=E(e);i[3]=!o;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?o?(0,n.__assign)((0,n.__assign)({},a),{result:t.canon.admit(a.result)}):a:((0,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||s.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:E,makeCacheKey:function(e,t,r,n){if((0,v.supportsResultCaching)(r.store))return r.store.makeCacheKey(e,(0,d.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,a.wrap)(function(e){return(0,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||s.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if((0,v.supportsResultCaching)(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new S.ObjectCanon},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,o=e.rootId,i=void 0===o?"ROOT_QUERY":o,a=e.variables,s=e.returnPartialData,l=void 0===s||s,c=e.canonizeResults,f=void 0===c?this.config.canonizeResults:c,p=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,u.getDefaultValues)((0,u.getQueryDefinition)(r))),a);var h,m=(0,d.makeReference)(i),g=this.executeSelectionSet({selectionSet:(0,u.getMainDefinition)(r).selectionSet,objectOrReference:m,enclosingRef:m,context:(0,n.__assign)({store:t,query:r,policies:p,variables:a,varString:(0,y.canonicalStringify)(a),canonizeResults:f},(0,b.extractFragmentContext)(r,this.config.fragments))});if(g.missing&&(h=[new w.MissingFieldError(x(g.missing),g.missing,r,a)],!l))throw h[0];return{result:g.result,complete:!h,missing:h}},e.prototype.isFresh=function(e,t,r,n){if((0,v.supportsResultCaching)(n.store)&&this.knownResults.get(e)===r){var o=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,d.isReference)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var u,m=s.variables,g=s.policies,y=s.store.getFieldValue(n,"__typename"),v=[],b=new p.DeepMerger;function w(e,t){var r;return e.missing&&(u=b.merge(u,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof y&&!g.rootIdsByTypename[y]&&v.push({__typename:y});var S=new Set(r.selections);S.forEach(function(e){var r,p;if((0,l.shouldInclude)(e,m))if((0,d.isField)(e)){var h=g.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),E=(0,d.resultKeyNameFromField)(e);void 0===h?f.addTypenameToDocument.added(e)||(u=b.merge(u,((r={})[E]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.isReference)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,_.isArray)(h)?h.length>0&&(h=w(t.executeSubSelectedArray({field:e,array:h,enclosingRef:a,context:s}),E)):e.selectionSet?null!=h&&(h=w(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:(0,d.isReference)(h)?h:a,context:s}),E)):s.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&v.push(((p={})[E]=h,p))}else{var k=(0,c.getFragmentFromSelection)(e,s.lookupFragment);if(!k&&e.kind===i.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(10,e.name.value);k&&g.fragmentMatches(k,y)&&k.selectionSet.selections.forEach(S.add,S)}});var E={result:(0,p.mergeDeepArray)(v),missing:u},k=s.canonizeResults?this.canon.admit(E):(0,h.maybeDeepFreeze)(E);return k.result&&this.knownResults.set(k.result,r),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,i=e.enclosingRef,a=e.context,s=new p.DeepMerger;function l(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,_.isArray)(e)?l(r.executeSubSelectedArray({field:n,array:e,enclosingRef:i,context:a}),t):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,d.isReference)(e)?e:i,context:a}),t):e}),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function x(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EntityStore:()=>y,maybeDependOnExistenceOfEntity:()=>_,supportsResultCaching:()=>k});var n=r(104),o=r(350),i=r(360),a=r(474),s=r(361),l=r(435),c=r(462),u=r(491),d=r(436),f=r(358),p=r(497),h=Object.create(null),m=function(){return h},g=Object.create(null),y=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,u.maybeDeepFreeze)((0,l.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,l.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,l.makeReference)(e);if((0,l.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var o=(0,l.makeReference)(n);return t&&r.merge(n,e),o}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),p.hasOwn.call(this.data,e)){var r=this.data[e];if(r&&p.hasOwn.call(r,t))return r[t]}return"__typename"===t&&p.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof w?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),p.hasOwn.call(this.data,e)?this.data[e]:this instanceof w?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,l.isReference)(e)&&(e=e.__ref),(0,l.isReference)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,o.invariant)("string"==typeof r,2);var s=new c.DeepMerger(E).merge(i,a);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,p.fieldNameFromStoreName)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof w||delete s[e]}}),!u.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,o=this.lookup(e);if(o){var i=Object.create(null),a=!1,s=!0,c={DELETE:h,INVALIDATE:g,isReference:l.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,l.makeReference)(e)}:t,{store:r})}};if(Object.keys(o).forEach(function(l){var d=(0,p.fieldNameFromStoreName)(l),f=o[l];if(void 0!==f){var y="function"==typeof t?t:t[l]||t[d];if(y){var v=y===m?h:y((0,u.maybeDeepFreeze)(f),(0,n.__assign)((0,n.__assign)({},c),{fieldName:d,storeFieldName:l,storage:r.getStorage(e,l)}));if(v===g)r.group.dirty(e,l);else if(v===h&&(v=void 0),v!==f)i[l]=v,a=!0,f=v}void 0!==f&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof w?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,o=this.lookup(e);if(o){var i=this.getFieldValue(o,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=m,n):m)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(p.hasOwn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof w&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){p.hasOwn.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&p.hasOwn.call(e,r)||t.delete(r)}),e){var r=e.__META,o=(0,n.__rest)(e,["__META"]);Object.keys(o).forEach(function(e){t.merge(e,o[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof w?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){p.hasOwn.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var o=this;o instanceof w;)o=o.parent;n.forEach(function(e){return o.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!p.hasOwn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,l.isReference)(e)&&(t[e.__ref]=!0),(0,d.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,d.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),v=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,i.dep)():null,this.keyMaker=new s.Trie(f.canUseWeakMap)},e.prototype.depend=function(e,t){if(this.d){this.d(b(e,t));var r=(0,p.fieldNameFromStoreName)(t);r!==t&&this.d(b(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t),"__exists"===t?"forget":"setDirty")},e}();function b(e,t){return t+"#"+e}function _(e,t){k(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,o=void 0===n||n,i=t.seed,a=e.call(this,r,new v(o))||this;return a.stump=new S(a),a.storageTrie=new s.Trie(f.canUseWeakMap),i&&a.replace(i),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(y||(y={}));var w=function(e){function t(t,r,n,o){var i=e.call(this,r.policies,o)||this;return i.id=t,i.parent=r,i.replay=n,i.group=o,n(i),i}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],o=r.lookup(e);o?n?n!==o&&Object.keys(n).forEach(function(r){(0,a.equal)(n[r],o[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(o).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return p.hasOwn.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(y),S=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new v(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(w);function E(e,t,r){var n=e[r],o=t[r];return(0,a.equal)(n,o)?n:o}function k(e){return!!(e instanceof y&&e.group.caching)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObjectCanon:()=>l});var n=r(104),o=r(361),i=r(436),a=r(358),s=r(461);var l=function(){function e(){this.known=new(a.canUseWeakSet?WeakSet:Set),this.pool=new o.Trie(a.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,i.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,i.isNonNullObject)(e)){var t=function(e){return(0,i.isNonNullObject)(e)?(0,s.isArray)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,i.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(l=this.pool.lookupArray(n)).array||this.known.add(l.array=n),l.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var l,c=a.length;if(s.sorted.forEach(function(r){a.push(t.admit(e[r]))}),!(l=this.pool.lookupArray(a)).object){var u=l.object=Object.create(o);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=a[c+t]})}return l.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreWriter:()=>g});var n=r(104),o=r(350),i=(r(474),r(361)),a=r(442),s=r(449),l=r(437),c=r(434),u=r(435),d=r(461),f=r(443),p=r(497),h=r(505);function m(e,t,r){var o="".concat(t).concat(r),i=e.flavors.get(o);return i||e.flavors.set(o,i=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),i}var g=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,i=t.query,a=t.result,s=t.dataId,l=t.variables,d=t.overwrite,h=(0,c.getOperationDefinition)(i),m=(0,p.makeProcessedFieldsMerger)();l=(0,n.__assign)((0,n.__assign)({},(0,c.getDefaultValues)(h)),l);var g=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:l,varString:(0,f.canonicalStringify)(l)},(0,p.extractFragmentContext)(i,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:g});if(!(0,u.isReference)(y))throw(0,o.newInvariantError)(12,a);return g.incomingById.forEach(function(t,n){var o=t.storeObject,i=t.mergeTree,a=(t.fieldNodeSet,(0,u.makeReference)(n));if(i&&i.map.size){var s=r.applyMerges(i,a,o,g);if((0,u.isReference)(s))return;o=s}e.merge(n,o)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,i=e.selectionSet,a=e.context,s=e.mergeTree,l=this.cache.policies,c=Object.create(null),d=r&&l.rootTypenamesById[r]||(0,u.getTypenameFromResult)(o,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof d&&(c.__typename=d);var f=function(){var e=(0,h.normalizeReadFieldOptions)(arguments,c,a.variables);if((0,u.isReference)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=l.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return l.readField(e,a)},g=new Set;this.flattenFields(i,o,a,d).forEach(function(e,r){var n,i=(0,u.resultKeyNameFromField)(r),a=o[i];if(g.add(r),void 0!==a){var h=l.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),y=v(s,h),b=t.processFieldValue(a,r,r.selectionSet?m(e,!1,!1):e,y),_=void 0;r.selectionSet&&((0,u.isReference)(b)||(0,p.storeValueIsStoreObject)(b))&&(_=f("__typename",b));var S=l.getMergeFunction(d,r.name.value,_);S?y.info={field:r,typename:d,merge:S}:w(s,h),c=e.merge(c,((n={})[h]=b,n))}else 0});try{var y=l.identify(o,{typename:d,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:f}),S=y[0],E=y[1];r=r||S,E&&(c=a.merge(c,E))}catch(e){if(!r)throw e}if("string"==typeof r){var k=(0,u.makeReference)(r),x=a.written[r]||(a.written[r]=[]);if(x.indexOf(i)>=0)return k;if(x.push(i),this.reader&&this.reader.isFresh(o,k,i,a))return k;var T=a.incomingById.get(r);return T?(T.storeObject=a.merge(T.storeObject,c),T.mergeTree=b(T.mergeTree,s),g.forEach(function(e){return T.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:c,mergeTree:_(s)?void 0:s,fieldNodeSet:g}),k}return c},e.prototype.processFieldValue=function(e,t,r,n){var o=this;return t.selectionSet&&null!==e?(0,d.isArray)(e)?e.map(function(e,i){var a=o.processFieldValue(e,t,r,v(n,i));return w(n,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,u.getTypenameFromResult)(t,e,r.fragmentMap));var c=new Map,f=this.cache.policies,p=new i.Trie(!1);return function e(i,h){var g=p.lookup(i,h.clientOnly,h.deferred);g.visited||(g.visited=!0,i.selections.forEach(function(i){if((0,s.shouldInclude)(i,r.variables)){var p=h.clientOnly,g=h.deferred;if(p&&g||!(0,d.isNonEmptyArray)(i.directives)||i.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(p=!0),"defer"===t){var n=(0,u.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(g=!0)}}),(0,u.isField)(i)){var y=c.get(i);y&&(p=p&&y.clientOnly,g=g&&y.deferred),c.set(i,m(r,p,g))}else{var v=(0,l.getFragmentFromSelection)(i,r.lookupFragment);if(!v&&i.kind===a.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(14,i.name.value);v&&f.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,m(r,p,g))}}}))}(e,r),c},e.prototype.applyMerges=function(e,t,r,i,a){var s,l=this;if(e.map.size&&!(0,u.isReference)(r)){var c,f=(0,d.isArray)(r)||!(0,u.isReference)(t)&&!(0,p.storeValueIsStoreObject)(t)?void 0:t,h=r;f&&!a&&(a=[(0,u.isReference)(f)?f.__ref:f]);var m=function(e,t){return(0,d.isArray)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=m(f,t),n=m(h,t);if(void 0!==n){a&&a.push(t);var s=l.applyMerges(e,r,n,i,a);s!==n&&(c=c||new Map).set(t,s),a&&(0,o.invariant)(a.pop()===t)}}),c&&(r=(0,d.isArray)(h)?h.slice(0):(0,n.__assign)({},h),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,a&&(s=i.store).getStorage.apply(s,a)):r},e}(),y=[];function v(e,t){var r=e.map;return r.has(t)||r.set(t,y.pop()||{map:new Map}),r.get(t)}function b(e,t){if(e===t||!t||_(t))return e;if(!e||_(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,o=e.map.size&&t.map.size,i={info:r,map:o?new Map:e.map.size?e.map:t.map};if(o){var a=new Set(t.map.keys());e.map.forEach(function(e,r){i.map.set(r,b(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){i.map.set(r,b(t.map.get(r),e.map.get(r)))})}return i}function _(e){return!e||!(e.info||e.map.size)}function w(e,t){var r=e.map,n=r.get(t);n&&_(n)&&(y.push(n),r.delete(t))}new Set},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>y,normalizeReadFieldOptions:()=>b});var n=r(104),o=r(350),i=r(435),a=r(436),s=r(497),l=r(461),c=r(359),u=r(506),d=r(489);function f(e){return void 0!==e.args?e.args:e.field?(0,i.argumentsObjectFromField)(e.field,e.variables):null}var p=function(){},h=function(e,t){return t.fieldName},m=function(e,t,r){return(0,r.mergeObjects)(e,t)},g=function(e,t){return t},y=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:s.defaultDataIdFromObject},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,o=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a,s=t&&t.storeObject||e,c=(0,n.__assign)((0,n.__assign)({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=b(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),f=i&&this.getTypePolicy(i),p=f&&f.keyFn||this.config.dataIdFromObject;return d.disableWarningsSlot.withValue(!0,function(){for(;p;){var t=p((0,n.__assign)((0,n.__assign)({},e),s),c);if(!(0,l.isArray)(t)){a=t;break}p=(0,u.keyFieldsFnFromSpecifier)(t)}}),a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var o=e[r],i=o.queryType,a=o.mutationType,l=o.subscriptionType,c=(0,n.__rest)(o,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),l&&t.setRootTypename("Subscription",r),s.hasOwn.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),o=t.keyFields,i=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?m:!1===t?g:e.merge}a(n,t.merge),n.keyFn=!1===o?p:(0,l.isArray)(o)?(0,u.keyFieldsFnFromSpecifier)(o):"function"==typeof o?o:n.keyFn,i&&Object.keys(i).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),o=i[t];if("function"==typeof o)n.read=o;else{var s=o.keyArgs,c=o.read,d=o.merge;n.keyFn=!1===s?h:(0,l.isArray)(s)?(0,u.keyArgsFnFromSpecifier)(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,d)}n.read&&n.merge&&(n.keyFn=n.keyFn||h)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,o.invariant)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(s.TypeOrFieldNameRegExp);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!s.hasOwn.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(e);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var i=t.supertypeMap.get(n);i&&i.forEach(function(e){return o.add(e)})}})),o&&o.size&&o.forEach(function(e){var o=t.getTypePolicy(e),i=o.fields,a=(0,n.__rest)(o,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var a=this.getSupertypeSet(t,!0),l=[a],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&l.indexOf(t)<0&&l.push(t)},u=!(!r||!this.fuzzySubtypes.size),d=0;d<l.length;++d){var f=l[d];if(f.has(i))return a.has(i)||a.add(i),!0;f.forEach(c),u&&d===l.length-1&&(0,s.selectionSetMatchesResult)(e.selectionSet,r,n)&&(u=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,o=this.getFieldPolicy(r,n,!1),a=o&&o.keyFn;if(a&&r)for(var c={typename:r,fieldName:n,field:e.field||null,variables:e.variables},d=f(e);a;){var p=a(d,c);if(!(0,l.isArray)(p)){t=p||n;break}a=(0,u.keyArgsFnFromSpecifier)(p)}return void 0===t&&(t=e.field?(0,i.storeKeyNameFromField)(e.field,e.variables):(0,i.getStoreKeyName)(n,f(e))),!1===t?n:n===(0,s.fieldNameFromStoreName)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var o=this.getStoreFieldName(e),a=(0,s.fieldNameFromStoreName)(o),l=t.store.getFieldValue(r,o),u=this.getFieldPolicy(e.typename,a,!1),d=u&&u.read;if(d){var f=v(this,r,e,t,t.store.getStorage((0,i.isReference)(r)?r.__ref:r,o));return c.cacheSlot.withValue(this.cache,d,[l,f])}return l}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),o=n&&n.merge;return!o&&r&&(o=(n=this.getTypePolicy(r))&&n.merge),o},e.prototype.runMergeFunction=function(e,t,r,n,o){var i=r.field,a=r.typename,s=r.merge;return s===m?_(n.store)(e,t):s===g?t:(n.overwrite&&(e=void 0),s(e,t,v(this,void 0,{typename:a,fieldName:i.name.value,field:i,variables:n.variables},n,o||Object.create(null))))},e}();function v(e,t,r,n,o){var a=e.getStoreFieldName(r),l=(0,s.fieldNameFromStoreName)(a),c=r.variables||n.variables,u=n.store,d=u.toReference,p=u.canRead;return{args:f(r),field:r.field||null,fieldName:l,storeFieldName:a,variables:c,isReference:i.isReference,toReference:d,storage:o,cache:e.cache,canRead:p,readField:function(){return e.readField(b(arguments,t,c),n)},mergeObjects:_(n.store)}}function b(e,t,r){var o,i=e[0],a=e[1],l=e.length;return"string"==typeof i?o={fieldName:i,from:l>1?a:t}:(o=(0,n.__assign)({},i),s.hasOwn.call(o,"from")||(o.from=t)),void 0===o.variables&&(o.variables=r),o}function _(e){return function(t,r){if((0,l.isArray)(t)||(0,l.isArray)(r))throw(0,o.newInvariantError)(9);if((0,a.isNonNullObject)(t)&&(0,a.isNonNullObject)(r)){var c=e.getFieldValue(t,"__typename"),u=e.getFieldValue(r,"__typename");if(c&&u&&c!==u)return r;if((0,i.isReference)(t)&&(0,s.storeValueIsStoreObject)(r))return e.merge(t.__ref,r),t;if((0,s.storeValueIsStoreObject)(t)&&(0,i.isReference)(r))return e.merge(t,r.__ref),r;if((0,s.storeValueIsStoreObject)(t)&&(0,s.storeValueIsStoreObject)(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectSpecifierPaths:()=>p,extractKeyPath:()=>g,getSpecifierPaths:()=>h,keyArgsFnFromSpecifier:()=>f,keyFieldsFnFromSpecifier:()=>d});var n=r(350),o=r(435),i=r(462),a=r(461),s=r(436),l=r(497),c=Object.create(null);function u(e){var t=JSON.stringify(e);return c[t]||(c[t]=Object.create(null))}function d(e){var t=u(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var o=function(e,t){return r.readField(t,e)},i=r.keyObject=p(e,function(e){var i=g(r.storeObject,e,o);return void 0===i&&t!==r.storeObject&&l.hasOwn.call(t,e[0])&&(i=g(t,e,m)),(0,n.invariant)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function f(e){var t=u(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,s=r.fieldName,c=p(e,function(e){var r=e[0],s=r.charAt(0);if("@"!==s)if("$"!==s){if(t)return g(t,e)}else{var c=r.slice(1);if(i&&l.hasOwn.call(i,c)){var u=e.slice(0);return u[0]=c,g(i,u)}}else if(n&&(0,a.isNonEmptyArray)(n.directives)){var d=r.slice(1),f=n.directives.find(function(e){return e.name.value===d}),p=f&&(0,o.argumentsObjectFromField)(f,i);return p&&g(p,e.slice(1))}}),u=JSON.stringify(c);return(t||"{}"!==u)&&(s+=":"+u),s})}function p(e,t){var r=new i.DeepMerger;return h(e).reduce(function(e,n){var o,i=t(n);if(void 0!==i){for(var a=n.length-1;a>=0;--a)(o={})[n[a]]=i,i=o;e=r.merge(e,i)}return e},Object.create(null))}function h(e){var t=u(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,o){(0,a.isArray)(t)?(h(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),(0,a.isArray)(e[o+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function m(e,t){return e[t]}function g(e,t,r){return r=r||m,y(t.reduce(function e(t,n){return(0,a.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function y(e){return(0,s.isNonNullObject)(e)?(0,a.isArray)(e)?e.map(y):p(Object.keys(e).sort(),function(t){return g(e,t)}):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>y});var n=r(104),o=r(430),i=r(350),a=r(427),s=r(449),l=r(472),c=r(470),u=r(452),d=r(450),f=r(463),p=r(451),h=r(508),m=r(471),g=(0,i.maybe)(function(){return fetch}),y=function(e){function t(t){var r=e.call(this)||this,o=t||{},y=o.uri,v=void 0===y?"/graphql":y,b=o.fetch,_=o.print,w=void 0===_?f.defaultPrinter:_,S=o.includeExtensions,E=o.preserveHeaderCase,k=o.batchInterval,x=o.batchDebounce,T=o.batchMax,O=o.batchKey,C=o.includeUnusedVariables,j=void 0!==C&&C,P=(0,n.__rest)(o,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);var I={http:{includeExtensions:S,preserveHeaderCase:E},options:P.fetchOptions,credentials:P.credentials,headers:P.headers};r.batchDebounce=x,r.batchInterval=k||10,r.batchMax=T||10;return O=O||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,p.selectURI)(e,v)+JSON.stringify(r)},r.batcher=new h.BatchLink({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:O,batchHandler:function(e){var t=(0,p.selectURI)(e[0],v),r=e[0].getContext(),o={};if(r.clientAwareness){var h=r.clientAwareness,y=h.name,_=h.version;y&&(o["apollographql-client-name"]=y),_&&(o["apollographql-client-version"]=_)}var S={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:(0,n.__assign)((0,n.__assign)({},o),r.headers)},E=e.map(function(e){var t=e.query;return(0,s.hasDirectives)(["client"],t)?(0,l.removeClientSetsFromDocument)(t):t});if(E.some(function(e){return!e}))return(0,c.fromError)(new Error("BatchHttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or enable the `transformOptions.removeClientFields` option."));var k,x=e.map(function(e,t){var r=(0,f.selectHttpOptionsAndBodyInternal)((0,n.__assign)((0,n.__assign)({},e),{query:E[t]}),w,f.fallbackHttpConfig,I,S);return r.body.variables&&!j&&(r.body.variables=(0,m.filterOperationVariables)(r.body.variables,e.query)),r}),T=x.map(function(e){return e.body}),O=x[0].options;if("GET"===O.method)return(0,c.fromError)(new Error("apollo-link-batch-http does not support GET requests"));try{O.body=(0,d.serializeFetchParameter)(T,"Payload")}catch(e){return(0,c.fromError)(e)}return O.signal||"undefined"==typeof AbortController||(k=new AbortController,O.signal=k.signal),new a.Observable(function(r){return(b||(0,i.maybe)(function(){return fetch})||g)(t,O).then(function(t){return e.forEach(function(e){return e.setContext({response:t})}),t}).then((0,u.parseAndCheckHttpResponse)(e)).then(function(e){return k=void 0,r.next(e),r.complete(),e}).catch(function(e){k=void 0,e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)}),function(){k&&k.abort()}})}}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(o.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchLink:()=>a,OperationBatcher:()=>i.OperationBatcher});var n=r(104),o=r(430),i=r(509),a=function(e){function t(t){var r=e.call(this)||this,n=t||{},o=n.batchDebounce,a=n.batchInterval,s=void 0===a?10:a,l=n.batchMax,c=void 0===l?0:l,u=n.batchHandler,d=void 0===u?function(){return null}:u,f=n.batchKey,p=void 0===f?function(){return""}:f;return r.batcher=new i.OperationBatcher({batchDebounce:o,batchInterval:s,batchMax:c,batchHandler:d,batchKey:p}),t.batchHandler.length<=1&&(r.request=function(e){return r.batcher.enqueueRequest({operation:e})}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(o.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OperationBatcher:()=>i});var n=r(104),o=r(427),i=function(){function e(e){var t=e.batchDebounce,r=e.batchInterval,n=e.batchMax,o=e.batchHandler,i=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=o,this.batchKey=i||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e),{next:[],error:[],complete:[],subscribers:new Set}),i=this.batchKey(e.operation);return r.observable||(r.observable=new o.Observable(function(e){var n=t.batchesByKey.get(i);n||t.batchesByKey.set(i,n=new Set);var o=0===n.size,a=0===r.subscribers.size;return r.subscribers.add(e),a&&n.add(r),e.next&&r.next.push(e.next.bind(e)),e.error&&r.error.push(e.error.bind(e)),e.complete&&r.complete.push(e.complete.bind(e)),(o||t.batchDebounce)&&t.scheduleQueueConsumption(i),n.size===t.batchMax&&t.consumeQueue(i),function(){var o;r.subscribers.delete(e)&&r.subscribers.size<1&&n.delete(r)&&n.size<1&&(t.consumeQueue(i),null===(o=n.subscription)||void 0===o||o.unsubscribe())}})),r.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var r=[],n=[],i=[],a=[],s=[],l=[];t.forEach(function(e){r.push(e.operation),n.push(e.forward),i.push(e.observable),a.push(e.next),s.push(e.error),l.push(e.complete)});var c=this.batchHandler(r,n)||o.Observable.of(),u=function(e){s.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return t.subscription=c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length ".concat(e.length,", expected length of ").concat(a.length));return t.result=e,u(t)}e.forEach(function(e,t){a[t]&&a[t].forEach(function(t){return t(e)})})},error:u,complete:function(){l.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),i}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)},this.batchInterval))},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorLink:()=>l,onError:()=>s});var n=r(104),o=r(459),i=r(427),a=r(430);function s(e){return new a.ApolloLink(function(t,r){return new i.Observable(function(n){var i,a,s;try{i=r(t).subscribe({next:function(i){i.errors?s=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,o.graphQLResultHasProtocolErrors)(i)&&(s=e({protocolErrors:i.extensions[o.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),s?a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(o){(s=e({operation:t,networkError:o,graphQLErrors:o&&o.result&&o.result.errors||void 0,forward:r}))?a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(o)},complete:function(){s||n.complete.bind(n)()}})}catch(o){e({networkError:o,operation:t,forward:r}),n.error(o)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}var l=function(e){function t(t){var r=e.call(this)||this;return r.link=s(t),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)},t}(a.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(430),o=r(512),i=r(452),a=r(469),s=r(463),l=r(451),c=r(450),u=r(427),d=r(513),f=r(515),p=r(516);function h({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=p.default,FormData:h,formDataAppendFile:m=f.default,print:g=s.defaultPrinter,fetch:y,fetchOptions:v,credentials:b,headers:_,includeExtensions:w}={}){const S={http:{includeExtensions:w},options:v,credentials:b,headers:_};return new n.ApolloLink(n=>{const f=n.getContext(),{clientAwareness:{name:p,version:v}={},headers:b}=f,_={http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:{...p&&{"apollographql-client-name":p},...v&&{"apollographql-client-version":v},...b}},{options:w,body:E}=(0,s.selectHttpOptionsAndBodyInternal)(n,g,s.fallbackHttpConfig,S,_),{clone:k,files:x}=(0,d.default)(E,r,"");let T=(0,l.selectURI)(n,e);if(x.size){w.headers&&delete w.headers["content-type"];const e=new(h||FormData);e.append("operations",(0,c.serializeFetchParameter)(k,"Payload"));const t={};let r=0;x.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,x.forEach((t,n)=>{m(e,String(++r),n)}),w.body=e}else if(t&&!n.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(w.method="GET"),"GET"===w.method){const{newURI:e,parseError:t}=(0,a.rewriteURIForGET)(T,E);if(t)return new u.Observable(e=>{e.error(t)});T=e}else w.body=(0,c.serializeFetchParameter)(k,"Payload");const{controller:O}=(0,o.createSignalIfSupported)();"boolean"!=typeof O&&(w.signal&&(w.signal.aborted?O.abort():w.signal.addEventListener("abort",()=>{O.abort()},{once:!0})),w.signal=O.signal);const C=y||fetch;return new u.Observable(e=>{let t;return C(T,w).then(e=>(n.setContext({response:e}),e)).then((0,i.parseAndCheckHttpResponse)(n)).then(t=>{e.next(t),e.complete()}).catch(r=>{t||(r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r))}),()=>{t=!0,"boolean"!=typeof O&&O.abort()}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSignalIfSupported:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(514);function o(e,t,r=""){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");if("function"!=typeof t)throw new TypeError("Argument 2 `isExtractable` must be a function.");if("string"!=typeof r)throw new TypeError("Argument 3 `path` must be a string.");const o=new Map,i=new Map;return{clone:function e(r,a,s){if(t(r)){const e=i.get(r);return e?e.push(a):i.set(r,[a]),null}const l=Array.isArray(r)||"undefined"!=typeof FileList&&r instanceof FileList,c=(0,n.default)(r);if(l||c){let t=o.get(r);const n=!t;if(n&&(t=l?[]:r instanceof Object?{}:Object.create(null),o.set(r,t)),!s.has(r)){const o=a?`${a}.`:"",i=new Set(s).add(r);if(l){let a=0;for(const s of r){const r=e(s,o+a++,i);n&&t.push(r)}}else for(const a in r){const s=e(r[a],o+a,i);n&&(t[a]=s)}}return t}return r}(e,r,new Set),files:i}}},(e,t,r)=>{"use strict";function n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r){"name"in r?e.append(t,r,r.name):e.append(t,r)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryLink:()=>c});var n=r(459),o=r(430),i=r(427),a=r(518),s=r(522),l=r(524);class c extends o.ApolloLink{options;constructor(e={}){super(),this.options=(0,s.withDefaults)(e)}request(e,t){const{options:r}=this;if(!(r.shouldHandleOperation?.(e)??1))return t(e);r.setTransaction&&(0,l.setTransaction)(e),r.setFingerprint&&(0,l.setFingerprint)(e);const{attachBreadcrumbs:o}=r;if(!o)return t(e);const s=(0,a.makeBreadcrumb)(e,r);return new i.Observable(i=>{const a=t(e).subscribe({next:e=>{s.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),o.includeFetchResult&&(s.data.fetchResult=e),o.includeError&&e.errors&&e.errors.length>0&&(s.data.error=new n.ApolloError({graphQLErrors:e.errors})),i.next(e)},complete:()=>{(0,l.attachBreadcrumbToSentry)(e,s,r),i.complete()},error:t=>{let n;if(s.level="error",function(e){return"object"==typeof e&&null!==e&&"response"in e&&"result"in e&&"statusCode"in e}(t)){const{result:e,response:r,...i}=t;n=i,o.includeFetchResult&&(s.data.fetchResult=e)}else n=t;o.includeError&&(s.data.error=n),(0,l.attachBreadcrumbToSentry)(e,s,r),i.error(t)}});return()=>{a.unsubscribe()}})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeBreadcrumb:()=>s});var n=r(519),o=r.n(n),i=r(465),a=r(521);function s(e,t){const r=t.attachBreadcrumbs,n=(0,a.extractDefinition)(e),s={},l=t.uri;l&&(s.url=l);const c=n.name?.value;c&&(s.operationName=c),r.includeQuery&&(s.query=n.loc?.source?.body??(0,i.print)(n)),r.includeVariables&&(s.variables=e.variables),r.includeCache&&(s.cache=e.getContext().cache?.data?.data??void 0);const u=r.includeContext;return u&&(s.context=function(e,t){const r={};return t.forEach(t=>{r[t]=o().get(e,t)}),r}(e.getContext(),u)),{type:"http",category:`graphql.${n.operation}`,data:s}}},(e,t,r)=>{"use strict";const n=r(520),o=new Set(["__proto__","prototype","constructor"]);function i(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some(e=>o.has(e))?[]:r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const o=i(t);if(0!==o.length){for(let t=0;t<o.length;t++)if(null==(e=e[o[t]])){if(t!==o.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const o=e,a=i(t);for(let t=0;t<a.length;t++){const o=a[t];n(e[o])||(e[o]={}),t===a.length-1&&(e[o]=r),e=e[o]}return o},delete(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=i(t);for(let t=0;t<r.length;t++){const o=r[t];if(t===r.length-1)return delete e[o],!0;if(e=e[o],!n(e))return!1}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=i(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},e=>{"use strict";e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},(e,t,r)=>{"use strict";function n(e){return e.query.definitions.find(e=>"OperationDefinition"===e.kind)}r.r(t),r.d(t,{extractDefinition:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>i,withDefaults:()=>a});var n=r(523),o=r.n(n);const i={shouldHandleOperation:void 0,uri:void 0,setTransaction:!0,setFingerprint:!0,attachBreadcrumbs:{includeQuery:!1,includeVariables:!1,includeFetchResult:!1,includeError:!1,includeCache:!1,includeContext:!1,transform:void 0}};function a(e){return o()(i,e)}},e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,r){var o={};return r.isMergeableObject(e)&&i(e).forEach(function(t){o[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&r.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(i,r)(e[i],t[i],r):o[i]=n(t[i],r))}),o}function l(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?i.arrayMerge(e,r,i):s(e,r,i):n(r,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var c=l;e.exports=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_FINGERPRINT:()=>l,attachBreadcrumbToSentry:()=>u,setFingerprint:()=>c,setTransaction:()=>s});var n=r(301),o=r(525),i=r(521),a=r(526);function s(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setTransactionName(t.value)}const l="{{ default }}";function c(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setFingerprint([l,t.value])}function u(e,t,r){const n=r.attachBreadcrumbs&&"function"==typeof r.attachBreadcrumbs.transform?r.attachBreadcrumbs.transform(t,e):t;n.data=(0,a.stringifyObjectKeys)(n.data),(0,o.addBreadcrumb)(n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>s});var n=r(301),o=r(315),i=r(317);const a=100;function s(e,t){const r=(0,n.getClient)(),s=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:c=a}=r.getOptions();if(c<=0)return;const u={timestamp:(0,i.dateTimestampInSeconds)(),...e},d=l?(0,o.consoleSandbox)(()=>l(u,t)):u;null!==d&&(r.emit&&r.emit("beforeAddBreadcrumb",d,t),s.addBreadcrumb(d,c))}},(e,t,r)=>{"use strict";function n(e){const t={};for(const[r,n]of Object.entries(e))t[r]="object"==typeof n?o(n):n;return t}function o(e){return JSON.stringify(e,null,2)}r.r(t),r.d(t,{stringify:()=>o,stringifyObjectKeys:()=>n})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>v,default:()=>S,encode:()=>b,toASCII:()=>w,toUnicode:()=>_,ucs2decode:()=>p,ucs2encode:()=>h});const n=2147483647,o=36,i=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function f(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join(".");return n+o}function p(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const h=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:o},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=function(e,t,r){let n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;n+=o)e=c(e/35);return c(n+36*e/(e+38))},v=function(e){const t=[],r=e.length;let i=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&d("not-basic"),t.push(e.charCodeAt(r));for(let u=l>0?l+1:0;u<r;){const l=i;for(let t=1,a=o;;a+=o){u>=r&&d("invalid-input");const l=m(e.charCodeAt(u++));l>=o&&d("invalid-input"),l>c((n-i)/t)&&d("overflow"),i+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const p=o-f;t>c(n/p)&&d("overflow"),t*=p}const f=t.length+1;s=y(i-l,f,0==l),c(i/f)>n-a&&d("overflow"),a+=c(i/f),i%=f,t.splice(i++,0,a)}return String.fromCodePoint(...t)},b=function(e){const t=[],r=(e=p(e)).length;let i=128,a=0,s=72;for(const r of e)r<128&&t.push(u(r));const l=t.length;let f=l;for(l&&t.push("-");f<r;){let r=n;for(const t of e)t>=i&&t<r&&(r=t);const p=f+1;r-i>c((n-a)/p)&&d("overflow"),a+=(r-i)*p,i=r;for(const r of e)if(r<i&&++a>n&&d("overflow"),r===i){let e=a;for(let r=o;;r+=o){const n=r<=s?1:r>=s+26?26:r-s;if(e<n)break;const i=e-n,a=o-n;t.push(u(g(n+i%a,0))),e=c(i/a)}t.push(u(g(e,0))),s=y(a,p,f===l),a=0,++f}++a,++i}return t.join("")},_=function(e){return f(e,function(e){return i.test(e)?v(e.slice(4).toLowerCase()):e})},w=function(e){return f(e,function(e){return a.test(e)?"xn--"+b(e):e})},S={version:"2.3.1",ucs2:{decode:p,encode:h},decode:v,encode:b,toASCII:w,toUnicode:_}},,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E,disableExperimentalFragmentVariables:()=>g,disableFragmentWarnings:()=>h,enableExperimentalFragmentVariables:()=>m,gql:()=>f,resetCaches:()=>p});var n=r(104),o=r(584),i=new Map,a=new Map,s=!0,l=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,o=c((l=e.loc).source.body.substring(l.start,l.end)),i=a.get(n);i&&!i.has(o)?s&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||a.set(n,i=new Set),i.add(o),t.has(o)||(t.add(o),r.push(e))}else r.push(e);var l}),(0,n.__assign)((0,n.__assign)({},e),{definitions:r})}function d(e){var t=c(e);if(!i.has(t)){var r=(0,o.parse)(e,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");i.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(u(r)))}return i.get(t)}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),d(n)}function p(){i.clear(),a.clear()}function h(){s=!1}function m(){l=!0}function g(){l=!1}var y,v=f,b=p,_=h,w=m,S=g;(y=f||(f={})).gql=v,y.resetCaches=b,y.disableFragmentWarnings=_,y.enableExperimentalFragmentVariables=w,y.disableExperimentalFragmentVariables=S,f.default=f;const E=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>h,parse:()=>u,parseConstValue:()=>f,parseType:()=>p,parseValue:()=>d});var n=r(585),o=r(441),i=r(591),a=r(442),s=r(592),l=r(594),c=r(593);function u(e,t){const r=new h(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function d(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(c.TokenKind.EOF),n}function f(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseConstValueLiteral();return r.expectToken(c.TokenKind.EOF),n}function p(e,t){const r=new h(e,t);r.expectToken(c.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(c.TokenKind.EOF),n}class h{constructor(e,t={}){const r=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(c.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(c.TokenKind.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:a.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,()=>this.parseObjectField(e),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(c.TokenKind.COLON);const n=this.parseTypeReference();let o;this.expectOptionalToken(c.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:o})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const r=this.parseName(),n=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:o,locations:i})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${g(e)}, found ${m(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${m(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${m(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function m(e){const t=e.value;return g(e.kind)+(null!=t?` "${t}"`:"")}function g(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{syntaxError:()=>o});var n=r(586);function o(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GraphQLError:()=>a,formatError:()=>c,printError:()=>l});var n=r(587),o=r(588),i=r(590);class a extends Error{constructor(e,...t){var r,i,l;const{nodes:c,source:u,positions:d,path:f,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=p?p:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,o.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,o.getLocation)(e.source,e.start));const g=(0,n.isObjectLike)(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,i.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,i.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function c(e){return e.toJSON()}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}r.r(t),r.d(t,{isObjectLike:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLocation:()=>i});var n=r(589);const o=/\r\n|[\n\r]/g;function i(e,t){let r=0,i=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||(0,n.invariant)(!1),a.index>=t)break;r=a.index+a[0].length,i+=1}return{line:i,column:t+1-r}}},(e,t,r)=>{"use strict";function n(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}r.r(t),r.d(t,{invariant:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{printLocation:()=>o,printSourceLocation:()=>i});var n=r(588);function o(e){return i(e.source,(0,n.getLocation)(e.source,e.start))}function i(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${s}:${c}\n`,d=n.split(/\r\n|[\n\r]/g),f=d[o];if(f.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<f.length;e+=80)r.push(f.slice(e,e+80));return u+a([[`${s} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return u+a([[s-1+" |",d[o-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,d[o+1]]])}function a(e){const t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DirectiveLocation:()=>n}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lexer:()=>l,isPunctuatorTokenKind:()=>c});var n=r(585),o=r(441),i=r(466),a=r(467),s=r(593);class l{constructor(e){const t=new o.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R}function u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function d(e,t){return f(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function f(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return s.TokenKind.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,r,n,i){const a=e.line,s=1+r-e.lineStart;return new o.Token(t,r,n,a,s,i)}function g(e,t){const r=e.source.body,o=r.length;let i=t;for(;i<o;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return y(e,i);case 33:return m(e,s.TokenKind.BANG,i,i+1);case 36:return m(e,s.TokenKind.DOLLAR,i,i+1);case 38:return m(e,s.TokenKind.AMP,i,i+1);case 40:return m(e,s.TokenKind.PAREN_L,i,i+1);case 41:return m(e,s.TokenKind.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return m(e,s.TokenKind.SPREAD,i,i+3);break;case 58:return m(e,s.TokenKind.COLON,i,i+1);case 61:return m(e,s.TokenKind.EQUALS,i,i+1);case 64:return m(e,s.TokenKind.AT,i,i+1);case 91:return m(e,s.TokenKind.BRACKET_L,i,i+1);case 93:return m(e,s.TokenKind.BRACKET_R,i,i+1);case 123:return m(e,s.TokenKind.BRACE_L,i,i+1);case 124:return m(e,s.TokenKind.PIPE,i,i+1);case 125:return m(e,s.TokenKind.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?T(e,i):_(e,i)}if((0,a.isDigit)(t)||45===t)return v(e,i,t);if((0,a.isNameStart)(t))return O(e,i);throw(0,n.syntaxError)(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||d(r,i)?`Unexpected character: ${h(e,i)}.`:`Invalid character: ${h(e,i)}.`)}return m(e,s.TokenKind.EOF,o,o)}function y(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const e=r.charCodeAt(o);if(10===e||13===e)break;if(u(e))++o;else{if(!d(r,o))break;o+=2}}return m(e,s.TokenKind.COMMENT,t,o,r.slice(t+1,o))}function v(e,t,r){const o=e.source.body;let i=t,l=r,c=!1;if(45===l&&(l=o.charCodeAt(++i)),48===l){if(l=o.charCodeAt(++i),(0,a.isDigit)(l))throw(0,n.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${h(e,i)}.`)}else i=b(e,i,l),l=o.charCodeAt(i);if(46===l&&(c=!0,l=o.charCodeAt(++i),i=b(e,i,l),l=o.charCodeAt(i)),69!==l&&101!==l||(c=!0,l=o.charCodeAt(++i),43!==l&&45!==l||(l=o.charCodeAt(++i)),i=b(e,i,l),l=o.charCodeAt(i)),46===l||(0,a.isNameStart)(l))throw(0,n.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${h(e,i)}.`);return m(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,i,o.slice(t,i))}function b(e,t,r){if(!(0,a.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const o=e.source.body;let i=t+1;for(;(0,a.isDigit)(o.charCodeAt(i));)++i;return i}function _(e,t){const r=e.source.body,o=r.length;let i=t+1,a=i,l="";for(;i<o;){const o=r.charCodeAt(i);if(34===o)return l+=r.slice(a,i),m(e,s.TokenKind.STRING,t,i+1,l);if(92===o){l+=r.slice(a,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?w(e,i):S(e,i):x(e,i);l+=t.value,i+=t.size,a=i;continue}if(10===o||13===o)break;if(u(o))++i;else{if(!d(r,i))throw(0,n.syntaxError)(e.source,i,`Invalid character within String: ${h(e,i)}.`);i+=2}}throw(0,n.syntaxError)(e.source,i,"Unterminated string.")}function w(e,t){const r=e.source.body;let o=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!u(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|k(e),o<0)break}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function S(e,t){const r=e.source.body,o=E(r,t+2);if(u(o))return{value:String.fromCodePoint(o),size:6};if(f(o)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=E(r,t+8);if(p(e))return{value:String.fromCodePoint(o,e),size:12}}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function E(e,t){return k(e.charCodeAt(t))<<12|k(e.charCodeAt(t+1))<<8|k(e.charCodeAt(t+2))<<4|k(e.charCodeAt(t+3))}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function T(e,t){const r=e.source.body,o=r.length;let a=e.lineStart,l=t+3,c=l,f="";const p=[];for(;l<o;){const o=r.charCodeAt(l);if(34===o&&34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)){f+=r.slice(c,l),p.push(f);const n=m(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,i.dedentBlockStringLines)(p).join("\n"));return e.line+=p.length-1,e.lineStart=a,n}if(92!==o||34!==r.charCodeAt(l+1)||34!==r.charCodeAt(l+2)||34!==r.charCodeAt(l+3))if(10!==o&&13!==o)if(u(o))++l;else{if(!d(r,l))throw(0,n.syntaxError)(e.source,l,`Invalid character within String: ${h(e,l)}.`);l+=2}else f+=r.slice(c,l),p.push(f),13===o&&10===r.charCodeAt(l+1)?l+=2:++l,f="",c=l,a=l;else f+=r.slice(c,l),c=l+1,l+=4}throw(0,n.syntaxError)(e.source,l,"Unterminated string.")}function O(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const e=r.charCodeAt(o);if(!(0,a.isNameContinue)(e))break;++o}return m(e,s.TokenKind.NAME,t,o,r.slice(t,o))}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{TokenKind:()=>n}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Source:()=>a,isSource:()=>s});var n=r(439),o=r(440),i=r(595);class a{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.devAssert)(!1,`Body must be a string. Received: ${(0,o.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,i.instanceOf)(e,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instanceOf:()=>o});var n=r(440);const o=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const o=t.prototype[Symbol.toStringTag];if(o===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${o} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}},,(e,t,r)=>{"use strict";r.r(t),r.d(t,{HydratedRouter:()=>u,RouterProvider:()=>a,unstable_RSCHydratedRouter:()=>h,unstable_createCallServer:()=>d,unstable_getRSCStream:()=>k});var n=r(598),o=r(599),i=r(296);function a(e){return i.createElement(o.RouterProvider,{flushSync:i.flushSync,...e})}var s=null,l=null;function c({getContext:e,unstable_instrumentations:t}){if(function(){if(!s&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(!0===window.__reactRouterManifest.sri){const e=document.querySelector("script[rr-importmap]");if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}s={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}(),!s)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let r=s;if(!s.stateDecodingPromise){let e=s.context.stream;(0,o.invariant)(e,"No stream found for single fetch decoding"),s.context.stream=void 0,s.stateDecodingPromise=(0,o.decodeViaTurboStream)(e,window).then(e=>{s.context.state=e.value,r.stateDecodingPromise.value=!0}).catch(e=>{r.stateDecodingPromise.error=e})}if(s.stateDecodingPromise.error)throw s.stateDecodingPromise.error;if(!s.stateDecodingPromise.value)throw s.stateDecodingPromise;let i,a=(0,o.createClientRoutes)(s.manifest.routes,s.routeModules,s.context.state,s.context.ssr,s.context.isSpaMode);if(s.context.isSpaMode){let{loaderData:e}=s.context.state;s.manifest.routes.root?.hasLoader&&e&&"root"in e&&(i={loaderData:{root:e.root}})}else i=(0,n.getHydrationData)({state:s.context.state,routes:a,getRouteInfo:e=>({clientLoader:s.routeModules[e]?.clientLoader,hasLoader:!0===s.manifest.routes[e]?.hasLoader,hasHydrateFallback:null!=s.routeModules[e]?.HydrateFallback}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:s.context.isSpaMode}),i&&i.errors&&(i.errors=(0,n.deserializeErrors)(i.errors));let l=(0,o.createRouter)({routes:a,history:(0,o.createBrowserHistory)(),basename:s.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:o.hydrationRouteProperties,unstable_instrumentations:t,mapRouteProperties:o.mapRouteProperties,future:{middleware:s.context.future.v8_middleware},dataStrategy:(0,o.getTurboStreamSingleFetchDataStrategy)(()=>l,s.manifest,s.routeModules,s.context.ssr,s.context.basename),patchRoutesOnNavigation:(0,o.getPatchRoutesOnNavigationFunction)(s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode,s.context.basename)});return s.router=l,l.state.initialized&&(s.routerInitialized=!0,l.initialize()),l.createRoutesForHMR=o.createClientRoutesWithHMRRevalidationOptOut,window.__reactRouterDataRouter=l,l}function u(e){l||(l=c({getContext:e.getContext,unstable_instrumentations:e.unstable_instrumentations}));let[t,r]=i.useState(void 0);i.useEffect(()=>{0},[]),i.useEffect(()=>{0},[t]);let[n,u]=i.useState(l.state.location);return i.useLayoutEffect(()=>{s&&s.router&&!s.routerInitialized&&(s.routerInitialized=!0,s.router.initialize())},[]),i.useLayoutEffect(()=>{if(s&&s.router)return s.router.subscribe(e=>{e.location!==n&&u(e.location)})},[n]),(0,o.invariant)(s,"ssrInfo unavailable for HydratedRouter"),(0,o.useFogOFWarDiscovery)(l,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode),i.createElement(i.Fragment,null,i.createElement(o.FrameworkContext.Provider,{value:{manifest:s.manifest,routeModules:s.routeModules,future:s.context.future,criticalCss:t,ssr:s.context.ssr,isSpaMode:s.context.isSpaMode,routeDiscovery:s.context.routeDiscovery}},i.createElement(o.RemixErrorBoundary,{location:n},i.createElement(a,{router:l,unstable_onError:e.unstable_onError}))),i.createElement(i.Fragment,null))}function d({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:r,fetch:n=fetch}){const o=window;return async(i,a)=>{let s=o.__routerActionID=(o.__routerActionID??(o.__routerActionID=0))+1;const l=t(),c=n(new Request(location.href,{body:await r(a,{temporaryReferences:l}),method:"POST",headers:{Accept:"text/x-component","rsc-action-id":i}})).then(t=>{if(!t.body)throw new Error("No response body");return e(t.body,{temporaryReferences:l})});return o.__reactRouterDataRouter.__setPendingRerender(Promise.resolve(c).then(async e=>{if("redirect"===e.type)return e.reload||E(e.location)?(window.location.href=e.location,()=>{}):()=>{o.__reactRouterDataRouter.navigate(e.location,{replace:e.replace})};if("action"!==e.type)throw new Error("Unexpected payload type");const t=await e.rerender;return t&&0<s&&o.__routerActionID<=s?"redirect"===t.type?t.reload||E(t.location)?void(window.location.href=t.location):()=>{o.__reactRouterDataRouter.navigate(t.location,{replace:t.replace})}:()=>{let e;for(const r of t.matches)o.__reactRouterDataRouter.patchRoutes(e?.id??null,[m(r)],!0),e=r;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},o.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},o.__reactRouterDataRouter.state.errors,t.errors):null})}:()=>{}}).catch(()=>{})),c.then(e=>{if("action"!==e.type&&"redirect"!==e.type)throw new Error("Unexpected payload type");return e.actionResult})}}var f=(0,o.createContext)();function p(e,t,r,n,i){let a=(0,o.getSingleFetchDataStrategyImpl)(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction,hasShouldRevalidate:t.route.hasShouldRevalidate}},function(e,t){return async(r,n,i)=>{let{request:a,context:s}=r,l=(0,o.singleFetchUrl)(a.url,n,"rsc");"GET"===a.method&&(l=(0,o.stripIndexParam)(l),i&&l.searchParams.set("_routes",i.join(",")));let c=await t(new Request(l,await(0,o.createRequestInit)(a)));if(c.status>=400&&!c.headers.has("X-Remix-Response"))throw new o.ErrorResponseImpl(c.status,c.statusText,await c.text());(0,o.invariant)(c.body,"No response body to decode");try{const t=await e(c.body,{temporaryReferences:void 0});if("redirect"===t.type)return{status:c.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if("render"!==t.type)throw new Error("Unexpected payload type");s.get(f).push(...t.matches);let r={routes:{}};const n=(0,o.isMutationMethod)(a.method)?"actionData":"loaderData";for(let[e,o]of Object.entries(t[n]||{}))r.routes[e]={data:o};if(t.errors)for(let[e,n]of Object.entries(t.errors))r.routes[e]={error:n};return{status:c.status,data:r}}catch(e){throw new Error("Unable to decode RSC response")}}}(n,i),t,r,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(f,[]);let r=await a(e);const n=new Map;for(const e of t.get(f))n.has(e.id)||n.set(e.id,[]),n.get(e.id).push(e);for(const t of e.matches){const e=n.get(t.route.id);if(e)for(const t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[m(t)],!0)}return r})}function h({createFromReadableStream:e,fetch:t=fetch,payload:r,routeDiscovery:a="eager",getContext:s}){if("render"!==r.type)throw new Error("Invalid payload type");let{router:l,routeModules:c}=i.useMemo(()=>function({fetchImplementation:e,createFromReadableStream:t,getContext:r,payload:i}){const a=window;if(a.__reactRouterDataRouter&&a.__reactRouterRouteModules)return{router:a.__reactRouterDataRouter,routeModules:a.__reactRouterRouteModules};if("render"!==i.type)throw new Error("Invalid payload type");a.__reactRouterRouteModules=a.__reactRouterRouteModules??{},(0,n.populateRSCRouteModules)(a.__reactRouterRouteModules,i.matches);let s=new Map;i.patches?.forEach(e=>{(0,o.invariant)(e.parentId,"Invalid patch parentId"),s.has(e.parentId)||s.set(e.parentId,[]),s.get(e.parentId)?.push(e)});let l,c=i.matches.reduceRight((e,t)=>{const r=m(t,i);if(e.length>0){r.children=e;let n=s.get(t.id);n&&r.children.push(...n.map(e=>m(e)))}return[r]},[]);return a.__reactRouterDataRouter=(0,o.createRouter)({routes:c,getContext:r,basename:i.basename,history:(0,o.createBrowserHistory)(),hydrationData:(0,n.getHydrationData)({state:{loaderData:i.loaderData,actionData:i.actionData,errors:i.errors},routes:c,getRouteInfo:e=>{let t=i.matches.find(t=>t.id===e);return(0,o.invariant)(t,"Route not found in payload"),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:null!=t.hydrateFallbackElement}},location:i.location,basename:i.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:r,signal:n}){_.has(r)||await S([r],t,e,n)},dataStrategy:p(()=>a.__reactRouterDataRouter,!0,i.basename,t,e)}),a.__reactRouterDataRouter.state.initialized?(a.__routerInitialized=!0,a.__reactRouterDataRouter.initialize()):a.__routerInitialized=!1,a.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{l!==e&&(a.__routerActionID=(a.__routerActionID??(a.__routerActionID=0))+1)}),a.__reactRouterDataRouter._updateRoutesForHMR=e=>{const t=window.__reactRouterDataRouter.routes,r=[];r.push(...function t(r,n){return r.map(r=>{const o=e.get(r.id);if(o){const{routeModule:e,hasAction:i,hasComponent:a,hasErrorBoundary:s,hasLoader:l}=o,c=m({clientAction:e.clientAction,clientLoader:e.clientLoader,element:r.element,errorElement:r.errorElement,handle:r.handle,hasAction:i,hasComponent:a,hasErrorBoundary:s,hasLoader:l,hydrateFallbackElement:r.hydrateFallbackElement,id:r.id,index:r.index,links:e.links,meta:e.meta,parentId:n,path:r.path,shouldRevalidate:e.shouldRevalidate});return r.children&&(c.children=t(r.children,r.id)),c}const i={...r};return r.children&&(i.children=t(r.children,r.id)),i})}(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(r)},{router:a.__reactRouterDataRouter,routeModules:a.__reactRouterRouteModules}}({payload:r,fetchImplementation:t,getContext:s,createFromReadableStream:e}),[e,r,t,s]);i.useEffect(()=>{(0,o.setIsHydrated)()},[]),i.useLayoutEffect(()=>{const e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[u,d]=i.useState(l.state.location);i.useLayoutEffect(()=>l.subscribe(e=>{e.location!==u&&d(e.location)}),[l,u]),i.useEffect(()=>{if("lazy"===a||!0===window.navigator?.connection?.saveData)return;function r(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;_.has(r)||v.add(r)}async function n(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(r);let n=Array.from(v.keys()).filter(e=>!_.has(e)||(v.delete(e),!1));if(0!==n.length)try{await S(n,e,t)}catch(e){console.error("Failed to fetch manifest patches",e)}}let o=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(n,100);n(),new MutationObserver(()=>o()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]})},[a,e,t]);const f={future:{v8_middleware:!1,unstable_subResourceIntegrity:!1},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"},routeModules:c};return i.createElement(o.RSCRouterContext.Provider,{value:!0},i.createElement(n.RSCRouterGlobalErrorBoundary,{location:u},i.createElement(o.FrameworkContext.Provider,{value:f},i.createElement(o.UNSTABLE_TransitionEnabledRouterProvider,{router:l,flushSync:i.flushSync}))))}function m(e,t){let r=t&&e.id in t.loaderData,i=t?.loaderData[e.id],a=t?.errors&&e.id in t.errors,s=t?.errors?.[e.id],l=!0===e.clientLoader?.hydrate||!e.hasLoader||e.hasComponent&&!e.element;(0,o.invariant)(window.__reactRouterRouteModules),(0,n.populateRSCRouteModules)(window.__reactRouterRouteModules,e);let c={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,n)=>{try{return await e.clientLoader({...t,serverLoader:()=>{if(y("loader",e.id,e.hasLoader),l){if(r)return i;if(a)throw s}return g(n)}})}finally{l=!1}}:(e,t)=>g(t),action:e.clientAction?(t,r)=>e.clientAction({...t,serverAction:async()=>(y("action",e.id,e.hasLoader),await g(r))}):e.hasAction?(e,t)=>g(t):()=>{throw(0,o.noActionDefinedError)("action",e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:null!=e.clientLoader,hasAction:e.hasAction,hasClientAction:null!=e.clientAction,hasShouldRevalidate:null!=e.shouldRevalidate};return"function"==typeof c.loader&&(c.loader.hydrate=(0,o.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)),c}function g(e){return(0,o.invariant)("function"==typeof e,"Invalid singleFetch parameter"),e()}function y(e,t,r){if(!r){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(r),new o.ErrorResponseImpl(400,"Bad Request",new Error(r),!0)}}var v=new Set,b=1e3,_=new Set,w=7680;async function S(e,t,r,n){let o=function(e){if(0===e.length)return null;if(1===e.length)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??"").replace(/^\/|\/$/g,""),r=new URL(`${t}/.manifest`,window.location.origin);return r.searchParams.set("paths",e.sort().join(",")),r}(e);if(null==o)return;if(o.toString().length>w)return void v.clear();let i=await r(new Request(o,{signal:n}));if(!i.body||i.status<200||i.status>=300)throw new Error("Unable to fetch new route matches from the server");let a=await t(i.body,{temporaryReferences:void 0});if("manifest"!==a.type)throw new Error("Failed to patch routes");e.forEach(e=>function(e,t){if(t.size>=b){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,_)),a.patches.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[m(e)])})}function E(e){return new URL(e,window.location.href).origin!==window.location.origin}function k(){let e=new TextEncoder,t=null,r=new ReadableStream({start(r){if("undefined"==typeof window)return;let n=t=>{"string"==typeof t?r.enqueue(e.encode(t)):r.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(n),window.__FLIGHT_DATA.push=e=>(n(e),0),t=r}});return"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{t?.close()}):t?.close(),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RSCDefaultRootErrorBoundary:()=>le,RSCRouterGlobalErrorBoundary:()=>ie,RSCStaticRouter:()=>he,ServerMode:()=>v,ServerRouter:()=>s,createCookie:()=>p,createCookieSessionStorage:()=>Q,createMemorySessionStorage:()=>Z,createRequestHandler:()=>W,createRoutesStub:()=>l,createSession:()=>K,createSessionStorage:()=>J,deserializeErrors:()=>me,getHydrationData:()=>ge,href:()=>ee,isCookie:()=>h,isSession:()=>Y,populateRSCRouteModules:()=>ue,routeRSCServerRequest:()=>pe,setDevServerHooks:()=>j});var n=r(599),o=r(296),i=r(600),a=r(601); /** * react-router v7.9.5 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function s({context:e,url:t,nonce:r}){"string"==typeof t&&(t=new URL(t));let{manifest:i,routeModules:a,criticalCss:s,serverHandoffString:l}=e,c=(0,n.createServerRoutes)(i.routes,a,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let r=t.route.id,o=a[r],i=e.manifest.routes[r];o&&i&&(0,n.shouldHydrateRouteLoader)(r,o.clientLoader,i.hasLoader,e.isSpaMode)&&(o.HydrateFallback||!i.hasLoader)&&delete e.staticHandlerContext.loaderData[r]}let u=(0,n.createStaticRouter)(c,e.staticHandlerContext);return o.createElement(o.Fragment,null,o.createElement(n.FrameworkContext.Provider,{value:{manifest:i,routeModules:a,criticalCss:s,serverHandoffString:l,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},o.createElement(n.RemixErrorBoundary,{location:u.state.location},o.createElement(n.StaticRouterProvider,{router:u,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?o.createElement(o.Suspense,null,o.createElement(n.StreamTransfer,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:r})):null)}function l(e,t){return function({initialEntries:r,initialIndex:i,hydrationData:a,future:s}){let l=o.useRef(),u=o.useRef();if(null==l.current){u.current={future:{unstable_subResourceIntegrity:!0===s?.unstable_subResourceIntegrity,v8_middleware:!0===s?.v8_middleware},manifest:{routes:{},entry:{imports:[],module:""},url:"",version:""},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"}};let o=c((0,n.convertRoutesToDataRoutes)(e,e=>e),void 0!==t?t:s?.v8_middleware?new n.RouterContextProvider:{},u.current.manifest,u.current.routeModules);l.current=(0,n.createMemoryRouter)(o,{initialEntries:r,initialIndex:i,hydrationData:a})}return o.createElement(n.FrameworkContext.Provider,{value:u.current},o.createElement(n.RouterProvider,{router:l.current}))}}function c(e,t,r,o,i){return e.map(e=>{if(!e.id)throw new Error("Expected a route.id in react-router processRoutes() function");let a={id:e.id,path:e.path,index:e.index,Component:e.Component?(0,n.withComponentProps)(e.Component):void 0,HydrateFallback:e.HydrateFallback?(0,n.withHydrateFallbackProps)(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?(0,n.withErrorBoundaryProps)(e.ErrorBoundary):void 0,action:e.action?r=>e.action({...r,context:t}):void 0,loader:e.loader?r=>e.loader({...r,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...r)=>e({...r[0],context:t},r[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},s={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:null!=e.action,hasLoader:null!=e.loader,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:null!=e.ErrorBoundary,module:"build/stub-path-to-module.js",clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return r.routes[a.id]=s,o[e.id]={default:a.Component||n.Outlet,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=c(e.children,t,r,o,a.id)),a})}var u=new TextEncoder,d=async(e,t)=>{let r=e.lastIndexOf("."),n=e.slice(0,r),o=e.slice(r+1),i=u.encode(n),a=await f(t,["verify"]);try{let e=function(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(atob(o));return!!await crypto.subtle.verify("HMAC",a,e,i)&&n}catch(e){return!1}},f=async(e,t)=>crypto.subtle.importKey("raw",u.encode(e),{name:"HMAC",hash:"SHA-256"},!1,t);var p=(e,t={})=>{let{secrets:r=[],...o}={path:"/",sameSite:"lax",...t};return function(e,t){(0,n.warnOnce)(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}(e,o.expires),{get name(){return e},get isSigned(){return r.length>0},get expires(){return void 0!==o.maxAge?new Date(Date.now()+1e3*o.maxAge):o.expires},async parse(t,n){if(!t)return null;let a=(0,i.parse)(t,{...o,...n});if(e in a){let t=a[e];if("string"==typeof t&&""!==t){let e=await async function(e,t){if(t.length>0){for(let r of t){let t=await d(e,r);if(!1!==t)return m(t)}return null}return m(e)}(t,r);return e}return""}return null},serialize:async(t,n)=>(0,i.serialize)(e,""===t?"":await async function(e,t){let r=function(e){return btoa(function(e){let t,r,n=e.toString(),o="",i=0;for(;i<n.length;){if(t=n.charAt(i++),"%"===t)if("u"===n.charAt(i)){if(r=n.slice(i+1,i+5),/^[\da-f]{4}$/i.exec(r)){o+=String.fromCharCode(parseInt(r,16)),i+=5;continue}}else if(r=n.slice(i,i+2),/^[\da-f]{2}$/i.exec(r)){o+=String.fromCharCode(parseInt(r,16)),i+=2;continue}o+=t}return o}(encodeURIComponent(JSON.stringify(e))))}(e);t.length>0&&(r=await(async(e,t)=>{let r=u.encode(e),n=await f(t,["sign"]),o=await crypto.subtle.sign("HMAC",n,r);return e+"."+btoa(String.fromCharCode(...new Uint8Array(o))).replace(/=+$/,"")})(r,t[0]));return r}(t,r),{...o,...n})}},h=e=>null!=e&&"string"==typeof e.name&&"boolean"==typeof e.isSigned&&"function"==typeof e.parse&&"function"==typeof e.serialize;function m(e){try{return JSON.parse(decodeURIComponent(function(e){let t,r,n=e.toString(),o="",i=0;for(;i<n.length;)t=n.charAt(i++),/[\w*+\-./@]/.exec(t)?o+=t:(r=t.charCodeAt(0),o+=r<256?"%"+g(r,2):"%u"+g(r,4).toUpperCase());return o}(atob(e))))}catch(e){return{}}}function g(e,t){let r=e.toString(16);for(;r.length<t;)r="0"+r;return r}function y(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n&&(t[r]=n.module),t},{})}var v=(e=>(e.Development="development",e.Production="production",e.Test="test",e))(v||{});function b(e,t){if(e instanceof Error&&"development"!==t){let e=new Error("Unexpected Server Error");return e.stack=void 0,e}return e}function _(e,t){return Object.entries(e).reduce((e,[r,n])=>Object.assign(e,{[r]:b(n,t)}),{})}function w(e,t){let r=b(e,t);return{message:r.message,stack:r.stack}}function S(e,t){if(!e)return null;let r=Object.entries(e),o={};for(let[e,i]of r)if((0,n.isRouteErrorResponse)(i))o[e]={...i,__type:"RouteErrorResponse"};else if(i instanceof Error){let r=b(i,t);o[e]={message:r.message,stack:r.stack,__type:"Error",..."Error"!==r.name?{__subType:r.name}:{}}}else o[e]=i;return o}function E(e,t,r){let o=(0,n.matchRoutes)(e,t,r);return o?o.map(e=>({params:e.params,pathname:e.pathname,route:e.route})):null}async function k(e,t){let r=await e({request:T(x(t.request)),params:t.params,context:t.context,unstable_pattern:t.unstable_pattern});if((0,n.isDataWithResponseInit)(r)&&r.init&&r.init.status&&(0,n.isRedirectStatusCode)(r.init.status))throw new Response(null,r.init);return r}function x(e){let t=new URL(e.url),r=t.searchParams.getAll("index");t.searchParams.delete("index");let n=[];for(let e of r)e&&n.push(e);for(let e of n)t.searchParams.append("index",e);let o={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return o.body&&(o.duplex="half"),new Request(t.href,o)}function T(e){let t=new URL(e.url);t.searchParams.delete("_routes");let r={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return r.body&&(r.duplex="half"),new Request(t.href,r)}function O(e,t){if(!1===e||null==e)throw console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"),new Error(t)}var C="__reactRouterDevServerHooks";function j(e){globalThis[C]=e}function P(){return globalThis[C]}function I(e,t){if("undefined"!=typeof process)try{if("yes"===process.env?.IS_RR_BUILD_REQUEST)return e.headers.get(t)}catch(e){}return null}function R(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}function A(e,t="",r=R(e)){return(r[t]||[]).map(t=>({...t,children:A(e,t.id,r)}))}function M(e,t,r="",o=R(e)){return(o[r]||[]).map(r=>{let i={hasErrorBoundary:"root"===r.id||null!=r.module.ErrorBoundary,id:r.id,path:r.path,middleware:r.module.middleware,loader:r.module.loader?async e=>{let t=I(e.request,"X-React-Router-Prerender-Data");if(null!=t){let e=t?decodeURI(t):t;O(e,"Missing prerendered data for route");let o=(new TextEncoder).encode(e),i=new ReadableStream({start(e){e.enqueue(o),e.close()}}),a=(await(0,n.decodeViaTurboStream)(i,global)).value;if(a&&n.SingleFetchRedirectSymbol in a){let e=a[n.SingleFetchRedirectSymbol],t={status:e.status};throw e.reload?(0,n.redirectDocument)(e.redirect,t):e.replace?(0,n.replace)(e.redirect,t):(0,n.redirect)(e.redirect,t)}{O(a&&r.id in a,"Unable to decode prerendered data");let e=a[r.id];return O("data"in e,"Unable to process prerendered data"),e.data}}return await k(r.module.loader,e)}:void 0,action:r.module.action?e=>k(r.module.action,e):void 0,handle:r.module.handle};return r.index?{index:!0,...i}:{caseSensitive:r.caseSensitive,children:M(e,t,r.id,o),...i}})}function D(e){return(0,n.escapeHtml)(JSON.stringify(e))}function N(e,t){return function(e,t,r){let n,o=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=o>=0?e.matches.slice(0,o+1):e.matches;if(o>=0){let{actionHeaders:t,actionData:r,loaderHeaders:i,loaderData:a}=e;e.matches.slice(o).some(e=>{let o=e.route.id;return!t[o]||r&&r.hasOwnProperty(o)?i[o]&&!a.hasOwnProperty(o)&&(n=i[o]):n=t[o],null!=n})}const a=new Headers(r);return i.reduce((r,o,a)=>{let{id:s}=o.route,l=e.loaderHeaders[s]||new Headers,c=e.actionHeaders[s]||new Headers,u=null!=n&&a===i.length-1,d=u&&n!==l&&n!==c,f=t(o);if(null==f){let e=new Headers(r);return d&&L(n,e),L(c,e),L(l,e),e}let p=new Headers("function"==typeof f?f({loaderHeaders:l,parentHeaders:r,actionHeaders:c,errorHeaders:u?n:void 0}):f);return d&&L(n,p),L(c,p),L(l,p),L(r,p),p},new Headers(a))}(e,e=>{let r=t.routes[e.route.id];return O(r,`Route with id "${e.route.id}" not found in build`),r.module.headers})}function L(e,t){let r=e.get("Set-Cookie");if(r){let e=(0,a.splitCookiesString)(r),n=new Set(t.getSetCookie());e.forEach(e=>{n.has(e)||t.append("Set-Cookie",e)})}}var B=new Set([...n.NO_BODY_STATUS_CODES,304]);async function F(e,t,r,o,i,a,s){try{let t=new Request(i,{method:o.method,body:o.body,headers:o.headers,signal:o.signal,...o.body?{duplex:"half"}:void 0}),n=await r.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return c(e)}}:void 0});return l(n)}catch(e){return c(e)}function l(r){return(0,n.isResponse)(r)?r:function(r){let i,a=N(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&a.has("Location"))return new Response(null,{status:r.statusCode,headers:a});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));i=r.errors?{error:Object.values(r.errors)[0]}:{data:Object.values(r.actionData||{})[0]};return U(o,e,t,{result:i,headers:a,status:r.statusCode})}(r)}function c(r){return s(r),U(o,e,t,{result:{error:r},headers:new Headers,status:500})}}async function z(e,t,r,o,i,a,s){let l=new URL(o.url).searchParams.get("_routes"),c=l?new Set(l.split(",")):null;try{let t=new Request(i,{headers:o.headers,signal:o.signal}),n=await r.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return u(await e(t))}catch(e){return d(e)}}:void 0});return u(n)}catch(e){return d(e)}function u(r){return(0,n.isResponse)(r)?r:function(r){let i=N(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&i.has("Location"))return new Response(null,{status:r.statusCode,headers:i});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));let a={},l=new Set(r.matches.filter(e=>c?c.has(e.route.id):null!=e.route.loader).map(e=>e.route.id));if(r.errors)for(let[e,t]of Object.entries(r.errors))a[e]={error:t};for(let[e,t]of Object.entries(r.loaderData))!(e in a)&&l.has(e)&&(a[e]={data:t});return U(o,e,t,{result:a,headers:i,status:r.statusCode})}(r)}function d(r){return s(r),U(o,e,t,{result:{error:r},headers:new Headers,status:500})}}function U(e,t,r,{result:n,headers:o,status:i}){let a=new Headers(o);return a.set("X-Remix-Response","yes"),B.has(i)?new Response(null,{status:i,headers:a}):(a.set("Content-Type","text/x-script"),a.delete("Content-Length"),new Response(q(n,e.signal,t.entry.module.streamTimeout,r),{status:i||200,headers:a}))}function H(e,t,r,o){let i=function(e,t,r){let o=t.get("Location");r&&(o=(0,n.stripBasename)(o,r)||o);return{redirect:o,status:e,revalidate:t.has("X-Remix-Revalidate")||t.has("Set-Cookie"),reload:t.has("X-Remix-Reload-Document"),replace:t.has("X-Remix-Replace")}}(e.status,e.headers,r.basename),a=new Headers(e.headers);return a.delete("Location"),a.set("Content-Type","text/x-script"),U(t,r,o,{result:"GET"===t.method?{[n.SingleFetchRedirectSymbol]:i}:i,headers:a,status:n.SINGLE_FETCH_REDIRECT_STATUS})}function q(e,t,r,o){let i=new AbortController,a=setTimeout(()=>i.abort(new Error("Server Timeout")),"number"==typeof r?r:4950);return t.addEventListener("abort",()=>clearTimeout(a)),(0,n.encode)(e,{signal:i.signal,plugins:[e=>{if(e instanceof Error){let{name:t,message:r,stack:n}="production"===o?b(e,o):e;return["SanitizedError",t,r,n]}if(e instanceof n.ErrorResponseImpl){let{data:t,status:r,statusText:n}=e;return["ErrorResponse",t,r,n]}if(e&&"object"==typeof e&&n.SingleFetchRedirectSymbol in e)return["SingleFetchRedirect",e[n.SingleFetchRedirectSymbol]]}],postPlugins:[e=>{if(e&&"object"==typeof e)return["SingleFetchClassInstance",Object.fromEntries(Object.entries(e))]},()=>["SingleFetchFallback"]]})}function V(e,t){let r=A(e.routes),o=M(e.routes,e.future),i="development"===(a=t)||"production"===a||"test"===a?t:"production";var a;let s=(0,n.createStaticHandler)(o,{basename:e.basename,unstable_instrumentations:e.entry.module.unstable_instrumentations}),l=e.entry.module.handleError||((e,{request:t})=>{"test"===i||t.signal.aborted||console.error((0,n.isRouteErrorResponse)(e)&&e.error?e.error:e)}),c=async(o,a)=>{let c,u={},d=e=>{"development"===t&&P()?.processRequestError?.(e),l(e,{context:c,params:u,request:o})};if(e.future.v8_middleware){if(a&&!(a instanceof n.RouterContextProvider)){let e=new Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return d(e),G(e,i)}c=a||new n.RouterContextProvider}else c=a||{};let f=new URL(o.url),p=e.basename||"/",h=f.pathname;"/_root.data"===(0,n.stripBasename)(h,p)?h=p:h.endsWith(".data")&&(h=h.replace(/\.data$/,"")),"/"!==(0,n.stripBasename)(h,p)&&h.endsWith("/")&&(h=h.slice(0,-1));let m="yes"===I(o,"X-React-Router-SPA-Mode");if(!e.ssr){let t=decodeURI(h);if("/"!==p){let e=(0,n.stripBasename)(t,p);if(null==e)return l(new n.ErrorResponseImpl(404,"Not Found",`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${p}\``),{context:c,params:u,request:o}),new Response("Not Found",{status:404,statusText:"Not Found"});t=e}if(0===e.prerender.length)m=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+"/")){if(f.pathname.endsWith(".data"))return l(new n.ErrorResponseImpl(404,"Not Found",`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:u,request:o}),new Response("Not Found",{status:404,statusText:"Not Found"});m=!0}}let g=(0,n.getManifestPath)(e.routeDiscovery.manifestPath,p);if(f.pathname===g)try{let t=await async function(e,t,r){if(e.assets.version!==r.searchParams.get("version"))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":"true"}});let n={};if(r.searchParams.has("paths")){let o=new Set;(r.searchParams.get("paths")||"").split(",").filter(Boolean).forEach(e=>{e.startsWith("/")||(e=`/${e}`);let t=e.split("/").slice(1);t.forEach((e,r)=>{let n=t.slice(0,r+1).join("/");o.add(`/${n}`)})});for(let r of o){let o=E(t,r,e.basename);if(o)for(let t of o){let r=t.route.id,o=e.assets.routes[r];o&&(n[r]=o)}}return Response.json(n,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}(e,r,f);return t}catch(e){return d(e),new Response("Unknown Server Error",{status:500})}let v,b=E(r,h,e.basename);if(b&&b.length>0&&Object.assign(u,b[0].params),f.pathname.endsWith(".data")){let t=new URL(o.url);t.pathname=h;let a=E(r,t.pathname,e.basename);v=await async function(e,t,r,n,o,i,a){let s="GET"!==n.method?await F(t,e,r,n,o,i,a):await z(t,e,r,n,o,i,a);return s}(i,e,s,o,t,c,d),(0,n.isRedirectResponse)(v)&&(v=H(v,o,e,i)),e.entry.module.handleDataRequest&&(v=await e.entry.module.handleDataRequest(v,{context:c,params:a?a[0].params:{},request:o}),(0,n.isRedirectResponse)(v)&&(v=H(v,o,e,i)))}else if(!m&&b&&null==b[b.length-1].route.module.default&&null==b[b.length-1].route.module.ErrorBoundary)v=await async function(e,t,r,o,i,a,s){try{let e=await r.queryRoute(i,{routeId:o,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return l(await e(i))}catch(e){return c(e)}}:void 0});return l(e)}catch(e){return c(e)}function l(e){return(0,n.isResponse)(e)?e:"string"==typeof e?new Response(e):Response.json(e)}function c(t){if((0,n.isResponse)(t))return t;if((0,n.isRouteErrorResponse)(t))return s(t),function(e,t){return Response.json(w(e.error||new Error("Unexpected Server Error"),t),{status:e.status,statusText:e.statusText})}(t,e);if(t instanceof Error&&"Expected a response from queryRoute"===t.message){let t=new Error("Expected a Response to be returned from resource route handler");return s(t),G(t,e)}return s(t),G(t,e)}}(i,e,s,b.slice(-1)[0].route.id,o,c,d);else{let r,{pathname:a}=f;e.unstable_getCriticalCss?r=await e.unstable_getCriticalCss({pathname:a}):"development"===t&&P()?.getCriticalCss&&(r=await(P()?.getCriticalCss?.(a))),v=await async function(e,t,r,o,i,a,s,l){try{let e=await r.query(o,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(o);return(0,n.isResponse)(t)||(t=await c(t,s)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0});return(0,n.isResponse)(e)||(e=await c(e,s)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(s,c){let u=N(s,t);if(B.has(s.statusCode))return new Response(null,{status:s.statusCode,headers:u});s.errors&&(Object.values(s.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||a(e)}),s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:S(s.errors,e)},f={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},p={manifest:t.assets,routeModules:y(t.routes),staticHandlerContext:s,criticalCss:l,serverHandoffString:D({...f,criticalCss:l}),serverHandoffStream:q(d,o.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>w(t,e)},h=t.entry.module.default;try{return await h(o,s.statusCode,u,p,i)}catch(l){a(l);let c=l;if((0,n.isResponse)(l))try{let e=await function(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}(l);c=new n.ErrorResponseImpl(l.status,l.statusText,e)}catch(e){}(s=(0,n.getStaticContextFromError)(r.dataRoutes,s,c)).errors&&(s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:S(s.errors,e)};p={...p,staticHandlerContext:s,serverHandoffString:D(f),serverHandoffStream:q(d,o.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await h(o,s.statusCode,u,p,i)}catch(t){return a(t),G(t,e)}}}}(i,e,s,o,c,d,m,r)}return"HEAD"===o.method?new Response(null,{headers:v.headers,status:v.status,statusText:v.statusText}):v};return e.entry.module.unstable_instrumentations&&(c=(0,n.instrumentHandler)(c,e.entry.module.unstable_instrumentations.map(e=>e.handler).filter(Boolean))),{routes:r,dataRoutes:o,serverMode:i,staticHandler:s,errorHandler:l,requestHandler:c}}var W=(e,t)=>{let r,n,o,i,a,s;return async function(l,c){if(r="function"==typeof e?await e():e,"function"==typeof e){let e=V(r,t);n=e.routes,o=e.serverMode,i=e.staticHandler,a=e.errorHandler,s=e.requestHandler}else if(!(n&&o&&i&&a&&s)){let e=V(r,t);n=e.routes,o=e.serverMode,i=e.staticHandler,a=e.errorHandler,s=e.requestHandler}return s(l,c)}};function G(e,t){let r="Unexpected Server Error";return"production"!==t&&(r+=`\n\n${String(e)}`),new Response(r,{status:500,headers:{"Content-Type":"text/plain"}})}function $(e){return`__flash_${e}__`}var K=(e={},t="")=>{let r=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(r)},has:e=>r.has(e)||r.has($(e)),get(e){if(r.has(e))return r.get(e);let t=$(e);if(r.has(t)){let e=r.get(t);return r.delete(t),e}},set(e,t){r.set(e,t)},flash(e,t){r.set($(e),t)},unset(e){r.delete(e)}}},Y=e=>null!=e&&"string"==typeof e.id&&void 0!==e.data&&"function"==typeof e.has&&"function"==typeof e.get&&"function"==typeof e.set&&"function"==typeof e.flash&&"function"==typeof e.unset;function J({cookie:e,createData:t,readData:r,updateData:n,deleteData:o}){let i=h(e)?e:p(e?.name||"__session",e);return X(i),{async getSession(e,t){let n=e&&await i.parse(e,t),o=n&&await r(n);return K(o||{},n||"")},async commitSession(e,r){let{id:o,data:a}=e,s=null!=r?.maxAge?new Date(Date.now()+1e3*r.maxAge):null!=r?.expires?r.expires:i.expires;return o?await n(o,a,s):o=await t(a,s),i.serialize(o,r)},destroySession:async(e,t)=>(await o(e.id),i.serialize("",{...t,maxAge:void 0,expires:new Date(0)}))}}function X(e){(0,n.warnOnce)(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Q({cookie:e}={}){let t=h(e)?e:p(e?.name||"__session",e);return X(t),{getSession:async(e,r)=>K(e&&await t.parse(e,r)||{}),async commitSession(e,r){let n=await t.serialize(e.data,r);if(n.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+n.length);return n},destroySession:async(e,r)=>t.serialize("",{...r,maxAge:void 0,expires:new Date(0)})}}function Z({cookie:e}={}){let t=new Map;return J({cookie:e,async createData(e,r){let n=Math.random().toString(36).substring(2,10);return t.set(n,{data:e,expires:r}),n},async readData(e){if(t.has(e)){let{data:r,expires:n}=t.get(e);if(!n||n>new Date)return r;n&&t.delete(e)}return null},async updateData(e,r,n){t.set(e,{data:r,expires:n})},async deleteData(e){t.delete(e)}})}function ee(e,...t){let r=t[0],n=e.replace(/\/*\*?$/,"").replace(/\/:([\w-]+)(\?)?/g,(t,n,o)=>{const i=void 0===o,a=r?r[n]:void 0;if(i&&void 0===a)throw new Error(`Path '${e}' requires param '${n}' but it was not provided`);return void 0===a?"":"/"+a});if(e.endsWith("*")){const e=r?r["*"]:void 0;void 0!==e&&(n+="/"+e)}return n||"/"}var te=new TextEncoder,re="</body></html>";function ne(e){let t,r=new TextDecoder,n=new Promise(e=>t=e),o=!1,i=[],a=null;function s(e){for(let t of i){let n=r.decode(t,{stream:!0});n.endsWith(re)&&(n=n.slice(0,-re.length)),e.enqueue(te.encode(n))}i.length=0,a=null}return new TransformStream({transform(r,n){i.push(r),a||(a=setTimeout(async()=>{s(n),o||(o=!0,async function(e,t){let r=new TextDecoder("utf-8",{fatal:!0});const n=e.getReader();try{let e;for(;(e=await n.read())&&!e.done;){const n=e.value;try{oe(JSON.stringify(r.decode(n,{stream:!0})),t)}catch(e){oe(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...n)))}), m => m.codePointAt(0))`,t)}}}finally{n.releaseLock()}let o=r.decode();o.length&&oe(JSON.stringify(o),t)}(e,n).catch(e=>n.error(e)).then(t))},0))},async flush(e){await n,a&&(clearTimeout(a),s(e)),e.enqueue(te.encode("</body></html>"))}})}function oe(e,t){var r;t.enqueue(te.encode(`<script>${r=`(self.__FLIGHT_DATA||=[]).push(${e})`,r.replace(/<!--/g,"<\\!--").replace(/<\/(script)/gi,"</\\$1")}<\/script>`))}var ie=class extends o.default.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?o.default.createElement(se,{error:this.state.error,renderAppShell:!0}):this.props.children}};function ae({renderAppShell:e,title:t,children:r}){return e?o.default.createElement("html",{lang:"en"},o.default.createElement("head",null,o.default.createElement("meta",{charSet:"utf-8"}),o.default.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.default.createElement("title",null,t)),o.default.createElement("body",null,o.default.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r))):r}function se({error:e,renderAppShell:t}){console.error(e);let r,i=o.default.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if((0,n.isRouteErrorResponse)(e))return o.default.createElement(ae,{renderAppShell:t,title:"Unhandled Thrown Response!"},o.default.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n.ENABLE_DEV_WARNINGS?i:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return o.default.createElement(ae,{renderAppShell:t,title:"Application Error!"},o.default.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.default.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),i)}function le({hasRootLayout:e}){let t=(0,n.useRouteError)();if(void 0===e)throw new Error("Missing 'hasRootLayout' prop");return o.default.createElement(se,{renderAppShell:!e,error:t})}function ce(e){const t={};for(const r of e.matches)ue(t,r);return t}function ue(e,t){t=Array.isArray(t)?t:[t];for(const r of t)e[r.id]={links:r.links,meta:r.meta,default:de}}var de=()=>null,fe=o.use;async function pe({request:e,fetchServer:t,createFromReadableStream:r,renderHTML:o,hydrate:i=!0}){const a=new URL(e.url),s=function(e){return e.pathname.endsWith(".rsc")}(a),l=s||function(e){return e.pathname.endsWith(".manifest")}(a)||e.headers.has("rsc-action-id"),c=await t(e);if(l||"true"===c.headers.get("React-Router-Resource"))return c;if(!c.body)throw new Error("Missing body in server response");const u=c.clone();let d=null;i&&(d=c.clone());const f=c.body;let p,h=[];const m=()=>p?new ReadableStream({start(e){p.forEach(t=>e.enqueue(t)),h.push(e)}}):(p=[],f.pipeThrough(new TransformStream({transform(e,t){p.push(e),t.enqueue(e),h.forEach(t=>t.enqueue(e))},flush(){h.forEach(e=>e.close()),h=[]}})));let g=null;const y=()=>{const e=Promise.resolve(r(m()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get:()=>g,set(e){g=e}},formState:{get:()=>e.then(e=>"render"===e.type?e.formState:void 0)}})};try{if(!u.body)throw new Error("Failed to clone server response");const e=await r(u.body);if(c.status===n.SINGLE_FETCH_REDIRECT_STATUS&&"redirect"===e.type){const t=new Headers(c.headers);return t.delete("Content-Encoding"),t.delete("Content-Length"),t.delete("Content-Type"),t.delete("X-Remix-Response"),t.set("Location",e.location),new Response(d?.body||"",{headers:t,status:e.status,statusText:c.statusText})}const t=await o(y),a=new Headers(c.headers);if(a.set("Content-Type","text/html; charset=utf-8"),!i)return new Response(t,{status:c.status,headers:a});if(!d?.body)throw new Error("Failed to clone server response");const s=t.pipeThrough(ne(d.body));return new Response(s,{status:c.status,headers:a})}catch(e){if(e instanceof Response)return e;try{const t=(0,n.isRouteErrorResponse)(e)?e.status:500,a=await o(()=>{const n=Promise.resolve(r(m())).then(r=>Object.assign(r,{status:t,errors:g?{[g]:e}:{}}));return Object.defineProperties(n,{_deepestRenderedBoundaryId:{get:()=>g,set(e){g=e}},formState:{get:()=>n.then(e=>"render"===e.type?e.formState:void 0)}})}),s=new Headers(c.headers);if(s.set("Content-Type","text/html"),!i)return new Response(a,{status:t,headers:s});if(!d?.body)throw new Error("Failed to clone server response");const l=a.pipeThrough(ne(d.body));return new Response(l,{status:t,headers:s})}catch{}throw e}}function he({getPayload:e}){const t=e(),r=function(e){if(fe)return fe(e);throw new Error("React Router v7 requires React 19+ for RSC features.")}(t);if("redirect"===r.type)throw new Response(null,{status:r.status,headers:{Location:r.location}});if("render"!==r.type)return null;let i={...r.loaderData};for(const e of r.matches)!(0,n.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)||!e.hydrateFallbackElement&&e.hasLoader||delete i[e.id];const a={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:r.actionData,actionHeaders:{},basename:r.basename,errors:r.errors,loaderData:i,loaderHeaders:{},location:r.location,statusCode:200,matches:r.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},s=(0,n.createStaticRouter)(r.matches.reduceRight((e,t)=>{const r={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(r.children=e),[r]},[]),a),l={future:{v8_middleware:!1,unstable_subResourceIntegrity:!1},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"},routeModules:ce(r)};return o.createElement(n.RSCRouterContext.Provider,{value:!0},o.createElement(ie,{location:r.location},o.createElement(n.FrameworkContext.Provider,{value:l},o.createElement(n.StaticRouterProvider,{context:a,router:s,hydrate:!1,nonce:r.nonce}))))}function me(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,o]of t)if(o&&"RouteErrorResponse"===o.__type)r[e]=new n.ErrorResponseImpl(o.status,o.statusText,o.data,!0===o.internal);else if(o&&"Error"===o.__type){if(o.__subType){let t=window[o.__subType];if("function"==typeof t)try{let n=new t(o.message);n.stack=o.stack,r[e]=n}catch(e){}}if(null==r[e]){let t=new Error(o.message);t.stack=o.stack,r[e]=t}}else r[e]=o;return r}function ge({state:e,routes:t,getRouteInfo:r,location:o,basename:i,isSpaMode:a}){let s={...e,loaderData:{...e.loaderData}},l=(0,n.matchRoutes)(t,o,i);if(l)for(let e of l){let t=e.route.id,o=r(t);!(0,n.shouldHydrateRouteLoader)(t,o.clientLoader,o.hasLoader,a)||!o.hasHydrateFallback&&o.hasLoader?o.hasLoader||(s.loaderData[t]=null):delete s.loaderData[t]}return s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Action:()=>s,Await:()=>Xr,AwaitContextProvider:()=>Gt,BrowserRouter:()=>yi,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Zo,DataRouterContext:()=>zt,DataRouterStateContext:()=>Ut,ENABLE_DEV_WARNINGS:()=>Xt,ErrorResponseImpl:()=>ae,FetchersContext:()=>Vt,Form:()=>Ei,FrameworkContext:()=>Yo,HashRouter:()=>vi,HistoryRouter:()=>bi,IDLE_BLOCKER:()=>Oe,IDLE_FETCHER:()=>Te,IDLE_NAVIGATION:()=>xe,Link:()=>wi,Links:()=>ei,LocationContext:()=>Kt,MemoryRouter:()=>Wr,Meta:()=>oi,NO_BODY_STATUS_CODES:()=>ao,NavLink:()=>Si,Navigate:()=>Gr,NavigationContext:()=>$t,Outlet:()=>$r,PrefetchPageLinks:()=>ti,RSCRouterContext:()=>Ht,RemixErrorBoundary:()=>ci,Route:()=>Kr,RouteContext:()=>Yt,Router:()=>Yr,RouterContextProvider:()=>w,RouterProvider:()=>qr,Routes:()=>Jr,SINGLE_FETCH_REDIRECT_STATUS:()=>io,Scripts:()=>si,ScrollRestoration:()=>ki,SingleFetchRedirectSymbol:()=>no,StaticRouter:()=>qi,StaticRouterProvider:()=>Vi,StreamTransfer:()=>so,UNSTABLE_TransitionEnabledRouterProvider:()=>Hr,ViewTransitionContext:()=>qt,WithComponentProps:()=>on,WithErrorBoundaryProps:()=>dn,WithHydrateFallbackProps:()=>ln,convertRoutesToDataRoutes:()=>x,createBrowserHistory:()=>u,createBrowserRouter:()=>pi,createClientRoutes:()=>Ao,createClientRoutesWithHMRRevalidationOptOut:()=>Po,createContext:()=>_,createHashRouter:()=>hi,createMemoryRouter:()=>zr,createPath:()=>g,createRequestInit:()=>Xn,createRouter:()=>Ae,createRoutesFromChildren:()=>en,createRoutesFromElements:()=>tn,createSearchParams:()=>gn,createServerRoutes:()=>jo,createStaticHandler:()=>Me,createStaticHandler2:()=>Ki,createStaticRouter:()=>Yi,data:()=>re,decodeViaTurboStream:()=>ho,encode:()=>Jn,escapeHtml:()=>eo,generatePath:()=>U,getManifestPath:()=>Vo,getPatchRoutesOnNavigationFunction:()=>Ho,getSingleFetchDataStrategyImpl:()=>co,getStaticContextFromError:()=>De,getTurboStreamSingleFetchDataStrategy:()=>lo,hydrationRouteProperties:()=>Fr,instrumentHandler:()=>de,invariant:()=>f,isDataWithResponseInit:()=>Ct,isMutationMethod:()=>At,isRedirectResponse:()=>It,isRedirectStatusCode:()=>Pt,isResponse:()=>jt,isRouteErrorResponse:()=>se,mapRouteProperties:()=>Br,matchPath:()=>H,matchRoutes:()=>O,noActionDefinedError:()=>Ro,parsePath:()=>y,redirect:()=>ne,redirectDocument:()=>oe,renderMatches:()=>rn,replace:()=>ie,resolvePath:()=>G,setIsHydrated:()=>ai,shouldHydrateRouteLoader:()=>No,singleFetchUrl:()=>fo,stripBasename:()=>W,stripIndexParam:()=>uo,useActionData:()=>Or,useAsyncError:()=>Pr,useAsyncValue:()=>jr,useBeforeUnload:()=>zi,useBlocker:()=>Rr,useFetcher:()=>Mi,useFetchers:()=>Di,useFogOFWarDiscovery:()=>qo,useFormAction:()=>Ai,useHref:()=>Qt,useInRouterContext:()=>Zt,useLinkClickHandler:()=>Ci,useLoaderData:()=>xr,useLocation:()=>er,useMatch:()=>rr,useMatches:()=>kr,useNavigate:()=>ir,useNavigation:()=>Sr,useNavigationType:()=>tr,useOutlet:()=>lr,useOutletContext:()=>sr,useParams:()=>cr,usePrompt:()=>Ui,useResolvedPath:()=>ur,useRevalidator:()=>Er,useRoute:()=>Dr,useRouteError:()=>Cr,useRouteLoaderData:()=>Tr,useRoutes:()=>dr,useScrollRestoration:()=>Fi,useSearchParams:()=>ji,useSubmit:()=>Ri,useViewTransitionState:()=>Hi,warnOnce:()=>Lr,withComponentProps:()=>an,withErrorBoundaryProps:()=>fn,withHydrateFallbackProps:()=>cn});var n,o=r(296),i=e=>{throw TypeError(e)},a=(e,t,r)=>(((e,t,r)=>{t.has(e)||i("Cannot "+r)})(e,t,"read from private field"),r?r.call(e):t.get(e)),s=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(s||{}),l="popstate"; /** * react-router v7.9.5 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function c(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=l(null==n?t.length-1:n),a="POP",s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[i]}function u(e,r=null,n){let o=m(t?c().pathname:"/",e,r,n);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:g(e)}return{get index(){return i},get action(){return a},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a="PUSH";let n=u(e,r);i+=1,t.splice(i,t.length,n),o&&s&&s({action:a,location:n,delta:1})},replace(e,r){a="REPLACE";let n=u(e,r);t[i]=n,o&&s&&s({action:a,location:n,delta:0})},go(e){a="POP";let r=l(i+e),n=t[r];i=r,s&&s({action:a,location:n,delta:e})},listen:e=>(s=e,()=>{s=null})}}function u(e={}){return v(function(e,t){let{pathname:r,search:n,hash:o}=e.location;return m("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:g(t)},null,e)}function d(e={}){return v(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=y(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:g(t))},function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?y(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function g({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function v(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s="POP",c=null,u=d();function d(){return(a.state||{idx:null}).idx}function f(){s="POP";let e=d(),t=null==e?null:e-u;u=e,c&&c({action:s,location:g.location,delta:t})}function p(e){return b(e)}null==u&&(u=0,a.replaceState({...a.state,idx:u},""));let g={get action(){return s},get location(){return e(o,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(l,f),c=e,()=>{o.removeEventListener(l,f),c=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=m(g.location,e,t);r&&r(n,e),u=d()+1;let l=h(n,u),f=g.createHref(n);try{a.pushState(l,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&c&&c({action:s,location:g.location,delta:1})},replace:function(e,t){s="REPLACE";let n=m(g.location,e,t);r&&r(n,e),u=d();let o=h(n,u),l=g.createHref(n);a.replaceState(o,"",l),i&&c&&c({action:s,location:g.location,delta:0})},go:e=>a.go(e)};return g}function b(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),f(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:g(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function _(e){return{defaultValue:e}}var w=class{constructor(e){var t,r,o;if(t=this,r=n,o=new Map,r.has(t)?i("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,o),e)for(let[t,r]of e)this.set(t,r)}get(e){if(a(this,n).has(e))return a(this,n).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,n).set(e,t)}};n=new WeakMap;var S=new Set(["lazy","caseSensitive","path","id","index","children"]);var E=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function k(e){return E.has(e)}function x(e,t,r=[],n={},o=!1){return e.map((e,i)=>{let a=[...r,String(i)],s="string"==typeof e.id?e.id:a.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(o||!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let r={...e,id:s};return n[s]=T(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=T(r,t(r)),e.children&&(r.children=x(e.children,t,a,n,o)),r}})}function T(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function O(e,t,r="/"){return C(e,t,r,!1)}function C(e,t,r,n){let o=W(("string"==typeof t?y(t):t).pathname||"/",r);if(null==o)return null;let i=P(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=V(o);a=z(i[e],t,n)}return a}function j(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function P(e,t=[],r=[],n="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;f(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=X([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(f(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),P(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:F(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of I(e.path))i(e,t,!0,r);else i(e,t)}),t}function I(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=I(n.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var R=/^:[\w-]+$/,A=3,M=2,D=1,N=10,L=-2,B=e=>"*"===e;function F(e,t){let r=e.split("/"),n=r.length;return r.some(B)&&(n+=L),t&&(n+=M),r.filter(e=>!B(e)).reduce((e,t)=>e+(R.test(t)?A:""===t?D:N),n)}function z(e,t,r=!1){let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=H({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=H({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:X([i,u.pathname]),pathnameBase:Q(X([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=X([i,u.pathnameBase]))}return a}function U(e,t={}){let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(p(!1,`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",o=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e){return o(t["*"])}const i=e.match(/^:([\w-]+)(\??)$/);if(i){const[,e,r]=i;let n=t[e];return f("?"===r||null!=n,`Missing ":${e}" param`),encodeURIComponent(o(n))}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function H(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=q(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function q(e,t=!1,r=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function V(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function W(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function G(e,t="/"){let{pathname:r,search:n="",hash:o=""}="string"==typeof e?y(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:Z(n),hash:ee(o)}}function $(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function K(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Y(e){let t=K(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function J(e,t,r,n=!1){let o;"string"==typeof e?o=y(e):(o={...e},f(!o.pathname||!o.pathname.includes("?"),$("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),$("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),$("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=G(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var X=e=>e.join("/").replace(/\/\/+/g,"/"),Q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ee=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",te=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function re(e,t){return new te(e,"number"==typeof t?{status:t}:t)}var ne=(e,t=302)=>{let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,{...r,headers:n})},oe=(e,t)=>{let r=ne(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ie=(e,t)=>{let r=ne(e,t);return r.headers.set("X-Remix-Replace","true"),r},ae=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function se(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function le(e){return e.filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ce=Symbol("Uninstrumented");function ue(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(r);for(let n of t)e[n]&&r[n].push(e[n])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=fe(r.lazy,t.lazy,()=>{});e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let o=e[t],i=r[`lazy.${t}`];if("function"==typeof o&&i.length>0){let e=fe(i,o,()=>{});e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let o=t[e];if("function"==typeof o&&r[e].length>0){let t=o[ce]??o,i=fe(r[e],t,(...e)=>he(e[0]));i&&(i[ce]=t,n[e]=i)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[ce]??e,n=fe(r.middleware,t,(...e)=>he(e[0]));return n?(n[ce]=t,n):e})),n}function de(e,t){let r={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}}));let n=e;return r.request.length>0&&(n=fe(r.request,e,(...e)=>{let[t,r]=e;return{request:ge(t),context:null!=r?ye(r):r}})),n}function fe(e,t,r){return 0===e.length?null:async(...n)=>{let o=await pe(e,r(...n),()=>t(...n),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function pe(e,t,r,n){let o,i=e[n];if(i){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=pe(e,t,r,n-1),o=await a,f(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await i(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await r();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function he(e){let{request:t,context:r,params:n,unstable_pattern:o}=e;return{request:ge(t),params:{...n},unstable_pattern:o,context:ye(r)}}function me(e,t){return{currentUrl:g(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ge(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ye(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ve}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ve=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var be=["POST","PUT","PATCH","DELETE"],_e=new Set(be),we=["GET",...be],Se=new Set(we),Ee=new Set([301,302,303,307,308]),ke=new Set([307,308]),xe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=e=>Ce.test(e),Pe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ie="remix-router-transitions",Re=Symbol("ResetLoaderData");function Ae(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;f(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Pe,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...ue(t.map(e=>e.route).filter(Boolean),e)})}let a,s={},l=x(e.routes,i,void 0,s),c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let u,d,h=e.dataStrategy||Xe,y={...e.future},v=null,_=new Set,S=null,E=null,k=null,T=null!=e.hydrationData,P=O(l,e.history.location,c),I=!1,R=null;if(null!=P||e.patchRoutesOnNavigation){if(P&&!e.hydrationData){De(P,l,e.history.location.pathname).active&&(P=null)}if(P)if(P.some(e=>e.route.lazy))u=!1;else if(P.some(e=>ze(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=P.findIndex(e=>void 0!==r[e.route.id]);u=P.slice(0,e+1).every(e=>!Ue(e.route,t,r))}else u=P.every(e=>!Ue(e.route,t,r))}else u=!0;else{u=!1,P=[];let t=De(null,l,e.history.location.pathname);t.active&&t.matches&&(I=!0,P=t.matches)}}else{let t=bt(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=vt(l);u=!0,P=r,R={[n.id]:t}}let A,M,D={historyAction:e.history.action,location:e.history.location,matches:P,initialized:u,navigation:xe,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},N="POP",L=!1,B=!1,F=new Map,z=null,U=!1,H=!1,q=new Set,V=new Map,G=0,$=-1,K=new Map,Y=new Set,J=new Map,X=new Map,Q=new Set,Z=new Map,ee=null;function te(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=s[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),D={...D,...e};let r=[],n=[];D.fetchers.forEach((e,t)=>{"idle"===e.state&&(Q.has(t)?r.push(t):n.push(t))}),Q.forEach(e=>{D.fetchers.has(e)||V.has(e)||r.push(e)}),[..._].forEach(e=>e(D,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>ye(e)),n.forEach(e=>D.fetchers.delete(e))}function re(t,r,{flushSync:n}={}){let o,i=null!=D.actionData&&null!=D.navigation.formMethod&&At(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;o=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:i?D.actionData:null;let s=r.loaderData?mt(D.loaderData,r.loaderData,r.matches||[],r.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,Oe)));let u,d=!U&&Me(t,r.matches||D.matches),f=!0===L||null!=D.navigation.formMethod&&At(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(l=a,a=void 0),U||"POP"===N||("PUSH"===N?e.history.push(t,t.state):"REPLACE"===N&&e.history.replace(t,t.state)),"POP"===N){let e=F.get(D.location.pathname);e&&e.has(t.pathname)?u={currentLocation:D.location,nextLocation:t}:F.has(t.pathname)&&(u={currentLocation:t,nextLocation:D.location})}else if(B){let e=F.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(D.location.pathname,e)),u={currentLocation:D.location,nextLocation:t}}te({...r,actionData:o,loaderData:s,historyAction:N,location:t,initialized:!0,navigation:xe,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:c},{viewTransitionOpts:u,flushSync:!0===n}),N="POP",L=!1,B=!1,U=!1,H=!1,ee?.resolve(),ee=null}async function ne(t,r,o){A&&A.abort(),A=null,N=t,U=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&k){let r=Ae(e,t);S[r]=k()}}(D.location,D.matches),L=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let u=a||l,d=o&&o.overrideNavigation,f=o?.initialHydration&&D.matches&&D.matches.length>0&&!I?D.matches:O(u,r,c),p=!0===(o&&o.flushSync);if(f&&D.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,r)&&!(o&&o.submission&&At(o.submission.formMethod)))return void re(r,{matches:f},{flushSync:p});let h=De(f,u,r.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:n}=Re(r.pathname);return void re(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:p})}A=new AbortController;let m,g=ut(e.history,r,A.signal,o&&o.submission),y=e.getContext?await e.getContext():new w;if(o&&o.pendingError)m=[yt(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&At(o.submission.formMethod)){let t=await async function(e,t,r,o,a,u,d,f={}){de();let p,h=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,r);if(te({navigation:h},{flushSync:!0===f.flushSync}),u){let r=await Ne(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){if(0===r.partialMatches.length){let{matches:e,route:t}=vt(l);return{matches:e,pendingActionResult:[t.id,{type:"error",error:r.error}]}}let e=yt(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:"error",error:r.error}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=Re(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:r}]}}o=r.matches}let m=Dt(o,t);if(m.route.action||m.route.lazy){let t=ot(i,s,e,o,m,d?[]:n,a),r=await ae(e,t,a,null);if(p=r[m.route.id],!p)for(let e of o)if(r[e.route.id]){p=r[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else p={type:"error",error:bt(405,{method:e.method,pathname:t.pathname,routeId:m.route.id})};if(Ot(p)){let t;if(f&&null!=f.replace)t=f.replace;else{t=ct(p.response.headers.get("Location"),new URL(e.url),c)===D.location.pathname+D.location.search}return await ie(e,p,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Tt(p)){let e=yt(o,m.route.id);return!0!==(f&&f.replace)&&(N="PUSH"),{matches:o,pendingActionResult:[e.route.id,p,m.route.id]}}return{matches:o,pendingActionResult:[m.route.id,p]}}(g,r,o.submission,f,y,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Tt(n)&&se(n.error)&&404===n.error.status)return A=null,void re(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}f=t.matches||f,m=t.pendingActionResult,d=Lt(r,o.submission),p=!1,h.active=!1,g=ut(e.history,g.url,g.signal)}let{shortCircuited:v,matches:b,loaderData:_,errors:E}=await async function(t,r,o,u,d,f,p,h,m,g,y,v){let b=f||Lt(r,p),_=p||h||Nt(b),w=!U&&!g;if(d){if(w){let e=oe(v);te({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:y})}let e=await Ne(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=vt(l);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=yt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=Re(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}o=e.matches}let S=a||l,{dsMatches:E,revalidatingFetchers:k}=Fe(t,u,i,s,e.history,D,o,_,r,g?[]:n,!0===g,H,q,Q,J,Y,S,c,null!=e.patchRoutesOnNavigation,v);if($=++G,!e.dataStrategy&&!E.some(e=>e.shouldLoad)&&!E.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===k.length){let e=_e();return re(r,{matches:o,loaderData:{},errors:v&&Tt(v[1])?{[v[0]]:v[1].error}:null,...gt(v),...e?{fetchers:new Map(D.fetchers)}:{}},{flushSync:y}),{shortCircuited:!0}}if(w){let e={};if(!d){e.navigation=b;let t=oe(v);void 0!==t&&(e.actionData=t)}k.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=D.fetchers.get(e.key),r=Bt(void 0,t?t.data:void 0);D.fetchers.set(e.key,r)}),new Map(D.fetchers)}(k)),te(e,{flushSync:y})}k.forEach(e=>{ve(e.key),e.controller&&V.set(e.key,e.controller)});let x=()=>k.forEach(e=>ve(e.key));A&&A.signal.addEventListener("abort",x);let{loaderResults:T,fetcherResults:O}=await le(E,k,t,u);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",x);k.forEach(e=>V.delete(e.key));let C=_t(T);if(C)return await ie(t,C.result,!0,{replace:m}),{shortCircuited:!0};if(C=_t(O),C)return Y.add(C.key),await ie(t,C.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:j,errors:P}=ht(D,o,T,v,k,O);g&&D.errors&&(P={...D.errors,...P});let I=_e(),R=we($),M=I||R||k.length>0;return{matches:o,loaderData:j,errors:P,...M?{fetchers:new Map(D.fetchers)}:{}}}(g,r,f,y,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);v||(A=null,re(r,{matches:b||f,...gt(m),loaderData:_,errors:E}))}function oe(e){return e&&!Tt(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function ie(e,n,o,{submission:i,fetcherSubmission:a,preventScrollReset:s,replace:l}={}){n.response.headers.has("X-Remix-Revalidate")&&(H=!0);let u=n.response.headers.get("Location");f(u,"Expected a Location header on the redirect Response"),u=ct(u,new URL(e.url),c);let d=m(D.location,u,{_isRedirect:!0});if(r){let e=!1;if(n.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(je(u)){const r=b(u,!0);e=r.origin!==t.location.origin||null==W(r.pathname,c)}if(e)return void(l?t.location.replace(u):t.location.assign(u))}A=null;let p=!0===l||n.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:h,formAction:g,formEncType:y}=D.navigation;!i&&!a&&h&&g&&y&&(i=Nt(D.navigation));let v=i||a;if(ke.has(n.response.status)&&v&&At(v.formMethod))await ne(p,d,{submission:{...v,formAction:u},preventScrollReset:s||L,enableViewTransition:o?B:void 0});else{let e=Lt(d,i);await ne(p,d,{overrideNavigation:e,fetcherSubmission:a,preventScrollReset:s||L,enableViewTransition:o?B:void 0})}}async function ae(e,t,r,n){let o,i={};try{o=await it(h,e,t,n,r,!1)}catch(e){return t.filter(e=>e.shouldLoad).forEach(t=>{i[t.route.id]={type:"error",error:e}}),i}if(e.signal.aborted)return i;for(let[r,n]of Object.entries(o))if(xt(n)){let o=n.result;i[r]={type:"redirect",response:lt(o,e,r,t,c)}}else i[r]=await st(n);return i}async function le(e,t,r,n){let o=ae(r,e,n,null),i=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ae(e.request,e.matches,n,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:bt(404,{pathname:e.path})}})}));return{loaderResults:await o,fetcherResults:(await i).reduce((e,t)=>Object.assign(e,t),{})}}function de(){H=!0,J.forEach((e,t)=>{V.has(t)&&q.add(t),ve(t)})}function pe(e,t,r={}){D.fetchers.set(e,t),te({fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function he(e,t,r,n={}){let o=yt(D.matches,t);ye(e),te({errors:{[o.route.id]:r},fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ge(e){return X.set(e,(X.get(e)||0)+1),Q.has(e)&&Q.delete(e),D.fetchers.get(e)||Te}function ye(e){let t=D.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&K.has(e)||ve(e),J.delete(e),K.delete(e),Y.delete(e),Q.delete(e),q.delete(e),D.fetchers.delete(e)}function ve(e,t){let r=V.get(e);r&&(r.abort(t),V.delete(e))}function be(e){for(let t of e){let e=Ft(ge(t).data);D.fetchers.set(t,e)}}function _e(){let e=[],t=!1;for(let r of Y){let n=D.fetchers.get(r);f(n,`Expected fetcher: ${r}`),"loading"===n.state&&(Y.delete(r),e.push(r),t=!0)}return be(e),t}function we(e){let t=[];for(let[r,n]of K)if(n<e){let e=D.fetchers.get(r);f(e,`Expected fetcher: ${r}`),"loading"===e.state&&(ve(r),K.delete(r),t.push(r))}return be(t),t.length>0}function Se(e){D.blockers.delete(e),Z.delete(e)}function Ee(e,t){let r=D.blockers.get(e)||Oe;f("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,`Invalid blocker state transition: ${r.state} -> ${t.state}`);let n=new Map(D.blockers);n.set(e,t),te({blockers:n})}function Ce({currentLocation:e,nextLocation:t,historyAction:r}){if(0===Z.size)return;Z.size>1&&p(!1,"A router only supports one blocker at a time");let n=Array.from(Z.entries()),[o,i]=n[n.length-1],a=D.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:r})?o:void 0}function Re(e){let t=bt(404,{pathname:e}),r=a||l,{matches:n,route:o}=vt(r);return{notFoundMatches:n,route:o,error:t}}function Ae(e,t){if(E){return E(e,t.map(e=>j(e,D.loaderData)))||e.key}return e.key}function Me(e,t){if(S){let r=Ae(e,t),n=S[r];if("number"==typeof n)return n}return null}function De(t,r,n){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:C(r,n,c,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:C(r,n,c,!0)}}}return{active:!1,matches:null}}async function Ne(t,r,n,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==a,d=a||l,f=s;try{await e.patchRoutesOnNavigation({signal:n,path:r,matches:u,fetcherKey:o,patch:(e,t)=>{n.aborted||qe(e,t,d,f,i,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!n.aborted&&(l=[...l])}if(n.aborted)return{type:"aborted"};let p=O(d,r,c);if(p)return{type:"success",matches:p};let h=C(d,r,c,!0);if(!h||u.length===h.length&&u.every((e,t)=>e.route.id===h[t].route.id))return{type:"success",matches:null};u=h}}return d={get basename(){return c},get future(){return y},get state(){return D},get routes(){return l},get window(){return t},initialize:function(){if(v=e.history.listen(({action:t,location:r,delta:n})=>{if(M)return M(),void(M=void 0);p(0===Z.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Ce({currentLocation:D.location,nextLocation:r,historyAction:t});if(o&&null!=n){let t=new Promise(e=>{M=e});return e.history.go(-1*n),void Ee(o,{state:"blocked",location:r,proceed(){Ee(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(D.blockers);e.set(o,Oe),te({blockers:e})}})}return ne(t,r)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(Ie);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,F);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(Ie,JSON.stringify(r))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,F);t.addEventListener("pagehide",e),z=()=>t.removeEventListener("pagehide",e)}return D.initialized||ne("POP",D.location,{initialHydration:!0}),d},subscribe:function(e){return _.add(e),()=>_.delete(e)},enableScrollRestoration:function(e,t,r){if(S=e,k=t,E=r||null,!T&&D.navigation===xe){T=!0;let e=Me(D.location,D.matches);null!=e&&te({restoreScrollPosition:e})}return()=>{S=null,k=null,E=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let o=Le(D.location,D.matches,c,r,n?.fromRouteId,n?.relative),{path:i,submission:a,error:s}=Be(!1,o,n),l=D.location,u=m(D.location,i,n&&n.state);u={...u,...e.history.encodeLocation(u)};let d=n&&null!=n.replace?n.replace:void 0,f="PUSH";!0===d?f="REPLACE":!1===d||null!=a&&At(a.formMethod)&&a.formAction===D.location.pathname+D.location.search&&(f="REPLACE");let p=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,h=!0===(n&&n.flushSync),g=Ce({currentLocation:l,nextLocation:u,historyAction:f});g?Ee(g,{state:"blocked",location:u,proceed(){Ee(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(r,n)},reset(){let e=new Map(D.blockers);e.set(g,Oe),te({blockers:e})}}):await ne(f,u,{submission:a,pendingError:s,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:h})},fetch:async function(t,r,o,u){ve(t);let d=!0===(u&&u.flushSync),p=a||l,h=Le(D.location,D.matches,c,o,r,u?.relative),m=O(p,h,c),g=De(m,p,h);if(g.active&&g.matches&&(m=g.matches),!m)return void he(t,r,bt(404,{pathname:h}),{flushSync:d});let{path:y,submission:v,error:b}=Be(!0,h,u);if(b)return void he(t,r,b,{flushSync:d});let _=e.getContext?await e.getContext():new w,S=!0===(u&&u.preventScrollReset);v&&At(v.formMethod)?await async function(t,r,o,u,d,p,h,m,g){de(),J.delete(t);let y=D.fetchers.get(t);pe(t,function(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return r}(g,y),{flushSync:h});let v=new AbortController,b=ut(e.history,o,v.signal,g);if(p){let e=await Ne(u,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void he(t,r,e.error,{flushSync:h});if(!e.matches)return void he(t,r,bt(404,{pathname:o}),{flushSync:h});u=e.matches}let _=Dt(u,o);if(!_.route.action&&!_.route.lazy){let e=bt(405,{method:g.formMethod,pathname:o,routeId:r});return void he(t,r,e,{flushSync:h})}V.set(t,v);let w=G,S=ot(i,s,b,u,_,n,d),E=await ae(b,S,d,t),k=E[_.route.id];if(b.signal.aborted)return void(V.get(t)===v&&V.delete(t));if(Q.has(t)){if(Ot(k)||Tt(k))return void pe(t,Ft(void 0))}else{if(Ot(k))return V.delete(t),$>w?void pe(t,Ft(void 0)):(Y.add(t),pe(t,Bt(g)),ie(b,k,!1,{fetcherSubmission:g,preventScrollReset:m}));if(Tt(k))return void he(t,r,k.error)}let x=D.navigation.location||D.location,T=ut(e.history,x,v.signal),C=a||l,j="idle"!==D.navigation.state?O(C,D.navigation.location,c):D.matches;f(j,"Didn't find any matches after fetcher action");let P=++G;K.set(t,P);let I=Bt(g,k.data);D.fetchers.set(t,I);let{dsMatches:R,revalidatingFetchers:M}=Fe(T,d,i,s,e.history,D,j,g,x,n,!1,H,q,Q,J,Y,C,c,null!=e.patchRoutesOnNavigation,[_.route.id,k]);M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=D.fetchers.get(t),n=Bt(void 0,r?r.data:void 0);D.fetchers.set(t,n),ve(t),e.controller&&V.set(t,e.controller)}),te({fetchers:new Map(D.fetchers)});let L=()=>M.forEach(e=>ve(e.key));v.signal.addEventListener("abort",L);let{loaderResults:B,fetcherResults:F}=await le(R,M,T,d);if(v.signal.aborted)return;if(v.signal.removeEventListener("abort",L),K.delete(t),V.delete(t),M.forEach(e=>V.delete(e.key)),D.fetchers.has(t)){let e=Ft(k.data);D.fetchers.set(t,e)}let z=_t(B);if(z)return ie(T,z.result,!1,{preventScrollReset:m});if(z=_t(F),z)return Y.add(z.key),ie(T,z.result,!1,{preventScrollReset:m});let{loaderData:U,errors:W}=ht(D,j,B,void 0,M,F);we(P),"loading"===D.navigation.state&&P>$?(f(N,"Expected pending action"),A&&A.abort(),re(D.navigation.location,{matches:j,loaderData:U,errors:W,fetchers:new Map(D.fetchers)})):(te({errors:W,loaderData:mt(D.loaderData,U,j,W),fetchers:new Map(D.fetchers)}),H=!1)}(t,r,y,m,_,g.active,d,S,v):(J.set(t,{routeId:r,path:y}),await async function(t,r,o,a,l,c,u,d,f){let p=D.fetchers.get(t);pe(t,Bt(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=ut(e.history,o,h.signal);if(c){let e=await Ne(a,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void he(t,r,e.error,{flushSync:u});if(!e.matches)return void he(t,r,bt(404,{pathname:o}),{flushSync:u});a=e.matches}let g=Dt(a,o);V.set(t,h);let y=G,v=ot(i,s,m,a,g,n,l),b=await ae(m,v,l,t),_=b[g.route.id];V.get(t)===h&&V.delete(t);if(m.signal.aborted)return;if(Q.has(t))return void pe(t,Ft(void 0));if(Ot(_))return $>y?void pe(t,Ft(void 0)):(Y.add(t),void await ie(m,_,!1,{preventScrollReset:d}));if(Tt(_))return void he(t,r,_.error);pe(t,Ft(_.data))}(t,r,y,m,_,g.active,d,S,v))},revalidate:function(){ee||(ee=function(){let e,t,r=new Promise((n,o)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{o(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}()),de(),te({revalidation:"loading"});let e=ee.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(ne(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ne(N||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===B}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ge,resetFetcher:function(e,t){ve(e,t?.reason),pe(e,Ft(null))},deleteFetcher:function(e){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),Q.add(e)):X.set(e,t),te({fetchers:new Map(D.fetchers)})},dispose:function(){v&&v(),z&&z(),_.clear(),A&&A.abort(),D.fetchers.forEach((e,t)=>ye(t)),D.blockers.forEach((e,t)=>Se(t))},getBlocker:function(e,t){let r=D.blockers.get(e)||Oe;return Z.get(e)!==t&&Z.set(e,t),r},deleteBlocker:Se,patchRoutes:function(e,t,r=!1){let n=null==a;qe(e,t,a||l,s,i,r),n&&(l=[...l],te({}))},_internalFetchControllers:V,_internalSetRoutes:function(e){s={},a=x(e,i,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){te(e)}},e.unstable_instrumentations&&(d=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}})),r.navigate.length>0){let t=e.navigate[ce]??e.navigate,n=fe(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?g(r):".",...me(e,n??{})}});n&&(n[ce]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[ce]??e.fetch,n=fe(r.fetch,t,(...t)=>{let[r,,n,o]=t;return{href:n??".",fetcherKey:r,...me(e,o??{})}});n&&(n[ce]=t,e.fetch=n)}return e}(d,e.unstable_instrumentations.map(e=>e.router).filter(Boolean))),d}function Me(e,t){f(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={},n=(t?t.basename:null)||"/",o=t?.mapRouteProperties||Pe,i=o;if(t?.unstable_instrumentations){let e=t.unstable_instrumentations;i=t=>({...o(t),...ue(e.map(e=>e.route).filter(Boolean),t)})}let a=x(e,i,void 0,r);async function s(e,t,n,o,a,s,u,d,p){f(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(At(e.method)){let f=await async function(e,t,n,o,a,s,u,d,f){let p;if(n.route.action||n.route.lazy){let s=ot(i,r,e,t,n,[],o);p=(await c(e,s,u,o,a))[n.route.id],e.signal.aborted&&Ne(e,u)}else{let t=bt(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:n.route.id});if(u)throw t;p={type:"error",error:t}}if(Ot(p))throw new Response(null,{status:p.response.status,headers:{Location:p.response.headers.get("Location")}});if(u){if(Tt(p))throw p.error;return{matches:[n],loaderData:{},actionData:{[n.route.id]:p.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(f){if(Tt(p)){let e=s?n:yt(t,n.route.id);return{statusCode:se(p.error)?p.error.status:null!=p.statusCode?p.statusCode:500,actionData:null,actionHeaders:{...p.headers?{[n.route.id]:p.headers}:{}},matches:t,loaderData:{},errors:{[e.route.id]:p.error},loaderHeaders:{}}}return{actionData:{[n.route.id]:p.data},actionHeaders:p.headers?{[n.route.id]:p.headers}:{},matches:t,loaderData:{},errors:null,statusCode:p.statusCode||200,loaderHeaders:{}}}let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(Tt(p)){let e=s?n:yt(t,n.route.id);return{...await l(h,t,o,a,s,null,d,[e.route.id,p]),statusCode:se(p.error)?p.error.status:null!=p.statusCode?p.statusCode:500,actionData:null,actionHeaders:{...p.headers?{[n.route.id]:p.headers}:{}}}}let m=await l(h,t,o,a,s,null,d);return{...m,actionData:{[n.route.id]:p.data},...p.statusCode?{statusCode:p.statusCode}:{},actionHeaders:p.headers?{[n.route.id]:p.headers}:{}}}(e,n,u||Dt(n,t),o,a,s,null!=u,d,p);return f}let f=await l(e,n,o,a,s,u,d);return jt(f)?f:{...f,actionData:null,actionHeaders:{}}}catch(e){if(kt(e)&&jt(e.result)){if("error"===e.type)throw e.result;return e.result}if(It(e))return e;throw e}}async function l(e,t,n,o,a,s,l,u){let d,f=null!=s;if(f&&!s?.route.loader&&!s?.route.lazy)throw bt(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s?.route.id});if(s)d=ot(i,r,e,t,s,[],n);else{let o=u&&Tt(u[1])?t.findIndex(e=>e.route.id===u[0])-1:void 0,a=le(t.map(e=>e.route.path));d=t.map((t,s)=>nt(i,r,e,a,t,[],n,!(null!=o&&s>o)&&(null!=(t.route.loader||t.route.lazy)&&(!l||l(t)))))}if(!o&&!d.some(e=>e.shouldLoad))return{matches:t,loaderData:{},errors:u&&Tt(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{}};let p=await c(e,d,f,n,o);return e.signal.aborted&&Ne(e,f),{...pt(t,p,u,!0,a),matches:t}}async function c(e,t,r,o,i){let a=await it(i||Je,e,t,null,o,!0),s={};return await Promise.all(t.map(async o=>{if(!(o.route.id in a))return;let i=a[o.route.id];if(xt(i)){throw lt(i.result,e,o.route.id,t,n)}if(r){if(jt(i.result))throw i;if(Ct(i.result))throw St(i.result)}s[o.route.id]=await st(i)})),s}return{dataRoutes:a,query:async function(e,{requestContext:t,filterMatchesToLoad:o,skipLoaderErrorBubbling:l,skipRevalidation:c,dataStrategy:u,generateMiddlewareResponse:d}={}){let p=new URL(e.url),h=e.method,y=m("",g(p),null,"default"),v=O(a,y,n);if(t=null!=t?t:new w,!Rt(h)&&"HEAD"!==h){let e=bt(405,{method:h}),{matches:t,route:r}=vt(a),o={basename:n,location:y,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(o)):o}if(!v){let e=bt(404,{pathname:y.pathname}),{matches:t,route:r}=vt(a),o={basename:n,location:y,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(o)):o}if(d){f(t instanceof w,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{let p;await Ye(v,r,i);let h=await Qe({request:e,unstable_pattern:le(v.map(e=>e.route.path)),matches:v,params:v[0].params,context:t},async()=>await d(async(e,r={})=>{let i=await s(e,y,v,t,u||null,!0===l,null,"filterMatchesToLoad"in r?r.filterMatchesToLoad??null:o??null,!0===c);return jt(i)?i:(p={location:y,basename:n,...i},p)}),async(e,t)=>{if(It(e))return e;if(jt(e))try{e=new ae(e.status,e.statusText,await at(e))}catch(t){e=t}var r;if(Ct(e)&&(r=e,e=new ae(r.init?.status??500,r.init?.statusText??"Internal Server Error",r.data)),p){t in p.loaderData&&(p.loaderData[t]=void 0);let r=De(a,p,e,l?t:yt(v,t).route.id);return d(()=>Promise.resolve(r))}{let r=l?t:yt(v,v.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id,o={matches:v,location:y,basename:n,loaderData:{},actionData:null,errors:{[r]:e},statusCode:se(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return d(()=>Promise.resolve(o))}});return f(jt(h),"Expected a response in query()"),h}catch(e){if(jt(e))return e;throw e}}let b=await s(e,y,v,t,u||null,!0===l,null,o||null,!0===c);return jt(b)?b:{location:y,basename:n,...b}},queryRoute:async function(e,{routeId:t,requestContext:o,dataStrategy:l,generateMiddlewareResponse:c}={}){let u=new URL(e.url),d=e.method,p=m("",g(u),null,"default"),h=O(a,p,n);if(o=null!=o?o:new w,!Rt(d)&&"HEAD"!==d&&"OPTIONS"!==d)throw bt(405,{method:d});if(!h)throw bt(404,{pathname:p.pathname});let y=t?h.find(e=>e.route.id===t):Dt(h,p);if(t&&!y)throw bt(403,{pathname:p.pathname,routeId:t});if(!y)throw bt(404,{pathname:p.pathname});if(c){return f(o instanceof w,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await Ye(h,r,i),await Qe({request:e,unstable_pattern:le(h.map(e=>e.route.path)),matches:h,params:h[0].params,context:o},async()=>await c(async e=>{let t=v(await s(e,p,h,o,l||null,!1,y,null,!1));return jt(t)?t:"string"==typeof t?new Response(t):Response.json(t)}),e=>{if(Ct(e))return Promise.resolve(St(e));if(jt(e))return Promise.resolve(e);throw e})}return v(await s(e,p,h,o,l||null,!1,y,null,!1));function v(e){if(jt(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(void 0!==t)throw t;return e.actionData?Object.values(e.actionData)[0]:e.loaderData?Object.values(e.loaderData)[0]:void 0}}}}function De(e,t,r,n){let o=n||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:se(r)?r.status:500,errors:{[o]:r}}}function Ne(e,t){if(void 0!==e.signal.reason)throw e.signal.reason;throw new Error(`${t?"queryRoute":"query"}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function Le(e,t,r,n,o,i){let a,s;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){s=e;break}}else a=t,s=t[t.length-1];let l=J(n||".",Y(a),W(e.pathname,r)||e.pathname,"path"===i);if(null==n&&(l.search=e.search,l.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=Mt(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?`?${r}`:""}}return"/"!==r&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:X([e,t])}({basename:r,pathname:l.pathname})),g(l)}function Be(e,t,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:t};if(r.formMethod&&!Rt(r.formMethod))return{path:t,error:bt(405,{method:r.formMethod})};let n,o,i=()=>({path:t,error:bt(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),s=wt(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!At(a))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r}\n`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!At(a))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),r.formData)n=dt(r.formData),o=r.formData;else if(r.body instanceof FormData)n=dt(r.body),o=r.body;else if(r.body instanceof URLSearchParams)n=r.body,o=ft(n);else if(null==r.body)n=new URLSearchParams,o=new FormData;else try{n=new URLSearchParams(r.body),o=ft(n)}catch(e){return i()}let l={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(At(l.formMethod))return{path:t,submission:l};let c=y(t);return e&&c.search&&Mt(c.search)&&n.append("index",""),c.search=`?${n}`,{path:g(c),submission:l}}function Fe(e,t,r,n,o,i,a,s,l,c,u,d,f,p,h,m,g,y,v,b){let _,w=b?Tt(b[1])?b[1].error:b[1].data:void 0,S=o.createURL(i.location),E=o.createURL(l);if(u&&i.errors){let e=Object.keys(i.errors)[0];_=a.findIndex(t=>t.route.id===e)}else if(b&&Tt(b[1])){let e=b[0];_=a.findIndex(t=>t.route.id===e)-1}let k=b?b[1].statusCode:void 0,x=k&&k>=400,T={currentUrl:S,currentParams:i.matches[0]?.params||{},nextUrl:E,nextParams:a[0].params,...s,actionResult:w,actionStatus:k},C=le(a.map(e=>e.route.path)),j=a.map((o,a)=>{let{route:s}=o,l=null;if(null!=_&&a>_?l=!1:s.lazy?l=!0:ze(s)?u?l=Ue(s,i.loaderData,i.errors):function(e,t,r){let n=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return n||o}(i.loaderData,i.matches[a],o)&&(l=!0):l=!1,null!==l)return nt(r,n,e,C,o,c,t,l);let f=!x&&(d||S.pathname+S.search===E.pathname+E.search||S.search!==E.search||function(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}(i.matches[a],o)),p={...T,defaultShouldRevalidate:f},h=He(o,p);return nt(r,n,e,C,o,c,t,h,p)}),P=[];return h.forEach((e,s)=>{if(u||!a.some(t=>t.route.id===e.routeId)||p.has(s))return;let l=i.fetchers.get(s),h=l&&"idle"!==l.state&&void 0===l.data,b=O(g,e.path,y);if(!b){if(v&&h)return;return void P.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let _=Dt(b,e.path),w=new AbortController,S=ut(o,e.path,w.signal),E=null;if(f.has(s))f.delete(s),E=ot(r,n,S,b,_,c,t);else if(h)d&&(E=ot(r,n,S,b,_,c,t));else{let e={...T,defaultShouldRevalidate:!x&&d};He(_,e)&&(E=ot(r,n,S,b,_,c,t,e))}E&&P.push({key:s,routeId:e.routeId,path:e.path,matches:E,match:_,request:S,controller:w})}),{dsMatches:j,revalidatingFetchers:P}}function ze(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ue(e,t,r){if(e.lazy)return!0;if(!ze(e))return!1;let n=null!=t&&e.id in t,o=null!=r&&void 0!==r[e.id];return!(!n&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!o)}function He(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function qe(e,t,r,n,o,i){let a;if(e){let t=n[e];f(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=r;let s=[],l=[];if(t.forEach(e=>{let t=a.find(t=>Ve(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=x(s,o,[e||"_","patch",String(a?.length||"0")],n);a.push(...t)}if(i&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:r}=l[e],n=t,[i]=x([r],o,[],{},!0);Object.assign(n,{element:i.element?i.element:n.element,errorElement:i.errorElement?i.errorElement:n.errorElement,hydrateFallbackElement:i.hydrateFallbackElement?i.hydrateFallbackElement:n.hydrateFallbackElement})}}function Ve(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,r)=>t.children?.some(t=>Ve(e,t))))}var We=new WeakMap,Ge=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let o=r[t.id];if(f(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=We.get(o);a||(a={},We.set(o,a));let s=a[e];if(s)return s;let l=(async()=>{let t=function(e){return S.has(e)}(e),r=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(r)p(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,n(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every(e=>void 0===e)&&(o.lazy=void 0))})();return a[e]=l,l},$e=new WeakMap;function Ke(e){return void 0!==e}function Ye(e,t,r){let n=e.map(({route:e})=>{if("object"==typeof e.lazy&&e.lazy.middleware)return Ge({key:"middleware",route:e,manifest:t,mapRouteProperties:r})}).filter(Ke);return n.length>0?Promise.all(n):void 0}async function Je(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function Xe(e){return e.matches.some(e=>e.route.middleware)?Ze(e,()=>Je(e)):Je(e)}function Qe(e,t,r){return et(e,t,function(e){return Ct(e)?St(e):e},jt,r)}function Ze(e,t){return et(e,t,e=>e,Et,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,o=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.unstable_shouldCallHandler()),0)),i=yt(n,n[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}})}async function et(e,t,r,n,o){let{matches:i,request:a,params:s,context:l,unstable_pattern:c}=e,u=i.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await tt({request:a,params:s,context:l,unstable_pattern:c},u,t,r,n,o)}async function tt(e,t,r,n,o,i,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??new Error(`Request aborted: ${s.method} ${s.url}`);let l=t[a];if(!l){return await r()}let c,[u,d]=l,f=async()=>{if(c)throw new Error("You may only call `next()` once per middleware");try{let s=await tt(e,t,r,n,o,i,a+1);return c={value:s},c.value}catch(e){return c={value:await i(e,u,c)},c.value}};try{let t=await d(e,f),r=null!=t?n(t):void 0;return o(r)?r:c?r??c.value:(c={value:await f()},c.value)}catch(e){return await i(e,u,c)}}function rt(e,t,r,n,o){let i=Ge({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),a=function(e,t,r,n,o){let i=r[e.id];if(f(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=$e.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{f("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let o=k(e),a=void 0!==i[e]&&"hasErrorBoundary"!==e;o?p(!o,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):a?p(!a,`Route "${i.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):r[e]=n}Object.assign(i,r),Object.assign(i,{...n(i),lazy:void 0})})();return $e.set(i,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let a,s=Object.keys(e.lazy),l=[];for(let i of s){if(o&&o.includes(i))continue;let s=Ge({key:i,route:e,manifest:r,mapRouteProperties:n});s&&(l.push(s),i===t&&(a=s))}let c=l.length>0?Promise.all(l).then(()=>{}):void 0;return c?.catch(()=>{}),a?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:a}}(n.route,At(r.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function nt(e,t,r,n,o,i,a,s,l=null){let c=!1,u=rt(e,t,r,o,i);return{...o,_lazyPromises:u,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:e=>(c=!0,l?He(o,"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=o.route,d=c||s||e&&!At(r.method)&&(t||i),f=l&&l.length>0&&!i&&!t;return!d||!At(r.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:n,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let s,l,c=At(e.method),u=c?"action":"loader",d=n=>{let o,s=new Promise((e,t)=>o=t);l=()=>o(),e.signal.addEventListener("abort",l);let c=o=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${r.route.id}]`)):n({request:e,unstable_pattern:t,params:r.params,context:a},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(i?i(e=>c(e)):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,s])};try{let t=c?r.route.action:r.route.loader;if(n||o)if(t){let e,[r]=await Promise.all([d(t).catch(t=>{e=t}),n,o]);if(void 0!==e)throw e;s=r}else{await n;let t=c?r.route.action:r.route.loader;if(!t){if("action"===u){let t=new URL(e.url),n=t.pathname+t.search;throw bt(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw bt(404,{pathname:t.pathname+t.search})}s=await d(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:r,unstable_pattern:n,match:o,lazyHandlerPromise:u?.handler,lazyRoutePromise:u?.route,handlerOverride:e,scopedContext:a})}}}function ot(e,t,r,n,o,i,a,s=null){return n.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:rt(e,t,r,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:nt(e,t,r,le(n.map(e=>e.route.path)),l,i,a,!0,s))}async function it(e,t,r,n,o,i){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let a={request:t,unstable_pattern:le(r.map(e=>e.route.path)),params:r[0].params,context:o,matches:r},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=a;return Ze(t,()=>e({...t,fetcherKey:n,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...a,fetcherKey:n,runClientMiddleware:s});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return l}async function at(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function st(e){let{result:t,type:r}=e;if(jt(t)){let e;try{e=await at(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new ae(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===r?Ct(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new ae(t.init?.status||500,void 0,t.data),statusCode:se(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:se(t)?t.status:void 0}:Ct(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function lt(e,t,r,n,o){let i=e.headers.get("Location");if(f(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!je(i)){let a=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=Le(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function ct(e,t,r){if(je(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=null!=W(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function ut(e,t,r,n){let o=e.createURL(wt(t)).toString(),i={signal:r};if(n&&At(n.formMethod)){let{formMethod:e,formEncType:t}=n;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(n.json)):"text/plain"===t?i.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?i.body=dt(n.formData):i.body=n.formData}return new Request(o,i)}function dt(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ft(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function pt(e,t,r,n=!1,o=!1){let i,a={},s=null,l=!1,c={},u=r&&Tt(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let d=r.route.id,p=t[d];if(f(!Ot(p),"Cannot handle redirect results in processLoaderData"),Tt(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},o)s[d]=t;else{let r=yt(e,d);null==s[r.route.id]&&(s[r.route.id]=t)}n||(a[d]=Re),l||(l=!0,i=se(p.error)?p.error.status:500),p.headers&&(c[d]=p.headers)}else a[d]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(i=p.statusCode),p.headers&&(c[d]=p.headers)}),void 0!==u&&r&&(s={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:c}}function ht(e,t,r,n,o,i){let{loaderData:a,errors:s}=pt(t,r,n);return o.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:o}=t;if(o&&o.signal.aborted)return;let a=i[r];if(f(a,"Did not find corresponding fetcher result"),Tt(a)){let t=yt(e.matches,n?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:a.error}),e.fetchers.delete(r)}else if(Ot(a))f(!1,"Unhandled fetcher revalidation redirect");else{let t=Ft(a.data);e.fetchers.set(r,t)}}),{loaderData:a,errors:s}}function mt(e,t,r,n){let o=Object.entries(t).filter(([,e])=>e!==Re).reduce((e,[t,r])=>(e[t]=r,e),{});for(let i of r){let r=i.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&i.route.loader&&(o[r]=e[r]),n&&n.hasOwnProperty(r))break}return o}function gt(e){return e?Tt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function yt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function vt(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function bt(e,{pathname:t,routeId:r,method:n,type:o,message:i}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new ae(e||500,a,new Error(s),!0)}function _t(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Ot(n))return{key:r,result:n}}}function wt(e){return g({..."string"==typeof e?y(e):e,hash:""})}function St(e){return Response.json(e.data,e.init??void 0)}function Et(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&kt(t))}function kt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function xt(e){return jt(e.result)&&Ee.has(e.result.status)}function Tt(e){return"error"===e.type}function Ot(e){return"redirect"===(e&&e.type)}function Ct(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function jt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Pt(e){return Ee.has(e)}function It(e){return jt(e)&&Pt(e.status)&&e.headers.has("Location")}function Rt(e){return Se.has(e.toUpperCase())}function At(e){return _e.has(e.toUpperCase())}function Mt(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Dt(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&Mt(r||""))return e[e.length-1];let n=K(e);return n[n.length-1]}function Nt(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(t&&r&&n)return null!=o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function Lt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ft(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var zt=o.createContext(null);zt.displayName="DataRouter";var Ut=o.createContext(null);Ut.displayName="DataRouterState";var Ht=o.createContext(!1);var qt=o.createContext({isTransitioning:!1});qt.displayName="ViewTransition";var Vt=o.createContext(new Map);Vt.displayName="Fetchers";var Wt=o.createContext(null);Wt.displayName="Await";var Gt=e=>o.createElement(Wt.Provider,e),$t=o.createContext(null);$t.displayName="Navigation";var Kt=o.createContext(null);Kt.displayName="Location";var Yt=o.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var Jt=o.createContext(null);Jt.displayName="RouteError";var Xt=!0;function Qt(e,{relative:t}={}){f(Zt(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=o.useContext($t),{hash:i,pathname:a,search:s}=ur(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:X([r,a])),n.createHref({pathname:l,search:s,hash:i})}function Zt(){return null!=o.useContext(Kt)}function er(){return f(Zt(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(Kt).location}function tr(){return o.useContext(Kt).navigationType}function rr(e){f(Zt(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=er();return o.useMemo(()=>H(e,V(t)),[t,e])}var nr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function or(e){o.useContext($t).static||o.useLayoutEffect(e)}function ir(){let{isDataRoute:e}=o.useContext(Yt);return e?function(){let{router:e}=br("useNavigate"),t=wr("useNavigate"),r=o.useRef(!1);return or(()=>{r.current=!0}),o.useCallback(async(n,o={})=>{p(r.current,nr),r.current&&("number"==typeof n?e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}():function(){f(Zt(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(zt),{basename:t,navigator:r}=o.useContext($t),{matches:n}=o.useContext(Yt),{pathname:i}=er(),a=JSON.stringify(Y(n)),s=o.useRef(!1);return or(()=>{s.current=!0}),o.useCallback((n,o={})=>{if(p(s.current,nr),!s.current)return;if("number"==typeof n)return void r.go(n);let l=J(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:X([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)},[t,r,a,i,e])}()}var ar=o.createContext(null);function sr(){return o.useContext(ar)}function lr(e){let t=o.useContext(Yt).outlet;return o.useMemo(()=>t&&o.createElement(ar.Provider,{value:e},t),[t,e])}function cr(){let{matches:e}=o.useContext(Yt),t=e[e.length-1];return t?t.params:{}}function ur(e,{relative:t}={}){let{matches:r}=o.useContext(Yt),{pathname:n}=er(),i=JSON.stringify(Y(r));return o.useMemo(()=>J(e,JSON.parse(i),n,"path"===t),[e,i,n,t])}function dr(e,t){return fr(e,t)}function fr(e,t,r,n,i){f(Zt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext($t),{matches:s}=o.useContext(Yt),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",h=l&&l.route;if(Xt){let e=h&&h.path||"";Mr(u,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let m,g=er();if(t){let e="string"==typeof t?y(t):t;f("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=g;let v=m.pathname||"/",b=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=O(e,{pathname:b});Xt&&(p(h||null!=_,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),p(null==_||void 0!==_[_.length-1].route.element||void 0!==_[_.length-1].route.Component||void 0!==_[_.length-1].route.lazy,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=yr(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:X([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:X([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,r,n,i);return t&&w?o.createElement(Kt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},w):w}function pr(){let e=Cr(),t=se(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return Xt&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:i},r):null,s)}var hr=o.createElement(pr,null),mr=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?o.createElement(Yt.Provider,{value:this.props.routeContext},o.createElement(Jt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gr({routeContext:e,match:t,children:r}){let n=o.useContext(zt);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(Yt.Provider,{value:e},r)}function yr(e,t=[],r=null,n=null,i=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,s=r?.errors;if(null!=s){let e=a.findIndex(e=>e.route.id&&void 0!==s?.[e.route.id]);f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(r)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,i,u)=>{let d,f=!1,p=null,h=null;r&&(d=s&&i.route.id?s[i.route.id]:void 0,p=i.route.errorElement||hr,l&&(c<0&&0===u?(Mr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):c===u&&(f=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,u+1)),g=()=>{let t;return t=d?p:f?h:i.route.Component?o.createElement(i.route.Component,null):i.route.element?i.route.element:e,o.createElement(gr,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===u)?o.createElement(mr,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},unstable_onError:n}):g()},null)}function vr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function br(e){let t=o.useContext(zt);return f(t,vr(e)),t}function _r(e){let t=o.useContext(Ut);return f(t,vr(e)),t}function wr(e){let t=function(e){let t=o.useContext(Yt);return f(t,vr(e)),t}(e),r=t.matches[t.matches.length-1];return f(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Sr(){return _r("useNavigation").navigation}function Er(){let e=br("useRevalidator"),t=_r("useRevalidator"),r=o.useCallback(async()=>{await e.router.revalidate()},[e.router]);return o.useMemo(()=>({revalidate:r,state:t.revalidation}),[r,t.revalidation])}function kr(){let{matches:e,loaderData:t}=_r("useMatches");return o.useMemo(()=>e.map(e=>j(e,t)),[e,t])}function xr(){let e=_r("useLoaderData"),t=wr("useLoaderData");return e.loaderData[t]}function Tr(e){return _r("useRouteLoaderData").loaderData[e]}function Or(){let e=_r("useActionData"),t=wr("useLoaderData");return e.actionData?e.actionData[t]:void 0}function Cr(){let e=o.useContext(Jt),t=_r("useRouteError"),r=wr("useRouteError");return void 0!==e?e:t.errors?.[r]}function jr(){let e=o.useContext(Wt);return e?._data}function Pr(){let e=o.useContext(Wt);return e?._error}var Ir=0;function Rr(e){let{router:t,basename:r}=br("useBlocker"),n=_r("useBlocker"),[i,a]=o.useState(""),s=o.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...n,pathname:W(n.pathname,r)||n.pathname},nextLocation:{...o,pathname:W(o.pathname,r)||o.pathname},historyAction:i})},[r,e]);return o.useEffect(()=>{let e=String(++Ir);return a(e),()=>t.deleteBlocker(e)},[t]),o.useEffect(()=>{""!==i&&t.getBlocker(i,s)},[t,i,s]),i&&n.blockers.has(i)?n.blockers.get(i):Oe}var Ar={};function Mr(e,t,r){t||Ar[e]||(Ar[e]=!0,p(!1,r))}function Dr(...e){const t=wr("useRoute"),r=e[0]??t,n=_r("useRoute"),o=n.matches.find(({route:e})=>e.id===r);if(void 0!==o)return{handle:o.route.handle,loaderData:n.loaderData[r],actionData:n.actionData?.[r]}}var Nr={};function Lr(e,t){e||Nr[t]||(Nr[t]=!0,console.warn(t))}function Br(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Xt&&e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(Xt&&e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(Xt&&e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Fr=["HydrateFallback","hydrateFallbackElement"];function zr(e,t){return Ae({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:c({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Fr,mapRouteProperties:Br,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var Ur=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function Hr({router:e,flushSync:t,unstable_onError:r}){let n=o.useRef(new Map),[i,a]=o.useTransition(),[s,l]=o.useState(e.state);e.__setPendingRerender=e=>a(async()=>{const t=await e;a(()=>{t()})});let c=o.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),u=e.basename||"/",d=o.useMemo(()=>({router:e,navigator:c,static:!1,basename:u,unstable_onError:r}),[e,c,u,r]);return o.useLayoutEffect(()=>e.subscribe((e,{deletedFetchers:r,flushSync:i,viewTransitionOpts:a})=>{e.fetchers.forEach((e,t)=>{void 0!==e.data&&n.current.set(t,e.data)}),r.forEach(e=>n.current.delete(e));(function(e,t){if(e===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!0;for(let n of r)if(e[n]!==t[n])return!0;return!1})(s,e)&&(i?t?t(()=>l(e)):l(e):o.startTransition(()=>{l(e)}))}),[e,t,s]),o.createElement(o.Fragment,null,o.createElement(zt.Provider,{value:d},o.createElement(Ut.Provider,{value:{...s,revalidation:i?"loading":s.revalidation}},o.createElement(Vt.Provider,{value:n.current},o.createElement(Yr,{basename:u,location:s.location,navigationType:s.historyAction,navigator:c},o.createElement(Vr,{routes:e.routes,future:e.future,state:s,unstable_onError:r}))))),null)}function qr({router:e,flushSync:t,unstable_onError:r}){let[n,i]=o.useState(e.state),[a,s]=o.useState(),[l,c]=o.useState({isTransitioning:!1}),[u,d]=o.useState(),[f,p]=o.useState(),[h,m]=o.useState(),g=o.useRef(new Map),y=o.useCallback(e=>{i(t=>(e.errors&&r&&Object.entries(e.errors).forEach(([e,n])=>{t.errors?.[e]!==n&&r(n)}),e))},[r]),v=o.useCallback((r,{deletedFetchers:n,flushSync:i,viewTransitionOpts:a})=>{r.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e)),Lr(!1===i||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let l=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Lr(null==a||l,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),a&&l){if(t&&i){t(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>y(r))});return n.finished.finally(()=>{t(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),void t(()=>p(n))}f?(u&&u.resolve(),f.skipTransition(),m({state:r,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(s(r),c({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else t&&i?t(()=>y(r)):o.startTransition(()=>y(r))},[e.window,t,f,u,y]);o.useLayoutEffect(()=>e.subscribe(v),[e,v]),o.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new Ur)},[l]),o.useEffect(()=>{if(u&&a&&e.window){let t=a,r=u.promise,n=e.window.document.startViewTransition(async()=>{o.startTransition(()=>y(t)),await r});n.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(n)}},[a,u,e.window,y]),o.useEffect(()=>{u&&a&&n.location.key===a.location.key&&u.resolve()},[u,f,n.location,a]),o.useEffect(()=>{!l.isTransitioning&&h&&(s(h.state),c({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),m(void 0))},[l.isTransitioning,h]);let b=o.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),_=e.basename||"/",w=o.useMemo(()=>({router:e,navigator:b,static:!1,basename:_,unstable_onError:r}),[e,b,_,r]);return o.createElement(o.Fragment,null,o.createElement(zt.Provider,{value:w},o.createElement(Ut.Provider,{value:n},o.createElement(Vt.Provider,{value:g.current},o.createElement(qt.Provider,{value:l},o.createElement(Yr,{basename:_,location:n.location,navigationType:n.historyAction,navigator:b},o.createElement(Vr,{routes:e.routes,future:e.future,state:n,unstable_onError:r})))))),null)}var Vr=o.memo(function({routes:e,future:t,state:r,unstable_onError:n}){return fr(e,void 0,r,n,t)});function Wr({basename:e,children:t,initialEntries:r,initialIndex:n}){let i=o.useRef();null==i.current&&(i.current=c({initialEntries:r,initialIndex:n,v5Compat:!0}));let a=i.current,[s,l]=o.useState({action:a.action,location:a.location}),u=o.useCallback(e=>{o.startTransition(()=>l(e))},[l]);return o.useLayoutEffect(()=>a.listen(u),[a,u]),o.createElement(Yr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}function Gr({to:e,replace:t,state:r,relative:n}){f(Zt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext($t);p(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=o.useContext(Yt),{pathname:s}=er(),l=ir(),c=J(e,Y(a),s,"path"===n),u=JSON.stringify(c);return o.useEffect(()=>{l(JSON.parse(u),{replace:t,state:r,relative:n})},[l,u,n,t,r]),null}function $r(e){return lr(e.context)}function Kr(e){f(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){f(!Zt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=o.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);"string"==typeof r&&(r=y(r));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:m="default"}=r,g=o.useMemo(()=>{let e=W(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:h,key:m},navigationType:n}},[s,c,u,d,h,m,n]);return p(null!=g,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:o.createElement($t.Provider,{value:l},o.createElement(Kt.Provider,{children:t,value:g}))}function Jr({children:e,location:t}){return dr(en(e),t)}function Xr({children:e,errorElement:t,resolve:r}){let n=o.useContext(zt);return o.createElement(Qr,{resolve:r,errorElement:t,unstable_onError:n?.unstable_onError},o.createElement(Zr,null,e))}var Qr=class extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,i=0;if(r instanceof Promise)if(this.state.error){i=2;let e=this.state.error;n=Promise.reject().catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,i="_error"in n?2:"_data"in n?1:0):(i=0,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>{this.props.unstable_onError?.(e),Object.defineProperty(r,"_error",{get:()=>e})}));else i=1,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(2===i&&!t)throw n._error;if(2===i)return o.createElement(Wt.Provider,{value:n,children:t});if(1===i)return o.createElement(Wt.Provider,{value:n,children:e});throw n}};function Zr({children:e}){let t=jr(),r="function"==typeof e?e(t):e;return o.createElement(o.Fragment,null,r)}function en(e,t=[]){let r=[];return o.Children.forEach(e,(e,n)=>{if(!o.isValidElement(e))return;let i=[...t,n];if(e.type===o.Fragment)return void r.push.apply(r,en(e.props.children,i));f(e.type===Kr,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),f(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=en(e.props.children,i)),r.push(a)}),r}var tn=en;function rn(e){return yr(e)}function nn(){return{params:cr(),loaderData:xr(),actionData:Or(),matches:kr()}}function on({children:e}){const t=nn();return o.cloneElement(e,t)}function an(e){return function(){const t=nn();return o.createElement(e,t)}}function sn(){return{params:cr(),loaderData:xr(),actionData:Or()}}function ln({children:e}){const t=sn();return o.cloneElement(e,t)}function cn(e){return function(){const t=sn();return o.createElement(e,t)}}function un(){return{params:cr(),loaderData:xr(),actionData:Or(),error:Cr()}}function dn({children:e}){const t=un();return o.cloneElement(e,t)}function fn(e){return function(){const t=un();return o.createElement(e,t)}}var pn="get",hn="application/x-www-form-urlencoded";function mn(e){return null!=e&&"string"==typeof e.tagName}function gn(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var yn=null;var vn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bn(e){return null==e||vn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hn}"`),null)}function _n(e,t){let r,n,o,i,a;if(mn(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?W(a,t):null,r=e.getAttribute("method")||pn,o=bn(e.getAttribute("enctype"))||hn,i=new FormData(e)}else if(function(e){return mn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return mn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?W(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||pn,o=bn(e.getAttribute("formenctype"))||bn(a.getAttribute("enctype"))||hn,i=new FormData(a,e),!function(){if(null===yn)try{new FormData(document.createElement("form"),0),yn=!1}catch(e){yn=!0}return yn}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=pn,n=null,o=hn,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var wn=-1,Sn=-2,En=-3,kn=-4,xn=-5,Tn=-6,On=-7,Cn="B",jn="D",Pn="E",In="M",Rn="N",An="P",Mn="R",Dn="S",Nn="Y",Ln="U",Bn="Z",Fn=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function zn(e){const{indices:t}=this,r=t.get(e);if(r)return[r];if(void 0===e)return On;if(null===e)return xn;if(Number.isNaN(e))return Sn;if(e===Number.POSITIVE_INFINITY)return Tn;if(e===Number.NEGATIVE_INFINITY)return En;if(0===e&&1/e<0)return kn;const n=this.index++;return t.set(e,n),Un.call(this,e,n),n}function Un(e,t){const{deferred:r,plugins:n,postPlugins:o}=this,i=this.stringified,a=[[e,t]];for(;a.length>0;){const[e,t]=a.pop(),s=e=>Object.keys(e).map(t=>`"_${zn.call(this,t)}":${zn.call(this,e[t])}`).join(",");let l=null;switch(typeof e){case"boolean":case"number":case"string":i[t]=JSON.stringify(e);break;case"bigint":i[t]=`["${Cn}","${e}"]`;break;case"symbol":{const r=Symbol.keyFor(e);r?i[t]=`["${Nn}",${JSON.stringify(r)}]`:l=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!e){i[t]=`${xn}`;break}const o=Array.isArray(e);let a=!1;if(!o&&n)for(const r of n){const n=r(e);if(Array.isArray(n)){a=!0;const[e,...r]=n;i[t]=`[${JSON.stringify(e)}`,r.length>0&&(i[t]+=`,${r.map(e=>zn.call(this,e)).join(",")}`),i[t]+="]";break}}if(!a){let n=o?"[":"{";if(o){for(let t=0;t<e.length;t++)n+=(t?",":"")+(t in e?zn.call(this,e[t]):wn);i[t]=`${n}]`}else if(e instanceof Date){const r=e.getTime();i[t]=`["${jn}",${Number.isNaN(r)?JSON.stringify("invalid"):r}]`}else e instanceof URL?i[t]=`["${Ln}",${JSON.stringify(e.href)}]`:e instanceof RegExp?i[t]=`["${Mn}",${JSON.stringify(e.source)},${JSON.stringify(e.flags)}]`:e instanceof Set?e.size>0?i[t]=`["${Dn}",${[...e].map(e=>zn.call(this,e)).join(",")}]`:i[t]=`["${Dn}"]`:e instanceof Map?e.size>0?i[t]=`["${In}",${[...e].flatMap(([e,t])=>[zn.call(this,e),zn.call(this,t)]).join(",")}]`:i[t]=`["${In}"]`:e instanceof Promise?(i[t]=`["${An}",${t}]`,r[t]=e):e instanceof Error?(i[t]=`["${Pn}",${JSON.stringify(e.message)}`,"Error"!==e.name&&(i[t]+=`,${JSON.stringify(e.name)}`),i[t]+="]"):null===Object.getPrototypeOf(e)?i[t]=`["${Rn}",{${s(e)}}]`:qn(e)?i[t]=`{${s(e)}}`:l=new Error("Cannot encode object with prototype")}break}default:{let r=!1;if(!Array.isArray(e)&&n)for(const o of n){const n=o(e);if(Array.isArray(n)){r=!0;const[e,...o]=n;i[t]=`[${JSON.stringify(e)}`,o.length>0&&(i[t]+=`,${o.map(e=>zn.call(this,e)).join(",")}`),i[t]+="]";break}}r||(l=new Error("Cannot encode function or unexpected type"))}}if(l){let r=!1;if(o)for(const n of o){const o=n(e);if(Array.isArray(o)){r=!0;const[e,...n]=o;i[t]=`[${JSON.stringify(e)}`,n.length>0&&(i[t]+=`,${n.map(e=>zn.call(this,e)).join(",")}`),i[t]+="]";break}}if(!r)throw l}}}var Hn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===Hn}var Vn="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0;function Wn(e){const{hydrated:t,values:r}=this;if("number"==typeof e)return Gn.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const n=r.length;for(const t of e)r.push(t);return t.length=r.length,Gn.call(this,n)}function Gn(e){const{hydrated:t,values:r,deferred:n,plugins:o}=this;let i;const a=[[e,e=>{i=e}]];let s=[];for(;a.length>0;){const[e,i]=a.pop();switch(e){case On:i(void 0);continue;case xn:i(null);continue;case Sn:i(NaN);continue;case Tn:i(1/0);continue;case En:i(-1/0);continue;case kn:i(-0);continue}if(t[e]){i(t[e]);continue}const l=r[e];if(l&&"object"==typeof l){if(!Array.isArray(l)){const r={};t[e]=r;for(const e of Object.keys(l).reverse()){const t=[];a.push([l[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{r[t[0]]=t[1]})}i(r);continue}if("string"!=typeof l[0]){const r=[];t[e]=r;for(let e=0;e<l.length;e++){const t=l[e];t!==wn&&a.push([t,t=>{r[e]=t}])}i(r);continue}{const[r,c,u]=l;switch(r){case jn:i(t[e]=new Date(c));continue;case Ln:i(t[e]=new URL(c));continue;case Cn:i(t[e]=BigInt(c));continue;case Mn:i(t[e]=new RegExp(c,u));continue;case Nn:i(t[e]=Symbol.for(c));continue;case Dn:const r=new Set;t[e]=r;for(let e=l.length-1;e>0;e--)a.push([l[e],e=>{r.add(e)}]);i(r);continue;case In:const d=new Map;t[e]=d;for(let e=l.length-2;e>0;e-=2){const t=[];a.push([l[e+1],e=>{t[1]=e}]),a.push([l[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}i(d);continue;case Rn:const f=Object.create(null);t[e]=f;for(const e of Object.keys(c).reverse()){const t=[];a.push([c[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}i(f);continue;case An:if(t[c])i(t[e]=t[c]);else{const r=new Fn;n[c]=r,i(t[e]=r.promise)}continue;case Pn:const[,p,h]=l;let m=h&&Vn&&Vn[h]?new Vn[h](p):new Error(p);t[e]=m,i(m);continue;case Bn:i(t[e]=t[c]);continue;default:if(Array.isArray(o)){const r=[],n=l.slice(1);for(let e=0;e<n.length;e++){const t=n[e];a.push([t,t=>{r[e]=t}])}s.push(()=>{for(const n of o){const o=n(l[0],...r);if(o)return void i(t[e]=o.value)}throw new SyntaxError});continue}throw new SyntaxError}}}else t[e]=l,i(l)}for(;s.length>0;)s.pop()();return i}async function $n(e,t){const{plugins:r}=t??{},n=new Fn,o=e.pipeThrough(function(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,n){const o=e.decode(r,{stream:!0}),i=(t+o).split("\n");t=i.pop()||"";for(const e of i)n.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),i={values:[],hydrated:[],deferred:{},plugins:r},a=await Kn.call(i,o);let s=n.promise;return a.done?n.resolve():s=Yn.call(i,o).then(n.resolve).catch(e=>{for(const t of Object.values(i.deferred))t.reject(e);n.reject(e)}),{done:s.then(()=>o.closed),value:a.value}}async function Kn(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch(e){throw new SyntaxError}return{done:t.done,value:Wn.call(this,r)}}async function Yn(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case An:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const o=r.slice(e+1);let i;try{i=JSON.parse(o)}catch(e){throw new SyntaxError}const a=Wn.call(this,i);n.resolve(a);break}case Pn:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const o=r.slice(e+1);let i;try{i=JSON.parse(o)}catch(e){throw new SyntaxError}const a=Wn.call(this,i);n.reject(a);break}default:throw new SyntaxError}t=await e.read()}}function Jn(e,t){const{plugins:r,postPlugins:n,signal:o}=t??{},i={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:n,signal:o},a=new TextEncoder;let s=0;return new ReadableStream({async start(t){const r=zn.call(i,e);if(Array.isArray(r))throw new Error("This should never happen");r<0?t.enqueue(a.encode(`${r}\n`)):(t.enqueue(a.encode(`[${i.stringified.join(",")}]\n`)),s=i.stringified.length-1);const n=new WeakSet;if(Object.keys(i.deferred).length){let e;const r=new Promise((t,r)=>{if(e=t,o){const e=()=>r(o.reason||new Error("Signal was aborted."));o.aborted?e():o.addEventListener("abort",t=>{e()})}});for(;Object.keys(i.deferred).length>0;){for(const[e,o]of Object.entries(i.deferred))n.has(o)||n.add(i.deferred[Number(e)]=Promise.race([r,o]).then(r=>{const n=zn.call(i,r);if(Array.isArray(n))t.enqueue(a.encode(`${An}${e}:[["${Bn}",${n[0]}]]\n`)),i.index++,s++;else if(n<0)t.enqueue(a.encode(`${An}${e}:${n}\n`));else{const r=i.stringified.slice(s+1).join(",");t.enqueue(a.encode(`${An}${e}:[${r}]\n`)),s=i.stringified.length-1}},r=>{r&&"object"==typeof r&&r instanceof Error||(r=new Error("An unknown error occurred"));const n=zn.call(i,r);if(Array.isArray(n))t.enqueue(a.encode(`${Pn}${e}:[["${Bn}",${n[0]}]]\n`)),i.index++,s++;else if(n<0)t.enqueue(a.encode(`${Pn}${e}:${n}\n`));else{const r=i.stringified.slice(s+1).join(",");t.enqueue(a.encode(`${Pn}${e}:[${r}]\n`)),s=i.stringified.length-1}}).finally(()=>{delete i.deferred[Number(e)]}));await Promise.race(Object.values(i.deferred))}e()}await Promise.all(Object.values(i.deferred)),t.close()}})}async function Xn(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var Qn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Zn=/[&><\u2028\u2029]/g;function eo(e){return e.replace(Zn,e=>Qn[e])}function to(e,t){if(!1===e||null==e)throw new Error(t)}var ro,no=Symbol("SingleFetchRedirect"),oo=class extends Error{},io=202,ao=new Set([100,101,204,205]);function so({context:e,identifier:t,reader:r,textDecoder:n,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,s=a[t];if(s||(s=a[t]=r.read().then(e=>{a[t].result={done:e.done,value:n.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e})),s.error)throw s.error;if(void 0===s.result)throw s;let{done:l,value:c}=s.result,u=c?o.createElement("script",{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${eo(JSON.stringify(c))});`}}):null;return l?o.createElement(o.Fragment,null,u,o.createElement("script",{nonce:i,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):o.createElement(o.Fragment,null,u,o.createElement(o.Suspense,null,o.createElement(so,{context:e,identifier:t+1,reader:r,textDecoder:n,nonce:i})))}function lo(e,t,r,n,o){let i=co(e,e=>{let n=t.routes[e.route.id];to(n,"Route not found in manifest");let o=r[e.route.id];return{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader,hasShouldRevalidate:Boolean(o?.shouldRevalidate)}},po,n,o);return async e=>e.runClientMiddleware(i)}function co(e,t,r,n,o,i=()=>!0){return async a=>{let{request:s,matches:l,fetcherKey:c}=a,u=e();if("GET"!==s.method)return async function(e,t,r){let n=e.matches.find(e=>e.unstable_shouldCallHandler());to(n,"No action match found");let o,i=await n.resolve(async i=>await i(async()=>{let{data:i,status:a}=await t(e,r,[n.route.id]);return o=a,mo(i,n.route.id)}));if(jt(i.result)||se(i.result)||Ct(i.result))return{[n.route.id]:i};return{[n.route.id]:{type:i.type,result:re(i.result,o)}}}(a,r,o);let d=l.some(e=>{let{hasLoader:r,hasClientLoader:n}=t(e);return e.unstable_shouldCallHandler()&&r&&!n});return n||d?c?async function(e,t,r){let n=e.matches.find(e=>e.unstable_shouldCallHandler());to(n,"No fetcher match found");let o=n.route.id,i=await n.resolve(async n=>n(async()=>{let{data:n}=await t(e,r,[o]);return mo(n,o)}));return{[n.route.id]:i}}(a,r,o):async function(e,t,r,n,o,i,a=()=>!0){let s=new Set,l=!1,c=e.matches.map(()=>go()),u=go(),d={},f=Promise.all(e.matches.map(async(t,o)=>t.resolve(async f=>{c[o].resolve();let p=t.route.id,{hasLoader:h,hasClientLoader:m,hasShouldRevalidate:g}=r(t),y=!t.unstable_shouldRevalidateArgs||null==t.unstable_shouldRevalidateArgs.actionStatus||t.unstable_shouldRevalidateArgs.actionStatus<400;if(t.unstable_shouldCallHandler(y))if(a(t)&&m){h&&(l=!0);try{let t=await f(async()=>{let{data:t}=await n(e,i,[p]);return mo(t,p)});d[p]={type:"data",result:t}}catch(e){d[p]={type:"error",result:e}}}else{h&&s.add(p);try{let e=await f(async()=>mo(await u.promise,p));d[p]={type:"data",result:e}}catch(e){d[p]={type:"error",result:e}}}else l||(l=null!=t.unstable_shouldRevalidateArgs&&h&&!0===g)})));await Promise.all(c.map(e=>e.promise));let p=!t.state.initialized&&"idle"===t.state.navigation.state;if(!p&&0!==s.size||window.__reactRouterHdrActive){let t=o&&l&&s.size>0?[...s.keys()]:void 0;try{let r=await n(e,i,t);u.resolve(r.data)}catch(e){u.reject(e)}}else u.resolve({routes:{}});return await f,await async function(e,t,r,n){try{let o,i=await e;if("routes"in i)for(let e of t)if(e.route.id in i.routes){let t=i.routes[e.route.id];if("error"in t){o=t.error,null==n[e.route.id]?.result&&(n[e.route.id]={type:"error",result:o});break}}void 0!==o&&Array.from(r.values()).forEach(e=>{n[e].result instanceof oo&&(n[e].result=o)})}catch(e){}}(u.promise,e.matches,s,d),d}(a,u,t,r,n,o,i):async function(e,t,r,n){let o=e.matches.filter(e=>e.unstable_shouldCallHandler()),i={};return await Promise.all(o.map(o=>o.resolve(async a=>{try{let{hasClientLoader:s}=t(o),l=o.route.id,c=s?await a(async()=>{let{data:t}=await r(e,n,[l]);return mo(t,l)}):await a();i[o.route.id]={type:"data",result:c}}catch(e){i[o.route.id]={type:"error",result:e}}}))),i}(a,t,r,o)}}function uo(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let e of t)e&&r.push(e);for(let t of r)e.searchParams.append("index",t);return e}function fo(e,t,r){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===W(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function po(e,t,r){let{request:n}=e,o=fo(n.url,t,"data");"GET"===n.method&&(o=uo(o),r&&o.searchParams.set("_routes",r.join(",")));let i=await fetch(o,await Xn(n));if(i.status>=400&&!i.headers.has("X-Remix-Response"))throw new ae(i.status,i.statusText,await i.text());if(204===i.status&&i.headers.has("X-Remix-Redirect"))return{status:io,data:{redirect:{redirect:i.headers.get("X-Remix-Redirect"),status:Number(i.headers.get("X-Remix-Status")||"302"),revalidate:"true"===i.headers.get("X-Remix-Revalidate"),reload:"true"===i.headers.get("X-Remix-Reload-Document"),replace:"true"===i.headers.get("X-Remix-Replace")}}};if(ao.has(i.status)){let e={};return r&&"GET"!==n.method&&(e[r[0]]={data:void 0}),{status:i.status,data:{routes:e}}}to(i.body,"No response body to decode");try{let e,t=await ho(i.body,window);if("GET"===n.method){let r=t.value;e=no in r?{redirect:r[no]}:{routes:r}}else{let n=t.value,o=r?.[0];to(o,"No routeId found for single fetch call decoding"),e="redirect"in n?{redirect:n}:{routes:{[o]:n}}}return{status:i.status,data:e}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function ho(e,t){return $n(e,{plugins:[(e,...r)=>{if("SanitizedError"===e){let[e,n,o]=r,i=Error;e&&e in t&&"function"==typeof t[e]&&(i=t[e]);let a=new i(n);return a.stack=o,{value:a}}if("ErrorResponse"===e){let[e,t,n]=r;return{value:new ae(t,n,e)}}return"SingleFetchRedirect"===e?{value:{[no]:r[0]}}:"SingleFetchClassInstance"===e?{value:r[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function mo(e,t){if("redirect"in e){let{redirect:t,revalidate:r,reload:n,replace:o,status:i}=e.redirect;throw ne(t,{status:i,headers:{...r?{"X-Remix-Revalidate":"yes"}:null,...n?{"X-Remix-Reload-Document":"yes"}:null,...o?{"X-Remix-Replace":"yes"}:null}})}let r=e.routes[t];if(null==r)throw new oo(`No result found for routeId "${t}"`);if("error"in r)throw r.error;if("data"in r)return r.data;throw new Error(`Invalid response found for routeId "${t}"`)}function go(){let e,t,r=new Promise((n,o)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{o(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}async function yo(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vo(e){return e.css?e.css.map(e=>({rel:"stylesheet",href:e})):[]}async function bo(e,t){if(!e.css&&!t.links||!function(){if(void 0!==ro)return ro;let e=document.createElement("link");return ro=e.relList.supports("preload"),e=null,ro}())return;let r=[];if(e.css&&r.push(...vo(e)),t.links&&r.push(...t.links()),0===r.length)return;let n=[];for(let e of r)wo(e)||"stylesheet"!==e.rel||n.push({...e,rel:"preload",as:"style"});await Promise.all(n.map(_o))}async function _o(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let r=document.createElement("link");function n(){document.head.contains(r)&&document.head.removeChild(r)}Object.assign(r,e),r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function wo(e){return null!=e&&"string"==typeof e.page}function So(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Eo(e,t,r,n,o,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function ko(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function xo(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!wo(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let i=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(i)||(r.add(i),e.push({key:i,link:o})),e},[])}function To(){return o.createElement(di,{title:"Loading...",renderScripts:!0},Xt?o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this " +\n "when your app is loading JS modules and/or running `clientLoader` " +\n "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +\n "for more information."\n );\n '}}):null)}function Oo(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}function Co(e,t,r){let n=Do(t),i=!t.HydrateFallback||r&&"root"!==e.id?"root"===e.id?To:void 0:t.HydrateFallback,a=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>o.createElement(ui,{error:Cr()}):void 0;return"root"===e.id&&t.Layout?{...n?{element:o.createElement(t.Layout,null,o.createElement(n,null))}:{Component:n},...a?{errorElement:o.createElement(t.Layout,null,o.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:o.createElement(t.Layout,null,o.createElement(i,null))}:{HydrateFallback:i}}:{Component:n,ErrorBoundary:a,HydrateFallback:i}}function jo(e,t,r,n,o="",i=Oo(e),a=Promise.resolve({Component:()=>null})){return(i[o]||[]).map(o=>{let s=t[o.id];to(s,"No `routeModule` available to create server routes");let l={...Co(o,s,n),caseSensitive:o.caseSensitive,id:o.id,index:o.index,path:o.path,handle:s.handle,lazy:n?()=>a:void 0,loader:o.hasLoader||o.hasClientLoader?()=>null:void 0},c=jo(e,t,r,n,o.id,i,a);return c.length>0&&(l.children=c),l})}function Po(e,t,r,n,o,i){return Ao(t,r,n,o,i,"",Oo(t),e)}function Io(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(r),new ae(400,"Bad Request",new Error(r),!0)}}function Ro(e,t){let r="clientAction"===e?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new ae(405,"Method Not Allowed",new Error(n),!0)}function Ao(e,t,r,n,o,i="",a=Oo(e),s){return(a[i]||[]).map(i=>{let l=t[i.id];function c(e){return to("function"==typeof e,"No single fetch function available for route handler"),e()}function u(e){return i.hasLoader?c(e):Promise.resolve(null)}function d(e){if(!i.hasAction)throw Ro("action",i.id);return c(e)}function f(e){import(e)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function h(e){let r=t[i.id],n=r?bo(i,r):Promise.resolve();try{return e()}finally{await n}}let m={id:i.id,index:i.index,path:i.path};if(l){Object.assign(m,{...m,...Co(i,l,o),middleware:l.clientMiddleware,handle:l.handle,shouldRevalidate:Mo(m.path,l,i,n,s)});let y=r&&r.loaderData&&i.id in r.loaderData,v=y?r?.loaderData?.[i.id]:void 0,b=r&&r.errors&&i.id in r.errors,_=b?r?.errors?.[i.id]:void 0,w=null==s&&(!0===l.clientLoader?.hydrate||!i.hasLoader);m.loader=async({request:e,params:t,context:r,unstable_pattern:n},o)=>{try{return await h(async()=>(to(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:e,params:t,context:r,unstable_pattern:n,async serverLoader(){if(Io("loader",i),w){if(y)return v;if(b)throw _}return u(o)}}):u(o)))}finally{w=!1}},m.loader.hydrate=No(i.id,l.clientLoader,i.hasLoader,o),m.action=({request:e,params:t,context:r,unstable_pattern:n},a)=>h(async()=>{if(to(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(o)throw Ro("clientAction",i.id);return d(a)}return l.clientAction({request:e,params:t,context:r,unstable_pattern:n,serverAction:async()=>(Io("action",i),d(a))})})}else{let S;async function E(){return S||(S=(async()=>{(i.clientLoaderModule||i.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=async function(e,t){let r=yo(e,t),n=async function(e){if(!e.css)return;let t=vo(e);await Promise.all(t.map(_o))}(e),o=await r;return await Promise.all([n,bo(e,o)]),{Component:Do(o),ErrorBoundary:o.ErrorBoundary,clientMiddleware:o.clientMiddleware,clientAction:o.clientAction,clientLoader:o.clientLoader,handle:o.handle,links:o.links,meta:o.meta,shouldRevalidate:o.shouldRevalidate}}(i,t);return p(i),await e})()),await S}i.hasClientLoader||(m.loader=(e,t)=>h(()=>u(t))),i.hasClientAction||(m.action=(e,t)=>h(()=>{if(o)throw Ro("clientAction",i.id);return d(t)})),m.lazy={loader:i.hasClientLoader?async()=>{let{clientLoader:e}=i.clientLoaderModule?await import(i.clientLoaderModule):await E();return to(e,"No `clientLoader` export found"),(t,r)=>e({...t,serverLoader:async()=>(Io("loader",i),u(r))})}:void 0,action:i.hasClientAction?async()=>{let e=i.clientActionModule?import(i.clientActionModule):E();p(i);let{clientAction:t}=await e;return to(t,"No `clientAction` export found"),(e,r)=>t({...e,serverAction:async()=>(Io("action",i),d(r))})}:void 0,middleware:i.hasClientMiddleware?async()=>{let{clientMiddleware:e}=i.clientMiddlewareModule?await import(i.clientMiddlewareModule):await E();return to(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await E();return Mo(m.path,e,i,n,s)},handle:async()=>(await E()).handle,Component:async()=>(await E()).Component,ErrorBoundary:i.hasErrorBoundary?async()=>(await E()).ErrorBoundary:void 0}}let g=Ao(e,t,r,n,o,i.id,a,s);return g.length>0&&(m.children=g),m})}function Mo(e,t,r,n,o){if(o)return function(e,t,r){let n=!1;return o=>n?t?t(o):o.defaultShouldRevalidate:(n=!0,r.has(e))}(r.id,t.shouldRevalidate,o);if(!n&&r.hasLoader&&!r.hasClientLoader){let r=e?q(e)[1].map(e=>e.paramName):[];const n=e=>r.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:n(t)})}return e=>n(e)}if(n&&t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:!0})}return t.shouldRevalidate}function Do(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function No(e,t,r,n){return n&&"root"!==e||null!=t&&(!0===t.hydrate||!0!==r)}var Lo=new Set,Bo=1e3,Fo=new Set,zo=7680;function Uo(e,t){return"lazy"===e.mode&&!0===t}function Ho(e,t,r,n,o,i){if(Uo(n,r))return async({path:a,patch:s,signal:l,fetcherKey:c})=>{Fo.has(a)||await Go([a],c?window.location.href:a,e,t,r,o,i,n.manifestPath,s,l)}}function qo(e,t,r,n,i,a){o.useEffect(()=>{if(!Uo(i,n)||!0===window.navigator?.connection?.saveData)return;function o(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Fo.has(r)||Lo.add(r)}async function s(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(o);let s=Array.from(Lo.keys()).filter(e=>!Fo.has(e)||(Lo.delete(e),!1));if(0!==s.length)try{await Go(s,null,t,r,n,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let l=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(s,100);s();let c=new MutationObserver(()=>l());return c.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>c.disconnect()},[n,a,t,r,e,i])}function Vo(e,t){let r=e||"/__manifest";return null==t?r:`${t}${r}`.replace(/\/+/g,"/")}var Wo="react-router-manifest-version";async function Go(e,t,r,n,o,i,a,s,l,c){const u=new URLSearchParams;u.set("paths",e.sort().join(",")),u.set("version",r.version);let d,f=new URL(Vo(s,a),window.location.origin);if(f.search=u.toString(),f.toString().length>zo)return void Lo.clear();try{let e=await fetch(f,{signal:c});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);if(204===e.status&&e.headers.has("X-Remix-Reload-Document")){if(!t)return void console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.");try{if(sessionStorage.getItem(Wo)===r.version)return void console.error("Unable to discover routes due to manifest version mismatch.");sessionStorage.setItem(Wo,r.version)}catch{}window.location.href=t,console.warn("Detected manifest version mismatch, reloading..."),await new Promise(()=>{})}else if(e.status>=400)throw new Error(await e.text());try{sessionStorage.removeItem(Wo)}catch{}d=await e.json()}catch(e){if(c?.aborted)return;throw e}let p=new Set(Object.keys(r.routes)),h=Object.values(d).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(r.routes,h),e.forEach(e=>function(e,t){if(t.size>=Bo){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,Fo));let m=new Set;Object.values(h).forEach(e=>{!e||e.parentId&&h[e.parentId]||m.add(e.parentId)}),m.forEach(e=>l(e||null,Ao(h,n,null,o,i,e)))}function $o(){let e=o.useContext(zt);return to(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ko(){let e=o.useContext(Ut);return to(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yo=o.createContext(void 0);function Jo(){let e=o.useContext(Yo);return to(e,"You must render this element inside a <HydratedRouter> element"),e}function Xo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Qo(e,t,r){if(r&&!ii)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}Yo.displayName="FrameworkContext";var Zo="data-react-router-critical-css";function ei({nonce:e}){let{isSpaMode:t,manifest:r,routeModules:n,criticalCss:i}=Jo(),{errors:a,matches:s}=Ko(),l=Qo(s,a,t),c=o.useMemo(()=>function(e,t,r){return xo(e.map(e=>{let n=t[e.route.id],o=r.routes[e.route.id];return[o&&o.css?o.css.map(e=>({rel:"stylesheet",href:e})):[],n?.links?.()||[]]}).flat(2),ko(e,r))}(l,n,r),[l,n,r]);return o.createElement(o.Fragment,null,"string"==typeof i?o.createElement("style",{[Zo]:"",dangerouslySetInnerHTML:{__html:i}}):null,"object"==typeof i?o.createElement("link",{[Zo]:"",rel:"stylesheet",href:i.href,nonce:e}):null,c.map(({key:t,link:r})=>wo(r)?o.createElement(ti,{key:t,nonce:e,...r}):o.createElement("link",{key:t,nonce:e,...r})))}function ti({page:e,...t}){let{router:r}=$o(),n=o.useMemo(()=>O(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?o.createElement(ni,{page:e,matches:n,...t}):null}function ri(e){let{manifest:t,routeModules:r}=Jo(),[n,i]=o.useState([]);return o.useEffect(()=>{let n=!1;return async function(e,t,r){return xo((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await yo(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(So).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||i(e)}),()=>{n=!0}},[e,t,r]),n}function ni({page:e,matches:t,...r}){let n=er(),{manifest:i,routeModules:a}=Jo(),{basename:s}=$o(),{loaderData:l,matches:c}=Ko(),u=o.useMemo(()=>Eo(e,t,c,i,n,"data"),[e,t,c,i,n]),d=o.useMemo(()=>Eo(e,t,c,i,n,"assets"),[e,t,c,i,n]),f=o.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:r.add(e.route.id))}),0===r.size)return[];let c=fo(e,s,"data");return o&&r.size>0&&c.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,l,n,i,u,t,e,a]),p=o.useMemo(()=>ko(d,i),[d,i]),h=ri(d);return o.createElement(o.Fragment,null,f.map(e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),p.map(e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>o.createElement("link",{key:e,nonce:r.nonce,...t})))}function oi(){let{isSpaMode:e,routeModules:t}=Jo(),{errors:r,matches:n,loaderData:i}=Ko(),a=er(),s=Qo(n,r,e),l=null;r&&(l=r[s[s.length-1].route.id]);let c=[],u=null,d=[];for(let e=0;e<s.length;e++){let r=s[e],n=r.route.id,o=i[n],f=r.params,p=t[n],h=[],m={id:n,data:o,loaderData:o,meta:[],params:r.params,pathname:r.pathname,handle:r.route.handle,error:l};if(d[e]=m,p?.meta?h="function"==typeof p.meta?p.meta({data:o,loaderData:o,params:f,location:a,matches:d,error:l}):Array.isArray(p.meta)?[...p.meta]:p.meta:u&&(h=[...u]),h=h||[],!Array.isArray(h))throw new Error("The route at "+r.route.path+" returns an invalid value. All route meta functions must return an array of meta objects.\n\nTo reference the meta function API, see https://remix.run/route/meta");m.meta=h,d[e]=m,c=[...h],u=c}return o.createElement(o.Fragment,null,c.flat().map(e=>{if(!e)return null;if("tagName"in e){let{tagName:t,...r}=e;if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let n=t;return o.createElement(n,{key:JSON.stringify(r),...r})}if("title"in e)return o.createElement("title",{key:"title"},String(e.title));if("charset"in e&&(e.charSet??(e.charSet=e.charset),delete e.charset),"charSet"in e&&null!=e.charSet)return"string"==typeof e.charSet?o.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return o.createElement("script",{key:`script:ld+json:${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:eo(t)}})}catch(e){return null}return o.createElement("meta",{key:JSON.stringify(e),...e})}))}var ii=!1;function ai(){ii=!0}function si(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:i,routeDiscovery:a,ssr:s}=Jo(),{router:l,static:c,staticContext:u}=$o(),{matches:d}=Ko(),f=o.useContext(Ht),p=Uo(a,s);i&&(i.didRenderScripts=!0);let h=Qo(d,null,n);o.useEffect(()=>{ai()},[]);let m=o.useMemo(()=>{if(f)return null;let n=u?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];to(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...i?[{module:i,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=O(r.routes,e,r.basename);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))},[]),g=ii||f?[]:(y=t.entry.imports.concat(ko(h,t,{includeHydrateFallback:!0})),[...new Set(y)]);var y;let v="object"==typeof t.sri?t.sri:{};return Lr(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ii||f?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],suppressHydrationWarning:!0}),g.map(t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0})),m)}function li(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var ci=class extends o.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?o.createElement(ui,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function ui({error:e,isOutsideRemixApp:t}){console.error(e);let r,n=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(se(e))return o.createElement(di,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),Xt?n:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return o.createElement(di,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function di({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:i}=Jo();return i.root?.Layout&&!r?n:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?o.createElement(si,null):null)))}var fi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{fi&&(window.__reactRouterVersion="7.9.5")}catch(e){}function pi(e,t){return Ae({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||mi(),routes:e,mapRouteProperties:Br,hydrationRouteProperties:Fr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function hi(e,t){return Ae({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||mi(),routes:e,mapRouteProperties:Br,hydrationRouteProperties:Fr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function mi(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:gi(e.errors)}),e}function gi(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new ae(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let o=new t(n.message);o.stack="",r[e]=o}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}function yi({basename:e,children:t,window:r}){let n=o.useRef();null==n.current&&(n.current=u({window:r,v5Compat:!0}));let i=n.current,[a,s]=o.useState({action:i.action,location:i.location}),l=o.useCallback(e=>{o.startTransition(()=>s(e))},[s]);return o.useLayoutEffect(()=>i.listen(l),[i,l]),o.createElement(Yr,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}function vi({basename:e,children:t,window:r}){let n=o.useRef();null==n.current&&(n.current=d({window:r,v5Compat:!0}));let i=n.current,[a,s]=o.useState({action:i.action,location:i.location}),l=o.useCallback(e=>{o.startTransition(()=>s(e))},[s]);return o.useLayoutEffect(()=>i.listen(l),[i,l]),o.createElement(Yr,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}function bi({basename:e,children:t,history:r}){let[n,i]=o.useState({action:r.action,location:r.location}),a=o.useCallback(e=>{o.startTransition(()=>i(e))},[i]);return o.useLayoutEffect(()=>r.listen(a),[r,a]),o.createElement(Yr,{basename:e,children:t,location:n.location,navigationType:n.action,navigator:r})}bi.displayName="unstable_HistoryRouter";var _i=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wi=o.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,...f},h){let m,{basename:g}=o.useContext($t),y="string"==typeof c&&_i.test(c),v=!1;if("string"==typeof c&&y&&(m=c,fi))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=W(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:v=!0}catch(e){p(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=Qt(c,{relative:n}),[_,w,S]=function(e,t){let r=o.useContext(Yo),[n,i]=o.useState(!1),[a,s]=o.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=o.useRef(null);o.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let h=()=>{i(!0)},m=()=>{i(!1),s(!1)};return r?"intent"!==e?[a,p,{}]:[a,p,{onFocus:Xo(l,h),onBlur:Xo(c,m),onMouseEnter:Xo(u,h),onMouseLeave:Xo(d,m),onTouchStart:Xo(f,h)}]:[!1,p,{}]}(r,f),E=Ci(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:n,viewTransition:d});let k=o.createElement("a",{...f,...S,href:m||b,onClick:v||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:li(h,w),target:l,"data-discover":y||"render"!==t?void 0:"true"});return _&&!y?o.createElement(o.Fragment,null,k,o.createElement(ti,{page:b})):k});wi.displayName="Link";var Si=o.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let d=ur(a,{relative:c.relative}),f=er(),p=o.useContext(Ut),{navigator:h,basename:m}=o.useContext($t),g=null!=p&&Hi(d)&&!0===s,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=f.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&m&&(b=W(b,m)||b);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let w,S=v===y||!n&&v.startsWith(y)&&"/"===v.charAt(_),E=null!=b&&(b===y||!n&&b.startsWith(y)&&"/"===b.charAt(y.length)),k={isActive:S,isPending:E,isTransitioning:g},x=S?e:void 0;w="function"==typeof r?r(k):[r,S?"active":null,E?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof i?i(k):i;return o.createElement(wi,{...c,"aria-current":x,className:w,ref:u,style:T,to:a,viewTransition:s},"function"==typeof l?l(k):l)});Si.displayName="NavLink";var Ei=o.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:s=pn,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...p},h)=>{let m=Ri(),g=Ai(l,{relative:u}),y="get"===s.toLowerCase()?"get":"post",v="string"==typeof l&&_i.test(l);return o.createElement("form",{ref:h,method:y,action:g,onSubmit:n?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,o=n?.getAttribute("formmethod")||s;m(n||e.currentTarget,{fetcherKey:t,method:o,navigate:r,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f})},...p,"data-discover":v||"render"!==e?void 0:"true"})});function ki({getKey:e,storageKey:t,...r}){let n=o.useContext(Yo),{basename:i}=o.useContext($t),a=er(),s=kr();Fi({getKey:e,storageKey:t});let l=o.useMemo(()=>{if(!n||!e)return null;let t=Bi(a,s,i,e);return t!==a.key?t:null},[]);if(!n||n.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let r=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof r&&window.scrollTo(0,r)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return o.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${JSON.stringify(t||Ni)}, ${JSON.stringify(l)})`}})}function xi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ti(e){let t=o.useContext(zt);return f(t,xi(e)),t}function Oi(e){let t=o.useContext(Ut);return f(t,xi(e)),t}function Ci(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:a,viewTransition:s}={}){let l=ir(),c=er(),u=ur(e,{relative:a});return o.useCallback(o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==r?r:g(c)===g(u);l(e,{replace:t,state:n,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,n,t,e,i,a,s])}function ji(e){p("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(gn(e)),r=o.useRef(!1),n=er(),i=o.useMemo(()=>function(e,t){let r=gn(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),a=ir(),s=o.useCallback((e,t)=>{const n=gn("function"==typeof e?e(new URLSearchParams(i)):e);r.current=!0,a("?"+n,t)},[a,i]);return[i,s]}Ei.displayName="Form",ki.displayName="ScrollRestoration";var Pi=0,Ii=()=>`__${String(++Pi)}__`;function Ri(){let{router:e}=Ti("useSubmit"),{basename:t}=o.useContext($t),r=wr("useRouteId");return o.useCallback(async(n,o={})=>{let{action:i,method:a,encType:s,formData:l,body:c}=_n(n,t);if(!1===o.navigate){let t=o.fetcherKey||Ii();await e.fetch(t,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Ai(e,{relative:t}={}){let{basename:r}=o.useContext($t),n=o.useContext(Yt);f(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...ur(e||".",{relative:t})},s=er();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(a.pathname="/"===a.pathname?r:X([r,a.pathname])),g(a)}function Mi({key:e}={}){let{router:t}=Ti("useFetcher"),r=Oi("useFetcher"),n=o.useContext(Vt),i=o.useContext(Yt),a=i.matches[i.matches.length-1]?.route.id;f(n,"useFetcher must be used inside a FetchersContext"),f(i,"useFetcher must be used inside a RouteContext"),f(null!=a,'useFetcher can only be used on routes that contain a unique "id"');let s=o.useId(),[l,c]=o.useState(e||s);e&&e!==l&&c(e),o.useEffect(()=>(t.getFetcher(l),()=>t.deleteFetcher(l)),[t,l]);let u=o.useCallback(async(e,r)=>{f(a,"No routeId available for fetcher.load()"),await t.fetch(l,a,e,r)},[l,a,t]),d=Ri(),p=o.useCallback(async(e,t)=>{await d(e,{...t,navigate:!1,fetcherKey:l})},[l,d]),h=o.useCallback(e=>t.resetFetcher(l,e),[t,l]),m=o.useMemo(()=>{let e=o.forwardRef((e,t)=>o.createElement(Ei,{...e,navigate:!1,fetcherKey:l,ref:t}));return e.displayName="fetcher.Form",e},[l]),g=r.fetchers.get(l)||Te,y=n.get(l);return o.useMemo(()=>({Form:m,submit:p,load:u,unstable_reset:h,...g,data:y}),[m,p,u,h,g,y])}function Di(){let e=Oi("useFetchers");return Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e}))}var Ni="react-router-scroll-positions",Li={};function Bi(e,t,r,n){let o=null;return n&&(o=n("/"!==r?{...e,pathname:W(e.pathname,r)||e.pathname}:e,t)),null==o&&(o=e.key),o}function Fi({getKey:e,storageKey:t}={}){let{router:r}=Ti("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:i}=Oi("useScrollRestoration"),{basename:a}=o.useContext($t),s=er(),l=kr(),c=Sr();o.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}=t||{};o.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(o.useCallback(()=>{if("idle"===c.state){let t=Bi(s,l,a,e);Li[t]=window.scrollY}try{sessionStorage.setItem(t||Ni,JSON.stringify(Li))}catch(e){p(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"},[c.state,e,a,s,l,t])),"undefined"!=typeof document&&(o.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Ni);e&&(Li=JSON.parse(e))}catch(e){}},[t]),o.useLayoutEffect(()=>{let t=r?.enableScrollRestoration(Li,()=>window.scrollY,e?(t,r)=>Bi(t,r,a,e):void 0);return()=>t&&t()},[r,a,e]),o.useLayoutEffect(()=>{if(!1!==n)if("number"!=typeof n){try{if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{p(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,n)},[s,n,i]))}function zi(e,t){let{capture:r}=t||{};o.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function Ui({when:e,message:t}){let r=Rr(e);o.useEffect(()=>{if("blocked"===r.state){window.confirm(t)?setTimeout(r.proceed,0):r.reset()}},[r,t]),o.useEffect(()=>{"blocked"!==r.state||e||r.reset()},[r,e])}function Hi(e,{relative:t}={}){let r=o.useContext(qt);f(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ti("useViewTransitionState"),i=ur(e,{relative:t});if(!r.isTransitioning)return!1;let a=W(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=W(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=H(i.pathname,s)||null!=H(i.pathname,a)}function qi({basename:e,children:t,location:r="/"}){"string"==typeof r&&(r=y(r));let n={pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:null!=r.state?r.state:null,key:r.key||"default"},i=$i();return o.createElement(Yr,{basename:e,children:t,location:n,navigationType:"POP",navigator:i,static:!0})}function Vi({context:e,router:t,hydrate:r=!0,nonce:n}){f(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:$i(),static:!0,staticContext:e,basename:e.basename||"/"},a=new Map,s="";if(!1!==r){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Gi(e.errors)};s=`window.__staticRouterHydrationData = JSON.parse(${JSON.stringify(JSON.stringify(t)).replace(ea,e=>Zi[e])});`}let{state:l}=i.router;return o.createElement(o.Fragment,null,o.createElement(zt.Provider,{value:i},o.createElement(Ut.Provider,{value:l},o.createElement(Vt.Provider,{value:a},o.createElement(qt.Provider,{value:{isTransitioning:!1}},o.createElement(Yr,{basename:i.basename,location:l.location,navigationType:l.historyAction,navigator:i.navigator,static:i.static},o.createElement(Wi,{routes:t.routes,future:t.future,state:l})))))),s?o.createElement("script",{suppressHydrationWarning:!0,nonce:n,dangerouslySetInnerHTML:{__html:s}}):null)}function Wi({routes:e,future:t,state:r}){return fr(e,void 0,r,void 0,t)}function Gi(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)se(n)?r[e]={...n,__type:"RouteErrorResponse"}:n instanceof Error?r[e]={message:n.message,__type:"Error",..."Error"!==n.name?{__subType:n.name}:{}}:r[e]=n;return r}function $i(){return{createHref:Ji,encodeLocation:Xi,push(e){throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}function Ki(e,t){return Me(e,{...t,mapRouteProperties:Br})}function Yi(e,t,r={}){let n={},o=x(e,Br,void 0,n),i=t.matches.map(e=>{let t=n[e.route.id]||e.route;return{...e,route:t}}),a=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,...r?.future}},get state(){return{historyAction:"POP",location:t.location,matches:i,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,navigation:xe,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return o},get window(){},initialize(){throw a("initialize")},subscribe(){throw a("subscribe")},enableScrollRestoration(){throw a("enableScrollRestoration")},navigate(){throw a("navigate")},fetch(){throw a("fetch")},revalidate(){throw a("revalidate")},createHref:Ji,encodeLocation:Xi,getFetcher:()=>Te,deleteFetcher(){throw a("deleteFetcher")},resetFetcher(){throw a("resetFetcher")},dispose(){throw a("dispose")},getBlocker:()=>Oe,deleteBlocker(){throw a("deleteBlocker")},patchRoutes(){throw a("patchRoutes")},_internalFetchControllers:new Map,_internalSetRoutes(){throw a("_internalSetRoutes")},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw a("_internalSetStateDoNotUseOrYouWillBreakYourApp")}}}function Ji(e){return"string"==typeof e?e:g(e)}function Xi(e){let t="string"==typeof e?e:g(e);t=t.replace(/ $/,"%20");let r=Qi.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}var Qi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zi={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},ea=/[&><\u2028\u2029]/g},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){const r=new s,n=e.length;if(n<2)return r;const o=t?.decode||u;let i=0;do{const t=e.indexOf("=",i);if(-1===t)break;const a=e.indexOf(";",i),s=-1===a?n:a;if(t>s){i=e.lastIndexOf(";",t-1)+1;continue}const u=l(e,i,t),d=c(e,t,u),f=e.slice(u,d);if(void 0===r[f]){let n=l(e,t+1,s),i=c(e,s,n);const a=o(e.slice(n,i));r[f]=a}i=s+1}while(i<n);return r},t.serialize=function(e,t,s){const l=s?.encode||encodeURIComponent;if(!r.test(e))throw new TypeError(`argument name is invalid: ${e}`);const c=l(t);if(!n.test(c))throw new TypeError(`argument val is invalid: ${t}`);let u=e+"="+c;if(!s)return u;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);u+="; Max-Age="+s.maxAge}if(s.domain){if(!o.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);u+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);u+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);u+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(u+="; HttpOnly");s.secure&&(u+="; Secure");s.partitioned&&(u+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return u};const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function l(e,t,r){do{const r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){const r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return r}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"!=typeof e||e in{}}function n(){return Object.create(null)}function o(e){return"string"==typeof e&&!!e.trim()}function i(e,i){var a=e.split(";").filter(o),s=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(a.shift()),l=s.name,c=s.value;if(i=i?Object.assign({},t,i):t,r(l))return null;try{c=i.decodeValues?decodeURIComponent(c):c}catch(e){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",e)}var u=n();return u.name=l,u.value=c,a.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var o=t.join("=");if("expires"===n)u.expires=new Date(o);else if("max-age"===n){var i=parseInt(o,10);Number.isNaN(i)||(u.maxAge=i)}else"secure"===n?u.secure=!0:"httponly"===n?u.httpOnly=!0:"samesite"===n?u.sameSite=o:"partitioned"===n?u.partitioned=!0:n&&(u[n]=o)}}),u}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)return a.map?n():[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||a.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),a.map){var l=n();return e.filter(o).reduce(function(e,t){var n=i(t,a);return n&&!r(n.name)&&(e[n.name]=n),e},l)}return e.filter(o).map(function(e){return i(e,a)}).filter(Boolean)}e.exports=a,e.exports.parse=a,e.exports.parseString=i,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,o,i,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,i=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),o=s;s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=o,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloProvider:()=>s});var n=r(104),o=r(350),i=r(348),a=r(603),s=function(e){var t=e.client,r=e.children,s=(0,a.getApolloContext)(),l=i.useContext(s),c=i.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},l),{client:t||l.client})},[l,t]);return(0,o.invariant)(c.client,55),i.createElement(s.Provider,{value:c},r)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{getApolloContext:()=>l,resetApolloContext:()=>c});var o=r(348),i=r(358),a=r(350),s=i.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function l(){(0,a.invariant)("createContext"in(n||(n=r.t(o,2))),54);var e=o.createContext[s];return e||(Object.defineProperty(o.createContext,s,{value:e=o.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var c=l},,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMakeWatchQueryOptions:()=>k,getDefaultFetchPolicy:()=>C,getObsQueryOptions:()=>x,toApolloError:()=>j,toQueryResult:()=>P,useQuery:()=>w,useQueryInternals:()=>E});var n=r(104),o=(r(350),r(348)),i=r(349),a=r(474),s=r(495),l=r(603),c=r(459),u=r(481),d=r(482),f=r(621),p=r(622),h=r(491),m=r(461),g=r(485),y=r(623),v=Object.prototype.hasOwnProperty;function b(){}var _=Symbol();function w(e,t){return void 0===t&&(t=Object.create(null)),(0,y.wrapHook)("useQuery",S,(0,p.useApolloClient)(t&&t.client))(e,t)}function S(e,t){var r=E(e,t),i=r.result,a=r.obsQueryFields;return o.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},i),a)},[i,a])}function E(e,t){var r=(0,p.useApolloClient)(t.client),s=o.useContext((0,l.getApolloContext)()).renderPromises,c=!!s,h=r.disableNetworkFetches,m=!1!==t.ssr&&!t.skip,g=t.partialRefetch,y=k(r,e,t,c),w=function(e,t,r,i,a){function s(n){var o;return(0,f.verifyDocumentType)(t,f.DocumentType.Query),{client:e,query:t,observable:i&&i.getSSRObservable(a())||u.ObservableQuery.inactiveOnCreation.withValue(!i,function(){return e.watchQuery(x(void 0,e,r,a()))}),resultData:{previousData:null===(o=null==n?void 0:n.resultData.current)||void 0===o?void 0:o.data}}}var l=o.useState(s),c=l[0],d=l[1];function p(e){var t,r;Object.assign(c.observable,((t={})[_]=e,t));var o=c.resultData;d((0,n.__assign)((0,n.__assign)({},c),{query:e.query,resultData:Object.assign(o,{previousData:(null===(r=o.current)||void 0===r?void 0:r.data)||o.previousData,current:void 0})}))}if(e!==c.client||t!==c.query){var h=s(c);return d(h),[h,p]}return[c,p]}(r,e,t,s,y),S=w[0],E=S.observable,C=S.resultData,j=w[1],A=y(E);!function(e,t,r,n,o){var i;t[_]&&!(0,a.equal)(t[_],o)&&(t.reobserve(x(t,r,n,o)),e.previousData=(null===(i=e.current)||void 0===i?void 0:i.data)||e.previousData,e.current=void 0);t[_]=o}(C,E,r,t,A);var M=o.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(E)},[E]);!function(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(E,s,m);var D=function(e,t,r,n,s,l,c,u,f){var p=o.useRef(f);o.useEffect(function(){p.current=f});var h=!u&&!l||!1!==n.ssr||n.skip?n.skip||"standby"===s.fetchPolicy?R:void 0:I,m=e.previousData,g=o.useMemo(function(){return h&&P(h,m,t,r)},[r,t,h,m]);return(0,i.useSyncExternalStore)(o.useCallback(function(n){if(u)return function(){};var o=function(){var o=e.current,i=t.getCurrentResult();o&&o.loading===i.loading&&o.networkStatus===i.networkStatus&&(0,a.equal)(o.data,i.data)||T(i,e,t,r,c,n,p.current)},i=function(l){if(s.current.unsubscribe(),s.current=t.resubscribeAfterError(o,i),!v.call(l,"graphQLErrors"))throw l;var u=e.current;(!u||u&&u.loading||!(0,a.equal)(l,u.error))&&T({data:u&&u.data,error:l,loading:!1,networkStatus:d.NetworkStatus.error},e,t,r,c,n,p.current)},s={current:t.subscribe(o,i)};return function(){setTimeout(function(){return s.current.unsubscribe()})}},[l,u,t,e,c,r]),function(){return g||O(e,t,p.current,c,r)},function(){return g||O(e,t,p.current,c,r)})}(C,E,r,t,A,h,g,c,{onCompleted:t.onCompleted||b,onError:t.onError||b});return{result:D,obsQueryFields:M,observable:E,resultData:C,client:r,onQueryExecuted:j}}function k(e,t,r,o){void 0===r&&(r={});var i=r.skip,a=(r.ssr,r.onCompleted,r.onError,r.defaultOptions),s=(0,n.__rest)(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(r){var n=Object.assign(s,{query:t});return!o||"network-only"!==n.fetchPolicy&&"cache-and-network"!==n.fetchPolicy||(n.fetchPolicy="cache-first"),n.variables||(n.variables={}),i?(n.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy||C(a,e.defaultOptions),n.fetchPolicy="standby"):n.fetchPolicy||(n.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||C(a,e.defaultOptions)),n}}function x(e,t,r,n){var o=[],i=t.defaultOptions.watchQuery;return i&&o.push(i),r.defaultOptions&&o.push(r.defaultOptions),o.push((0,g.compact)(e&&e.options,n)),o.reduce(s.mergeOptions)}function T(e,t,r,o,i,a,s){var l=t.current;l&&l.data&&(t.previousData=l.data),!e.error&&(0,m.isNonEmptyArray)(e.errors)&&(e.error=new c.ApolloError({graphQLErrors:e.errors})),t.current=P(function(e,t,r){if(e.partial&&r&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==t.options.fetchPolicy)return t.refetch(),(0,n.__assign)((0,n.__assign)({},e),{loading:!0,networkStatus:d.NetworkStatus.refetch});return e}(e,r,i),t.previousData,r,o),a(),function(e,t,r){if(!e.loading){var n=j(e);Promise.resolve().then(function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===d.NetworkStatus.ready&&r.onCompleted(e.data)}).catch(function(e){})}}(e,null==l?void 0:l.networkStatus,s)}function O(e,t,r,n,o){return e.current||T(t.getCurrentResult(),e,t,o,n,function(){},r),e.current}function C(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null===(r=null==t?void 0:t.watchQuery)||void 0===r?void 0:r.fetchPolicy)||"cache-first"}function j(e){return(0,m.isNonEmptyArray)(e.errors)?new c.ApolloError({graphQLErrors:e.errors}):e.error}function P(e,t,r,o){var i=e.data,a=(e.partial,(0,n.__rest)(e,["data","partial"]));return(0,n.__assign)((0,n.__assign)({data:i},a),{client:o,observable:r,variables:r.variables,called:e!==I&&e!==R,previousData:t})}var I=(0,h.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:d.NetworkStatus.loading}),R=(0,h.maybeDeepFreeze)({loading:!1,data:void 0,error:void 0,networkStatus:d.NetworkStatus.ready})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentType:()=>n,operationName:()=>l,parser:()=>c,verifyDocumentType:()=>u});var n,o,i=r(350),a=r(444),s=r(446);function l(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function c(e){o||(o=new a.AutoCleanedWeakCache(s.cacheSizes.parser||1e3));var t,r,l=o.get(e);if(l)return l;(0,i.invariant)(!!e&&!!e.kind,70,e);for(var c=[],u=[],d=[],f=[],p=0,h=e.definitions;p<h.length;p++){var m=h[p];if("FragmentDefinition"!==m.kind){if("OperationDefinition"===m.kind)switch(m.operation){case"query":u.push(m);break;case"mutation":d.push(m);break;case"subscription":f.push(m)}}else c.push(m)}(0,i.invariant)(!c.length||u.length||d.length||f.length,71),(0,i.invariant)(u.length+d.length+f.length<=1,72,e,u.length,f.length,d.length),r=u.length?n.Query:n.Mutation,u.length||d.length||(r=n.Subscription);var g=u.length?u:d.length?d:f;(0,i.invariant)(1===g.length,73,e,g.length);var y=g[0];t=y.variableDefinitions||[];var v={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:t};return o.set(e,v),v}function u(e,t){var r=c(e),n=l(t),o=l(r.type);(0,i.invariant)(r.type===t,74,n,n,o)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),c.resetCache=function(){o=void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useApolloClient:()=>a});var n=r(350),o=r(348),i=r(603);function a(e){var t=o.useContext((0,i.getApolloContext)()),r=e||t.client;return(0,n.invariant)(!!r,58),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{wrapHook:()=>o});var n=Symbol.for("apollo.hook.wrappers");function o(e,t,r){var o=r.queryManager,i=o&&o[n],a=i&&i[e];return a?a(t):t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{var n=r(296),o="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(665),i=0,a=function(e){return e.topbar||o};function s(e){return n.useEffect(function(){return 0===i&&a(e).show(),i++,function(){0===--i&&a(e).hide()}},[]),null}s.config=o.config,e.exports=s},function(e,t,r){var n; /*! topbar 0.1.4, 2020-04-27 * http://buunguyen.github.io/topbar * Copyright (c) 2019 Buu Nguyen * Licensed under the MIT License */(function(o,i){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],r=0;r<t.length&&!o.requestAnimationFrame;++r)o.requestAnimationFrame=o[t[r]+"RequestAnimationFrame"],o.cancelAnimationFrame=o[t[r]+"CancelAnimationFrame"]||o[t[r]+"CancelRequestAnimationFrame"];o.requestAnimationFrame||(o.requestAnimationFrame=function(t,r){var n=(new Date).getTime(),i=Math.max(0,16-(n-e)),a=o.setTimeout(function(){t(n+i)},i);return e=n+i,a}),o.cancelAnimationFrame||(o.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,c,u,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},f=function(){a.width=o.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in d.barColors)t.addColorStop(r,d.barColors[r]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(c*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,r,n;u||(u=!0,null!==l&&o.cancelAnimationFrame(l),a||((n=(a=i.createElement("canvas")).style).position="fixed",n.top=n.left=n.right=n.margin=n.padding=0,n.zIndex=100001,n.display="none",d.className&&a.classList.add(d.className),i.body.appendChild(a),t="resize",r=f,(e=o).addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=o.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(c),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?c:0)+parseFloat(e)),c=e>1?1:e,f()),c},hide:function(){u&&(u=!1,null!=s&&(o.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=o.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(n=function(){return p}.call(t,r,t,e))||(e.exports=n)}).call(this,window,document)},,,(e,t,r)=>{e.exports=r(669)()},(e,t,r)=>{"use strict";var n=r(670);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m,withContentRect:()=>p});var n=r(678),o=r(679),i=r(680),a=r(296),s=r(668),l=r.n(s),c=r(682),u=["client","offset","scroll","bounds","margin"];function d(e){var t=[];return u.forEach(function(r){e[r]&&t.push(r)}),t}function f(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var n=e.getBoundingClientRect();r.bounds={top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);r.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return r}function p(e){return function(t){var r,s;return s=r=function(r){function s(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r.call.apply(r,[this].concat(o))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},t._animationFrameID=null,t._resizeObserver=null,t._node=null,t._window=null,t.measure=function(r){var n=f(t._node,e||d(t.props));r&&(n.entry=r[0].contentRect),t._animationFrameID=t._window.requestAnimationFrame(function(){null!==t._resizeObserver&&(t.setState({contentRect:n}),"function"==typeof t.props.onResize&&t.props.onResize(n))})},t._handleRef=function(e){var r;null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,t._window=(r=t._node)&&r.ownerDocument&&r.ownerDocument.defaultView||window;var n=t.props.innerRef;n&&("function"==typeof n?n(t._node):n.current=t._node),null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node)},t}(0,i.default)(s,r);var l=s.prototype;return l.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new c.default(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(f(this._node,e||d(this.props))))},l.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},l.render=function(){var e=this.props,r=(e.innerRef,e.onResize,(0,o.default)(e,["innerRef","onResize"]));return(0,a.createElement)(t,(0,n.default)({},r,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},s}(a.Component),r.propTypes={client:l().bool,offset:l().bool,scroll:l().bool,bounds:l().bool,margin:l().bool,innerRef:l().oneOfType([l().object,l().func]),onResize:l().func},s}}var h=p()(function(e){var t=e.measure,r=e.measureRef,n=e.contentRect;return(0,e.children)({measure:t,measureRef:r,contentRect:n})});h.displayName="Measure",h.propTypes.children=l().func;const m=h},(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(681);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}},(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&l()}function s(){a(i)}function l(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(s,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=v(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+p(e["border-"+r+"-width"])},0)}function m(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return f;var n=d(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=p(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=p(n.width),l=p(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=h(n,"left","right")+i),Math.round(l+a)!==r&&(l-=h(n,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return v(o.left,o.top,s,l)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?g(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):m(e):f}function v(e,t,r,n){return{x:e,y:t,width:r,height:n}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_=function(e,t){var r,n,o,i,a,s,l,c=(n=(r=t).x,o=r.y,i=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);u(this,{target:e,contentRect:c})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new _(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,E=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=c.getInstance(),n=new w(t,r,this);S.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});const k=void 0!==i.ResizeObserver?i.ResizeObserver:E},(e,t)=>{var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useMutation:()=>d});var n=r(104),o=r(348),i=r(495),a=r(474),s=r(621),l=r(459),c=r(622),u=r(697);function d(e,t){var r=(0,c.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var d=o.useState({called:!1,loading:!1,client:r}),f=d[0],p=d[1],h=o.useRef({result:f,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,u.useIsomorphicLayoutEffect)(function(){Object.assign(h.current,{client:r,options:t,mutation:e})});var m=o.useCallback(function(e){void 0===e&&(e={});var t=h.current,r=t.options,o=t.mutation,s=(0,n.__assign)((0,n.__assign)({},r),{mutation:o}),c=e.client||h.current.client;h.current.result.loading||s.ignoreResults||!h.current.isMounted||p(h.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});var u=++h.current.mutationId,d=(0,i.mergeOptions)(s,e);return c.mutate(d).then(function(t){var r,n,o=t.data,i=t.errors,s=i&&i.length>0?new l.ApolloError({graphQLErrors:i}):void 0,f=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(s&&f&&f(s,d),u===h.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:o,error:s,client:c};h.current.isMounted&&!(0,a.equal)(h.current.result,m)&&p(h.current.result=m)}var g=e.onCompleted||(null===(n=h.current.options)||void 0===n?void 0:n.onCompleted);return s||null==g||g(t.data,d),t},function(t){var r;if(u===h.current.mutationId&&h.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:c};(0,a.equal)(h.current.result,n)||p(h.current.result=n)}var o=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(o)return o(t,d),{data:void 0,errors:t};throw t})},[]),g=o.useCallback(function(){if(h.current.isMounted){var e={called:!1,loading:!1,client:h.current.client};Object.assign(h.current,{mutationId:0,result:e}),p(e)}},[]);return o.useEffect(function(){var e=h.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[m,(0,n.__assign)({reset:g},f)]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>o});var n=r(348),o=r(358).canUseDOM?n.useLayoutEffect:n.useEffect},,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useLazyQuery:()=>c});var n=r(104),o=r(348),i=r(495),a=r(620),s=r(697),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function c(e,t){var r,c=o.useRef(void 0),u=o.useRef(void 0),d=o.useRef(void 0),f=(0,i.mergeOptions)(t,c.current||{}),p=null!==(r=null==f?void 0:f.query)&&void 0!==r?r:e;u.current=t,d.current=p;var h=(0,n.__assign)((0,n.__assign)({},f),{skip:!c.current}),m=(0,a.useQueryInternals)(p,h),g=m.obsQueryFields,y=m.result,v=m.client,b=m.resultData,_=m.observable,w=m.onQueryExecuted,S=_.options.initialFetchPolicy||(0,a.getDefaultFetchPolicy)(h.defaultOptions,v.defaultOptions),E=o.useReducer(function(e){return e+1},0)[1],k=o.useMemo(function(){for(var e={},t=function(t){var r=g[t];e[t]=function(){return c.current||(c.current=Object.create(null),E()),r.apply(this,arguments)}},r=0,n=l;r<n.length;r++){t(n[r])}return e},[E,g]),x=!!c.current,T=o.useMemo(function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},y),k),{called:x})},[y,k,x]),O=o.useCallback(function(e){c.current=e?(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:e.fetchPolicy||S}):{fetchPolicy:S};var t=(0,i.mergeOptions)(u.current,(0,n.__assign)({query:d.current},c.current)),r=function(e,t,r,n,o,i){var s=o.query||n,l=(0,a.createMakeWatchQueryOptions)(r,s,o,!1)(t),c=t.reobserveAsConcast((0,a.getObsQueryOptions)(t,r,o,l));return i(l),new Promise(function(n){var o;c.subscribe({next:function(e){o=e},error:function(){n((0,a.toQueryResult)(t.getCurrentResult(),e.previousData,t,r))},complete:function(){n((0,a.toQueryResult)(t.maskResult(o),e.previousData,t,r))}})})}(b,_,v,p,(0,n.__assign)((0,n.__assign)({},t),{skip:!1}),w).then(function(e){return Object.assign(e,k)});return r.catch(function(){}),r},[v,p,k,S,_,b,w]),C=o.useRef(O);(0,s.useIsomorphicLayoutEffect)(function(){C.current=O});var j=o.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.current.apply(C,e)},[]);return[j,T]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>o.default,default:()=>o.default,initParticlesEngine:()=>i});var n=r(773),o=r(971);r(296);async function i(e){await e(n.tsParticles)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>i.AlterType,AnimatableColor:()=>i.AnimatableColor,AnimationMode:()=>i.AnimationMode,AnimationOptions:()=>i.AnimationOptions,AnimationStatus:()=>i.AnimationStatus,AnimationValueWithRandom:()=>i.AnimationValueWithRandom,Background:()=>i.Background,BackgroundMask:()=>i.BackgroundMask,BackgroundMaskCover:()=>i.BackgroundMaskCover,BaseRange:()=>i.BaseRange,Circle:()=>i.Circle,ClickEvent:()=>i.ClickEvent,CollisionMode:()=>i.CollisionMode,Collisions:()=>i.Collisions,CollisionsAbsorb:()=>i.CollisionsAbsorb,CollisionsOverlap:()=>i.CollisionsOverlap,ColorAnimation:()=>i.ColorAnimation,DestroyType:()=>i.DestroyType,DivEvent:()=>i.DivEvent,DivType:()=>i.DivType,EasingType:()=>i.EasingType,EventType:()=>i.EventType,Events:()=>i.Events,ExternalInteractorBase:()=>i.ExternalInteractorBase,FullScreen:()=>i.FullScreen,GradientType:()=>i.GradientType,HoverEvent:()=>i.HoverEvent,HslAnimation:()=>i.HslAnimation,Interactivity:()=>i.Interactivity,InteractivityDetect:()=>i.InteractivityDetect,InteractorType:()=>i.InteractorType,LimitMode:()=>i.LimitMode,ManualParticle:()=>i.ManualParticle,Modes:()=>i.Modes,Move:()=>i.Move,MoveAngle:()=>i.MoveAngle,MoveAttract:()=>i.MoveAttract,MoveCenter:()=>i.MoveCenter,MoveDirection:()=>i.MoveDirection,MoveGravity:()=>i.MoveGravity,MovePath:()=>i.MovePath,MoveTrail:()=>i.MoveTrail,Opacity:()=>i.Opacity,OpacityAnimation:()=>i.OpacityAnimation,Options:()=>i.Options,OptionsColor:()=>i.OptionsColor,OutMode:()=>i.OutMode,OutModeDirection:()=>i.OutModeDirection,OutModes:()=>i.OutModes,Parallax:()=>i.Parallax,ParticleOutType:()=>i.ParticleOutType,ParticlesBounce:()=>i.ParticlesBounce,ParticlesBounceFactor:()=>i.ParticlesBounceFactor,ParticlesDensity:()=>i.ParticlesDensity,ParticlesInteractorBase:()=>i.ParticlesInteractorBase,ParticlesNumber:()=>i.ParticlesNumber,ParticlesNumberLimit:()=>i.ParticlesNumberLimit,ParticlesOptions:()=>i.ParticlesOptions,PixelMode:()=>i.PixelMode,Point:()=>i.Point,RangedAnimationOptions:()=>i.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>i.RangedAnimationValueWithRandom,Rectangle:()=>i.Rectangle,ResizeEvent:()=>i.ResizeEvent,Responsive:()=>i.Responsive,ResponsiveMode:()=>i.ResponsiveMode,RotateDirection:()=>i.RotateDirection,Shadow:()=>i.Shadow,Shape:()=>i.Shape,Size:()=>i.Size,SizeAnimation:()=>i.SizeAnimation,Spin:()=>i.Spin,StartValueType:()=>i.StartValueType,Stroke:()=>i.Stroke,Theme:()=>i.Theme,ThemeDefault:()=>i.ThemeDefault,ThemeMode:()=>i.ThemeMode,ValueWithRandom:()=>i.ValueWithRandom,Vector:()=>i.Vector,Vector3d:()=>i.Vector3d,ZIndex:()=>i.ZIndex,alterHsl:()=>i.alterHsl,animate:()=>i.animate,areBoundsInside:()=>i.areBoundsInside,arrayRandomIndex:()=>i.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>i.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>i.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>i.calcPositionFromSize,calcPositionOrRandomFromSize:()=>i.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>i.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>i.calculateBounds,cancelAnimation:()=>i.cancelAnimation,canvasFirstIndex:()=>i.canvasFirstIndex,canvasTag:()=>i.canvasTag,circleBounce:()=>i.circleBounce,circleBounceDataFromParticle:()=>i.circleBounceDataFromParticle,clamp:()=>i.clamp,clear:()=>i.clear,clickRadius:()=>i.clickRadius,cloneStyle:()=>i.cloneStyle,collisionVelocity:()=>i.collisionVelocity,colorMix:()=>i.colorMix,colorToHsl:()=>i.colorToHsl,colorToRgb:()=>i.colorToRgb,countOffset:()=>i.countOffset,decayOffset:()=>i.decayOffset,deepExtend:()=>i.deepExtend,defaultAlpha:()=>i.defaultAlpha,defaultAngle:()=>i.defaultAngle,defaultDensityFactor:()=>i.defaultDensityFactor,defaultFps:()=>i.defaultFps,defaultFpsLimit:()=>i.defaultFpsLimit,defaultLoops:()=>i.defaultLoops,defaultOpacity:()=>i.defaultOpacity,defaultRadius:()=>i.defaultRadius,defaultRatio:()=>i.defaultRatio,defaultReduceFactor:()=>i.defaultReduceFactor,defaultRemoveQuantity:()=>i.defaultRemoveQuantity,defaultRetryCount:()=>i.defaultRetryCount,defaultRgbMin:()=>i.defaultRgbMin,defaultTime:()=>i.defaultTime,defaultTransform:()=>i.defaultTransform,defaultTransformValue:()=>i.defaultTransformValue,defaultVelocity:()=>i.defaultVelocity,degToRad:()=>i.degToRad,deleteCount:()=>i.deleteCount,divMode:()=>i.divMode,divModeExecute:()=>i.divModeExecute,double:()=>i.double,doublePI:()=>i.doublePI,drawEffect:()=>i.drawEffect,drawLine:()=>i.drawLine,drawParticle:()=>i.drawParticle,drawParticlePlugin:()=>i.drawParticlePlugin,drawPlugin:()=>i.drawPlugin,drawShape:()=>i.drawShape,drawShapeAfterDraw:()=>i.drawShapeAfterDraw,empty:()=>i.empty,errorPrefix:()=>i.errorPrefix,executeOnSingleOrMultiple:()=>i.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>i.findItemFromSingleOrMultiple,generatedAttribute:()=>i.generatedAttribute,generatedFalse:()=>i.generatedFalse,generatedTrue:()=>i.generatedTrue,getDistance:()=>i.getDistance,getDistances:()=>i.getDistances,getFullScreenStyle:()=>i.getFullScreenStyle,getHslAnimationFromHsl:()=>i.getHslAnimationFromHsl,getHslFromAnimation:()=>i.getHslFromAnimation,getLinkColor:()=>i.getLinkColor,getLinkRandomColor:()=>i.getLinkRandomColor,getLogger:()=>i.getLogger,getParticleBaseVelocity:()=>i.getParticleBaseVelocity,getParticleDirectionAngle:()=>i.getParticleDirectionAngle,getPosition:()=>i.getPosition,getRandom:()=>i.getRandom,getRandomRgbColor:()=>i.getRandomRgbColor,getRangeMax:()=>i.getRangeMax,getRangeMin:()=>i.getRangeMin,getRangeValue:()=>i.getRangeValue,getSize:()=>i.getSize,getStyleFromHsl:()=>i.getStyleFromHsl,getStyleFromRgb:()=>i.getStyleFromRgb,hMax:()=>i.hMax,hMin:()=>i.hMin,hPhase:()=>i.hPhase,half:()=>i.half,hasMatchMedia:()=>i.hasMatchMedia,hslToRgb:()=>i.hslToRgb,hslaToRgba:()=>i.hslaToRgba,identity:()=>i.identity,initParticleNumericAnimationValue:()=>i.initParticleNumericAnimationValue,inverseFactorNumerator:()=>i.inverseFactorNumerator,isArray:()=>i.isArray,isBoolean:()=>i.isBoolean,isDivModeEnabled:()=>i.isDivModeEnabled,isFunction:()=>i.isFunction,isInArray:()=>i.isInArray,isNull:()=>i.isNull,isNumber:()=>i.isNumber,isObject:()=>i.isObject,isPointInside:()=>i.isPointInside,isSsr:()=>i.isSsr,isString:()=>i.isString,itemFromArray:()=>i.itemFromArray,itemFromSingleOrMultiple:()=>i.itemFromSingleOrMultiple,lFactor:()=>i.lFactor,lMax:()=>i.lMax,lMin:()=>i.lMin,lengthOffset:()=>i.lengthOffset,loadFont:()=>i.loadFont,loadMinIndex:()=>i.loadMinIndex,loadOptions:()=>i.loadOptions,loadParticlesOptions:()=>i.loadParticlesOptions,loadRandomFactor:()=>i.loadRandomFactor,manualCount:()=>i.manualCount,manualDefaultPosition:()=>i.manualDefaultPosition,midColorValue:()=>i.midColorValue,millisecondsToSeconds:()=>i.millisecondsToSeconds,minCoordinate:()=>i.minCoordinate,minCount:()=>i.minCount,minFpsLimit:()=>i.minFpsLimit,minIndex:()=>i.minIndex,minLimit:()=>i.minLimit,minRetries:()=>i.minRetries,minStrokeWidth:()=>i.minStrokeWidth,minVelocity:()=>i.minVelocity,minZ:()=>i.minZ,minimumLength:()=>i.minimumLength,minimumSize:()=>i.minimumSize,mix:()=>i.mix,mouseDownEvent:()=>i.mouseDownEvent,mouseLeaveEvent:()=>i.mouseLeaveEvent,mouseMoveEvent:()=>i.mouseMoveEvent,mouseOutEvent:()=>i.mouseOutEvent,mouseUpEvent:()=>i.mouseUpEvent,none:()=>i.none,one:()=>i.one,originPoint:()=>i.originPoint,paintBase:()=>i.paintBase,paintImage:()=>i.paintImage,parseAlpha:()=>i.parseAlpha,percentDenominator:()=>i.percentDenominator,phaseNumerator:()=>i.phaseNumerator,posOffset:()=>i.posOffset,qTreeCapacity:()=>i.qTreeCapacity,quarter:()=>i.quarter,randomColorValue:()=>i.randomColorValue,randomInRange:()=>i.randomInRange,rangeColorToHsl:()=>i.rangeColorToHsl,rangeColorToRgb:()=>i.rangeColorToRgb,rectBounce:()=>i.rectBounce,removeDeleteCount:()=>i.removeDeleteCount,removeMinIndex:()=>i.removeMinIndex,resizeEvent:()=>i.resizeEvent,rgbFactor:()=>i.rgbFactor,rgbMax:()=>i.rgbMax,rgbToHsl:()=>i.rgbToHsl,rollFactor:()=>i.rollFactor,sMax:()=>i.sMax,sMin:()=>i.sMin,sNormalizedOffset:()=>i.sNormalizedOffset,safeIntersectionObserver:()=>i.safeIntersectionObserver,safeMatchMedia:()=>i.safeMatchMedia,safeMutationObserver:()=>i.safeMutationObserver,setAnimationFunctions:()=>i.setAnimationFunctions,setLogger:()=>i.setLogger,setRandom:()=>i.setRandom,setRangeValue:()=>i.setRangeValue,sextuple:()=>i.sextuple,singleDivModeExecute:()=>i.singleDivModeExecute,sizeFactor:()=>i.sizeFactor,squareExp:()=>i.squareExp,stringToAlpha:()=>i.stringToAlpha,stringToRgb:()=>i.stringToRgb,subdivideCount:()=>i.subdivideCount,threeQuarter:()=>i.threeQuarter,touchCancelEvent:()=>i.touchCancelEvent,touchDelay:()=>i.touchDelay,touchEndEvent:()=>i.touchEndEvent,touchEndLengthOffset:()=>i.touchEndLengthOffset,touchMoveEvent:()=>i.touchMoveEvent,touchStartEvent:()=>i.touchStartEvent,triple:()=>i.triple,tryCountIncrement:()=>i.tryCountIncrement,tsParticles:()=>a,updateAnimation:()=>i.updateAnimation,updateColor:()=>i.updateColor,updateColorValue:()=>i.updateColorValue,visibilityChangeEvent:()=>i.visibilityChangeEvent,zIndexFactorOffset:()=>i.zIndexFactorOffset});var n=r(774),o=r(777),i=r(865);r(871);const a=(0,n.init)();(0,o.isSsr)()||(window.tsParticles=a)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{init:()=>o});var n=r(775);function o(){const e=new n.Engine;return e.init(),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Engine:()=>u});var n=r(776),o=r(777),i=r(788),a=r(864),s=r(795),l=r(778);async function c(e,t,r,n=!1){let o=t.get(e);return o&&!n||(o=await Promise.all([...r.values()].map(t=>t(e))),t.set(e,o)),o}class u{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new a.EventDispatcher,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const e={};for(const[t,r]of this._configs)e[t]=r;return e}get items(){return this._domArray}get version(){return"3.9.1"}async addColorManager(e,t=!0){this.colorManagers.set(e.key,e),await this.refresh(t)}addConfig(e){const t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(s.EventType.configAdded,{data:{name:t,config:e}})}async addEasing(e,t,r=!0){this.getEasing(e)||(this.easingFunctions.set(e,t),await this.refresh(r))}async addEffect(e,t,r=!0){(0,o.executeOnSingleOrMultiple)(e,e=>{this.getEffectDrawer(e)||this.effectDrawers.set(e,t)}),await this.refresh(r)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,r=!0){this._initializers.interactors.set(e,t),await this.refresh(r)}async addMover(e,t,r=!0){this._initializers.movers.set(e,t),await this.refresh(r)}async addParticleUpdater(e,t,r=!0){this._initializers.updaters.set(e,t),await this.refresh(r)}async addPathGenerator(e,t,r=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(r)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,r=!1,n=!0){!r&&this.getPreset(e)||this.presets.set(e,t),await this.refresh(n)}async addShape(e,t=!0){for(const t of e.validTypes)this.getShapeDrawer(t)||this.shapeDrawers.set(t,e);await this.refresh(t)}checkVersion(e){if(this.version!==e)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){const t=new Map;for(const r of this.plugins)r.needsPlugin(e.actualOptions)&&t.set(r.id,await r.getPlugin(e));return t}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return c(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return c(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return c(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}item(e){const{items:t}=this,r=t[e];if(r&&!r.destroyed)return r;t.splice(e,n.removeDeleteCount)}async load(e){const t=e.id??e.element?.id??`tsparticles${Math.floor((0,l.getRandom)()*n.loadRandomFactor)}`,{index:r,url:a}=e,s=a?await async function(e){const t=(0,o.itemFromSingleOrMultiple)(e.url,e.index);if(!t)return e.fallback;const r=await fetch(t);return r.ok?await r.json():((0,o.getLogger)().error(`${n.errorPrefix} ${r.status} while retrieving config file`),e.fallback)}({fallback:e.options,url:a,index:r}):e.options,c=(0,o.itemFromSingleOrMultiple)(s,r),{items:u}=this,d=u.findIndex(e=>e.id.description===t),f=new i.Container(this,t,c);if(d>=n.loadMinIndex){const e=this.item(d),t=e?n.one:n.none;e&&!e.destroyed&&e.destroy(!1),u.splice(d,t,f)}else u.push(f);const p=((e,t)=>{let r=t??document.getElementById(e);return r||(r=document.createElement("div"),r.id=e,r.dataset[n.generatedAttribute]=n.generatedTrue,document.body.append(r),r)})(t,e.element),h=(e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===n.canvasTag)t=e,t.dataset[n.generatedAttribute]||(t.dataset[n.generatedAttribute]=n.generatedFalse);else{const r=e.getElementsByTagName(n.canvasTag);r.length?(t=r[n.canvasFirstIndex],t.dataset[n.generatedAttribute]=n.generatedFalse):(t=document.createElement(n.canvasTag),t.dataset[n.generatedAttribute]=n.generatedTrue,e.appendChild(t))}const r="100%";return t.style.width||(t.style.width=r),t.style.height||(t.style.height=r),t})(p);return f.canvas.loadCanvas(h),await f.start(),f}loadOptions(e,t){this.plugins.forEach(r=>r.loadOptions?.(e,t))}loadParticlesOptions(e,t,...r){const n=this.updaters.get(e);n&&n.forEach(e=>e.loadOptions?.(t,...r))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){const{items:t}=this;if(!t.length)throw new Error(`${n.errorPrefix} can only set click handlers after calling tsParticles.load()`);t.forEach(t=>t.addClickHandler(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canvasFirstIndex:()=>se,canvasTag:()=>j,clickRadius:()=>ee,countOffset:()=>we,decayOffset:()=>fe,defaultAlpha:()=>T,defaultAngle:()=>Pe,defaultDensityFactor:()=>Te,defaultFps:()=>x,defaultFpsLimit:()=>ie,defaultLoops:()=>He,defaultOpacity:()=>Z,defaultRadius:()=>ye,defaultRatio:()=>M,defaultReduceFactor:()=>D,defaultRemoveQuantity:()=>A,defaultRetryCount:()=>P,defaultRgbMin:()=>ze,defaultTime:()=>qe,defaultTransform:()=>_,defaultTransformValue:()=>Y,defaultVelocity:()=>Ue,deleteCount:()=>Oe,double:()=>E,doublePI:()=>k,empty:()=>W,errorPrefix:()=>m,generatedAttribute:()=>n,generatedFalse:()=>C,generatedTrue:()=>O,hMax:()=>F,hMin:()=>H,hPhase:()=>V,half:()=>y,identity:()=>Ie,inverseFactorNumerator:()=>L,lFactor:()=>Ae,lMax:()=>U,lMin:()=>Me,lengthOffset:()=>xe,loadMinIndex:()=>ce,loadRandomFactor:()=>le,manualCount:()=>ke,manualDefaultPosition:()=>je,midColorValue:()=>S,millisecondsToSeconds:()=>v,minCoordinate:()=>re,minCount:()=>Se,minFpsLimit:()=>ae,minIndex:()=>Ee,minLimit:()=>_e,minRetries:()=>he,minStrokeWidth:()=>Re,minVelocity:()=>K,minZ:()=>ge,minimumLength:()=>X,minimumSize:()=>J,mouseDownEvent:()=>o,mouseLeaveEvent:()=>a,mouseMoveEvent:()=>l,mouseOutEvent:()=>s,mouseUpEvent:()=>i,none:()=>de,one:()=>ue,originPoint:()=>b,percentDenominator:()=>g,phaseNumerator:()=>Fe,posOffset:()=>ve,qTreeCapacity:()=>R,quarter:()=>G,randomColorValue:()=>w,removeDeleteCount:()=>ne,removeMinIndex:()=>oe,resizeEvent:()=>p,rgbFactor:()=>De,rgbMax:()=>B,rollFactor:()=>me,sMax:()=>z,sMin:()=>q,sNormalizedOffset:()=>Be,sextuple:()=>Le,sizeFactor:()=>be,squareExp:()=>I,subdivideCount:()=>N,threeQuarter:()=>$,touchCancelEvent:()=>f,touchDelay:()=>Ce,touchEndEvent:()=>u,touchEndLengthOffset:()=>te,touchMoveEvent:()=>d,touchStartEvent:()=>c,triple:()=>Ne,tryCountIncrement:()=>pe,visibilityChangeEvent:()=>h,zIndexFactorOffset:()=>Q});const n="generated",o="pointerdown",i="pointerup",a="pointerleave",s="pointerout",l="pointermove",c="touchstart",u="touchend",d="touchmove",f="touchcancel",p="resize",h="visibilitychange",m="tsParticles - Error",g=100,y=.5,v=1e3,b={x:0,y:0,z:0},_={a:1,b:0,c:0,d:1},w="random",S="mid",E=2,k=Math.PI*E,x=60,T=1,O="true",C="false",j="canvas",P=0,I=2,R=4,A=1,M=1,D=1,N=4,L=1,B=255,F=360,z=100,U=100,H=0,q=0,V=60,W=0,G=.25,$=y+G,K=0,Y=1,J=0,X=0,Q=1,Z=1,ee=1,te=1,re=0,ne=1,oe=0,ie=120,ae=0,se=0,le=1e4,ce=0,ue=1,de=0,fe=1,pe=1,he=0,me=1,ge=0,ye=0,ve=-G,be=1.5,_e=0,we=1,Se=0,Ee=0,ke=0,xe=1,Te=1,Oe=1,Ce=500,je=50,Pe=0,Ie=1,Re=0,Ae=1,Me=0,De=255,Ne=3,Le=6,Be=1,Fe=1,ze=0,Ue=0,He=0,qe=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{areBoundsInside:()=>O,arrayRandomIndex:()=>k,calculateBounds:()=>C,circleBounce:()=>D,circleBounceDataFromParticle:()=>M,cloneStyle:()=>W,deepExtend:()=>j,divMode:()=>A,divModeExecute:()=>I,executeOnSingleOrMultiple:()=>L,findItemFromSingleOrMultiple:()=>F,getFullScreenStyle:()=>G,getLogger:()=>m,getPosition:()=>H,getSize:()=>q,hasMatchMedia:()=>v,initParticleNumericAnimationValue:()=>z,isDivModeEnabled:()=>P,isInArray:()=>S,isPointInside:()=>T,isSsr:()=>y,itemFromArray:()=>x,itemFromSingleOrMultiple:()=>B,loadFont:()=>E,rectBounce:()=>N,safeIntersectionObserver:()=>_,safeMatchMedia:()=>b,safeMutationObserver:()=>w,setLogger:()=>h,singleDivModeExecute:()=>R,updateAnimation:()=>V});var n=r(778),o=r(776),i=r(781),a=r(782),s=r(783),l=r(784),c=r(785),u=r(786),d=r(787),f=r(780);const p={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function h(e){p.debug=e.debug||p.debug,p.error=e.error||p.error,p.info=e.info||p.info,p.log=e.log||p.log,p.verbose=e.verbose||p.verbose,p.warning=e.warning||p.warning}function m(){return p}function g(e){const t={bounced:!1},{pSide:r,pOtherSide:n,rectSide:i,rectOtherSide:a,velocity:s,factor:l}=e;return n.min<a.min||n.min>a.max||n.max<a.min||n.max>a.max||(r.max>=i.min&&r.max<=(i.max+i.min)*o.half&&s>o.minVelocity||r.min<=i.max&&r.min>(i.max+i.min)*o.half&&s<o.minVelocity)&&(t.velocity=s*-l,t.bounced=!0),t}function y(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function v(){return!y()&&"undefined"!=typeof matchMedia}function b(e){if(v())return matchMedia(e)}function _(e){if(!y()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}function w(e){if(!y()&&"undefined"!=typeof MutationObserver)return new MutationObserver(e)}function S(e,t){return e===t||(0,i.isArray)(t)&&t.indexOf(e)>-1}async function E(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function k(e){return Math.floor((0,n.getRandom)()*e.length)}function x(e,t,r=!0){return e[void 0!==t&&r?t%e.length:k(e)]}function T(e,t,r,n,o){return O(C(e,n??0),t,r,o)}function O(e,t,r,n){let o=!0;return n&&n!==c.OutModeDirection.bottom||(o=e.top<t.height+r.x),!o||n&&n!==c.OutModeDirection.left||(o=e.right>r.x),!o||n&&n!==c.OutModeDirection.right||(o=e.left<t.width+r.y),!o||n&&n!==c.OutModeDirection.top||(o=e.bottom>r.y),o}function C(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function j(e,...t){for(const r of t){if(null==r)continue;if(!(0,i.isObject)(r)){e=r;continue}const t=Array.isArray(r);!t||!(0,i.isObject)(e)&&e&&Array.isArray(e)?t||!(0,i.isObject)(e)&&e&&!Array.isArray(e)||(e={}):e=[];for(const t in r){if("__proto__"===t)continue;const n=r[t],o=e;o[t]=(0,i.isObject)(n)&&Array.isArray(n)?n.map(e=>j(o[t],e)):j(o[t],n)}}return e}function P(e,t){return!!F(t,t=>t.enable&&S(e,t.mode))}function I(e,t,r){L(t,t=>{const n=t.mode;t.enable&&S(e,n)&&R(t,r)})}function R(e,t){L(e.selectors,r=>{t(r,e)})}function A(e,t){if(t&&e)return F(e,e=>function(e,t){const r=L(t,t=>e.matches(t));return(0,i.isArray)(r)?r.some(e=>e):r}(t,e.selectors))}function M(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.Vector.create((0,n.getRangeValue)(e.options.bounce.horizontal.value),(0,n.getRangeValue)(e.options.bounce.vertical.value))}}function D(e,t){const{x:r,y:o}=e.velocity.sub(t.velocity),[i,a]=[e.position,t.position],{dx:s,dy:l}=(0,n.getDistances)(a,i);if(r*s+o*l<0)return;const c=-Math.atan2(l,s),u=e.mass,d=t.mass,f=e.velocity.rotate(c),p=t.velocity.rotate(c),h=(0,n.collisionVelocity)(f,p,u,d),m=(0,n.collisionVelocity)(p,f,u,d),g=h.rotate(-c),y=m.rotate(-c);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y}function N(e,t){const r=C(e.getPosition(),e.getRadius()),o=e.options.bounce,i=g({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:(0,n.getRangeValue)(o.horizontal.value)});i.bounced&&(void 0!==i.velocity&&(e.velocity.x=i.velocity),void 0!==i.position&&(e.position.x=i.position));const a=g({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:(0,n.getRangeValue)(o.vertical.value)});a.bounced&&(void 0!==a.velocity&&(e.velocity.y=a.velocity),void 0!==a.position&&(e.position.y=a.position))}function L(e,t){return(0,i.isArray)(e)?e.map((e,r)=>t(e,r)):t(e,0)}function B(e,t,r){return(0,i.isArray)(e)?x(e,t,r):e}function F(e,t){if((0,i.isArray)(e))return e.find((e,r)=>t(e,r));return t(e,0)?e:void 0}function z(e,t){const r=e.value,i=e.animation,l={delayTime:(0,n.getRangeValue)(i.delay)*o.millisecondsToSeconds,enable:i.enable,value:(0,n.getRangeValue)(e.value)*t,max:(0,n.getRangeMax)(r)*t,min:(0,n.getRangeMin)(r)*t,loops:0,maxLoops:(0,n.getRangeValue)(i.count),time:0};if(i.enable){switch(l.decay=1-(0,n.getRangeValue)(i.decay),i.mode){case a.AnimationMode.increase:l.status=s.AnimationStatus.increasing;break;case a.AnimationMode.decrease:l.status=s.AnimationStatus.decreasing;break;case a.AnimationMode.random:l.status=(0,n.getRandom)()>=o.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing}const e=i.mode===a.AnimationMode.auto;switch(i.startValue){case d.StartValueType.min:l.value=l.min,e&&(l.status=s.AnimationStatus.increasing);break;case d.StartValueType.max:l.value=l.max,e&&(l.status=s.AnimationStatus.decreasing);break;case d.StartValueType.random:default:l.value=(0,n.randomInRange)(l),e&&(l.status=(0,n.getRandom)()>=o.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing)}}return l.initialValue=l.value,l}function U(e,t){if(!(e.mode===u.PixelMode.percent)){const{mode:t,...r}=e;return r}return"x"in e?{x:e.x/o.percentDenominator*t.width,y:e.y/o.percentDenominator*t.height}:{width:e.width/o.percentDenominator*t.width,height:e.height/o.percentDenominator*t.height}}function H(e,t){return U(e,t)}function q(e,t){return U(e,t)}function V(e,t,r,o,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const a=(t.velocity??0)*i.factor,c=t.min,u=t.max,d=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case s.AnimationStatus.increasing:t.value>=u?(r?t.status=s.AnimationStatus.decreasing:t.value-=u,t.loops||(t.loops=0),t.loops++):t.value+=a;break;case s.AnimationStatus.decreasing:t.value<=c?(r?t.status=s.AnimationStatus.increasing:t.value+=u,t.loops||(t.loops=0),t.loops++):t.value-=a}t.velocity&&1!==d&&(t.velocity*=d),function(e,t,r,n,o){switch(t){case l.DestroyType.max:r>=o&&e.destroy();break;case l.DestroyType.min:r<=n&&e.destroy()}}(e,o,t.value,c,u),e.destroyed||(t.value=(0,n.clamp)(t.value,c,u))}}function W(e){const t=document.createElement("div").style;if(!e)return t;for(const r in e){const n=e[r];if(!Object.prototype.hasOwnProperty.call(e,r)||(0,i.isNull)(n))continue;const o=e.getPropertyValue?.(n);if(!o)continue;const a=e.getPropertyPriority?.(n);a?t.setProperty?.(n,o,a):t.setProperty?.(n,o)}return t}const G=function(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r);if(t.has(n))return t.get(n);const o=e(...r);return t.set(n,o),o}}(function(e){const t=document.createElement("div").style,r={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(const e in r){const n=r[e];t.setProperty(e,n)}return t})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{animate:()=>f,calcExactPositionOrRandomFromSize:()=>P,calcExactPositionOrRandomFromSizeRanged:()=>I,calcPositionFromSize:()=>O,calcPositionOrRandomFromSize:()=>C,calcPositionOrRandomFromSizeRanged:()=>j,cancelAnimation:()=>p,clamp:()=>h,collisionVelocity:()=>T,degToRad:()=>E,getDistance:()=>S,getDistances:()=>w,getParticleBaseVelocity:()=>x,getParticleDirectionAngle:()=>k,getRandom:()=>u,getRangeMax:()=>b,getRangeMin:()=>v,getRangeValue:()=>y,mix:()=>m,parseAlpha:()=>R,randomInRange:()=>g,setAnimationFunctions:()=>d,setRandom:()=>c,setRangeValue:()=>_});var n=r(779),o=r(776),i=r(780),a=r(781);let s=Math.random;const l={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)};function c(e=Math.random){s=e}function u(){return h(s(),0,1-Number.EPSILON)}function d(e,t){l.nextFrame=t=>e(t),l.cancel=e=>t(e)}function f(e){return l.nextFrame(e)}function p(e){l.cancel(e)}function h(e,t,r){return Math.min(Math.max(e,t),r)}function m(e,t,r,n){return Math.floor((e*r+t*n)/(r+n))}function g(e){const t=b(e);let r=v(e);return t===r&&(r=0),u()*(t-r)+r}function y(e){return(0,a.isNumber)(e)?e:g(e)}function v(e){return(0,a.isNumber)(e)?e:e.min}function b(e){return(0,a.isNumber)(e)?e:e.max}function _(e,t){if(e===t||void 0===t&&(0,a.isNumber)(e))return e;const r=v(e),n=b(e);return void 0!==t?{min:Math.min(r,t),max:Math.max(n,t)}:_(r,n)}function w(e,t){const r=e.x-t.x,n=e.y-t.y;return{dx:r,dy:n,distance:Math.sqrt(r**2+n**2)}}function S(e,t){return w(e,t).distance}function E(e){return e*Math.PI/180}function k(e,t,r){if((0,a.isNumber)(e))return E(e);switch(e){case n.MoveDirection.top:return-Math.PI*o.half;case n.MoveDirection.topRight:return-Math.PI*o.quarter;case n.MoveDirection.right:return o.empty;case n.MoveDirection.bottomRight:return Math.PI*o.quarter;case n.MoveDirection.bottom:return Math.PI*o.half;case n.MoveDirection.bottomLeft:return Math.PI*o.threeQuarter;case n.MoveDirection.left:return Math.PI;case n.MoveDirection.topLeft:return-Math.PI*o.threeQuarter;case n.MoveDirection.inside:return Math.atan2(r.y-t.y,r.x-t.x);case n.MoveDirection.outside:return Math.atan2(t.y-r.y,t.x-r.x);default:return u()*o.doublePI}}function x(e){const t=i.Vector.origin;return t.length=1,t.angle=e,t}function T(e,t,r,n){return i.Vector.create(e.x*(r-n)/(r+n)+t.x*o.double*n/(r+n),e.y)}function O(e){return void 0!==e.position?.x&&void 0!==e.position.y?{x:e.position.x*e.size.width/o.percentDenominator,y:e.position.y*e.size.height/o.percentDenominator}:void 0}function C(e){return{x:(e.position?.x??u()*o.percentDenominator)*e.size.width/o.percentDenominator,y:(e.position?.y??u()*o.percentDenominator)*e.size.height/o.percentDenominator}}function j(e){const t={x:void 0!==e.position?.x?y(e.position.x):void 0,y:void 0!==e.position?.y?y(e.position.y):void 0};return C({size:e.size,position:t})}function P(e){return{x:e.position?.x??u()*e.size.width,y:e.position?.y??u()*e.size.height}}function I(e){const t={x:void 0!==e.position?.x?y(e.position.x):void 0,y:void 0!==e.position?.y?y(e.position.y):void 0};return P({size:e.size,position:t})}function R(e){return e?e.endsWith("%")?parseFloat(e)/o.percentDenominator:parseFloat(e):1}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{MoveDirection:()=>n}),function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Vector:()=>a,Vector3d:()=>i});var n=r(776),o=r(781);class i{constructor(e,t,r){if(this._updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t},!(0,o.isNumber)(e)&&e){this.x=e.x,this.y=e.y;const t=e;this.z=t.z?t.z:n.originPoint.z}else{if(void 0===e||void 0===t)throw new Error(`${n.errorPrefix} Vector3d not initialized correctly`);this.x=e,this.y=t,this.z=r??n.originPoint.z}}static get origin(){return i.create(n.originPoint.x,n.originPoint.y,n.originPoint.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return i.create(e.x,e.y,e.z)}static create(e,t,r){return new i(e,t,r)}add(e){return i.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return i.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return i.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**n.squareExp+this.y**n.squareExp}mult(e){return i.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=n.none&&this.multTo(n.inverseFactorNumerator/e)}rotate(e){return i.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),n.originPoint.z)}setTo(e){this.x=e.x,this.y=e.y;const t=e;this.z=t.z?t.z:n.originPoint.z}sub(e){return i.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class a extends i{constructor(e,t){super(e,t,n.originPoint.z)}static get origin(){return a.create(n.originPoint.x,n.originPoint.y)}static clone(e){return a.create(e.x,e.y)}static create(e,t){return new a(e,t)}}},(e,t,r)=>{"use strict";function n(e){return"boolean"==typeof e}function o(e){return"string"==typeof e}function i(e){return"number"==typeof e}function a(e){return"function"==typeof e}function s(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function c(e){return null==e}r.r(t),r.d(t,{isArray:()=>l,isBoolean:()=>n,isFunction:()=>a,isNull:()=>c,isNumber:()=>i,isObject:()=>s,isString:()=>o})},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationMode:()=>n}),function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationStatus:()=>n}),function(e){e.increasing="increasing",e.decreasing="decreasing"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DestroyType:()=>n}),function(e){e.none="none",e.max="max",e.min="min"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutModeDirection:()=>n}),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{PixelMode:()=>n}),function(e){e.precise="precise",e.percent="percent"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{StartValueType:()=>n}),function(e){e.max="max",e.min="min",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Container:()=>m});var n=r(778),o=r(776),i=r(777),a=r(789),s=r(793),l=r(795),c=r(796),u=r(854),d=r(863),f=r(817);function p(e){return e&&!e.destroyed}function h(e,t,...r){const n=new c.Options(e,t);return(0,f.loadOptions)(n,...r),n}class m{constructor(e,t,r){this._intersectionManager=e=>{if(p(this)&&this.actualOptions.pauseOnOutsideViewport)for(const t of e)t.target===this.interactivity.element&&(t.isIntersecting?this.play():this.pause())},this._nextFrame=e=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&e<this._lastFrameTime+o.millisecondsToSeconds/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=e;const t=function(e,t=o.defaultFps,r=!1){return{value:e,factor:r?o.defaultFps/t:o.defaultFps*e/o.millisecondsToSeconds}}(e-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(t.value),this._lastFrameTime=e,t.value>o.millisecondsToSeconds)return void this.draw(!1);if(this.particles.draw(t),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){(0,i.getLogger)().error(`${o.errorPrefix} in animation loop`,e)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=r,this._initialSourceOptions=r,this.retina=new d.Retina(this),this.canvas=new a.Canvas(this,this._engine),this.particles=new u.Particles(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=h(this._engine,this),this.actualOptions=h(this._engine,this),this._eventListeners=new s.EventListeners(this),this._intersectionObserver=(0,i.safeIntersectionObserver)(e=>this._intersectionManager(e)),this._engine.dispatchEvent(l.EventType.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&p(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!p(this))return;const t=this.interactivity.element;if(!t)return;const r=(t,r,n)=>{if(!p(this))return;const o=this.retina.pixelRatio,i={x:r.x*o,y:r.y*o},a=this.particles.quadTree.queryCircle(i,n*o);e(t,a)};let n=!1,i=!1;this._clickHandlers.set("click",e=>{if(!p(this))return;const t=e,n={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};r(e,n,o.clickRadius)}),this._clickHandlers.set("touchstart",()=>{p(this)&&(n=!0,i=!1)}),this._clickHandlers.set("touchmove",()=>{p(this)&&(i=!0)}),this._clickHandlers.set("touchend",e=>{if(p(this)){if(n&&!i){const t=e;let n=t.touches[t.touches.length-o.touchEndLengthOffset];if(!n&&(n=t.changedTouches[t.changedTouches.length-o.touchEndLengthOffset],!n))return;const i=this.canvas.element,a=i?i.getBoundingClientRect():void 0,s={x:n.clientX-(a?a.left:o.minCoordinate),y:n.clientY-(a?a.top:o.minCoordinate)};r(e,s,Math.max(n.radiusX,n.radiusY))}n=!1,i=!1}}),this._clickHandlers.set("touchcancel",()=>{p(this)&&(n=!1,i=!1)});for(const[e,r]of this._clickHandlers)t.addEventListener(e,r)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,r=!1){return!(!p(this)||!r&&this.pathGenerators.has(e))&&(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(p(this)){for(const[e,t]of this._clickHandlers)this.interactivity.element?.removeEventListener(e,t);this._clickHandlers.clear()}}destroy(e=!0){if(p(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const e of this.effectDrawers.values())e.destroy?.(this);for(const e of this.shapeDrawers.values())e.destroy?.(this);for(const e of this.effectDrawers.keys())this.effectDrawers.delete(e);for(const e of this.shapeDrawers.keys())this.shapeDrawers.delete(e);if(this._engine.clearPlugins(this),this.destroyed=!0,e){const e=this._engine.items,t=e.findIndex(e=>e===this);t>=o.removeMinIndex&&e.splice(t,o.removeDeleteCount)}this._engine.dispatchEvent(l.EventType.containerDestroyed,{container:this})}}draw(e){if(!p(this))return;let t=e;const r=e=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(e)};this._drawAnimationFrame=(0,n.animate)(e=>r(e))}async export(e,t={}){for(const r of this.plugins.values()){if(!r.export)continue;const n=await r.export(e,t);if(n.supported)return n.blob}(0,i.getLogger)().error(`${o.errorPrefix} - Export plugin with type ${e} not found`)}handleClickMode(e){if(p(this)){this.particles.handleClickMode(e);for(const t of this.plugins.values())t.handleClickMode?.(e)}}async init(){if(!p(this))return;const e=this._engine.getSupportedEffects();for(const t of e){const e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}const t=this._engine.getSupportedShapes();for(const e of t){const t=this._engine.getShapeDrawer(e);t&&this.shapeDrawers.set(e,t)}await this.particles.initPlugins(),this._options=h(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=h(this._engine,this,this._options);const r=await this._engine.getAvailablePlugins(this);for(const[e,t]of r)this.plugins.set(e,t);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:i,duration:a,delay:s,fpsLimit:c,smooth:u}=this.actualOptions;this.zLayers=i,this._duration=(0,n.getRangeValue)(a)*o.millisecondsToSeconds,this._delay=(0,n.getRangeValue)(s)*o.millisecondsToSeconds,this._lifeTime=0,this.fpsLimit=c>o.minFpsLimit?c:o.defaultFpsLimit,this._smooth=u;for(const e of this.effectDrawers.values())await(e.init?.(this));for(const e of this.shapeDrawers.values())await(e.init?.(this));for(const e of this.plugins.values())await(e.init?.());this._engine.dispatchEvent(l.EventType.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const e of this.plugins.values())e.particlesSetup?.();this._engine.dispatchEvent(l.EventType.particlesSetup,{container:this})}async loadTheme(e){p(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(p(this)&&(void 0!==this._drawAnimationFrame&&((0,n.cancelAnimation)(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const e of this.plugins.values())e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(l.EventType.containerPaused,{container:this})}}play(e){if(!p(this))return;const t=this._paused||e;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),t)for(const e of this.plugins.values())e.play&&e.play();this._engine.dispatchEvent(l.EventType.containerPlay,{container:this}),this.draw(t??!1)}else this._firstStart=!1}async refresh(){if(p(this))return this.stop(),this.start()}async reset(e){if(p(this))return this._initialSourceOptions=e,this._sourceOptions=e,this._options=h(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=h(this._engine,this,this._options),this.refresh()}async start(){p(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const e of this.plugins.values())await(e.start?.());this._engine.dispatchEvent(l.EventType.containerStarted,{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>{t()},this._delay)}))}stop(){if(p(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const e of this.plugins.values())e.stop?.();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent(l.EventType.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==e&&(this._responsiveMaxWidth=e,!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Canvas:()=>c});var n=r(790),o=r(777),i=r(776),a=r(792);function s(e,t,r){const n=t[r];void 0!==n&&(e[r]=(e[r]??i.defaultTransformValue)*n)}function l(e,t,r=!1){if(!t)return;if(!e)return;const n=e.style;if(!n)return;const o=new Set;for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&o.add(n[e]);for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.add(t[e]);for(const e of o){const o=t.getPropertyValue(e);o?n.setProperty(e,o,r?"important":""):n.removeProperty(e)}}class c{constructor(e,t){this.container=e,this._applyPostDrawUpdaters=e=>{for(const t of this._postDrawUpdaters)t.afterDraw?.(e)},this._applyPreDrawUpdaters=(e,t,r,n,o,i)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:i,stroke:s}=a.getColorStyles(t,e,r,n);i&&(o.fill=i),s&&(o.stroke=s)}if(a.getTransformValues){const e=a.getTransformValues(t);for(const t in e)s(i,e,t)}a.beforeDraw?.(t)}},this._applyResizePlugins=()=>{for(const e of this._resizePlugins)e.resize?.()},this._getPluginParticleColors=e=>{let t,r;for(const n of this._colorPlugins)if(!t&&n.particleFillColor&&(t=(0,a.rangeColorToHsl)(this._engine,n.particleFillColor(e))),!r&&n.particleStrokeColor&&(r=(0,a.rangeColorToHsl)(this._engine,n.particleStrokeColor(e))),t&&r)break;return[t,r]},this._initCover=async()=>{const e=this.container.actualOptions.backgroundMask.cover,t=e.color;if(t){const r=(0,a.rangeColorToRgb)(this._engine,t);if(r){const t={...r,a:e.opacity};this._coverColorStyle=(0,a.getStyleFromRgb)(t,t.a)}}else await new Promise((t,r)=>{if(!e.image)return;const n=document.createElement("img");n.addEventListener("load",()=>{this._coverImage={image:n,opacity:e.opacity},t()}),n.addEventListener("error",e=>{r(e.error)}),n.src=e.image})},this._initStyle=()=>{const e=this.element,t=this.container.actualOptions;if(e){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const r in t.style){if(!r||!t.style||!Object.prototype.hasOwnProperty.call(t.style,r))continue;const n=t.style[r];n&&e.style.setProperty(r,n,"important")}}},this._initTrail=async()=>{const e=this.container.actualOptions.particles.move.trail,t=e.fill;if(!e.enable)return;const r=i.inverseFactorNumerator/e.length;if(t.color){const e=(0,a.rangeColorToRgb)(this._engine,t.color);if(!e)return;this._trailFill={color:{...e},opacity:r}}else await new Promise((e,n)=>{if(!t.image)return;const o=document.createElement("img");o.addEventListener("load",()=>{this._trailFill={image:o,opacity:r},e()}),o.addEventListener("error",e=>{n(e.error)}),o.src=t.image})},this._paintBase=e=>{this.draw(t=>(0,n.paintBase)(t,this.size,e))},this._paintImage=(e,t)=>{this.draw(r=>(0,n.paintImage)(r,this.size,e,t))},this._repairStyle=()=>{const e=this.element;if(!e)return;this._safeMutationObserver(e=>e.disconnect()),this._initStyle(),this.initBackground();const t=this._pointerEvents;e.style.pointerEvents=t,e.setAttribute("pointer-events",t),this._safeMutationObserver(t=>{e&&e instanceof Node&&t.observe(e,{attributes:!0})})},this._resetOriginalStyle=()=>{const e=this.element,t=this._originalStyle;e&&t&&l(e,t,!0)},this._safeMutationObserver=e=>{this._mutationObserver&&e(this._mutationObserver)},this._setFullScreenStyle=()=>{const e=this.element;e&&l(e,(0,o.getFullScreenStyle)(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=t,this._standardSize={height:0,width:0};const r=e.retina.pixelRatio,c=this._standardSize;this.size={height:c.height*r,width:c.width*r},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,r=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>i.minimumLength&&r?r.color?this._paintBase((0,a.getStyleFromRgb)(r.color,r.opacity)):r.image&&this._paintImage(r.image,r.opacity):e.clear&&this.draw(e=>{(0,n.clear)(e,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const r=e.getRadius();if(r<=i.minimumSize)return;const o=e.getFillColor(),s=e.getStrokeColor()??o;let[l,c]=this._getPluginParticleColors(e);l||(l=o),c||(c=s),(l||c)&&this.draw(o=>{const s=this.container,u=s.actualOptions,d=e.options.zIndex,f=i.zIndexFactorOffset-e.zIndexFactor,p=f**d.opacityRate,h=e.bubble.opacity??e.opacity?.value??i.defaultOpacity,m=h*p,g=(e.strokeOpacity??h)*p,y={},v={fill:l?(0,a.getStyleFromHsl)(l,m):void 0};v.stroke=c?(0,a.getStyleFromHsl)(c,g):v.fill,this._applyPreDrawUpdaters(o,e,r,m,v,y),(0,n.drawParticle)({container:s,context:o,particle:e,delta:t,colorStyles:v,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:r*f**d.sizeRate,opacity:m,shadow:e.options.shadow,transform:y}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,r){this.draw(o=>(0,n.drawParticlePlugin)(o,e,t,r))}drawPlugin(e,t){this.draw(r=>(0,n.drawPlugin)(r,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=(0,o.safeMutationObserver)(e=>{for(const t of e)"attributes"===t.type&&"style"===t.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){(0,o.getLogger)().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions.background,t=this.element;if(!t)return;const r=t.style;if(r){if(e.color){const t=(0,a.rangeColorToRgb)(this._engine,e.color);r.backgroundColor=t?(0,a.getStyleFromRgb)(t,e.opacity):""}else r.backgroundColor="";r.backgroundImage=e.image||"",r.backgroundPosition=e.position||"",r.backgroundRepeat=e.repeat||"",r.backgroundSize=e.size||""}}initPlugins(){this._resizePlugins=[];for(const e of this.container.plugins.values())e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&i.generatedAttribute in e.dataset?"true"===e.dataset[i.generatedAttribute]:this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=(0,o.cloneStyle)(this.element.style);const t=this._standardSize;t.height=e.offsetHeight,t.width=e.offsetWidth;const r=this.container.retina.pixelRatio,n=this.size;e.height=n.height=t.height*r,e.width=n.width=t.width*r,this._context=this.element.getContext("2d"),this._safeMutationObserver(e=>e.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})})}paint(){const e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?((0,n.clear)(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,t=e.canvas._standardSize,r={width:this.element.offsetWidth,height:this.element.offsetHeight},n=e.retina.pixelRatio,o={width:r.width*n,height:r.height*n};if(r.height===t.height&&r.width===t.width&&o.height===this.element.height&&o.width===this.element.width)return!1;const i={...t};t.height=r.height,t.width=r.width;const a=this.size;return this.element.width=a.width=o.width,this.element.height=a.height=o.height,this.container.started&&e.particles.setResizeFactor({width:t.width/i.width,height:t.height/i.height}),!0}setPointerEvents(e){this.element&&(this._pointerEvents=e,this._repairStyle())}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>(0,n.clear)(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alterHsl:()=>g,clear:()=>c,drawEffect:()=>d,drawLine:()=>a,drawParticle:()=>u,drawParticlePlugin:()=>m,drawPlugin:()=>h,drawShape:()=>f,drawShapeAfterDraw:()=>p,paintBase:()=>s,paintImage:()=>l});var n=r(776),o=r(791),i=r(792);function a(e,t,r){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(r.x,r.y),e.closePath()}function s(e,t,r){e.fillStyle=r??"rgba(0,0,0,0)",e.fillRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function l(e,t,r,o){r&&(e.globalAlpha=o,e.drawImage(r,n.originPoint.x,n.originPoint.y,t.width,t.height),e.globalAlpha=1)}function c(e,t){e.clearRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function u(e){const{container:t,context:r,particle:o,delta:a,colorStyles:s,backgroundMask:l,composite:c,radius:u,opacity:h,shadow:m,transform:g}=e,y=o.getPosition(),v=o.rotation+(o.pathRotation?o.velocity.angle:n.defaultAngle),b=Math.sin(v),_=Math.cos(v),w=!!v,S={a:_*(g.a??n.defaultTransform.a),b:w?b*(g.b??n.identity):g.b??n.defaultTransform.b,c:w?-b*(g.c??n.identity):g.c??n.defaultTransform.c,d:_*(g.d??n.defaultTransform.d)};r.setTransform(S.a,S.b,S.c,S.d,y.x,y.y),l&&(r.globalCompositeOperation=c);const E=o.shadowColor;m.enable&&E&&(r.shadowBlur=m.blur,r.shadowColor=(0,i.getStyleFromRgb)(E),r.shadowOffsetX=m.offset.x,r.shadowOffsetY=m.offset.y),s.fill&&(r.fillStyle=s.fill);const k=o.strokeWidth??n.minStrokeWidth;r.lineWidth=k,s.stroke&&(r.strokeStyle=s.stroke);const x={container:t,context:r,particle:o,radius:u,opacity:h,delta:a,transformData:S,strokeWidth:k};f(x),p(x),d(x),r.globalCompositeOperation="source-over",r.resetTransform()}function d(e){const{container:t,context:r,particle:n,radius:o,opacity:i,delta:a,transformData:s}=e;if(!n.effect)return;const l=t.effectDrawers.get(n.effect);l&&l.draw({context:r,particle:n,radius:o,opacity:i,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...s}})}function f(e){const{container:t,context:r,particle:o,radius:i,opacity:a,delta:s,strokeWidth:l,transformData:c}=e;if(!o.shape)return;const u=t.shapeDrawers.get(o.shape);u&&(r.beginPath(),u.draw({context:r,particle:o,radius:i,opacity:a,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...c}}),o.shapeClose&&r.closePath(),l>n.minStrokeWidth&&r.stroke(),o.shapeFill&&r.fill())}function p(e){const{container:t,context:r,particle:n,radius:o,opacity:i,delta:a,transformData:s}=e;if(!n.shape)return;const l=t.shapeDrawers.get(n.shape);l?.afterDraw&&l.afterDraw({context:r,particle:n,radius:o,opacity:i,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...s}})}function h(e,t,r){t.draw&&t.draw(e,r)}function m(e,t,r,n){t.drawParticle&&t.drawParticle(e,r,n)}function g(e,t,r){return{h:e.h,s:e.s,l:e.l+(t===o.AlterType.darken?-n.lFactor:n.lFactor)*r}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AlterType:()=>n}),function(e){e.darken="darken",e.enlighten="enlighten"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{colorMix:()=>w,colorToHsl:()=>d,colorToRgb:()=>u,getHslAnimationFromHsl:()=>x,getHslFromAnimation:()=>k,getLinkColor:()=>S,getLinkRandomColor:()=>E,getRandomRgbColor:()=>v,getStyleFromHsl:()=>_,getStyleFromRgb:()=>b,hslToRgb:()=>g,hslaToRgba:()=>y,rangeColorToHsl:()=>f,rangeColorToRgb:()=>c,rgbToHsl:()=>p,stringToAlpha:()=>h,stringToRgb:()=>m,updateColor:()=>C,updateColorValue:()=>O});var n=r(778),o=r(776),i=r(781),a=r(783),s=r(777);function l(e,t){if(t)for(const r of e.colorManagers.values())if(t.startsWith(r.stringPrefix))return r.parseString(t)}function c(e,t,r,n=!0){if(!t)return;const o=(0,i.isString)(t)?{value:t}:t;if((0,i.isString)(o.value))return u(e,o.value,r,n);if((0,i.isArray)(o.value))return c(e,{value:(0,s.itemFromArray)(o.value,r,n)});for(const t of e.colorManagers.values()){const e=t.handleRangeColor(o);if(e)return e}}function u(e,t,r,n=!0){if(!t)return;const a=(0,i.isString)(t)?{value:t}:t;if((0,i.isString)(a.value))return a.value===o.randomColorValue?v():m(e,a.value);if((0,i.isArray)(a.value))return u(e,{value:(0,s.itemFromArray)(a.value,r,n)});for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function d(e,t,r,n=!0){const o=u(e,t,r,n);return o?p(o):void 0}function f(e,t,r,n=!0){const o=c(e,t,r,n);return o?p(o):void 0}function p(e){const t=e.r/o.rgbMax,r=e.g/o.rgbMax,n=e.b/o.rgbMax,i=Math.max(t,r,n),a=Math.min(t,r,n),s={h:o.hMin,l:(i+a)*o.half,s:o.sMin};return i!==a&&(s.s=s.l<o.half?(i-a)/(i+a):(i-a)/(o.double-i-a),s.h=t===i?(r-n)/(i-a):s.h=r===i?o.double+(n-t)/(i-a):o.double*o.double+(t-r)/(i-a)),s.l*=o.lMax,s.s*=o.sMax,s.h*=o.hPhase,s.h<o.hMin&&(s.h+=o.hMax),s.h>=o.hMax&&(s.h-=o.hMax),s}function h(e,t){return l(e,t)?.a}function m(e,t){return l(e,t)}function g(e){const t=(e.h%o.hMax+o.hMax)%o.hMax,r=Math.max(o.sMin,Math.min(o.sMax,e.s)),n=Math.max(o.lMin,Math.min(o.lMax,e.l)),i=t/o.hMax,a=r/o.sMax,s=n/o.lMax;if(r===o.sMin){const e=Math.round(s*o.rgbFactor);return{r:e,g:e,b:e}}const l=(e,t,r)=>{if(r<0&&r++,r>1&&r--,r*o.sextuple<1)return e+(t-e)*o.sextuple*r;if(r*o.double<1)return t;if(r*o.triple<1*o.double){return e+(t-e)*(o.double/o.triple-r)*o.sextuple}return e},c=s<o.half?s*(o.sNormalizedOffset+a):s+a-s*a,u=o.double*s-c,d=o.phaseNumerator/o.triple,f=Math.min(o.rgbFactor,o.rgbFactor*l(u,c,i+d)),p=Math.min(o.rgbFactor,o.rgbFactor*l(u,c,i)),h=Math.min(o.rgbFactor,o.rgbFactor*l(u,c,i-d));return{r:Math.round(f),g:Math.round(p),b:Math.round(h)}}function y(e){const t=g(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function v(e){const t=e??o.defaultRgbMin,r=o.rgbMax+o.identity;return{b:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r))),g:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r))),r:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r)))}}function b(e,t){return`rgba(${e.r}, ${e.g}, ${e.b}, ${t??o.defaultOpacity})`}function _(e,t){return`hsla(${e.h}, ${e.s}%, ${e.l}%, ${t??o.defaultOpacity})`}function w(e,t,r,o){let i=e,a=t;return void 0===i.r&&(i=g(e)),void 0===a.r&&(a=g(t)),{b:(0,n.mix)(i.b,a.b,r,o),g:(0,n.mix)(i.g,a.g,r,o),r:(0,n.mix)(i.r,a.r,r,o)}}function S(e,t,r){if(r===o.randomColorValue)return v();if(r!==o.midColorValue)return r;{const r=e.getFillColor()??e.getStrokeColor(),n=t?.getFillColor()??t?.getStrokeColor();if(r&&n&&t)return w(r,n,e.getRadius(),t.getRadius());{const e=r??n;if(e)return g(e)}}}function E(e,t,r,n){const a=(0,i.isString)(t)?t:t.value;return a===o.randomColorValue?n?c(e,{value:a}):r?o.randomColorValue:o.midColorValue:a===o.midColorValue?o.midColorValue:c(e,{value:a})}function k(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function x(e,t,r){const n={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(T(n.h,t.h,r),T(n.s,t.s,r),T(n.l,t.l,r)),n}function T(e,t,r){e.enable=t.enable,e.enable?(e.velocity=(0,n.getRangeValue)(t.speed)/o.percentDenominator*r,e.decay=o.decayOffset-(0,n.getRangeValue)(t.decay),e.status=a.AnimationStatus.increasing,e.loops=o.defaultLoops,e.maxLoops=(0,n.getRangeValue)(t.count),e.time=o.defaultTime,e.delayTime=(0,n.getRangeValue)(t.delay)*o.millisecondsToSeconds,t.sync||(e.velocity*=(0,n.getRandom)(),e.value*=(0,n.getRandom)()),e.initialValue=e.value,e.offset=(0,n.setRangeValue)(t.offset)):e.velocity=o.defaultVelocity}function O(e,t,r,o){if(!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=o.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const i=e.offset?(0,n.randomInRange)(e.offset):0,s=(e.velocity??0)*o.factor+3.6*i,l=e.decay??1,c=(0,n.getRangeMax)(t),u=(0,n.getRangeMin)(t);if(r&&e.status!==a.AnimationStatus.increasing){e.value-=s;const t=0;e.value<t&&(e.loops||(e.loops=0),e.loops++,e.status=a.AnimationStatus.increasing)}else e.value+=s,e.value>c&&(e.loops||(e.loops=0),e.loops++,r?e.status=a.AnimationStatus.decreasing:e.value-=c);e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,n.clamp)(e.value,u,c)}function C(e,t){if(!e)return;const{h:r,s:n,l:o}=e,i={min:0,max:100},a={min:0,max:100};r&&O(r,{min:0,max:360},!1,t),n&&O(n,i,!0,t),o&&O(o,a,!0,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventListeners:()=>l});var n=r(776),o=r(777),i=r(794),a=r(781);function s(e,t,r,n,o){if(n){let n={passive:!0};(0,a.isBoolean)(o)?n.capture=o:void 0!==o&&(n=o),e.addEventListener(t,r,n)}else{const n=o;e.removeEventListener(t,r,n)}}class l{constructor(e){this.container=e,this._doMouseTouchClick=e=>{const t=this.container,r=t.actualOptions;if(this._canPush){const e=t.interactivity.mouse,n=e.position;if(!n)return;e.clickPosition={...n},e.clickTime=(new Date).getTime();const i=r.interactivity.events.onClick;(0,o.executeOnSingleOrMultiple)(i.mode,e=>this.container.handleClickMode(e))}"touchend"===e.type&&setTimeout(()=>this._mouseTouchFinish(),n.touchDelay)},this._handleThemeChange=e=>{const t=e,r=this.container,n=r.options,o=n.defaultThemes,i=t.matches?o.dark:o.light,a=n.themes.find(e=>e.name===i);a?.default.auto&&r.loadTheme(i)},this._handleVisibilityChange=()=>{const e=this.container,t=e.actualOptions;this._mouseTouchFinish(),t.pauseOnBlur&&(document?.hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const e=async()=>{const e=this.container.canvas;await(e?.windowResize())};this._resizeTimeout=setTimeout(()=>{e()},this.container.actualOptions.interactivity.events.resize.delay*n.millisecondsToSeconds)},this._manageInteractivityListeners=(e,t)=>{const r=this._handlers,o=this.container,i=o.actualOptions,a=o.interactivity.element;if(!a)return;const l=a,c=o.canvas;c.setPointerEvents(l===c.element?"initial":"none"),(i.interactivity.events.onHover.enable||i.interactivity.events.onClick.enable)&&(s(a,n.mouseMoveEvent,r.mouseMove,t),s(a,n.touchStartEvent,r.touchStart,t),s(a,n.touchMoveEvent,r.touchMove,t),i.interactivity.events.onClick.enable?(s(a,n.touchEndEvent,r.touchEndClick,t),s(a,n.mouseUpEvent,r.mouseUp,t),s(a,n.mouseDownEvent,r.mouseDown,t)):s(a,n.touchEndEvent,r.touchEnd,t),s(a,e,r.mouseLeave,t),s(a,n.touchCancelEvent,r.touchCancel,t))},this._manageListeners=e=>{const t=this._handlers,r=this.container,o=r.actualOptions.interactivity.detectsOn,a=r.canvas.element;let l=n.mouseLeaveEvent;o===i.InteractivityDetect.window?(r.interactivity.element=window,l=n.mouseOutEvent):o===i.InteractivityDetect.parent&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(e),this._manageResize(e),this._manageInteractivityListeners(l,e),document&&s(document,n.visibilityChangeEvent,t.visibilityChange,e,!1)},this._manageMediaMatch=e=>{const t=this._handlers,r=(0,o.safeMatchMedia)("(prefers-color-scheme: dark)");r&&(void 0===r.addEventListener?void 0!==r.addListener&&(e?r.addListener(t.oldThemeChange):r.removeListener(t.oldThemeChange)):s(r,"change",t.themeChange,e))},this._manageResize=e=>{const t=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void s(window,n.resizeEvent,t.resize,e);const o=r.canvas.element;this._resizeObserver&&!e?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&e&&o&&(this._resizeObserver=new ResizeObserver(e=>{e.find(e=>e.target===o)&&this._handleWindowResize()}),this._resizeObserver.observe(o))},this._mouseDown=()=>{const{interactivity:e}=this.container;if(!e)return;const{mouse:t}=e;t.clicking=!0,t.downPosition=t.position},this._mouseTouchClick=e=>{const t=this.container,r=t.actualOptions,{mouse:n}=t.interactivity;n.inside=!0;let o=!1;const i=n.position;if(i&&r.interactivity.events.onClick.enable){for(const e of t.plugins.values())if(e.clickPositionValid&&(o=e.clickPositionValid(i),o))break;o||this._doMouseTouchClick(e),n.clicking=!1}},this._mouseTouchFinish=()=>{const e=this.container.interactivity;if(!e)return;const t=e.mouse;delete t.position,delete t.clickPosition,delete t.downPosition,e.status=n.mouseLeaveEvent,t.inside=!1,t.clicking=!1},this._mouseTouchMove=e=>{const t=this.container,r=t.actualOptions,o=t.interactivity,a=t.canvas.element;if(!o?.element)return;let s;if(o.mouse.inside=!0,e.type.startsWith("pointer")){this._canPush=!0;const t=e;if(o.element===window){if(a){const e=a.getBoundingClientRect();s={x:t.clientX-e.left,y:t.clientY-e.top}}}else if(r.interactivity.detectsOn===i.InteractivityDetect.parent){const e=t.target,r=t.currentTarget;if(e&&r&&a){const o=e.getBoundingClientRect(),i=r.getBoundingClientRect(),l=a.getBoundingClientRect();s={x:t.offsetX+n.double*o.left-(i.left+l.left),y:t.offsetY+n.double*o.top-(i.top+l.top)}}else s={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(s={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==e.type,a){const t=e,r=t.touches[t.touches.length-n.lengthOffset],o=a.getBoundingClientRect();s={x:r.clientX-(o.left??n.minCoordinate),y:r.clientY-(o.top??n.minCoordinate)}}const l=t.retina.pixelRatio;s&&(s.x*=l,s.y*=l),o.mouse.position=s,o.status=n.mouseMoveEvent},this._touchEnd=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.delete(e.identifier);this._mouseTouchClick(e)},this._touchStart=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.set(e.identifier,performance.now());this._mouseTouchMove(e)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:e=>this._mouseTouchMove(e),mouseUp:e=>this._mouseTouchClick(e),touchStart:e=>this._touchStart(e),touchMove:e=>this._mouseTouchMove(e),touchEnd:e=>this._touchEnd(e),touchCancel:e=>this._touchEnd(e),touchEndClick:e=>this._touchEndClick(e),visibilityChange:()=>this._handleVisibilityChange(),themeChange:e=>this._handleThemeChange(e),oldThemeChange:e=>this._handleThemeChange(e),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{InteractivityDetect:()=>n}),function(e){e.canvas="canvas",e.parent="parent",e.window="window"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EventType:()=>n}),function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Options:()=>g});var n=r(777),o=r(781),i=r(797),a=r(799),s=r(801),l=r(802),c=r(811),u=r(812),d=r(813),f=r(814),p=r(816),h=r(817),m=r(778);class g{constructor(e,t){this._findDefaultTheme=e=>this.themes.find(t=>t.default.value&&t.default.mode===e)??this.themes.find(e=>e.default.value&&e.default.mode===p.ThemeMode.any),this._importPreset=e=>{this.load(this._engine.getPreset(e))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new i.Background,this.backgroundMask=new a.BackgroundMask,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.FullScreen,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new l.Interactivity(e,t),this.manualParticles=[],this.particles=(0,h.loadParticlesOptions)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if((0,o.isNull)(e))return;void 0!==e.preset&&(0,n.executeOnSingleOrMultiple)(e.preset,e=>this._importPreset(e)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,m.setRangeValue)(e.delay));const t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,m.setRangeValue)(e.duration));const r=e.fpsLimit;void 0!==r&&(this.fpsLimit=r),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);const i=e.fullScreen;(0,o.isBoolean)(i)?this.fullScreen.enable=i:this.fullScreen.load(i),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(e=>{const t=new c.ManualParticle;return t.load(e),t})),this.particles.load(e.particles),this.style=(0,n.deepExtend)(this.style,e.style),this._engine.loadOptions(this,e),void 0!==e.smooth&&(this.smooth=e.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const t of a)t.loadOptions&&t.loadOptions(this,e);if(void 0!==e.responsive)for(const t of e.responsive){const e=new u.Responsive;e.load(t),this.responsive.push(e)}if(this.responsive.sort((e,t)=>e.maxWidth-t.maxWidth),void 0!==e.themes)for(const t of e.themes){const e=this.themes.find(e=>e.name===t.name);if(e)e.load(t);else{const e=new f.Theme;e.load(t),this.themes.push(e)}}this.defaultThemes.dark=this._findDefaultTheme(p.ThemeMode.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(p.ThemeMode.light)?.name}setResponsive(e,t,r){this.load(r);const n=this.responsive.find(r=>r.mode===d.ResponsiveMode.screen&&screen?r.maxWidth>screen.availWidth:r.maxWidth*t>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){const t=this.themes.find(t=>t.name===e);t&&this.load(t.options)}else{const e=(0,n.safeMatchMedia)("(prefers-color-scheme: dark)"),t=e?.matches,r=this._findDefaultTheme(t?p.ThemeMode.dark:p.ThemeMode.light);r&&this.load(r.options)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Background:()=>i});var n=r(798),o=r(781);class i{constructor(){this.color=new n.OptionsColor,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OptionsColor:()=>o});var n=r(781);class o{constructor(){this.value=""}static create(e,t){const r=new o;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}load(e){(0,n.isNull)(e)||(0,n.isNull)(e.value)||(this.value=e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BackgroundMask:()=>i});var n=r(781),o=r(800);class i{constructor(){this.composite="destination-out",this.cover=new o.BackgroundMaskCover,this.enable=!1}load(e){if(!(0,n.isNull)(e)){if(void 0!==e.composite&&(this.composite=e.composite),void 0!==e.cover){const t=e.cover,r=(0,n.isString)(e.cover)?{color:e.cover}:e.cover;this.cover.load(void 0!==t.color||void 0!==t.image?t:{color:r})}void 0!==e.enable&&(this.enable=e.enable)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BackgroundMaskCover:()=>i});var n=r(798),o=r(781);class i{constructor(){this.opacity=1}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FullScreen:()=>o});var n=r(781);class o{constructor(){this.enable=!0,this.zIndex=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Interactivity:()=>s});var n=r(803),o=r(794),i=r(810),a=r(781);class s{constructor(e,t){this.detectsOn=o.InteractivityDetect.window,this.events=new n.Events,this.modes=new i.Modes(e,t)}load(e){if((0,a.isNull)(e))return;const t=e.detectsOn;void 0!==t&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Events:()=>c});var n=r(804),o=r(805),i=r(807),a=r(809),s=r(777),l=r(781);class c{constructor(){this.onClick=new n.ClickEvent,this.onDiv=new o.DivEvent,this.onHover=new i.HoverEvent,this.resize=new a.ResizeEvent}load(e){if((0,l.isNull)(e))return;this.onClick.load(e.onClick);const t=e.onDiv;void 0!==t&&(this.onDiv=(0,s.executeOnSingleOrMultiple)(t,e=>{const t=new o.DivEvent;return t.load(e),t})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ClickEvent:()=>o});var n=r(781);class o{constructor(){this.enable=!1,this.mode=[]}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DivEvent:()=>i});var n=r(806),o=r(781);class i{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=n.DivType.circle}load(e){(0,o.isNull)(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.type=e.type))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DivType:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HoverEvent:()=>i});var n=r(808),o=r(781);class i{constructor(){this.enable=!1,this.mode=[],this.parallax=new n.Parallax}load(e){(0,o.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),this.parallax.load(e.parallax))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parallax:()=>o});var n=r(781);class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.force&&(this.force=e.force),void 0!==e.smooth&&(this.smooth=e.smooth))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResizeEvent:()=>o});var n=r(781);class o{constructor(){this.delay=.5,this.enable=!0}load(e){(0,n.isNull)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Modes:()=>o});var n=r(781);class o{constructor(e,t){this._engine=e,this._container=t}load(e){if((0,n.isNull)(e))return;if(!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const r of t)r.loadModeOptions&&r.loadModeOptions(this,e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ManualParticle:()=>s});var n=r(786),o=r(777),i=r(781),a=r(776);class s{load(e){(0,i.isNull)(e)||(e.position&&(this.position={x:e.position.x??a.manualDefaultPosition,y:e.position.y??a.manualDefaultPosition,mode:e.position.mode??n.PixelMode.percent}),e.options&&(this.options=(0,o.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Responsive:()=>a});var n=r(813),o=r(777),i=r(781);class a{constructor(){this.maxWidth=1/0,this.options={},this.mode=n.ResponsiveMode.canvas}load(e){(0,i.isNull)(e)||((0,i.isNull)(e.maxWidth)||(this.maxWidth=e.maxWidth),(0,i.isNull)(e.mode)||(e.mode===n.ResponsiveMode.screen?this.mode=n.ResponsiveMode.screen:this.mode=n.ResponsiveMode.canvas),(0,i.isNull)(e.options)||(this.options=(0,o.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ResponsiveMode:()=>n}),function(e){e.screen="screen",e.canvas="canvas"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Theme:()=>a});var n=r(815),o=r(777),i=r(781);class a{constructor(){this.name="",this.default=new n.ThemeDefault}load(e){(0,i.isNull)(e)||(void 0!==e.name&&(this.name=e.name),this.default.load(e.default),void 0!==e.options&&(this.options=(0,o.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ThemeDefault:()=>i});var n=r(816),o=r(781);class i{constructor(){this.auto=!1,this.mode=n.ThemeMode.any,this.value=!1}load(e){(0,o.isNull)(e)||(void 0!==e.auto&&(this.auto=e.auto),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ThemeMode:()=>n}),function(e){e.any="any",e.dark="dark",e.light="light"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOptions:()=>o,loadParticlesOptions:()=>i});var n=r(818);function o(e,...t){for(const r of t)e.load(r)}function i(e,t,...r){const i=new n.ParticlesOptions(e,t);return o(i,...r),i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesOptions:()=>y});var n=r(777),o=r(819),i=r(823),a=r(830),s=r(831),l=r(842),c=r(827),u=r(844),d=r(848),f=r(849),p=r(850),h=r(852),m=r(853),g=r(781);class y{constructor(e,t){this._engine=e,this._container=t,this.bounce=new c.ParticlesBounce,this.collisions=new i.Collisions,this.color=new o.AnimatableColor,this.color.value="#fff",this.effect=new a.Effect,this.groups={},this.move=new s.Move,this.number=new u.ParticlesNumber,this.opacity=new l.Opacity,this.reduceDuplicates=!1,this.shadow=new d.Shadow,this.shape=new f.Shape,this.size=new p.Size,this.stroke=new h.Stroke,this.zIndex=new m.ZIndex}load(e){if((0,g.isNull)(e))return;if(void 0!==e.groups)for(const t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;const r=e.groups[t];void 0!==r&&(this.groups[t]=(0,n.deepExtend)(this.groups[t]??{},r))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(o.AnimatableColor.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),void 0!==e.interactivity&&(this.interactivity=(0,n.deepExtend)({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=(0,n.executeOnSingleOrMultiple)(t,e=>{const t=new h.Stroke;return t.load(e),t})),this._container){const t=this._engine.updaters.get(this._container);if(t)for(const r of t)r.loadOptions&&r.loadOptions(this,e);const r=this._engine.interactors.get(this._container);if(r)for(const t of r)t.loadParticlesOptions&&t.loadParticlesOptions(this,e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimatableColor:()=>a});var n=r(781),o=r(820),i=r(798);class a extends i.OptionsColor{constructor(){super(),this.animation=new o.HslAnimation}static create(e,t){const r=new a;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}load(e){if(super.load(e),(0,n.isNull)(e))return;const t=e.animation;void 0!==t&&(void 0!==t.enable?this.animation.h.load(t):this.animation.load(e.animation))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslAnimation:()=>i});var n=r(821),o=r(781);class i{constructor(){this.h=new n.ColorAnimation,this.s=new n.ColorAnimation,this.l=new n.ColorAnimation}load(e){(0,o.isNull)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ColorAnimation:()=>a});var n=r(822),o=r(781),i=r(778);class a extends n.AnimationOptions{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,o.isNull)(e)||void 0!==e.offset&&(this.offset=(0,i.setRangeValue)(e.offset))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationOptions:()=>s,RangedAnimationOptions:()=>l});var n=r(782),o=r(787),i=r(781),a=r(778);class s{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,i.isNull)(e)||(void 0!==e.count&&(this.count=(0,a.setRangeValue)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,a.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,a.setRangeValue)(e.decay)),void 0!==e.delay&&(this.delay=(0,a.setRangeValue)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends s{constructor(){super(),this.mode=n.AnimationMode.auto,this.startValue=o.StartValueType.random}load(e){super.load(e),(0,i.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Collisions:()=>c});var n=r(824),o=r(825),i=r(826),a=r(827),s=r(781),l=r(778);class c{constructor(){this.absorb=new o.CollisionsAbsorb,this.bounce=new a.ParticlesBounce,this.enable=!1,this.maxSpeed=50,this.mode=n.CollisionMode.bounce,this.overlap=new i.CollisionsOverlap}load(e){(0,s.isNull)(e)||(this.absorb.load(e.absorb),this.bounce.load(e.bounce),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.maxSpeed&&(this.maxSpeed=(0,l.setRangeValue)(e.maxSpeed)),void 0!==e.mode&&(this.mode=e.mode),this.overlap.load(e.overlap))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{CollisionMode:()=>n}),function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CollisionsAbsorb:()=>o});var n=r(781);class o{constructor(){this.speed=2}load(e){(0,n.isNull)(e)||void 0!==e.speed&&(this.speed=e.speed)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CollisionsOverlap:()=>o});var n=r(781);class o{constructor(){this.enable=!0,this.retries=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.retries&&(this.retries=e.retries))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounce:()=>i});var n=r(828),o=r(781);class i{constructor(){this.horizontal=new n.ParticlesBounceFactor,this.vertical=new n.ParticlesBounceFactor}load(e){(0,o.isNull)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounceFactor:()=>o});var n=r(829);class o extends n.ValueWithRandom{constructor(){super(),this.value=1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationValueWithRandom:()=>s,RangedAnimationValueWithRandom:()=>l,ValueWithRandom:()=>a});var n=r(822),o=r(781),i=r(778);class a{constructor(){this.value=0}load(e){(0,o.isNull)(e)||(0,o.isNull)(e.value)||(this.value=(0,i.setRangeValue)(e.value))}}class s extends a{constructor(){super(),this.animation=new n.AnimationOptions}load(e){if(super.load(e),(0,o.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends s{constructor(){super(),this.animation=new n.RangedAnimationOptions}load(e){super.load(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Effect:()=>i});var n=r(777),o=r(781);class i{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,o.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,n.deepExtend)(this.options[e]??{},r))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Move:()=>h});var n=r(779),o=r(781),i=r(832),a=r(833),s=r(834),l=r(835),c=r(836),u=r(837),d=r(839),f=r(841),p=r(778);class h{constructor(){this.angle=new i.MoveAngle,this.attract=new a.MoveAttract,this.center=new s.MoveCenter,this.decay=0,this.distance={},this.direction=n.MoveDirection.none,this.drift=0,this.enable=!1,this.gravity=new l.MoveGravity,this.path=new c.MovePath,this.outModes=new d.OutModes,this.random=!1,this.size=!1,this.speed=2,this.spin=new f.Spin,this.straight=!1,this.trail=new u.MoveTrail,this.vibrate=!1,this.warp=!1}load(e){if((0,o.isNull)(e))return;this.angle.load((0,o.isNumber)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,p.setRangeValue)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,o.isNumber)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,p.setRangeValue)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;void 0!==t&&((0,o.isObject)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,p.setRangeValue)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),this.trail.load(e.trail),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveAngle:()=>i});var n=r(781),o=r(778);class i{constructor(){this.offset=0,this.value=90}load(e){(0,n.isNull)(e)||(void 0!==e.offset&&(this.offset=(0,o.setRangeValue)(e.offset)),void 0!==e.value&&(this.value=(0,o.setRangeValue)(e.value)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveAttract:()=>i});var n=r(781),o=r(778);class i{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,n.isNull)(e)&&(void 0!==e.distance&&(this.distance=(0,o.setRangeValue)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;void 0!==t&&(this.rotate.x=t);const r=e.rotate.y;void 0!==r&&(this.rotate.y=r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveCenter:()=>i});var n=r(786),o=r(781);class i{constructor(){this.x=50,this.y=50,this.mode=n.PixelMode.percent,this.radius=0}load(e){(0,o.isNull)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveGravity:()=>i});var n=r(781),o=r(778);class i{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,n.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,o.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,o.setRangeValue)(e.maxSpeed)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePath:()=>a});var n=r(829),o=r(777),i=r(781);class a{constructor(){this.clamp=!0,this.delay=new n.ValueWithRandom,this.enable=!1,this.options={}}load(e){(0,i.isNull)(e)||(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,o.deepExtend)(this.options,e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveTrail:()=>i});var n=r(838),o=r(781);class i{constructor(){this.enable=!1,this.length=10,this.fill=new n.MoveTrailFill}load(e){(0,o.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.fill&&this.fill.load(e.fill),void 0!==e.length&&(this.length=e.length))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveTrailFill:()=>i});var n=r(798),o=r(781);class i{load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutModes:()=>i});var n=r(840),o=r(781);class i{constructor(){this.default=n.OutMode.out}load(e){(0,o.isNull)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutMode:()=>n}),function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Spin:()=>a});var n=r(777),o=r(781),i=r(778);class a{constructor(){this.acceleration=0,this.enable=!1}load(e){(0,o.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,i.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,n.deepExtend)({},e.position)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Opacity:()=>a});var n=r(843),o=r(829),i=r(781);class a extends o.RangedAnimationValueWithRandom{constructor(){super(),this.animation=new n.OpacityAnimation,this.value=1}load(e){if((0,i.isNull)(e))return;super.load(e);const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityAnimation:()=>a});var n=r(784),o=r(822),i=r(781);class a extends o.RangedAnimationOptions{constructor(){super(),this.destroy=n.DestroyType.none,this.speed=2}load(e){super.load(e),(0,i.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumber:()=>a});var n=r(845),o=r(846),i=r(781);class a{constructor(){this.density=new n.ParticlesDensity,this.limit=new o.ParticlesNumberLimit,this.value=0}load(e){(0,i.isNull)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesDensity:()=>o});var n=r(781);class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,n.isNull)(e))return;void 0!==e.enable&&(this.enable=e.enable);const t=e.width;void 0!==t&&(this.width=t);const r=e.height;void 0!==r&&(this.height=r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumberLimit:()=>i});var n=r(847),o=r(781);class i{constructor(){this.mode=n.LimitMode.delete,this.value=0}load(e){(0,o.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{LimitMode:()=>n}),function(e){e.delete="delete",e.wait="wait"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Shadow:()=>i});var n=r(798),o=r(781);class i{constructor(){this.blur=0,this.color=new n.OptionsColor,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){(0,o.isNull)(e)||(void 0!==e.blur&&(this.blur=e.blur),this.color=n.OptionsColor.create(this.color,e.color),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.offset&&(void 0!==e.offset.x&&(this.offset.x=e.offset.x),void 0!==e.offset.y&&(this.offset.y=e.offset.y)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Shape:()=>i});var n=r(777),o=r(781);class i{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,o.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,n.deepExtend)(this.options[e]??{},r))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Size:()=>a});var n=r(829),o=r(851),i=r(781);class a extends n.RangedAnimationValueWithRandom{constructor(){super(),this.animation=new o.SizeAnimation,this.value=3}load(e){if(super.load(e),(0,i.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeAnimation:()=>a});var n=r(784),o=r(822),i=r(781);class a extends o.RangedAnimationOptions{constructor(){super(),this.destroy=n.DestroyType.none,this.speed=5}load(e){super.load(e),(0,i.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stroke:()=>a});var n=r(819),o=r(781),i=r(778);class a{constructor(){this.width=0}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,i.setRangeValue)(e.width)),void 0!==e.opacity&&(this.opacity=(0,i.setRangeValue)(e.opacity)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ZIndex:()=>i});var n=r(829),o=r(781);class i extends n.ValueWithRandom{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,o.isNull)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>p});var n=r(776),o=r(777),i=r(795),a=r(855),s=r(847),l=r(857),c=r(859),u=r(860),d=r(861);const f=e=>{const{height:t,width:r}=e;return new d.Rectangle(n.posOffset*r,n.posOffset*t,n.sizeFactor*r,n.sizeFactor*t)};class p{constructor(e,t){this._addToPool=(...e)=>{this._pool.push(...e)},this._applyDensity=(e,t,r,o)=>{const i=e.number;if(!e.number.density?.enable)return void(void 0===r?this._limit=i.limit.value:(o?.number.limit?.value??i.limit.value)&&this._groupLimits.set(r,o?.number.limit?.value??i.limit.value));const a=this._initDensityFactor(i.density),s=i.value,l=i.limit.value>n.minLimit?i.limit.value:s,c=Math.min(s,l)*a+t,u=Math.min(this.count,this.filter(e=>e.group===r).length);void 0===r?this._limit=i.limit.value*a:this._groupLimits.set(r,i.limit.value*a),u<c?this.push(Math.abs(c-u),void 0,e,r):u>c&&this.removeQuantity(u-c,r)},this._initDensityFactor=e=>{const t=this._container;if(!t.canvas.element||!e.enable)return n.defaultDensityFactor;const r=t.canvas.element,o=t.retina.pixelRatio;return r.width*r.height/(e.height*e.width*o**n.squareExp)},this._pushParticle=(e,t,r,a)=>{try{let n=this._pool.pop();n||(n=new l.Particle(this._engine,this._container)),n.init(this._nextId,e,t,r);let o=!0;if(a&&(o=a(n)),!o)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(i.EventType.particleAdded,{container:this._container,data:{particle:n}}),n}catch(e){(0,o.getLogger)().warning(`${n.errorPrefix} adding particle: ${e}`)}},this._removeParticle=(e,t,r)=>{const o=this._array[e];if(!o||o.group!==t)return!1;const a=this._zArray.indexOf(o);return this._array.splice(e,n.deleteCount),this._zArray.splice(a,n.deleteCount),o.destroy(r),this._engine.dispatchEvent(i.EventType.particleRemoved,{container:this._container,data:{particle:o}}),this._addToPool(o),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new a.InteractionManager(e,t),this._pluginsInitialized=!1;const r=t.canvas.size;this.quadTree=new u.QuadTree(f(r),n.qTreeCapacity),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container;e.actualOptions.manualParticles.forEach(t=>this.addParticle(t.position?(0,o.getPosition)(t.position,e.canvas.size):void 0,t.options))}addParticle(e,t,r,o){const i=this._container.actualOptions.particles.number.limit.mode,a=void 0===r?this._limit:this._groupLimits.get(r)??this._limit,l=this.count;if(a>n.minLimit)switch(i){case s.LimitMode.delete:{const e=l+n.countOffset-a;e>n.minCount&&this.removeQuantity(e);break}case s.LimitMode.wait:if(l>=a)return}return this._pushParticle(e,t,r,o)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,r=t.canvas;r.clear(),this.update(e);for(const n of t.plugins.values())r.drawPlugin(n,e);for(const t of this._zArray)t.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let r=!1;for(const t of e.plugins.values())if(r=t.particlesInitialization?.()??r,r)break;if(this.addManualParticles(),!r){const e=t.particles,r=e.groups;for(const t in r){const n=r[t];for(let r=this.count,o=0;o<n.number?.value&&r<e.number.value;r++,o++)this.addParticle(void 0,n,t)}for(let t=this.count;t<e.number.value;t++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(const t of e.pathGenerators.values())t.init(e)}push(e,t,r,n){for(let o=0;o<e;o++)this.addParticle(t?.position,r,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,r){this.removeAt(this._array.indexOf(e),void 0,t,r)}removeAt(e,t=n.defaultRemoveQuantity,r,o){if(e<n.minIndex||e>this.count)return;let i=0;for(let n=e;i<t&&n<this.count;n++)this._removeParticle(n,r,o)&&(n--,i++)}removeQuantity(e,t){this.removeAt(n.minIndex,e,t)}setDensity(){const e=this._container.actualOptions,t=e.particles.groups,r=e.manualParticles.length;for(const e in t)this._applyDensity(t[e],r,e);this._applyDensity(e.particles,r)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){const t=this._container,r=new Set;this.quadTree=new u.QuadTree(f(t.canvas.size),n.qTreeCapacity);for(const e of t.pathGenerators.values())e.update();for(const r of t.plugins.values())r.update?.(e);const o=this._resizeFactor;for(const t of this._array){o&&!t.ignoresResizeRatio&&(t.position.x*=o.width,t.position.y*=o.height,t.initialPosition.x*=o.width,t.initialPosition.y*=o.height),t.ignoresResizeRatio=!1,this._interactionManager.reset(t);for(const r of this._container.plugins.values()){if(t.destroyed)break;r.particleUpdate?.(t,e)}for(const r of this.movers)r.isEnabled(t)&&r.move(t,e);t.destroyed?r.add(t):this.quadTree.insert(new c.Point(t.getPosition(),t))}if(r.size){const e=e=>!r.has(e);this._array=this.filter(e),this._zArray=this._zArray.filter(e);for(const e of r)this._engine.dispatchEvent(i.EventType.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...r)}this._interactionManager.externalInteract(e);for(const t of this._array){for(const r of this.updaters)r.update(t,e);t.destroyed||t.spawning||this._interactionManager.particlesInteract(t,e)}if(delete this._resizeFactor,this._needsSort){const e=this._zArray;e.sort((e,t)=>t.position.z-e.position.z||e.id-t.id),this._lastZIndex=e[e.length-n.lengthOffset].position.z,this._needsSort=!1}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractionManager:()=>o});var n=r(856);class o{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(const t of this._externalInteractors)t.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case n.InteractorType.external:this._externalInteractors.push(e);break;case n.InteractorType.particles:this._particleInteractors.push(e)}e.init()}}particlesInteract(e,t){for(const r of this._externalInteractors)r.clear(e,t);for(const r of this._particleInteractors)r.isEnabled(e)&&r.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{InteractorType:()=>n}),function(e){e.external="external",e.particles="particles"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particle:()=>y});var n=r(780),o=r(778),i=r(776),a=r(777),s=r(792),l=r(795),c=r(802),u=r(779),d=r(840),f=r(858),p=r(786),h=r(790),m=r(817);function g(e){if(!(0,a.isInArray)(e.outMode,e.checkModes))return;const t=e.radius*i.double;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord<t&&e.setCb(e.radius)}class y{constructor(e,t){this.container=t,this._calcPosition=(e,t,r,a=i.defaultRetryCount)=>{for(const o of e.plugins.values()){const e=void 0!==o.particlePosition?o.particlePosition(t,this):void 0;if(e)return n.Vector3d.create(e.x,e.y,r)}const s=e.canvas.size,l=(0,o.calcExactPositionOrRandomFromSize)({size:s,position:t}),c=n.Vector3d.create(l.x,l.y,r),u=this.getRadius(),f=this.options.move.outModes,p=t=>{g({outMode:t,checkModes:[d.OutMode.bounce],coord:c.x,maxCoord:e.canvas.size.width,setCb:e=>c.x+=e,radius:u})},h=t=>{g({outMode:t,checkModes:[d.OutMode.bounce],coord:c.y,maxCoord:e.canvas.size.height,setCb:e=>c.y+=e,radius:u})};return p(f.left??f.default),p(f.right??f.default),h(f.top??f.default),h(f.bottom??f.default),this._checkOverlap(c,a)?this._calcPosition(e,void 0,r,a+i.tryCountIncrement):c},this._calculateVelocity=()=>{const e=(0,o.getParticleBaseVelocity)(this.direction).copy(),t=this.options.move;if(t.direction===u.MoveDirection.inside||t.direction===u.MoveDirection.outside)return e;const r=(0,o.degToRad)((0,o.getRangeValue)(t.angle.value)),n=(0,o.degToRad)((0,o.getRangeValue)(t.angle.offset)),a={left:n-r*i.half,right:n+r*i.half};return t.straight||(e.angle+=(0,o.randomInRange)((0,o.setRangeValue)(a.left,a.right))),t.random&&"number"==typeof t.speed&&(e.length*=(0,o.getRandom)()),e},this._checkOverlap=(e,t=i.defaultRetryCount)=>{const r=this.options.collisions,n=this.getRadius();if(!r.enable)return!1;const a=r.overlap;if(a.enable)return!1;const s=a.retries;if(s>=i.minRetries&&t>s)throw new Error(`${i.errorPrefix} particle is overlapping and can't be placed`);return!!this.container.particles.find(t=>(0,o.getDistance)(e,t.position)<n+t.getRadius())},this._getRollColor=e=>{if(!e||!this.roll||!this.backColor&&!this.roll.alter)return e;const t=this.roll.horizontal&&this.roll.vertical?i.double*i.rollFactor:i.rollFactor,r=this.roll.horizontal?Math.PI*i.half:i.none;return Math.floor(((this.roll.angle??i.none)+r)/(Math.PI/t))%i.double?this.backColor?this.backColor:this.roll.alter?(0,h.alterHsl)(e,this.roll.alter.type,this.roll.alter.value):e:e},this._initPosition=e=>{const t=this.container,r=(0,o.getRangeValue)(this.options.zIndex.value);this.position=this._calcPosition(t,e,(0,o.clamp)(r,i.minZ,t.zLayers)),this.initialPosition=this.position.copy();const s=t.canvas.size;switch(this.moveCenter={...(0,a.getPosition)(this.options.move.center,s),radius:this.options.move.center.radius??i.defaultRadius,mode:this.options.move.center.mode??p.PixelMode.percent},this.direction=(0,o.getParticleDirectionAngle)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case u.MoveDirection.inside:this.outType=f.ParticleOutType.inside;break;case u.MoveDirection.outside:this.outType=f.ParticleOutType.outside}this.offset=n.Vector.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,r=this.pathGenerator,n=t.shapeDrawers.get(this.shape);n?.particleDestroy?.(this);for(const r of t.plugins.values())r.particleDestroyed?.(this,e);for(const r of t.particles.updaters)r.particleDestroyed?.(this,e);r?.reset(this),this._engine.dispatchEvent(l.EventType.particleDestroyed,{container:this.container,data:{particle:this}})}draw(e){const t=this.container,r=t.canvas;for(const n of t.plugins.values())r.drawParticlePlugin(n,this,e);r.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??(0,s.getHslFromAnimation)(this.color))}getMass(){return this.getRadius()**i.squareExp*Math.PI*i.half}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??(0,s.getHslFromAnimation)(this.strokeColor))}init(e,t,r,n){const l=this.container,u=this._engine;this.id=e,this.group=n,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=f.ParticleOutType.normal,this.ignoresResizeRatio=!0;const d=l.retina.pixelRatio,p=l.actualOptions,h=(0,m.loadParticlesOptions)(this._engine,l,p.particles),{reduceDuplicates:g}=h,y=h.effect.type,v=h.shape.type;this.effect=(0,a.itemFromSingleOrMultiple)(y,this.id,g),this.shape=(0,a.itemFromSingleOrMultiple)(v,this.id,g);const b=h.effect,_=h.shape;if(r){if(r.effect?.type){const e=r.effect.type,t=(0,a.itemFromSingleOrMultiple)(e,this.id,g);t&&(this.effect=t,b.load(r.effect))}if(r.shape?.type){const e=r.shape.type,t=(0,a.itemFromSingleOrMultiple)(e,this.id,g);t&&(this.shape=t,_.load(r.shape))}}if(this.effect===i.randomColorValue){const e=[...this.container.effectDrawers.keys()];this.effect=e[Math.floor((0,o.getRandom)()*e.length)]}if(this.shape===i.randomColorValue){const e=[...this.container.shapeDrawers.keys()];this.shape=e[Math.floor((0,o.getRandom)()*e.length)]}this.effectData=function(e,t,r,n){const o=t.options[e];if(o)return(0,a.deepExtend)({close:t.close,fill:t.fill},(0,a.itemFromSingleOrMultiple)(o,r,n))}(this.effect,b,this.id,g),this.shapeData=function(e,t,r,n){const o=t.options[e];if(o)return(0,a.deepExtend)({close:t.close,fill:t.fill},(0,a.itemFromSingleOrMultiple)(o,r,n))}(this.shape,_,this.id,g),h.load(r);const w=this.effectData;w&&h.load(w.particles);const S=this.shapeData;S&&h.load(S.particles);const E=new c.Interactivity(u,l);E.load(l.actualOptions.interactivity),E.load(h.interactivity),this.interactivity=E,this.effectFill=w?.fill??h.effect.fill,this.effectClose=w?.close??h.effect.close,this.shapeFill=S?.fill??h.shape.fill,this.shapeClose=S?.close??h.shape.close,this.options=h;const k=this.options.move.path;this.pathDelay=(0,o.getRangeValue)(k.delay.value)*i.millisecondsToSeconds,k.generator&&(this.pathGenerator=this._engine.getPathGenerator(k.generator),this.pathGenerator&&l.addPath(k.generator,this.pathGenerator)&&this.pathGenerator.init(l)),l.retina.initParticle(this),this.size=(0,a.initParticleNumericAnimationValue)(this.options.size,d),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=i.decayOffset-(0,o.getRangeValue)(this.options.move.decay);const x=l.particles;x.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/l.zLayers,this.sides=24;let T=l.effectDrawers.get(this.effect);T||(T=this._engine.getEffectDrawer(this.effect),T&&l.effectDrawers.set(this.effect,T)),T?.loadEffect&&T.loadEffect(this);let O=l.shapeDrawers.get(this.shape);O||(O=this._engine.getShapeDrawer(this.shape),O&&l.shapeDrawers.set(this.shape,O)),O?.loadShape&&O.loadShape(this);const C=O?.getSidesCount;C&&(this.sides=C(this)),this.spawning=!1,this.shadowColor=(0,s.rangeColorToRgb)(this._engine,this.options.shadow.color);for(const e of x.updaters)e.init(this);for(const e of x.movers)e.init?.(this);T?.particleInit?.(l,this),O?.particleInit?.(l,this);for(const e of l.plugins.values())e.particleCreated?.(this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,r=this.position;return r.x>=-e&&r.y>=-e&&r.y<=t.height+e&&r.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset?.(this)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ParticleOutType:()=>n}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Point:()=>n});class n{constructor(e,t){this.position=e,this.particle=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QuadTree:()=>a});var n=r(861),o=r(776),i=r(778);class a{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:e,y:t}=this.rectangle.position,{width:r,height:i}=this.rectangle.size,{capacity:s}=this;for(let l=0;l<o.subdivideCount;l++){const c=l%o.double;this._subs.push(new a(new n.Rectangle(e+r*o.half*c,t+i*o.half*(Math.round(l*o.half)-c),r*o.half,i*o.half),s))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return!!this.rectangle.contains(e.position)&&(this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(t=>t.insert(e))))}query(e,t){const r=[];if(!e.intersects(this.rectangle))return[];for(const n of this._points)!e.contains(n.position)&&(0,i.getDistance)(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||r.push(n.particle);if(this._divided)for(const n of this._subs)r.push(...n.query(e,t));return r}queryCircle(e,t,r){return this.query(new n.Circle(e.x,e.y,t),r)}queryRectangle(e,t,r){return this.query(new n.Rectangle(e.x,e.y,t.width,t.height),r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseRange:()=>a,Circle:()=>s,Rectangle:()=>l});var n=r(862),o=r(778),i=r(776);class a{constructor(e,t,r){this.position={x:e,y:t},this.type=r}}class s extends a{constructor(e,t,r){super(e,t,n.RangeType.circle),this.radius=r}contains(e){return(0,o.getDistance)(e,this.position)<=this.radius}intersects(e){const t=this.position,r=e.position,o=Math.abs(r.x-t.x),a=Math.abs(r.y-t.y),c=this.radius;if(e instanceof s||e.type===n.RangeType.circle){return c+e.radius>Math.sqrt(o**i.squareExp+a**i.squareExp)}if(e instanceof l||e.type===n.RangeType.rectangle){const t=e,{width:r,height:n}=t.size;return Math.pow(o-r,i.squareExp)+Math.pow(a-n,i.squareExp)<=c**i.squareExp||o<=c+r&&a<=c+n||o<=r||a<=n}return!1}}class l extends a{constructor(e,t,r,o){super(e,t,n.RangeType.rectangle),this.size={height:o,width:r}}contains(e){const t=this.size.width,r=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+r}intersects(e){if(e instanceof s)return e.intersects(this);const t=this.size.width,r=this.size.height,n=this.position,o=e.position,i=e instanceof l?e.size:{width:0,height:0},a=i.width,c=i.height;return o.x<n.x+t&&o.x+a>n.x&&o.y<n.y+r&&o.y+c>n.y}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RangeType:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retina:()=>a});var n=r(776),o=r(778),i=r(777);class a{constructor(e){this.container=e,this.pixelRatio=n.defaultRatio,this.reduceFactor=n.defaultReduceFactor}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||(0,i.isSsr)()?n.defaultRatio:devicePixelRatio,this.reduceFactor=n.defaultReduceFactor;const r=this.pixelRatio,a=e.canvas;if(a.element){const e=a.element;a.size.width=e.offsetWidth*r,a.size.height=e.offsetHeight*r}const s=t.particles,l=s.move;this.maxSpeed=(0,o.getRangeValue)(l.gravity.maxSpeed)*r,this.sizeAnimationSpeed=(0,o.getRangeValue)(s.size.animation.speed)*r}initParticle(e){const t=e.options,r=this.pixelRatio,n=t.move,i=n.distance,a=e.retina;a.moveDrift=(0,o.getRangeValue)(n.drift)*r,a.moveSpeed=(0,o.getRangeValue)(n.speed)*r,a.sizeAnimationSpeed=(0,o.getRangeValue)(t.size.animation.speed)*r;const s=a.maxDistance;s.horizontal=void 0!==i.horizontal?i.horizontal*r:void 0,s.vertical=void 0!==i.vertical?i.vertical*r:void 0,a.maxSpeed=(0,o.getRangeValue)(n.gravity.maxSpeed)*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventDispatcher:()=>o});var n=r(776);class o{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r)),r.push(t)}dispatchEvent(e,t){const r=this._listeners.get(e);r?.forEach(e=>e(t))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){const r=this._listeners.get(e);if(!r)return;const o=r.length,i=r.indexOf(t);i<n.minIndex||(o===n.deleteCount?this._listeners.delete(e):r.splice(i,n.deleteCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>b.AlterType,AnimatableColor:()=>P.AnimatableColor,AnimationMode:()=>f.AnimationMode,AnimationOptions:()=>I.AnimationOptions,AnimationStatus:()=>C.AnimationStatus,AnimationValueWithRandom:()=>ke.AnimationValueWithRandom,Background:()=>R.Background,BackgroundMask:()=>A.BackgroundMask,BackgroundMaskCover:()=>M.BackgroundMaskCover,BaseRange:()=>s.BaseRange,Circle:()=>s.Circle,ClickEvent:()=>B.ClickEvent,CollisionMode:()=>p.CollisionMode,Collisions:()=>X.Collisions,CollisionsAbsorb:()=>Q.CollisionsAbsorb,CollisionsOverlap:()=>Z.CollisionsOverlap,ColorAnimation:()=>D.ColorAnimation,DestroyType:()=>_.DestroyType,DivEvent:()=>F.DivEvent,DivType:()=>x.DivType,EasingType:()=>T.EasingType,EventType:()=>O.EventType,Events:()=>z.Events,ExternalInteractorBase:()=>o.ExternalInteractorBase,FullScreen:()=>N.FullScreen,GradientType:()=>w.GradientType,HoverEvent:()=>U.HoverEvent,HslAnimation:()=>L.HslAnimation,Interactivity:()=>V.Interactivity,InteractivityDetect:()=>j.InteractivityDetect,InteractorType:()=>S.InteractorType,LimitMode:()=>h.LimitMode,ManualParticle:()=>G.ManualParticle,Modes:()=>W.Modes,Move:()=>oe.Move,MoveAngle:()=>ie.MoveAngle,MoveAttract:()=>ne.MoveAttract,MoveCenter:()=>ae.MoveCenter,MoveDirection:()=>c.MoveDirection,MoveGravity:()=>se.MoveGravity,MovePath:()=>ce.MovePath,MoveTrail:()=>de.MoveTrail,Opacity:()=>me.Opacity,OpacityAnimation:()=>ge.OpacityAnimation,Options:()=>$.Options,OptionsColor:()=>K.OptionsColor,OutMode:()=>m.OutMode,OutModeDirection:()=>d.OutModeDirection,OutModes:()=>le.OutModes,Parallax:()=>H.Parallax,ParticleOutType:()=>E.ParticleOutType,ParticlesBounce:()=>Y.ParticlesBounce,ParticlesBounceFactor:()=>J.ParticlesBounceFactor,ParticlesDensity:()=>he.ParticlesDensity,ParticlesInteractorBase:()=>i.ParticlesInteractorBase,ParticlesNumber:()=>fe.ParticlesNumber,ParticlesNumberLimit:()=>pe.ParticlesNumberLimit,ParticlesOptions:()=>ee.ParticlesOptions,PixelMode:()=>g.PixelMode,Point:()=>a.Point,RangedAnimationOptions:()=>I.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>ke.RangedAnimationValueWithRandom,Rectangle:()=>s.Rectangle,ResizeEvent:()=>q.ResizeEvent,Responsive:()=>we.Responsive,ResponsiveMode:()=>v.ResponsiveMode,RotateDirection:()=>u.RotateDirection,Shadow:()=>te.Shadow,Shape:()=>ye.Shape,Size:()=>ve.Size,SizeAnimation:()=>be.SizeAnimation,Spin:()=>ue.Spin,StartValueType:()=>k.StartValueType,Stroke:()=>re.Stroke,Theme:()=>Se.Theme,ThemeDefault:()=>Ee.ThemeDefault,ThemeMode:()=>y.ThemeMode,ValueWithRandom:()=>ke.ValueWithRandom,Vector:()=>l.Vector,Vector3d:()=>l.Vector3d,ZIndex:()=>_e.ZIndex,alterHsl:()=>xe.alterHsl,animate:()=>Oe.animate,areBoundsInside:()=>je.areBoundsInside,arrayRandomIndex:()=>je.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>Oe.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>Oe.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>Oe.calcPositionFromSize,calcPositionOrRandomFromSize:()=>Oe.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>Oe.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>je.calculateBounds,cancelAnimation:()=>Oe.cancelAnimation,canvasFirstIndex:()=>n.canvasFirstIndex,canvasTag:()=>n.canvasTag,circleBounce:()=>je.circleBounce,circleBounceDataFromParticle:()=>je.circleBounceDataFromParticle,clamp:()=>Oe.clamp,clear:()=>xe.clear,clickRadius:()=>n.clickRadius,cloneStyle:()=>je.cloneStyle,collisionVelocity:()=>Oe.collisionVelocity,colorMix:()=>Te.colorMix,colorToHsl:()=>Te.colorToHsl,colorToRgb:()=>Te.colorToRgb,countOffset:()=>n.countOffset,decayOffset:()=>n.decayOffset,deepExtend:()=>je.deepExtend,defaultAlpha:()=>n.defaultAlpha,defaultAngle:()=>n.defaultAngle,defaultDensityFactor:()=>n.defaultDensityFactor,defaultFps:()=>n.defaultFps,defaultFpsLimit:()=>n.defaultFpsLimit,defaultLoops:()=>n.defaultLoops,defaultOpacity:()=>n.defaultOpacity,defaultRadius:()=>n.defaultRadius,defaultRatio:()=>n.defaultRatio,defaultReduceFactor:()=>n.defaultReduceFactor,defaultRemoveQuantity:()=>n.defaultRemoveQuantity,defaultRetryCount:()=>n.defaultRetryCount,defaultRgbMin:()=>n.defaultRgbMin,defaultTime:()=>n.defaultTime,defaultTransform:()=>n.defaultTransform,defaultTransformValue:()=>n.defaultTransformValue,defaultVelocity:()=>n.defaultVelocity,degToRad:()=>Oe.degToRad,deleteCount:()=>n.deleteCount,divMode:()=>je.divMode,divModeExecute:()=>je.divModeExecute,double:()=>n.double,doublePI:()=>n.doublePI,drawEffect:()=>xe.drawEffect,drawLine:()=>xe.drawLine,drawParticle:()=>xe.drawParticle,drawParticlePlugin:()=>xe.drawParticlePlugin,drawPlugin:()=>xe.drawPlugin,drawShape:()=>xe.drawShape,drawShapeAfterDraw:()=>xe.drawShapeAfterDraw,empty:()=>n.empty,errorPrefix:()=>n.errorPrefix,executeOnSingleOrMultiple:()=>je.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>je.findItemFromSingleOrMultiple,generatedAttribute:()=>n.generatedAttribute,generatedFalse:()=>n.generatedFalse,generatedTrue:()=>n.generatedTrue,getDistance:()=>Oe.getDistance,getDistances:()=>Oe.getDistances,getFullScreenStyle:()=>je.getFullScreenStyle,getHslAnimationFromHsl:()=>Te.getHslAnimationFromHsl,getHslFromAnimation:()=>Te.getHslFromAnimation,getLinkColor:()=>Te.getLinkColor,getLinkRandomColor:()=>Te.getLinkRandomColor,getLogger:()=>je.getLogger,getParticleBaseVelocity:()=>Oe.getParticleBaseVelocity,getParticleDirectionAngle:()=>Oe.getParticleDirectionAngle,getPosition:()=>je.getPosition,getRandom:()=>Oe.getRandom,getRandomRgbColor:()=>Te.getRandomRgbColor,getRangeMax:()=>Oe.getRangeMax,getRangeMin:()=>Oe.getRangeMin,getRangeValue:()=>Oe.getRangeValue,getSize:()=>je.getSize,getStyleFromHsl:()=>Te.getStyleFromHsl,getStyleFromRgb:()=>Te.getStyleFromRgb,hMax:()=>n.hMax,hMin:()=>n.hMin,hPhase:()=>n.hPhase,half:()=>n.half,hasMatchMedia:()=>je.hasMatchMedia,hslToRgb:()=>Te.hslToRgb,hslaToRgba:()=>Te.hslaToRgba,identity:()=>n.identity,initParticleNumericAnimationValue:()=>je.initParticleNumericAnimationValue,inverseFactorNumerator:()=>n.inverseFactorNumerator,isArray:()=>Pe.isArray,isBoolean:()=>Pe.isBoolean,isDivModeEnabled:()=>je.isDivModeEnabled,isFunction:()=>Pe.isFunction,isInArray:()=>je.isInArray,isNull:()=>Pe.isNull,isNumber:()=>Pe.isNumber,isObject:()=>Pe.isObject,isPointInside:()=>je.isPointInside,isSsr:()=>je.isSsr,isString:()=>Pe.isString,itemFromArray:()=>je.itemFromArray,itemFromSingleOrMultiple:()=>je.itemFromSingleOrMultiple,lFactor:()=>n.lFactor,lMax:()=>n.lMax,lMin:()=>n.lMin,lengthOffset:()=>n.lengthOffset,loadFont:()=>je.loadFont,loadMinIndex:()=>n.loadMinIndex,loadOptions:()=>Ce.loadOptions,loadParticlesOptions:()=>Ce.loadParticlesOptions,loadRandomFactor:()=>n.loadRandomFactor,manualCount:()=>n.manualCount,manualDefaultPosition:()=>n.manualDefaultPosition,midColorValue:()=>n.midColorValue,millisecondsToSeconds:()=>n.millisecondsToSeconds,minCoordinate:()=>n.minCoordinate,minCount:()=>n.minCount,minFpsLimit:()=>n.minFpsLimit,minIndex:()=>n.minIndex,minLimit:()=>n.minLimit,minRetries:()=>n.minRetries,minStrokeWidth:()=>n.minStrokeWidth,minVelocity:()=>n.minVelocity,minZ:()=>n.minZ,minimumLength:()=>n.minimumLength,minimumSize:()=>n.minimumSize,mix:()=>Oe.mix,mouseDownEvent:()=>n.mouseDownEvent,mouseLeaveEvent:()=>n.mouseLeaveEvent,mouseMoveEvent:()=>n.mouseMoveEvent,mouseOutEvent:()=>n.mouseOutEvent,mouseUpEvent:()=>n.mouseUpEvent,none:()=>n.none,one:()=>n.one,originPoint:()=>n.originPoint,paintBase:()=>xe.paintBase,paintImage:()=>xe.paintImage,parseAlpha:()=>Oe.parseAlpha,percentDenominator:()=>n.percentDenominator,phaseNumerator:()=>n.phaseNumerator,posOffset:()=>n.posOffset,qTreeCapacity:()=>n.qTreeCapacity,quarter:()=>n.quarter,randomColorValue:()=>n.randomColorValue,randomInRange:()=>Oe.randomInRange,rangeColorToHsl:()=>Te.rangeColorToHsl,rangeColorToRgb:()=>Te.rangeColorToRgb,rectBounce:()=>je.rectBounce,removeDeleteCount:()=>n.removeDeleteCount,removeMinIndex:()=>n.removeMinIndex,resizeEvent:()=>n.resizeEvent,rgbFactor:()=>n.rgbFactor,rgbMax:()=>n.rgbMax,rgbToHsl:()=>Te.rgbToHsl,rollFactor:()=>n.rollFactor,sMax:()=>n.sMax,sMin:()=>n.sMin,sNormalizedOffset:()=>n.sNormalizedOffset,safeIntersectionObserver:()=>je.safeIntersectionObserver,safeMatchMedia:()=>je.safeMatchMedia,safeMutationObserver:()=>je.safeMutationObserver,setAnimationFunctions:()=>Oe.setAnimationFunctions,setLogger:()=>je.setLogger,setRandom:()=>Oe.setRandom,setRangeValue:()=>Oe.setRangeValue,sextuple:()=>n.sextuple,singleDivModeExecute:()=>je.singleDivModeExecute,sizeFactor:()=>n.sizeFactor,squareExp:()=>n.squareExp,stringToAlpha:()=>Te.stringToAlpha,stringToRgb:()=>Te.stringToRgb,subdivideCount:()=>n.subdivideCount,threeQuarter:()=>n.threeQuarter,touchCancelEvent:()=>n.touchCancelEvent,touchDelay:()=>n.touchDelay,touchEndEvent:()=>n.touchEndEvent,touchEndLengthOffset:()=>n.touchEndLengthOffset,touchMoveEvent:()=>n.touchMoveEvent,touchStartEvent:()=>n.touchStartEvent,triple:()=>n.triple,tryCountIncrement:()=>n.tryCountIncrement,updateAnimation:()=>je.updateAnimation,updateColor:()=>Te.updateColor,updateColorValue:()=>Te.updateColorValue,visibilityChangeEvent:()=>n.visibilityChangeEvent,zIndexFactorOffset:()=>n.zIndexFactorOffset});var n=r(776),o=r(866),i=r(867),a=r(859),s=r(861),l=r(780),c=r(779),u=r(868),d=r(785),f=r(782),p=r(824),h=r(847),m=r(840),g=r(786),y=r(816),v=r(813),b=r(791),_=r(784),w=r(869),S=r(856),E=r(858),k=r(787),x=r(806),T=r(870),O=r(795),C=r(783),j=r(794),P=r(819),I=r(822),R=r(797),A=r(799),M=r(800),D=r(821),N=r(801),L=r(820),B=r(804),F=r(805),z=r(803),U=r(807),H=r(808),q=r(809),V=r(802),W=r(810),G=r(811),$=r(796),K=r(798),Y=r(827),J=r(828),X=r(823),Q=r(825),Z=r(826),ee=r(818),te=r(848),re=r(852),ne=r(833),oe=r(831),ie=r(832),ae=r(834),se=r(835),le=r(839),ce=r(836),ue=r(841),de=r(837),fe=r(844),pe=r(846),he=r(845),me=r(842),ge=r(843),ye=r(849),ve=r(850),be=r(851),_e=r(853),we=r(812),Se=r(814),Ee=r(815),ke=r(829),xe=r(790),Te=r(792),Oe=r(778),Ce=r(817),je=r(777),Pe=r(781)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ExternalInteractorBase:()=>o});var n=r(856);class o{constructor(e){this.type=n.InteractorType.external,this.container=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesInteractorBase:()=>o});var n=r(856);class o{constructor(e){this.type=n.InteractorType.particles,this.container=e}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RotateDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{GradientType:()=>n}),function(e){e.linear="linear",e.radial="radial",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EasingType:()=>n}),function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t);r(872),r(873),r(874),r(875),r(876),r(877),r(878),r(879),r(880),r(881),r(882),r(883),r(884),r(885),r(886),r(887),r(888),r(889),r(890),r(891),r(892),r(893),r(894),r(895),r(896),r(897),r(898),r(899),r(900),r(901),r(902),r(903),r(904),r(905),r(906),r(907),r(908),r(909),r(910),r(911),r(912),r(913),r(914),r(915),r(916),r(917),r(918),r(919),r(920),r(921),r(922),r(923),r(924),r(925),r(926),r(927),r(928),r(929),r(930),r(931),r(932),r(933),r(934),r(935),r(936),r(937),r(938),r(939),r(940),r(941),r(942),r(943),r(944),r(945),r(946),r(947),r(948),r(949),r(950),r(951),r(952),r(953),r(954),r(955),r(956),r(957),r(958),r(959),r(960),r(961),r(962),r(963),r(964),r(965),r(966),r(967),r(968),r(969),r(970)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(296),o=r(773);const i=e=>{const t=e.id??"tsparticles";return(0,n.useEffect)(()=>{let r;return o.tsParticles.load({id:t,url:e.url,options:e.options}).then(t=>{var n;r=t,null==(n=e.particlesLoaded)||n.call(e,t)}),()=>{null==r||r.destroy()}},[t,e,e.url,e.options]),(0,n.jsx)("div",{id:t,className:e.className})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPreset:()=>p});var n=r(973),o=r(999),i=r(1017),a=r(1023),s=r(1028),l=r(1034),c=r(1038),u=r(1041),d=r(1046),f=r(1051);async function p(e){await async function(e,t=!0){await(0,n.loadBasic)(e,!1),await(0,c.loadSquareShape)(e,!1),await(0,o.loadEmittersPlugin)(e,!1),await(0,a.loadMotionPlugin)(e,!1),await(0,d.loadWobbleUpdater)(e,!1),await(0,s.loadRollUpdater)(e,!1),await(0,l.loadRotateUpdater)(e,!1),await(0,u.loadTiltUpdater)(e,!1),await(0,i.loadLifeUpdater)(e,!1),await e.addPreset("confetti",f.options,!1),await e.refresh(t)}(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBasic:()=>f});var n=r(974),o=r(977),i=r(980),a=r(982),s=r(984),l=r(986),c=r(988),u=r(995),d=r(997);async function f(e,t=!0){e.checkVersion("3.9.1"),await(0,a.loadHexColorPlugin)(e,!1),await(0,s.loadHslColorPlugin)(e,!1),await(0,u.loadRgbColorPlugin)(e,!1),await(0,n.loadBaseMover)(e,!1),await(0,o.loadCircleShape)(e,!1),await(0,i.loadColorUpdater)(e,!1),await(0,l.loadOpacityUpdater)(e,!1),await(0,c.loadOutModesUpdater)(e,!1),await(0,d.loadSizeUpdater)(e,!1),await e.refresh(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBaseMover:()=>o});var n=r(975);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addMover("base",()=>Promise.resolve(new n.BaseMover),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseMover:()=>i});var n=r(773),o=r(976);class i{init(e){const t=e.options.move.gravity;e.gravity={enable:t.enable,acceleration:(0,n.getRangeValue)(t.acceleration),inverse:t.inverse},(0,o.initSpin)(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){const r=e.options,i=r.move;if(!i.enable)return;const a=e.container,s=a.retina.pixelRatio;e.retina.moveSpeed??=(0,n.getRangeValue)(i.speed)*s,e.retina.moveDrift??=(0,n.getRangeValue)(e.options.move.drift)*s;const l=(0,o.getProximitySpeedFactor)(e),c=a.retina.reduceFactor,u=e.retina.moveSpeed,d=e.retina.moveDrift,f=(0,n.getRangeMax)(r.size.value)*s,p=u*(i.size?e.getRadius()/f:1)*l*(t.factor||1)/2,h=e.retina.maxSpeed??a.retina.maxSpeed;i.spin.enable?(0,o.spin)(e,p,c):(0,o.move)(e,i,p,h,d,c,t),(0,o.applyDistance)(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDistance:()=>d,applyPath:()=>h,getProximitySpeedFactor:()=>m,initSpin:()=>g,move:()=>f,spin:()=>p});var n=r(773);const o=.5,i=0,a=1,s=60,l=0,c=.01,u=2*Math.PI;function d(e){const t=e.initialPosition,{dx:r,dy:a}=(0,n.getDistances)(t,e.position),s=Math.abs(r),l=Math.abs(a),{maxDistance:c}=e.retina,u=c.horizontal,d=c.vertical;if(!u&&!d)return;if(!((u&&s>=u)??!1)&&!((d&&l>=d)??!1)||e.misplaced){if((!u||s<u)&&(!d||l<d)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const r=e.position,o=e.velocity;u&&(r.x<t.x&&o.x<i||r.x>t.x&&o.x>i)&&(o.x*=-(0,n.getRandom)()),d&&(r.y<t.y&&o.y<i||r.y>t.y&&o.y>i)&&(o.y*=-(0,n.getRandom)())}}else e.misplaced=!!u&&s>u||!!d&&l>d,u&&(e.velocity.x=e.velocity.y*o-e.velocity.x),d&&(e.velocity.y=e.velocity.x*o-e.velocity.y)}function f(e,t,r,n,o,l,c){h(e,c);const u=e.gravity,d=u?.enable&&u.inverse?-a:a;o&&r&&(e.velocity.x+=o*c.factor/(s*r)),u?.enable&&r&&(e.velocity.y+=d*(u.acceleration*c.factor)/(s*r));const f=e.moveDecay;e.velocity.multTo(f);const p=e.velocity.mult(r);u?.enable&&n>i&&(!u.inverse&&p.y>=i&&p.y>=n||u.inverse&&p.y<=i&&p.y<=-n)&&(p.y=d*n,r&&(e.velocity.y=p.y/r));const m=e.options.zIndex,g=(a-e.zIndexFactor)**m.velocityRate;p.multTo(g),p.multTo(l);const{position:y}=e;y.addTo(p),t.vibrate&&(y.x+=Math.sin(y.x*Math.cos(y.y))*l,y.y+=Math.cos(y.y*Math.sin(y.x))*l)}function p(e,t,r){const i=e.container;if(!e.spin)return;const s=e.spin.direction===n.RotateDirection.clockwise,u={x:s?Math.cos:Math.sin,y:s?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*u.x(e.spin.angle)*r,e.position.y=e.spin.center.y+e.spin.radius*u.y(e.spin.angle)*r,e.spin.radius+=e.spin.acceleration*r;const d=Math.max(i.canvas.size.width,i.canvas.size.height),f=d*o;e.spin.radius>f?(e.spin.radius=f,e.spin.acceleration*=-a):e.spin.radius<l&&(e.spin.radius=l,e.spin.acceleration*=-a),e.spin.angle+=t*c*(a-e.spin.radius/d)}function h(e,t){const r=e.options.move.path;if(!r.enable)return;if(e.lastPathTime<=e.pathDelay)return void(e.lastPathTime+=t.value);const o=e.pathGenerator?.generate(e,t);o&&e.velocity.addTo(o),r.clamp&&(e.velocity.x=(0,n.clamp)(e.velocity.x,-a,a),e.velocity.y=(0,n.clamp)(e.velocity.y,-a,a)),e.lastPathTime-=e.pathDelay}function m(e){return e.slow.inRange?e.slow.factor:a}function g(e){const t=e.container,r=e.options.move.spin;if(!r.enable)return;const o=r.position??{x:50,y:50},a={x:.01*o.x*t.canvas.size.width,y:.01*o.y*t.canvas.size.height},s=e.getPosition(),l=(0,n.getDistance)(s,a),c=(0,n.getRangeValue)(r.acceleration);e.retina.spinAcceleration=c*t.retina.pixelRatio,e.spin={center:a,direction:e.velocity.x>=i?n.RotateDirection.clockwise:n.RotateDirection.counterClockwise,angle:(0,n.getRandom)()*u,radius:l,acceleration:e.retina.spinAcceleration}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadCircleShape:()=>o});var n=r(978);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addShape(new n.CircleDrawer,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CircleDrawer:()=>i});var n=r(773),o=r(979);class i{constructor(){this.validTypes=["circle"]}draw(e){(0,o.drawCircle)(e)}getSidesCount(){return 12}particleInit(e,t){const r=t.shapeData,o=r?.angle??{max:360,min:0};t.circleRange=(0,n.isObject)(o)?{min:(0,n.degToRad)(o.min),max:(0,n.degToRad)(o.max)}:{min:0,max:(0,n.degToRad)(o)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawCircle:()=>a});const n=2*Math.PI,o=0,i={x:0,y:0};function a(e){const{context:t,particle:r,radius:a}=e;r.circleRange||(r.circleRange={min:o,max:n});const s=r.circleRange;t.arc(i.x,i.y,a,s.min,s.max,!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadColorUpdater:()=>o});var n=r(981);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("color",t=>Promise.resolve(new n.ColorUpdater(t,e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ColorUpdater:()=>o});var n=r(773);class o{constructor(e,t){this._container=e,this._engine=t}init(e){const t=(0,n.rangeColorToHsl)(this._engine,e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=(0,n.getHslAnimationFromHsl)(t,e.options.color.animation,this._container.retina.reduceFactor))}isEnabled(e){const{h:t,s:r,l:n}=e.options.color.animation,{color:o}=e;return!e.destroyed&&!e.spawning&&(void 0!==o?.h.value&&t.enable||void 0!==o?.s.value&&r.enable||void 0!==o?.l.value&&n.enable)}update(e,t){(0,n.updateColor)(e.color,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHexColorPlugin:()=>o});var n=r(983);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addColorManager(new n.HexColorManager,t)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{HexColorManager:()=>a}),function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"}(n||(n={}));const o=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class a{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(e){return this._parseString(e.value)}handleRangeColor(e){return this._parseString(e.value)}parseString(e){return this._parseString(e)}_parseString(e){if("string"!=typeof e)return;if(!e?.startsWith(this.stringPrefix))return;const t=e.replace(o,(e,t,r,n,o)=>t+t+r+r+n+n+(void 0!==o?o+o:"")),r=i.exec(t);return r?{a:void 0!==r[n.a]?parseInt(r[n.a],16)/255:1,b:parseInt(r[n.b],16),g:parseInt(r[n.g],16),r:parseInt(r[n.r],16)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHslColorPlugin:()=>o});var n=r(985);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addColorManager(new n.HslColorManager,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslColorManager:()=>i});var n,o=r(773);!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(n||(n={}));class i{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.s&&void 0!==t.l)return(0,o.hslToRgb)(t)}handleRangeColor(e){const t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.l)return(0,o.hslToRgb)({h:(0,o.getRangeValue)(t.h),l:(0,o.getRangeValue)(t.l),s:(0,o.getRangeValue)(t.s)})}parseString(e){if(!e.startsWith("hsl"))return;const t=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?(0,o.hslaToRgba)({a:t.length>4?(0,o.parseAlpha)(t[n.a]):1,h:parseInt(t[n.h],10),l:parseInt(t[n.l],10),s:parseInt(t[n.s],10)}):void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOpacityUpdater:()=>o});var n=r(987);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("opacity",e=>Promise.resolve(new n.OpacityUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityUpdater:()=>o});var n=r(773);class o{constructor(e){this.container=e}init(e){const t=e.options.opacity;e.opacity=(0,n.initParticleNumericAnimationValue)(t,1);const r=t.animation;r.enable&&(e.opacity.velocity=(0,n.getRangeValue)(r.speed)/n.percentDenominator*this.container.retina.reduceFactor,r.sync||(e.opacity.velocity*=(0,n.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&(0,n.updateAnimation)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOutModesUpdater:()=>o});var n=r(989);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("outModes",e=>Promise.resolve(new n.OutOfCanvasUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOfCanvasUpdater:()=>l});var n=r(773),o=r(990),i=r(992),a=r(993),s=r(994);class l{constructor(e){this._addUpdaterIfMissing=(e,t,r)=>{const n=e.options.move.outModes;!this.updaters.has(t)&&((e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t)(n,t)&&this.updaters.set(t,r(this.container))},this._updateOutMode=(e,t,r,n)=>{for(const o of this.updaters.values())o.update(e,n,t,r)},this.container=e,this.updaters=new Map}init(e){this._addUpdaterIfMissing(e,n.OutMode.bounce,e=>new o.BounceOutMode(e)),this._addUpdaterIfMissing(e,n.OutMode.out,e=>new s.OutOutMode(e)),this._addUpdaterIfMissing(e,n.OutMode.destroy,e=>new i.DestroyOutMode(e)),this._addUpdaterIfMissing(e,n.OutMode.none,e=>new a.NoneOutMode(e))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){const r=e.options.move.outModes;this._updateOutMode(e,t,r.bottom??r.default,n.OutModeDirection.bottom),this._updateOutMode(e,t,r.left??r.default,n.OutModeDirection.left),this._updateOutMode(e,t,r.right??r.default,n.OutModeDirection.right),this._updateOutMode(e,t,r.top??r.default,n.OutModeDirection.top)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BounceOutMode:()=>i});var n=r(773),o=r(991);class i{constructor(e){this.container=e,this.modes=[n.OutMode.bounce,n.OutMode.split]}update(e,t,r,i){if(!this.modes.includes(i))return;const a=this.container;let s=!1;for(const n of a.plugins.values())if(void 0!==n.particleBounce&&(s=n.particleBounce(e,r,t)),s)break;if(s)return;const l=e.getPosition(),c=e.offset,u=e.getRadius(),d=(0,n.calculateBounds)(l,u),f=a.canvas.size;(0,o.bounceHorizontal)({particle:e,outMode:i,direction:t,bounds:d,canvasSize:f,offset:c,size:u}),(0,o.bounceVertical)({particle:e,outMode:i,direction:t,bounds:d,canvasSize:f,offset:c,size:u})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bounceHorizontal:()=>a,bounceVertical:()=>s});var n=r(773);const o=0,i=0;function a(e){if(e.outMode!==n.OutMode.bounce&&e.outMode!==n.OutMode.split||e.direction!==n.OutModeDirection.left&&e.direction!==n.OutModeDirection.right)return;e.bounds.right<i&&e.direction===n.OutModeDirection.left?e.particle.position.x=e.size+e.offset.x:e.bounds.left>e.canvasSize.width&&e.direction===n.OutModeDirection.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let r=!1;if(e.direction===n.OutModeDirection.right&&e.bounds.right>=e.canvasSize.width&&t>o||e.direction===n.OutModeDirection.left&&e.bounds.left<=i&&t<o){const t=(0,n.getRangeValue)(e.particle.options.bounce.horizontal.value);e.particle.velocity.x*=-t,r=!0}if(!r)return;const a=e.offset.x+e.size;e.bounds.right>=e.canvasSize.width&&e.direction===n.OutModeDirection.right?e.particle.position.x=e.canvasSize.width-a:e.bounds.left<=i&&e.direction===n.OutModeDirection.left&&(e.particle.position.x=a),e.outMode===n.OutMode.split&&e.particle.destroy()}function s(e){if(e.outMode!==n.OutMode.bounce&&e.outMode!==n.OutMode.split||e.direction!==n.OutModeDirection.bottom&&e.direction!==n.OutModeDirection.top)return;e.bounds.bottom<i&&e.direction===n.OutModeDirection.top?e.particle.position.y=e.size+e.offset.y:e.bounds.top>e.canvasSize.height&&e.direction===n.OutModeDirection.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let r=!1;if(e.direction===n.OutModeDirection.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>o||e.direction===n.OutModeDirection.top&&e.bounds.top<=i&&t<o){const t=(0,n.getRangeValue)(e.particle.options.bounce.vertical.value);e.particle.velocity.y*=-t,r=!0}if(!r)return;const a=e.offset.y+e.size;e.bounds.bottom>=e.canvasSize.height&&e.direction===n.OutModeDirection.bottom?e.particle.position.y=e.canvasSize.height-a:e.bounds.top<=i&&e.direction===n.OutModeDirection.top&&(e.particle.position.y=a),e.outMode===n.OutMode.split&&e.particle.destroy()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DestroyOutMode:()=>o});var n=r(773);class o{constructor(e){this.container=e,this.modes=[n.OutMode.destroy]}update(e,t,r,o){if(!this.modes.includes(o))return;const i=this.container;switch(e.outType){case n.ParticleOutType.normal:case n.ParticleOutType.outside:if((0,n.isPointInside)(e.position,i.canvas.size,n.Vector.origin,e.getRadius(),t))return;break;case n.ParticleOutType.inside:{const{dx:t,dy:r}=(0,n.getDistances)(e.position,e.moveCenter),{x:o,y:i}=e.velocity;if(o<0&&t>e.moveCenter.radius||i<0&&r>e.moveCenter.radius||o>=0&&t<-e.moveCenter.radius||i>=0&&r<-e.moveCenter.radius)return;break}}i.particles.remove(e,e.group,!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoneOutMode:()=>o});var n=r(773);class o{constructor(e){this.container=e,this.modes=[n.OutMode.none]}update(e,t,r,o){if(!this.modes.includes(o))return;if((e.options.move.distance.horizontal&&(t===n.OutModeDirection.left||t===n.OutModeDirection.right))??(e.options.move.distance.vertical&&(t===n.OutModeDirection.top||t===n.OutModeDirection.bottom)))return;const i=e.options.move.gravity,a=this.container,s=a.canvas.size,l=e.getRadius();if(i.enable){const r=e.position;(!i.inverse&&r.y>s.height+l&&t===n.OutModeDirection.bottom||i.inverse&&r.y<-l&&t===n.OutModeDirection.top)&&a.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=s.height+l||e.velocity.y<0&&e.position.y>=-l||e.velocity.x>0&&e.position.x<=s.width+l||e.velocity.x<0&&e.position.x>=-l)return;(0,n.isPointInside)(e.position,a.canvas.size,n.Vector.origin,l,t)||a.particles.remove(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOutMode:()=>o});var n=r(773);class o{constructor(e){this.container=e,this.modes=[n.OutMode.out]}update(e,t,r,o){if(!this.modes.includes(o))return;const i=this.container;switch(e.outType){case n.ParticleOutType.inside:{const{x:t,y:r}=e.velocity,o=n.Vector.origin;o.length=e.moveCenter.radius,o.angle=e.velocity.angle+Math.PI,o.addTo(n.Vector.create(e.moveCenter));const{dx:a,dy:s}=(0,n.getDistances)(e.position,o);if(t<=0&&a>=0||r<=0&&s>=0||t>=0&&a<=0||r>=0&&s<=0)return;e.position.x=Math.floor((0,n.randomInRange)({min:0,max:i.canvas.size.width})),e.position.y=Math.floor((0,n.randomInRange)({min:0,max:i.canvas.size.height}));const{dx:l,dy:c}=(0,n.getDistances)(e.position,e.moveCenter);e.direction=Math.atan2(-c,-l),e.velocity.angle=e.direction;break}default:if((0,n.isPointInside)(e.position,i.canvas.size,n.Vector.origin,e.getRadius(),t))return;switch(e.outType){case n.ParticleOutType.outside:{e.position.x=Math.floor((0,n.randomInRange)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,n.randomInRange)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:t,dy:r}=(0,n.getDistances)(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(r,t),e.velocity.angle=e.direction);break}case n.ParticleOutType.normal:{const r=e.options.move.warp,o=i.canvas.size,a={bottom:o.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:o.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},s=e.getRadius(),l=(0,n.calculateBounds)(e.position,s);t===n.OutModeDirection.right&&l.left>o.width+e.offset.x?(e.position.x=a.left,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*o.height,e.initialPosition.y=e.position.y)):t===n.OutModeDirection.left&&l.right<-e.offset.x&&(e.position.x=a.right,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*o.height,e.initialPosition.y=e.position.y)),t===n.OutModeDirection.bottom&&l.top>o.height+e.offset.y?(r||(e.position.x=(0,n.getRandom)()*o.width,e.initialPosition.x=e.position.x),e.position.y=a.top,e.initialPosition.y=e.position.y):t===n.OutModeDirection.top&&l.bottom<-e.offset.y&&(r||(e.position.x=(0,n.getRandom)()*o.width,e.initialPosition.x=e.position.x),e.position.y=a.bottom,e.initialPosition.y=e.position.y);break}}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRgbColorPlugin:()=>o});var n=r(996);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addColorManager(new n.RgbColorManager,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RgbColorManager:()=>i});var n,o=r(773);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(n||(n={}));class i{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const t=e.value.rgb??e.value;if(void 0!==t.r)return t}handleRangeColor(e){const t=e.value.rgb??e.value;if(void 0!==t.r)return{r:(0,o.getRangeValue)(t.r),g:(0,o.getRangeValue)(t.g),b:(0,o.getRangeValue)(t.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const t=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?{a:t.length>4?(0,o.parseAlpha)(t[n.a]):1,b:parseInt(t[n.b],10),g:parseInt(t[n.g],10),r:parseInt(t[n.r],10)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSizeUpdater:()=>o});var n=r(998);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("size",()=>Promise.resolve(new n.SizeUpdater),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeUpdater:()=>o});var n=r(773);class o{init(e){const t=e.container,r=e.options.size.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/n.percentDenominator*t.retina.reduceFactor,r.sync||(e.size.velocity*=(0,n.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,t){this.isEnabled(e)&&(0,n.updateAnimation)(e,e.size,!0,e.options.size.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterClickMode:()=>a.EmitterClickMode,EmitterShapeBase:()=>i.EmitterShapeBase,loadEmittersPlugin:()=>s});var n=r(1e3),o=r(1010),i=(r(1011),r(1012)),a=(r(1013),r(1014),r(1015),r(1007));r(1016);async function s(e,t=!0){e.checkVersion("3.9.1"),e.emitterShapeManager||(e.emitterShapeManager=new o.ShapeManager(e)),e.addEmitterShapeGenerator||(e.addEmitterShapeGenerator=(t,r)=>{e.emitterShapeManager?.addShapeGenerator(t,r)});const r=new n.EmittersPlugin(e);await e.addPlugin(r,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPlugin:()=>s});var n=r(773),o=r(1001),i=r(1007),a=r(1008);class s{constructor(e){this._engine=e,this.id="emitters"}getPlugin(e){return Promise.resolve(new a.Emitters(this._engine,e))}loadOptions(e,t){if(!this.needsPlugin(e)&&!this.needsPlugin(t))return;t?.emitters&&(e.emitters=(0,n.executeOnSingleOrMultiple)(t.emitters,e=>{const t=new o.Emitter;return t.load(e),t}));const r=t?.interactivity?.modes?.emitters;if(r)if((0,n.isArray)(r))e.interactivity.modes.emitters={random:{count:1,enable:!0},value:r.map(e=>{const t=new o.Emitter;return t.load(e),t})};else{const t=r;if(void 0!==t.value){const r=1;if((0,n.isArray)(t.value))e.interactivity.modes.emitters={random:{count:t.random.count??r,enable:t.random.enable??!1},value:t.value.map(e=>{const t=new o.Emitter;return t.load(e),t})};else{const n=new o.Emitter;n.load(t.value),e.interactivity.modes.emitters={random:{count:t.random.count??r,enable:t.random.enable??!1},value:n}}}else{(e.interactivity.modes.emitters={random:{count:1,enable:!1},value:new o.Emitter}).value.load(r)}}}needsPlugin(e){if(!e)return!1;const t=e.emitters;return(0,n.isArray)(t)&&!!t.length||void 0!==t||!!e.interactivity?.events?.onClick?.mode&&(0,n.isInArray)(i.EmitterClickMode.emitter,e.interactivity.events.onClick.mode)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitter:()=>l});var n=r(773),o=r(1002),i=r(1003),a=r(1004),s=r(1006);class l{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new o.EmitterLife,this.rate=new i.EmitterRate,this.shape=new a.EmitterShape,this.startCount=0}load(e){(0,n.isNull)(e)||(void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.size&&(this.size||(this.size=new s.EmitterSize),this.size.load(e.size)),void 0!==e.direction&&(this.direction=e.direction),this.domId=e.domId,void 0!==e.fill&&(this.fill=e.fill),this.life.load(e.life),this.name=e.name,this.particles=(0,n.executeOnSingleOrMultiple)(e.particles,e=>(0,n.deepExtend)({},e)),this.rate.load(e.rate),this.shape.load(e.shape),void 0!==e.position&&(this.position={},void 0!==e.position.x&&(this.position.x=(0,n.setRangeValue)(e.position.x)),void 0!==e.position.y&&(this.position.y=(0,n.setRangeValue)(e.position.y))),void 0!==e.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new n.AnimatableColor),this.spawnColor.load(e.spawnColor)),void 0!==e.startCount&&(this.startCount=e.startCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterLife:()=>o});var n=r(773);class o{constructor(){this.wait=!1}load(e){(0,n.isNull)(e)||(void 0!==e.count&&(this.count=e.count),void 0!==e.delay&&(this.delay=(0,n.setRangeValue)(e.delay)),void 0!==e.duration&&(this.duration=(0,n.setRangeValue)(e.duration)),void 0!==e.wait&&(this.wait=e.wait))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterRate:()=>o});var n=r(773);class o{constructor(){this.quantity=1,this.delay=.1}load(e){(0,n.isNull)(e)||(void 0!==e.quantity&&(this.quantity=(0,n.setRangeValue)(e.quantity)),void 0!==e.delay&&(this.delay=(0,n.setRangeValue)(e.delay)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShape:()=>i});var n=r(773),o=r(1005);class i{constructor(){this.options={},this.replace=new o.EmitterShapeReplace,this.type="square"}load(e){(0,n.isNull)(e)||(void 0!==e.options&&(this.options=(0,n.deepExtend)({},e.options??{})),this.replace.load(e.replace),void 0!==e.type&&(this.type=e.type))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeReplace:()=>o});var n=r(773);class o{constructor(){this.color=!1,this.opacity=!1}load(e){(0,n.isNull)(e)||(void 0!==e.color&&(this.color=e.color),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterSize:()=>o});var n=r(773);class o{constructor(){this.mode=n.PixelMode.percent,this.height=0,this.width=0}load(e){(0,n.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.height&&(this.height=e.height),void 0!==e.width&&(this.width=e.width))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EmitterClickMode:()=>n}),function(e){e.emitter="emitter"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitters:()=>s});var n=r(773),o=r(1001),i=r(1007),a=r(1009);class s{constructor(e,t){this.container=t,this._engine=e,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]};t.getEmitter=e=>void 0===e||(0,n.isNumber)(e)?this.array[e??0]:this.array.find(t=>t.name===e),t.addEmitter=async(e,t)=>this.addEmitter(e,t),t.removeEmitter=e=>{const r=t.getEmitter(e);r&&this.removeEmitter(r)},t.playEmitter=e=>{const r=t.getEmitter(e);r&&r.externalPlay()},t.pauseEmitter=e=>{const r=t.getEmitter(e);r&&r.externalPause()}}async addEmitter(e,t){const r=new o.Emitter;r.load(e);const n=new a.EmitterInstance(this._engine,this,this.container,r,t);return await n.init(),this.array.push(n),n}handleClickMode(e){const t=this.emitters,r=this.interactivityEmitters;if(e!==i.EmitterClickMode.emitter)return;let o;if(r&&(0,n.isArray)(r.value)){const e=0;if(r.value.length>e&&r.random.enable){o=[];const e=[];for(let t=0;t<r.random.count;t++){const i=(0,n.arrayRandomIndex)(r.value);e.includes(i)&&e.length<r.value.length?t--:(e.push(i),o.push((0,n.itemFromArray)(r.value,i)))}}else o=r.value}else o=r?.value;const a=o??t,s=this.container.interactivity.mouse.clickPosition;(0,n.executeOnSingleOrMultiple)(a,async e=>{await this.addEmitter(e,s)})}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters)if((0,n.isArray)(this.emitters))for(const e of this.emitters)await this.addEmitter(e);else await this.addEmitter(this.emitters)}pause(){for(const e of this.array)e.pause()}play(){for(const e of this.array)e.play()}removeEmitter(e){const t=this.array.indexOf(e);t>=0&&this.array.splice(t,1)}resize(){for(const e of this.array)e.resize()}stop(){this.array=[]}update(e){for(const t of this.array)t.update(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterInstance:()=>s});var n=r(773),o=r(1001),i=r(1006);function a(e,t){e.color?e.color.value=t:e.color={value:t}}class s{constructor(e,t,r,i,a){this.emitters=t,this.container=r,this._destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{if(this._paused)return;const e=void 0!==this.options.life?.duration?(0,n.getRangeValue)(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==e&&e>0&&(this._duration=e*n.millisecondsToSeconds)},this._setColorAnimation=(e,t,r,o=1)=>{const i=this.container;if(!e.enable)return t;const a=(0,n.randomInRange)(e.offset),s=(0,n.getRangeValue)(this.options.rate.delay),l=i.retina.reduceFactor?s*n.millisecondsToSeconds/i.retina.reduceFactor:1/0;return(t+(0,n.getRangeValue)(e.speed??0)*i.fpsLimit/l+a*o)%r},this._engine=e,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,i instanceof o.Emitter?this.options=i:(this.options=new o.Emitter,this.options.load(i)),this._spawnDelay=r.retina.reduceFactor?(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/r.retina.reduceFactor:1/0,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let s=(0,n.deepExtend)({},this.options.particles);if(s??={},s.move??={},s.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,n.rangeColorToHsl)(this._engine,this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=s,this._size=this._calcSize(),this.size=(0,n.getSize)(this._size,this.container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const e=document.getElementById(this.options.domId);e&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(e,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(e))}const l=this.options.shape,c=this._engine.emitterShapeManager?.getShapeGenerator(l.type);c&&(this._shape=c.generate(this.position,this.size,this.fill,l.options)),this._engine.dispatchEvent("emitterCreated",{container:r,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await(this._shape?.init())}pause(){this._paused||delete this._emitDelay}play(){if(this._paused)return;if(!(this._lifeCount>0||this._immortal)&&this.options.life.count||!(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0)))return;const e=this.container;if(void 0===this._emitDelay){const t=(0,n.getRangeValue)(this.options.rate.delay);this._emitDelay=e.retina.reduceFactor?t*n.millisecondsToSeconds/e.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){const e=this._initialPosition,t=this.container;this.position=e&&(0,n.isPointInside)(e,t.canvas.size,n.Vector.origin)?e:this._calcPosition(),this._size=this._calcSize(),this.size=(0,n.getSize)(this._size,t.canvas.size),this._shape?.resize(this.position,this.size)}update(e){if(this._paused)return;const t=this.container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=e.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=t.retina.reduceFactor?(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/t.retina.reduceFactor:1/0):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=e.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=e.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){const e=this.container;if(this.options.domId){const t=document.getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect(),n=e.retina.pixelRatio;return{x:(r.x+.5*r.width)*n,y:(r.y+.5*r.height)*n}}}return(0,n.calcPositionOrRandomFromSizeRanged)({size:e.canvas.size,position:this.options.position})}_calcSize(){const e=this.container;if(this.options.domId){const t=document.getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect();return{width:r.width*e.retina.pixelRatio,height:r.height*e.retina.pixelRatio,mode:n.PixelMode.precise}}}return this.options.size??(()=>{const e=new i.EmitterSize;return e.load({height:0,mode:n.PixelMode.percent,width:0}),e})()}_emit(){if(this._paused)return;const e=(0,n.getRangeValue)(this.options.rate.quantity);this._emitParticles(e)}_emitParticles(e){const t=(0,n.itemFromSingleOrMultiple)(this._particlesOptions),r=this.container.retina.reduceFactor;for(let o=0;o<e*r;o++){const e=(0,n.deepExtend)({},t);if(this.spawnColor){const t=this.options.spawnColor?.animation;if(t){const e={h:360,s:100,l:100},r=3.6;this.spawnColor.h=this._setColorAnimation(t.h,this.spawnColor.h,e.h,r),this.spawnColor.s=this._setColorAnimation(t.s,this.spawnColor.s,e.s),this.spawnColor.l=this._setColorAnimation(t.l,this.spawnColor.l,e.l)}a(e,this.spawnColor)}const r=this.options.shape;let o=this.position;if(this._shape){const t=this._shape.randomPosition();if(t){o=t.position;const n=r.replace;n.color&&t.color&&a(e,t.color),n.opacity&&(e.opacity?e.opacity.value=t.opacity:e.opacity={value:t.opacity})}else o=null}o&&this.container.particles.addParticle(o,e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShapeManager:()=>o});const n=new Map;class o{constructor(e){this._engine=e}addShapeGenerator(e,t){this.getShapeGenerator(e)||n.set(e,t)}getShapeGenerator(e){return n.get(e)}getSupportedShapeGenerators(){return n.keys()}}},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeBase:()=>n});class n{constructor(e,t,r,n){this.position=e,this.size=t,this.fill=r,this.options=n}resize(e,t){this.position=e,this.size=t}}},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadLifeUpdater:()=>o});var n=r(1018);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("life",async e=>Promise.resolve(new n.LifeUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeUpdater:()=>a});var n=r(773),o=r(1019),i=r(1022);class a{constructor(e){this.container=e}init(e){const t=this.container,r=e.options.life;r&&(e.life={delay:t.retina.reduceFactor?(0,n.getRangeValue)(r.delay.value)*(r.delay.sync?1:(0,n.getRandom)())/t.retina.reduceFactor*n.millisecondsToSeconds:0,delayTime:0,duration:t.retina.reduceFactor?(0,n.getRangeValue)(r.duration.value)*(r.duration.sync?1:(0,n.getRandom)())/t.retina.reduceFactor*n.millisecondsToSeconds:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new o.Life);for(const r of t)e.life.load(r?.life)}update(e,t){this.isEnabled(e)&&e.life&&(0,i.updateLife)(e,t,this.container.canvas.size)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Life:()=>a});var n=r(773),o=r(1020),i=r(1021);class a{constructor(){this.count=0,this.delay=new o.LifeDelay,this.duration=new i.LifeDuration}load(e){(0,n.isNull)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDelay:()=>o});var n=r(773);class o extends n.ValueWithRandom{constructor(){super(),this.sync=!1}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDuration:()=>o});var n=r(773);class o extends n.ValueWithRandom{constructor(){super(),this.sync=!1}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateLife:()=>l});var n=r(773);const o=0,i=-1,a=0,s=0;function l(e,t,r){if(!e.life)return;const l=e.life;let c=!1;if(e.spawning){if(l.delayTime+=t.value,!(l.delayTime>=e.life.delay))return;c=!0,e.spawning=!1,l.delayTime=o,l.time=o}if(l.duration===i)return;if(e.spawning)return;if(c?l.time=o:l.time+=t.value,l.time<l.duration)return;if(l.time=o,e.life.count>a&&e.life.count--,e.life.count===a)return void e.destroy();const u=(0,n.setRangeValue)(s,r.width),d=(0,n.setRangeValue)(s,r.width);e.position.x=(0,n.randomInRange)(u),e.position.y=(0,n.randomInRange)(d),e.spawning=!0,l.delayTime=o,l.time=o,e.reset();const f=e.options.life;f&&(l.delay=(0,n.getRangeValue)(f.delay.value)*n.millisecondsToSeconds,l.duration=(0,n.getRangeValue)(f.duration.value)*n.millisecondsToSeconds)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadMotionPlugin:()=>o});var n=r(1024);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addPlugin(new n.MotionPlugin(e),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPlugin:()=>i});var n=r(1025),o=r(1027);class i{constructor(e){this.id="motion",this._engine=e}getPlugin(e){return Promise.resolve(new o.MotionInstance(e,this._engine))}loadOptions(e,t){if(!this.needsPlugin())return;let r=e.motion;r?.load||(e.motion=r=new n.Motion),r.load(t?.motion)}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Motion:()=>i});var n=r(773),o=r(1026);class i{constructor(){this.disable=!0,this.reduce=new o.MotionReduce}load(e){(0,n.isNull)(e)||(void 0!==e.disable&&(this.disable=e.disable),this.reduce.load(e.reduce))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionReduce:()=>o});var n=r(773);class o{constructor(){this.factor=4,this.value=!0}load(e){(0,n.isNull)(e)||(void 0!==e.factor&&(this.factor=e.factor),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionInstance:()=>o});var n=r(773);class o{constructor(e,t){this._handleMotionChange=e=>{const t=this._container,r=t.actualOptions.motion;r&&(e.matches?r.disable?t.retina.reduceFactor=0:t.retina.reduceFactor=r.reduce.value?1/r.reduce.factor:1:t.retina.reduceFactor=1)},this._container=e,this._engine=t}async init(){const e=this._container,t=e.actualOptions.motion;if(!t||!t.disable&&!t.reduce.value)return void(e.retina.reduceFactor=1);const r=(0,n.safeMatchMedia)("(prefers-reduced-motion: reduce)");if(!r)return void(e.retina.reduceFactor=1);this._handleMotionChange(r);const o=()=>{(async()=>{this._handleMotionChange(r);try{await e.refresh()}catch{}})()};void 0!==r.addEventListener?r.addEventListener("change",o):void 0!==r.addListener&&r.addListener(o),await Promise.resolve()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRollUpdater:()=>o});var n=r(1029);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("roll",()=>Promise.resolve(new n.RollUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollUpdater:()=>i});var n=r(1030),o=r(1032);class i{constructor(e){this._engine=e}getTransformValues(e){const t=e.roll?.enable&&e.roll,r=t&&t.horizontal,n=t&&t.vertical;return{a:r?Math.cos(t.angle):void 0,d:n?Math.sin(t.angle):void 0}}init(e){(0,n.initParticle)(this._engine,e)}isEnabled(e){const t=e.options.roll;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.roll||(e.roll=new o.Roll);for(const r of t)e.roll.load(r?.roll)}update(e,t){this.isEnabled(e)&&(0,n.updateRoll)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initParticle:()=>s,updateRoll:()=>l});var n=r(773),o=r(1031);const i=2*Math.PI,a=360;function s(e,t){const r=t.options.roll;if(r?.enable)if(t.roll={enable:r.enable,horizontal:r.mode===o.RollMode.horizontal||r.mode===o.RollMode.both,vertical:r.mode===o.RollMode.vertical||r.mode===o.RollMode.both,angle:(0,n.getRandom)()*i,speed:(0,n.getRangeValue)(r.speed)/a},r.backColor)t.backColor=(0,n.rangeColorToHsl)(e,r.backColor);else if(r.darken.enable&&r.enlighten.enable){const e=(0,n.getRandom)()>=n.half?n.AlterType.darken:n.AlterType.enlighten;t.roll.alter={type:e,value:(0,n.getRangeValue)(e===n.AlterType.darken?r.darken.value:r.enlighten.value)}}else r.darken.enable?t.roll.alter={type:n.AlterType.darken,value:(0,n.getRangeValue)(r.darken.value)}:r.enlighten.enable&&(t.roll.alter={type:n.AlterType.enlighten,value:(0,n.getRangeValue)(r.enlighten.value)});else t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}function l(e,t){const r=e.options.roll,n=e.roll;if(!n||!r?.enable)return;const o=n.speed*t.factor,a=i;n.angle+=o,n.angle>a&&(n.angle-=a)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RollMode:()=>n}),function(e){e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Roll:()=>a});var n=r(773),o=r(1033),i=r(1031);class a{constructor(){this.darken=new o.RollLight,this.enable=!1,this.enlighten=new o.RollLight,this.mode=i.RollMode.vertical,this.speed=25}load(e){(0,n.isNull)(e)||(void 0!==e.backColor&&(this.backColor=n.OptionsColor.create(this.backColor,e.backColor)),this.darken.load(e.darken),void 0!==e.enable&&(this.enable=e.enable),this.enlighten.load(e.enlighten),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollLight:()=>o});var n=r(773);class o{constructor(){this.enable=!1,this.value=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.value&&(this.value=(0,n.setRangeValue)(e.value)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRotateUpdater:()=>o});var n=r(1035);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("rotate",e=>Promise.resolve(new n.RotateUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateUpdater:()=>a});var n=r(773),o=r(1036);const i=2*Math.PI;class a{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:(0,n.degToRad)((0,n.getRangeValue)(t.value)),min:0,max:i},e.pathRotation=t.path;let r=t.direction;if(r===n.RotateDirection.random){r=Math.floor(2*(0,n.getRandom)())>0?n.RotateDirection.counterClockwise:n.RotateDirection.clockwise}switch(r){case n.RotateDirection.counterClockwise:case"counterClockwise":e.rotate.status=n.AnimationStatus.decreasing;break;case n.RotateDirection.clockwise:e.rotate.status=n.AnimationStatus.increasing}const o=t.animation;o.enable&&(e.rotate.decay=1-(0,n.getRangeValue)(o.decay),e.rotate.velocity=(0,n.getRangeValue)(o.speed)/360*this.container.retina.reduceFactor,o.sync||(e.rotate.velocity*=(0,n.getRandom)())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return!!t&&(!e.destroyed&&!e.spawning&&(!!t.value||t.animation.enable||t.path))}loadOptions(e,...t){e.rotate||(e.rotate=new o.Rotate);for(const r of t)e.rotate.load(r?.rotate)}update(e,t){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&((0,n.updateAnimation)(e,e.rotate,!1,n.DestroyType.none,t),e.rotation=e.rotate.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Rotate:()=>i});var n=r(773),o=r(1037);class i extends n.ValueWithRandom{constructor(){super(),this.animation=new o.RotateAnimation,this.direction=n.RotateDirection.clockwise,this.path=!1,this.value=0}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateAnimation:()=>o});var n=r(773);class o{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,n.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSquareShape:()=>o});var n=r(1039);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addShape(new n.SquareDrawer,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SquareDrawer:()=>o});var n=r(1040);class o{constructor(){this.validTypes=["edge","square"]}draw(e){(0,n.drawSquare)(e)}getSidesCount(){return 4}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawSquare:()=>i});const n=Math.sqrt(2),o=2;function i(e){const{context:t,radius:r}=e,i=r/n,a=i*o;t.rect(-i,-i,a,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadTiltUpdater:()=>o});var n=r(1042);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("tilt",e=>Promise.resolve(new n.TiltUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltUpdater:()=>s});var n=r(773),o=r(1043),i=r(1044);const a=2*Math.PI;class s{constructor(e){this.container=e}getTransformValues(e){const t=e.tilt?.enable&&e.tilt;return{b:t?Math.cos(t.value)*t.cosDirection:void 0,c:t?Math.sin(t.value)*t.sinDirection:void 0}}init(e){const t=e.options.tilt;if(!t)return;e.tilt={enable:t.enable,value:(0,n.degToRad)((0,n.getRangeValue)(t.value)),sinDirection:(0,n.getRandom)()>=n.half?1:-1,cosDirection:(0,n.getRandom)()>=n.half?1:-1,min:0,max:a};let r=t.direction;if(r===i.TiltDirection.random){r=Math.floor(2*(0,n.getRandom)())>0?i.TiltDirection.counterClockwise:i.TiltDirection.clockwise}switch(r){case i.TiltDirection.counterClockwise:case"counterClockwise":e.tilt.status=n.AnimationStatus.decreasing;break;case i.TiltDirection.clockwise:e.tilt.status=n.AnimationStatus.increasing}const o=e.options.tilt?.animation;o?.enable&&(e.tilt.decay=1-(0,n.getRangeValue)(o.decay),e.tilt.velocity=(0,n.getRangeValue)(o.speed)/360*this.container.retina.reduceFactor,o.sync||(e.tilt.velocity*=(0,n.getRandom)()))}isEnabled(e){const t=e.options.tilt?.animation;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.tilt||(e.tilt=new o.Tilt);for(const r of t)e.tilt.load(r?.tilt)}async update(e,t){this.isEnabled(e)&&e.tilt&&((0,n.updateAnimation)(e,e.tilt,!1,n.DestroyType.none,t),await Promise.resolve())}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tilt:()=>a});var n=r(773),o=r(1044),i=r(1045);class a extends n.ValueWithRandom{constructor(){super(),this.animation=new i.TiltAnimation,this.direction=o.TiltDirection.clockwise,this.enable=!1,this.value=0}load(e){super.load(e),(0,n.isNull)(e)||(this.animation.load(e.animation),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{TiltDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltAnimation:()=>o});var n=r(773);class o{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,n.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadWobbleUpdater:()=>o});var n=r(1047);async function o(e,t=!0){e.checkVersion("3.9.1"),await e.addParticleUpdater("wobble",e=>Promise.resolve(new n.WobbleUpdater(e)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleUpdater:()=>s});var n=r(773),o=r(1048),i=r(1050);const a=2*Math.PI;class s{constructor(e){this.container=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:(0,n.getRandom)()*a,angleSpeed:(0,n.getRangeValue)(t.speed.angle)/360,moveSpeed:(0,n.getRangeValue)(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,n.getRangeValue)(t?.distance??0)*this.container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...t){e.wobble||(e.wobble=new o.Wobble);for(const r of t)e.wobble.load(r?.wobble)}update(e,t){this.isEnabled(e)&&(0,i.updateWobble)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Wobble:()=>i});var n=r(773),o=r(1049);class i{constructor(){this.distance=5,this.enable=!1,this.speed=new o.WobbleSpeed}load(e){if(!(0,n.isNull)(e)&&(void 0!==e.distance&&(this.distance=(0,n.setRangeValue)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if((0,n.isNumber)(e.speed))this.speed.load({angle:e.speed});else{const t=e.speed;void 0!==t.min?this.speed.load({angle:t}):this.speed.load(e.speed)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleSpeed:()=>o});var n=r(773);class o{constructor(){this.angle=50,this.move=10}load(e){(0,n.isNull)(e)||(void 0!==e.angle&&(this.angle=(0,n.setRangeValue)(e.angle)),void 0!==e.move&&(this.move=(0,n.setRangeValue)(e.move)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateWobble:()=>s});var n=r(773);const o=0,i=2*Math.PI,a=60;function s(e,t){const{wobble:r}=e.options,{container:s,wobble:l}=e;if(!r?.enable||!l)return;const c=s.retina.reduceFactor,u=l.angleSpeed*t.factor*c,d=l.moveSpeed*t.factor*c*(e.retina.wobbleDistance??o)/(n.millisecondsToSeconds/a),f=i,{position:p}=e;l.angle+=u,l.angle>f&&(l.angle-=f),p.x+=d*Math.cos(l.angle),p.y+=d*Math.abs(Math.sin(l.angle))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{options:()=>n});const n={fullScreen:{enable:!0,zIndex:100},fpsLimit:120,particles:{number:{value:0},color:{value:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"]},shape:{type:["square","circle"]},opacity:{value:{min:0,max:1},animation:{enable:!0,speed:.5,startValue:"max",destroy:"min"}},size:{value:5},links:{enable:!1},life:{duration:{sync:!0,value:20/6},count:1},move:{angle:{value:45,offset:0},drift:0,enable:!0,gravity:{enable:!0,acceleration:9.81},speed:45,decay:.1,direction:-90,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:!0},emitters:{name:"confetti",startCount:50,position:{x:50,y:50},size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(1053)),o=m(r(1089)),i=m(r(1091)),a=m(r(1098)),s=m(r(1102)),l=m(r(1103)),c=m(r(1107)),u=m(r(1140)),d=m(r(296)),f=m(r(668)),p=m(r(1148)),h=m(r(1149));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,s.default)(this,t),(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,r=e.eventListeners,n=t.loop,o=t.autoplay,a=t.animationData,s=t.path,l=t.renderer,c=void 0===l?"svg":l,u=t.rendererSettings,d=t.assetsPath;this.options={container:this.el,path:s,renderer:c,loop:!1!==n,autoplay:!1!==o,animationData:a,rendererSettings:u,assetsPath:d},this.options=(0,i.default)({},this.options,t),this.anim=p.default.loadAnimation(this.options),this.setSpeed(),this.setDirection(),this.animApi=h.default.createAnimationApi(this.anim),this.registerEvents(r),this.setAnimationControl(),this.props.isStopped?this.stops():this.props.segments?this.playSegments(!0):this.play()}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,i.default)({},this.options,e.options),this.anim=p.default.loadAnimation(this.options),this.animApi=h.default.createAnimationApi(this.anim),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(e){if(void 0!==this.props.options.loop&&(this.anim.loop=this.props.options.loop),this.props.isStopped)this.stop();else if(this.props.segments){if((0,o.default)(this.props.segments)===(0,o.default)(e.segments))return;this.playSegments(this.props.forceSegments)}else this.play();this.setAnimationControl(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null,this.animApi=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"setAnimationControl",value:function(){var e=this,t=this.props.animationControl;t&&(0,n.default)(t).forEach(function(r){var n=e.animApi.getKeyPath(r),o=t[r];e.animApi.addValueCallback(n,function(){return o})})}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(e){this.anim.playSegments(this.props.segments,e)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.addEventListener(e.eventName,e.callback)})}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.removeEventListener(e.eventName,e.callback)})}},{key:"render",value:function(){var e=this,t=this.props,r=t.width,n=t.height,o=t.ariaRole,a=t.ariaLabel,s=t.title,l=t.tabIndex,c=function(e){return"number"==typeof e?e+"px":e||"100%"},u=(0,i.default)({width:c(r),height:c(n),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style);return d.default.createElement("div",{ref:function(t){e.el=t},style:u,title:s,role:o,"aria-label":a,tabIndex:l})}}]),t}(d.default.Component);t.default=g,g.propTypes={eventListeners:f.default.arrayOf(f.default.object),options:f.default.object.isRequired,height:f.default.oneOfType([f.default.string,f.default.number]),width:f.default.oneOfType([f.default.string,f.default.number]),isStopped:f.default.bool,isPaused:f.default.bool,speed:f.default.number,segments:f.default.arrayOf(f.default.number),forceSegments:f.default.bool,direction:f.default.number,ariaRole:f.default.string,ariaLabel:f.default.string,title:f.default.string,style:f.default.string,tabIndex:f.default.oneOfType([f.default.number,f.default.string])},g.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",title:"",tabIndex:0}},(e,t,r)=>{e.exports={default:r(1054),__esModule:!0}},(e,t,r)=>{r(1055),e.exports=r(1070).Object.keys},(e,t,r)=>{var n=r(1056),o=r(1058);r(1075)("keys",function(){return function(e){return o(n(e))}})},(e,t,r)=>{var n=r(1057);e.exports=function(e){return Object(n(e))}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},(e,t,r)=>{var n=r(1059),o=r(1074);e.exports=Object.keys||function(e){return n(e,o)}},(e,t,r)=>{var n=r(1060),o=r(1061),i=r(1064)(!1),a=r(1068)("IE_PROTO");e.exports=function(e,t){var r,s=o(e),l=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>l;)n(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},(e,t,r)=>{var n=r(1062),o=r(1057);e.exports=function(e){return n(o(e))}},(e,t,r)=>{var n=r(1063);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},(e,t,r)=>{var n=r(1061),o=r(1065),i=r(1067);e.exports=function(e){return function(t,r,a){var s,l=n(t),c=o(l.length),u=i(a,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}}},(e,t,r)=>{var n=r(1066),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},(e,t,r)=>{var n=r(1066),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},(e,t,r)=>{var n=r(1069)("keys"),o=r(1073);e.exports=function(e){return n[e]||(n[e]=o(e))}},(e,t,r)=>{var n=r(1070),o=r(1071),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(1072)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},e=>{e.exports=!0},e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},(e,t,r)=>{var n=r(1076),o=r(1070),i=r(1085);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},(e,t,r)=>{var n=r(1071),o=r(1070),i=r(1077),a=r(1079),s=r(1060),l="prototype",c=function(e,t,r){var u,d,f,p=e&c.F,h=e&c.G,m=e&c.S,g=e&c.P,y=e&c.B,v=e&c.W,b=h?o:o[t]||(o[t]={}),_=b[l],w=h?n:m?n[t]:(n[t]||{})[l];for(u in h&&(r=t),r)(d=!p&&w&&void 0!==w[u])&&s(b,u)||(f=d?w[u]:r[u],b[u]=h&&"function"!=typeof w[u]?r[u]:y&&d?i(f,n):v&&w[u]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[u]=f,e&c.R&&_&&!_[u]&&a(_,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},(e,t,r)=>{var n=r(1078);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},(e,t,r)=>{var n=r(1080),o=r(1088);e.exports=r(1084)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{var n=r(1081),o=r(1083),i=r(1087),a=Object.defineProperty;t.f=r(1084)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{var n=r(1082);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},(e,t,r)=>{e.exports=!r(1084)&&!r(1085)(function(){return 7!=Object.defineProperty(r(1086)("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{e.exports=!r(1085)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{var n=r(1082),o=r(1071).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},(e,t,r)=>{var n=r(1082);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{e.exports={default:r(1090),__esModule:!0}},(e,t,r)=>{var n=r(1070),o=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,o=r(1092),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},(e,t,r)=>{e.exports={default:r(1093),__esModule:!0}},(e,t,r)=>{r(1094),e.exports=r(1070).Object.assign},(e,t,r)=>{var n=r(1076);n(n.S+n.F,"Object",{assign:r(1095)})},(e,t,r)=>{"use strict";var n=r(1084),o=r(1058),i=r(1096),a=r(1097),s=r(1056),l=r(1062),c=Object.assign;e.exports=!c||r(1085)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n})?function(e,t){for(var r=s(e),c=arguments.length,u=1,d=i.f,f=a.f;c>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,y=0;g>y;)p=m[y++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:c},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t)=>{t.f={}.propertyIsEnumerable},(e,t,r)=>{e.exports={default:r(1099),__esModule:!0}},(e,t,r)=>{r(1100),e.exports=r(1070).Object.getPrototypeOf},(e,t,r)=>{var n=r(1056),o=r(1101);r(1075)("getPrototypeOf",function(){return function(e){return o(n(e))}})},(e,t,r)=>{var n=r(1060),o=r(1056),i=r(1068)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,o=r(1104),i=(n=o)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},(e,t,r)=>{e.exports={default:r(1105),__esModule:!0}},(e,t,r)=>{r(1106);var n=r(1070).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},(e,t,r)=>{var n=r(1076);n(n.S+n.F*!r(1084),"Object",{defineProperty:r(1080).f})},(e,t,r)=>{"use strict";t.__esModule=!0;var n,o=r(1108),i=(n=o)&&n.__esModule?n:{default:n};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1109)),o=a(r(1127)),i="function"==typeof o.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(n.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},(e,t,r)=>{e.exports={default:r(1110),__esModule:!0}},(e,t,r)=>{r(1111),r(1122),e.exports=r(1126).f("iterator")},(e,t,r)=>{"use strict";var n=r(1112)(!0);r(1113)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},(e,t,r)=>{var n=r(1066),o=r(1057);e.exports=function(e){return function(t,r){var i,a,s=String(o(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},(e,t,r)=>{"use strict";var n=r(1072),o=r(1076),i=r(1114),a=r(1079),s=r(1115),l=r(1116),c=r(1120),u=r(1101),d=r(1121)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",m=function(){return this};e.exports=function(e,t,r,g,y,v,b){l(r,t,g);var _,w,S,E=function(e){if(!f&&e in O)return O[e];switch(e){case p:case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},k=t+" Iterator",x=y==h,T=!1,O=e.prototype,C=O[d]||O["@@iterator"]||y&&O[y],j=C||E(y),P=y?x?E("entries"):j:void 0,I="Array"==t&&O.entries||C;if(I&&(S=u(I.call(new e)))!==Object.prototype&&S.next&&(c(S,k,!0),n||"function"==typeof S[d]||a(S,d,m)),x&&C&&C.name!==h&&(T=!0,j=function(){return C.call(this)}),n&&!b||!f&&!T&&O[d]||a(O,d,j),s[t]=j,s[k]=m,y)if(_={values:x?j:E(h),keys:v?j:E(p),entries:P},b)for(w in _)w in O||i(O,w,_[w]);else o(o.P+o.F*(f||T),t,_);return _}},(e,t,r)=>{e.exports=r(1079)},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(1117),o=r(1088),i=r(1120),a={};r(1079)(a,r(1121)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},(e,t,r)=>{var n=r(1081),o=r(1118),i=r(1074),a=r(1068)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(1086)("iframe"),n=i.length;for(t.style.display="none",r(1119).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[l]=n(e),r=new s,s[l]=null,r[a]=e):r=c(),void 0===t?r:o(r,t)}},(e,t,r)=>{var n=r(1080),o=r(1081),i=r(1058);e.exports=r(1084)?Object.defineProperties:function(e,t){o(e);for(var r,a=i(t),s=a.length,l=0;s>l;)n.f(e,r=a[l++],t[r]);return e}},(e,t,r)=>{var n=r(1071).document;e.exports=n&&n.documentElement},(e,t,r)=>{var n=r(1080).f,o=r(1060),i=r(1121)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},(e,t,r)=>{var n=r(1069)("wks"),o=r(1073),i=r(1071).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},(e,t,r)=>{r(1123);for(var n=r(1071),o=r(1079),i=r(1115),a=r(1121)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=n[c],d=u&&u.prototype;d&&!d[a]&&o(d,a,c),i[c]=i.Array}},(e,t,r)=>{"use strict";var n=r(1124),o=r(1125),i=r(1115),a=r(1061);e.exports=r(1113)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},e=>{e.exports=function(){}},e=>{e.exports=function(e,t){return{value:t,done:!!e}}},(e,t,r)=>{t.f=r(1121)},(e,t,r)=>{e.exports={default:r(1128),__esModule:!0}},(e,t,r)=>{r(1129),r(1137),r(1138),r(1139),e.exports=r(1070).Symbol},(e,t,r)=>{"use strict";var n=r(1071),o=r(1060),i=r(1084),a=r(1076),s=r(1114),l=r(1130).KEY,c=r(1085),u=r(1069),d=r(1120),f=r(1073),p=r(1121),h=r(1126),m=r(1131),g=r(1132),y=r(1133),v=r(1081),b=r(1082),_=r(1056),w=r(1061),S=r(1087),E=r(1088),k=r(1117),x=r(1134),T=r(1136),O=r(1096),C=r(1080),j=r(1058),P=T.f,I=C.f,R=x.f,A=n.Symbol,M=n.JSON,D=M&&M.stringify,N="prototype",L=p("_hidden"),B=p("toPrimitive"),F={}.propertyIsEnumerable,z=u("symbol-registry"),U=u("symbols"),H=u("op-symbols"),q=Object[N],V="function"==typeof A&&!!O.f,W=n.QObject,G=!W||!W[N]||!W[N].findChild,$=i&&c(function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=P(q,t);n&&delete q[t],I(e,t,r),n&&e!==q&&I(q,t,n)}:I,K=function(e){var t=U[e]=k(A[N]);return t._k=e,t},Y=V&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},J=function(e,t,r){return e===q&&J(H,t,r),v(e),t=S(t,!0),v(r),o(U,t)?(r.enumerable?(o(e,L)&&e[L][t]&&(e[L][t]=!1),r=k(r,{enumerable:E(0,!1)})):(o(e,L)||I(e,L,E(1,{})),e[L][t]=!0),$(e,t,r)):I(e,t,r)},X=function(e,t){v(e);for(var r,n=g(t=w(t)),o=0,i=n.length;i>o;)J(e,r=n[o++],t[r]);return e},Q=function(e){var t=F.call(this,e=S(e,!0));return!(this===q&&o(U,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=w(e),t=S(t,!0),e!==q||!o(U,t)||o(H,t)){var r=P(e,t);return!r||!o(U,t)||o(e,L)&&e[L][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=R(w(e)),n=[],i=0;r.length>i;)o(U,t=r[i++])||t==L||t==l||n.push(t);return n},te=function(e){for(var t,r=e===q,n=R(r?H:w(e)),i=[],a=0;n.length>a;)!o(U,t=n[a++])||r&&!o(q,t)||i.push(U[t]);return i};V||(s((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===q&&t.call(H,r),o(this,L)&&o(this[L],e)&&(this[L][e]=!1),$(this,e,E(1,r))};return i&&G&&$(q,e,{configurable:!0,set:t}),K(e)})[N],"toString",function(){return this._k}),T.f=Z,C.f=J,r(1135).f=x.f=ee,r(1097).f=Q,O.f=te,i&&!r(1072)&&s(q,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:A});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)p(re[ne++]);for(var oe=j(p.store),ie=0;oe.length>ie;)m(oe[ie++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(z,e+="")?z[e]:z[e]=A(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?k(e):X(k(e),t)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){O.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return O.f(_(e))}}),M&&a(a.S+a.F*(!V||c(function(){var e=A();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(b(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,D.apply(M,n)}}),A[N][B]||r(1079)(A[N],B,A[N].valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},(e,t,r)=>{var n=r(1073)("meta"),o=r(1082),i=r(1060),a=r(1080).f,s=0,l=Object.isExtensible||function(){return!0},c=!r(1085)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!i(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,n)&&u(e),e}}},(e,t,r)=>{var n=r(1071),o=r(1070),i=r(1072),a=r(1126),s=r(1080).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},(e,t,r)=>{var n=r(1058),o=r(1096),i=r(1097);e.exports=function(e){var t=n(e),r=o.f;if(r)for(var a,s=r(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},(e,t,r)=>{var n=r(1063);e.exports=Array.isArray||function(e){return"Array"==n(e)}},(e,t,r)=>{var n=r(1061),o=r(1135).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(n(e))}},(e,t,r)=>{var n=r(1059),o=r(1074).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},(e,t,r)=>{var n=r(1097),o=r(1088),i=r(1061),a=r(1087),s=r(1060),l=r(1083),c=Object.getOwnPropertyDescriptor;t.f=r(1084)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!n.f.call(e,t),e[t])}},()=>{},(e,t,r)=>{r(1131)("asyncIterator")},(e,t,r)=>{r(1131)("observable")},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1141)),o=a(r(1145)),i=a(r(1108));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},(e,t,r)=>{e.exports={default:r(1142),__esModule:!0}},(e,t,r)=>{r(1143),e.exports=r(1070).Object.setPrototypeOf},(e,t,r)=>{var n=r(1076);n(n.S,"Object",{setPrototypeOf:r(1144).set})},(e,t,r)=>{var n=r(1082),o=r(1081),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(1077)(Function.call,r(1136).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return i(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:i}},(e,t,r)=>{e.exports={default:r(1146),__esModule:!0}},(e,t,r)=>{r(1147);var n=r(1070).Object;e.exports=function(e,t){return n.create(e,t)}},(e,t,r)=>{var n=r(1076);n(n.S,"Object",{create:r(1117)})},function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,o=e.length;for(r=0;r<o;r+=1)for(var i in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,i)&&(t.prototype[i]=n[i])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,o=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)o.push(r);return o}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,o,i,a,s,l,c,u;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,o=u,i=l;break;case 1:n=c,o=r,i=l;break;case 2:n=l,o=r,i=u;break;case 3:n=l,o=c,i=r;break;case 4:n=u,o=l,i=r;break;case 5:n=r,o=l,i=c}return[n,o,i]}function RGBtoHSV(e,t,r){var n,o=Math.max(e,t,r),i=Math.min(e,t,r),a=o-i,s=0===o?0:a/o,l=o/255;switch(o){case i:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){o.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,o}(function(e){if(i.dataManager||(i.dataManager=function(){function e(o,i){var a,s,l,c,u,f,p=o.length;for(s=0;s<p;s+=1)if("ks"in(a=o[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)n(h[l].pt.k);else for(f=h[l].pt.k.length,u=0;u<f;u+=1)h[l].pt.k[u].s&&n(h[l].pt.k[u].s[0]),h[l].pt.k[u].e&&n(h[l].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,i),e(a.layers,i)):4===a.ty?r(a.shapes):5===a.ty&&d(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,o,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(i=e[t].ks.k.length,o=0;o<i;o+=1)e[t].ks.k[o].s&&n(e[t].ks.k[o].s[0]),e[t].ks.k[o].e&&n(e[t].ks.k[o].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function o(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var i,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var n,i=t.assets.length;for(n=0;n<i;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),s=(i=[4,7,99],function(e){if(e.chars&&!o(i,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var n,i=t.assets.length;for(n=0;n<i;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,n,o,i=e.length;for(r=0;r<i;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(o=e[r].c.k.length,n=0;n<o;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var n,i=t.assets.length;for(n=0;n<i;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,o;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(o=e[r].ks.k.length,n=0;n<o;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,o,i,a,s,l=e.length;for(n=0;n<l;n+=1){if((r=e[n]).hasMask){var c=r.masksProperties;for(i=c.length,o=0;o<i;o+=1)if(c[o].pt.k.i)c[o].pt.k.c=c[o].cl;else for(s=c[o].pt.k.length,a=0;a<s;a+=1)c[o].pt.k[a].s&&(c[o].pt.k[a].s[0].c=c[o].cl),c[o].pt.k[a].e&&(c[o].pt.k[a].e[0].c=c[o].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var n,i=t.assets.length;for(n=0;n<i;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var f={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var o=0,i=r.length;for(o=0;o<i;o+=1)1===r[o].t&&(r[o].data.layers=t(r[o].data.refId,n),e(r[o].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return f.checkColors=c,f.checkChars=s,f.checkPathProperties=l,f.checkShapes=u,f.completeLayers=e,f}()),i.assetLoader||(i.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,o){var i,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)i=e(a),n(i);else try{i=e(a),n(i)}catch(e){o&&o(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,r=t.id,o=n[r];n[r]=null,"success"===t.status?o.onComplete(t.payload):o.onError&&o.onError()})}function s(e,t){var o="processId_"+(r+=1);return n[o]={onComplete:e,onError:t},o}return{loadAnimation:function(e,r,n){a();var o=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(e,r,n){a();var o=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(e,r,n){a();var o=s(r,n);t.postMessage({type:"complete",animation:e,id:o})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var o=e.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),n=t+o}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function o(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.src=r;var i={img:o,assetData:t};return i},createImageData:function(t){var r=n(t,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var i={img:o,assetData:t};return i},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},o=0,i=0;i<r.length;i+=1)2===(t=r[i].split(":")).length&&(n[t[0]]=t[1].trim(),o+=1);if(0===o)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var o=t[n],i={time:o.tm,duration:o.dr};try{i.payload=JSON.parse(t[n].cm)}catch(r){try{i.payload=e(t[n].cm)}catch(e){i.payload={name:t[n].cm}}}r.push(i)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===o?r.loop=!1:"true"===o?r.loop=!0:""!==o&&(r.loop=parseInt(o,10));var i=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==i,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,o=n.length,i=e.layers,a=i.length;for(r=0;r<a;r+=1)for(t=0;t<o;){if(n[t].id===i[r].id){n[t]=i[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(o=e.assets.length,t=0;t<o;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,o=0,i=!0,a=!1;function s(e){for(var r=0,o=e.target;r<n;)t[r].animation===o&&(t.splice(r,1),r-=1,n-=1,o.isPaused||u()),r+=1}function l(e,r){if(!e)return null;for(var o=0;o<n;){if(t[o].elem===e&&null!==t[o].elem)return t[o].animation;o+=1}var i=new AnimationItem;return d(i,e),i.setData(e,r),i}function c(){o+=1,h()}function u(){o-=1}function d(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function f(e){var s,l=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(l);r=e,o&&!a?window.requestAnimationFrame(f):i=!0}function p(e){r=e,window.requestAnimationFrame(f)}function h(){!a&&o&&i&&(window.requestAnimationFrame(p),i=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var o;for(o=0;o<n;o+=1)t[o].animation.setSpeed(e,r)},e.setDirection=function(e,r){var o;for(o=0;o<n;o+=1)t[o].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=o.length;for(n=0;n<i;n+=1)r&&o[n].setAttribute("data-bm-type",r),l(o[n],e);if(t&&0===i){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,o){var i;for(i=0;i<n;i+=1)t[i].animation.goToAndStop(e,r,o)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,h()},e.setVolume=function(e,r){var o;for(o=0;o<n;o+=1)t[o].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,o,i){var a=i||("bez_"+e+"_"+r+"_"+n+"_"+o).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,r,n,o]);return t[a]=s,s}},t={},r=11,n=1/(r-1),o="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((i(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*i(t,r)*e*e+2*a(t,r)*e+s(t)}function u(e){this._p=e,this._mSampleValues=o?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),t===r&&n===o?e:0===e?0:1===e?1:l(this._getTForX(e),r,o)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],o=0;o<r;++o)this._mSampleValues[o]=l(o*n,e,t)},_getTForX:function(e){for(var t=this._p[0],o=this._p[2],i=this._mSampleValues,a=0,s=1,u=r-1;s!==u&&i[s]<=e;++s)a+=n;var d=a+(e-i[--s])/(i[s+1]-i[s])*n,f=c(d,t,o);return f>=.001?function(e,t,r,n){for(var o=0;o<4;++o){var i=c(t,r,n);if(0===i)return t;t-=(l(t,r,n)-e)/i}return t}(e,d,t,o):0===f?d:function(e,t,r,n,o){var i,a,s=0;do{(i=l(a=t+(r-t)/2,n,o)-e)>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,a,a+n,t,o)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,o=e,i=createSizedArray(o);return{newElement:function(){return n?i[n-=1]:t()},release:function(e){n===o&&(i=pooling.double(i),o*=2),r&&r(e),i[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,r,n,o,i){var a=e*n+t*o+r*i-o*n-i*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var o,i,a,s,l,c,u=getDefaultCurveSegments(),d=0,f=[],p=[],h=bezierLengthPool.newElement();for(a=r.length,o=0;o<u;o+=1){for(l=o/(u-1),c=0,i=0;i<a;i+=1)s=bmPow(1-l,3)*e[i]+3*bmPow(1-l,2)*l*r[i]+3*(1-l)*bmPow(l,2)*n[i]+bmPow(l,3)*t[i],f[i]=s,null!==p[i]&&(c+=bmPow(f[i]-p[i],2)),p[i]=f[i];c&&(d+=c=bmSqrt(c)),h.percents[o]=l,h.lengths[o]=d}return h.addedLength=d,h};function n(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var i,a=(i={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[l]){var c,u,d,f,p,h,m,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(d=a.length,c=0;c<g;c+=1){for(m=createSizedArray(d),p=c/(g-1),h=0,u=0;u<d;u+=1)f=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+a[u])+3*(1-p)*bmPow(p,2)*(r[u]+s[u])+bmPow(p,3)*r[u],m[u]=f,null!==v&&(h+=bmPow(m[u]-v[u],2));y+=h=bmSqrt(h),b.points[c]=new o(h,m),v=m}b.segmentLength=y,i[l]=b}return i[l]});function s(e,t){var r=t.percents,n=t.lengths,o=r.length,i=bmFloor((o-1)*e),a=e*t.addedLength,s=0;if(i===o-1||0===i||a===n[i])return r[i];for(var l=n[i]>a?-1:1,c=!0;c;)if(n[i]<=a&&n[i+1]>a?(s=(a-n[i])/(n[i+1]-n[i]),c=!1):i+=l,i<0||i>=o-1){if(i===o-1)return r[i];c=!1}return r[i]+(r[i+1]-r[i])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),o=e.c,i=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=r(i[t],i[t+1],a[t],s[t+1]),u+=c[t].addedLength;return o&&l&&(c[t]=r(i[t],i[0],a[t],s[0]),u+=c[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,o,i,a,c){i<0?i=0:i>1&&(i=1);var u,d=s(i,c),f=s(a=a>1?1:a,c),p=t.length,h=1-d,m=1-f,g=h*h*h,y=d*h*h*3,v=d*d*h*3,b=d*d*d,_=h*h*m,w=d*h*m+h*d*m+h*h*f,S=d*d*m+h*d*f+d*h*f,E=d*d*f,k=h*m*m,x=d*m*m+h*f*m+h*m*f,T=d*f*m+h*f*f+d*m*f,O=d*f*f,C=m*m*m,j=f*m*m+m*f*m+m*m*f,P=f*f*m+m*f*f+f*m*f,I=f*f*f;for(u=0;u<p;u+=1)l[4*u]=e.round(1e3*(g*t[u]+y*n[u]+v*o[u]+b*r[u]))/1e3,l[4*u+1]=e.round(1e3*(_*t[u]+w*n[u]+S*o[u]+E*r[u]))/1e3,l[4*u+2]=e.round(1e3*(k*t[u]+x*n[u]+T*o[u]+O*r[u]))/1e3,l[4*u+3]=e.round(1e3*(C*t[u]+j*n[u]+P*o[u]+I*r[u]))/1e3;return l},getPointInSegment:function(t,r,n,o,i,a){var l=s(i,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*n[0]+(l*l*c+c*l*l+l*c*l)*o[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*n[1]+(l*l*c+c*l*l+l*c*l)*o[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,o,i,a,s,l,c,u){if(0===o&&0===s&&0===u)return t(r,n,i,a,l,c);var d,f=e.sqrt(e.pow(i-r,2)+e.pow(a-n,2)+e.pow(s-o,2)),p=e.sqrt(e.pow(l-r,2)+e.pow(c-n,2)+e.pow(u-o,2)),h=e.sqrt(e.pow(l-i,2)+e.pow(c-a,2)+e.pow(u-s,2));return(d=f>p?f>h?f-p-h:h-p-f:h>p?h-p-f:p-f-h)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var o,i,a,s,l,c,u,d,f,p=t.lastIndex,h=p,m=this.keyframes.length-1,g=!0;g;){if(o=this.keyframes[h],i=this.keyframes[h+1],h===m-1&&e>=i.t-n){o.h&&(o=i),p=0;break}if(i.t-n>e){p=h;break}h<m-1?h+=1:(p=0,g=!1)}a=this.keyframesMetadata[h]||{};var y,v=i.t-n,b=o.t-n;if(o.to){a.bezierData||(a.bezierData=bez.buildBezierData(o.s,i.s||o.e,o.to,o.ti));var _=a.bezierData;if(e>=v||e<b){var w=e>=v?_.points.length-1:0;for(l=_.points[w].point.length,s=0;s<l;s+=1)r[s]=_.points[w].point[s]}else{a.__fnct?f=a.__fnct:(f=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,a.__fnct=f),c=f((e-b)/(v-b));var S,E=_.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,g=!0,u=_.points.length;g;){if(k+=_.points[d].partialLength,0===E||0===c||d===_.points.length-1){for(l=_.points[d].point.length,s=0;s<l;s+=1)r[s]=_.points[d].point[s];break}if(E>=k&&E<k+_.points[d+1].partialLength){for(S=(E-k)/_.points[d+1].partialLength,l=_.points[d].point.length,s=0;s<l;s+=1)r[s]=_.points[d].point[s]+(_.points[d+1].point[s]-_.points[d].point[s])*S;break}d<u-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=k-_.points[d].partialLength,t._lastKeyframeIndex=h}}else{var x,T,O,C,j;if(m=o.s.length,y=i.s||o.e,this.sh&&1!==o.h)e>=v?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=b?(r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2]):quaternionToEuler(r,slerp(createQuaternion(o.s),createQuaternion(y),(e-b)/(v-b)));else for(h=0;h<m;h+=1)1!==o.h&&(e>=v?c=1:e<b?c=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?f=a.__fnct[h]:(x=void 0===o.o.x[h]?o.o.x[0]:o.o.x[h],T=void 0===o.o.y[h]?o.o.y[0]:o.o.y[h],O=void 0===o.i.x[h]?o.i.x[0]:o.i.x[h],C=void 0===o.i.y[h]?o.i.y[0]:o.i.y[h],f=BezierFactory.getBezierEasing(x,T,O,C).get,a.__fnct[h]=f)):a.__fnct?f=a.__fnct:(x=o.o.x,T=o.o.y,O=o.i.x,C=o.i.y,f=BezierFactory.getBezierEasing(x,T,O,C).get,o.keyframeMetadata=f),c=f((e-b)/(v-b)))),y=i.s||o.e,j=1===o.h?o.s[h]:o.s[h]+(y[h]-o.s[h])*c,"multidimensional"===this.propType?r[h]=j:r=j}return t.lastIndex=p,r}function slerp(e,t,r){var n,o,i,a,s,l=[],c=e[0],u=e[1],d=e[2],f=e[3],p=t[0],h=t[1],m=t[2],g=t[3];return(o=c*p+u*h+d*m+f*g)<0&&(o=-o,p=-p,h=-h,m=-m,g=-g),1-o>1e-6?(n=Math.acos(o),i=Math.sin(n),a=Math.sin((1-r)*n)/i,s=Math.sin(r*n)/i):(a=1-r,s=r),l[0]=a*c+s*p,l[1]=a*u+s*h,l[2]=a*d+s*m,l[3]=a*f+s*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],o=t[2],i=t[3],a=Math.atan2(2*n*i-2*r*o,1-2*n*n-2*o*o),s=Math.asin(2*r*n+2*o*i),l=Math.atan2(2*r*i-2*n*o,1-2*r*r-2*o*o);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,o=Math.cos(t/2),i=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(n/2);return[s*l*a+o*i*c,s*i*a+o*l*c,o*l*a-s*i*c,o*i*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var o;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=t.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),o=0;o<i;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var o;this.propType="multidimensional";var i,a,s,l,c=t.k.length;for(o=0;o<c-1;o+=1)t.k[o].to&&t.k[o].s&&t.k[o+1]&&t.k[o+1].s&&(i=t.k[o].s,a=t.k[o+1].s,s=t.k[o].to,l=t.k[o].ti,(2===i.length&&(i[0]!==a[0]||i[1]!==a[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===i.length&&(i[0]!==a[0]||i[1]!==a[1]||i[2]!==a[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[o].to=null,t.k[o].ti=null),i[0]===a[0]&&i[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===i.length||i[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[o].to=null,t.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),o=0;o<u;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,o){var i;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])i=new MultiDimensionalProperty(e,t,n,o);else switch(r){case 0:i=new KeyframedValueProperty(e,t,n,o);break;case 1:i=new KeyframedMultidimensionalProperty(e,t,n,o)}else i=new ValueProperty(e,t,n,o);return i.effectsSequence.length&&o.addDynamicProperty(i),i}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,o){var i;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[n]||i[n]&&!o)&&(i[n]=pointPool.newElement()),i[n][0]=e,i[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,o,i,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(o,i,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),o=1);var i,a=this._length-1,s=this._length;for(i=o;i<s;i+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],i,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,o,i,a,s,l,c,u,d,f=r.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)n=p[0].s[0],i=!0,f=0;else if(e>=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],i=!0;else{for(var h,m,g,y=f,v=p.length-1,b=!0;b&&(h=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},f=y,!(i=1===h.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<h.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,g.__fnct=_),u=_((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}o=m.s?m.s[0]:h.e[0]}n=h.s[0]}for(l=t._length,c=n.i[0].length,r.lastIndex=f,a=0;a<l;a+=1)for(s=0;s<c;s+=1)d=i?n.i[a][s]:n.i[a][s]+(o.i[a][s]-n.i[a][s])*u,t.i[a][s]=d,d=i?n.o[a][s]:n.o[a][s]+(o.o[a][s]-n.o[a][s])*u,t.o[a][s]=d,d=i?n.v[a][s]:n.v[a][s]+(o.v[a][s]-n.v[a][s])*u,t.v[a][s]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==e&&(o<r&&t<r||o>n&&t>n)||(this._caching.lastIndex=o<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function o(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var o=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,o,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?o.pt.k:o.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=o,a.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=t,l.prototype.setVValue=o,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,o=this.s.v[1]/2,i=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-o,a.v[1][0]=i?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+o,a.v[3][0]=i?t-n:t+n,a.v[3][1]=r,a.i[0][0]=i?t-n*e:t+n*e,a.i[0][1]=r-o,a.i[1][0]=i?t+n:t-n,a.i[1][1]=r-o*e,a.i[2][0]=i?t+n*e:t-n*e,a.i[2][1]=r+o,a.i[3][0]=i?t-n:t+n,a.i[3][1]=r+o*e,a.o[0][0]=i?t+n*e:t-n*e,a.o[0][1]=r-o,a.o[1][0]=i?t+n:t-n,a.o[1][1]=r+o*e,a.o[2][0]=i?t-n*e:t+n*e,a.o[2][1]=r+o,a.o[3][0]=i?t-n:t+n,a.o[3][1]=r-o*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,o=2*Math.floor(this.pt.v),i=2*Math.PI/o,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*o),f=2*Math.PI*l/(2*o),p=-Math.PI/2;p+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<o;e+=1){r=a?c:u,n=a?d:f;var m=(t=a?s:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*r*h,g-v*n*r*h,m+y*n*r*h,g+v*n*r*h,e,!0),a=!a,p+=i*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,o=this.os.v,i=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=n*Math.cos(a),c=n*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*i*o*s,c-d*i*o*s,l+u*i*o*s,c+d*i*o*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,o=bmMin(r,n,this.r.v),i=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+o,e+r,t-n+o,e+r,t-n+i,0,!0),this.v.setTripleAt(e+r,t+n-o,e+r,t+n-i,e+r,t+n-o,1,!0),0!==o?(this.v.setTripleAt(e+r-o,t+n,e+r-o,t+n,e+r-i,t+n,2,!0),this.v.setTripleAt(e-r+o,t+n,e-r+i,t+n,e-r+o,t+n,3,!0),this.v.setTripleAt(e-r,t+n-o,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r,t-n+o,e-r,t-n+i,e-r,t-n+o,5,!0),this.v.setTripleAt(e-r+o,t-n,e-r+o,t-n,e-r+i,t-n,6,!0),this.v.setTripleAt(e+r-o,t-n,e+r-i,t-n,e+r-o,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+i,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+i,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+o,e+r,t-n+i,e+r,t-n+o,0,!0),0!==o?(this.v.setTripleAt(e+r-o,t-n,e+r-o,t-n,e+r-i,t-n,1,!0),this.v.setTripleAt(e-r+o,t-n,e-r+i,t-n,e-r+o,t-n,2,!0),this.v.setTripleAt(e-r,t-n+o,e-r,t-n+o,e-r,t-n+i,3,!0),this.v.setTripleAt(e-r,t+n-o,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r+o,t+n,e-r+o,t+n,e-r+i,t+n,5,!0),this.v.setTripleAt(e+r-o,t+n,e+r-i,t+n,e+r-o,t+n,6,!0),this.v.setTripleAt(e+r,t+n-o,e+r,t+n-o,e+r,t+n-i,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+i,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-i,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-i,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),f={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?n=new d(e,t):6===r?n=new c(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return f}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(1,0,0,0,0,n,-o,0,0,o,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,0,o,0,0,1,0,0,-o,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function d(n,o){var i=e(o),a=t(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function f(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function p(e,t,r,n,o,i,a,s,l,c,u,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function h(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,o,i,a,s,l,c,u,d,f,p,h,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===o&&1===i&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*i+g[15]*p,g[14]=g[14]*u+g[15]*h,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],w=g[4],S=g[5],E=g[6],k=g[7],x=g[8],T=g[9],O=g[10],C=g[11],j=g[12],P=g[13],I=g[14],R=g[15];return g[0]=y*e+v*o+b*l+_*f,g[1]=y*t+v*i+b*c+_*p,g[2]=y*r+v*a+b*u+_*h,g[3]=y*n+v*s+b*d+_*m,g[4]=w*e+S*o+E*l+k*f,g[5]=w*t+S*i+E*c+k*p,g[6]=w*r+S*a+E*u+k*h,g[7]=w*n+S*s+E*d+k*m,g[8]=x*e+T*o+O*l+C*f,g[9]=x*t+T*i+O*c+C*p,g[10]=x*r+T*a+O*u+C*h,g[11]=x*n+T*s+O*d+C*m,g[12]=j*e+P*o+I*l+R*f,g[13]=j*t+P*i+I*c+R*p,g[14]=j*r+P*a+I*u+R*h,g[15]=j*n+P*s+I*d+R*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function E(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function k(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,o=this.props[0]/e,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=o,s.props[12]=i,s.props[13]=a,s}function T(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function O(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=T(e[t]);return n}function C(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var o=this.props[0],i=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];n[0]=e[0]*o+e[1]*a+l,n[1]=e[0]*i+e[1]*s+c,n[2]=t[0]*o+t[1]*a+l,n[3]=t[0]*i+t[1]*s+c,n[4]=r[0]*o+r[1]*a+l,n[5]=r[0]*i+r[1]*s+c}return n}function j(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function P(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function I(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function R(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function A(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=f,this.setTransform=p,this.translate=h,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=j,this.applyToTriplePoints=C,this.applyToPointStringified=P,this.toCSS=I,this.to2dCSS=A,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=O,this.inversePoint=T,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,o){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var a,s,l=[],c=i.length;for(a=0;a<c;a+=1){var u,d;(s=i[a]).e*o<n||s.s*o>n+r||(u=s.s*o<=n?0:(s.s*o-n)/r,d=s.e*o>=n+r?1:(s.e*o-n)/r,l.push([u,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,o;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(r=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,u,d,f=this.shapes.length,p=0;if(r===t)for(o=0;o<f;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(o=0;o<f;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var h,m,g=[];for(o=0;o<f;o+=1)if((h=this.shapes[o]).shape._mdf||this._mdf||e||2===this.m){if(l=(n=h.shape.paths)._length,d=0,!h.shape._mdf&&h.pathsData.length)d=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(n.shapes[s]),c.push(u),d+=u.totalLength;h.totalShapeLength=d,h.pathsData=c}p+=d,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y,v=t,b=r,_=0;for(o=f-1;o>=0;o-=1)if((h=this.shapes[o]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&f>1?(y=this.calculateShapeEdges(t,r,h.totalShapeLength,_,p),_+=h.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:h.totalShapeLength*v,e:h.totalShapeLength*b}):v>=1?g.push({s:h.totalShapeLength*(v-1),e:h.totalShapeLength*(b-1)}):(g.push({s:h.totalShapeLength*v,e:h.totalShapeLength}),g.push({s:0,e:h.totalShapeLength*(b-1)}));var w=this.addShapes(h,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(h,g[1],S)}else this.addPaths(w,m),w=this.addShapes(h,g[1]);this.addPaths(w,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,o,i,a){o.setXYAt(t[0],t[1],"o",i),o.setXYAt(r[0],r[1],"i",i+1),a&&o.setXYAt(e[0],e[1],"v",i),o.setXYAt(n[0],n[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,o,i,a,s,l,c,u,d=e.pathsData,f=e.shape.paths.shapes,p=e.shape.paths._length,h=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<p;n+=1){for(l=d[n].lengths,r.c=f[n].c,i=f[n].c?l.length:l.length+1,o=1;o<i;o+=1)if(h+(a=l[o-1]).addedLength<t.s)h+=a.addedLength,r.c=!1;else{if(h>t.e){r.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(f[n].v[o-1],f[n].o[o-1],f[n].i[o],f[n].v[o],r,s,g),g=!1):(c=bez.getNewSegment(f[n].v[o-1],f[n].v[o],f[n].o[o-1],f[n].i[o],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[o-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1),h+=a.addedLength,s+=1}if(f[n].c&&l.length){if(a=l[o-1],h<=t.e){var y=l[o-1].addedLength;t.s<=h&&t.e>=h+y?(this.addSegment(f[n].v[o-1],f[n].o[o-1],f[n].i[0],f[n].v[0],r,s,g),g=!1):(c=bez.getNewSegment(f[n].v[o-1],f[n].v[0],f[n].o[o-1],f[n].i[0],(t.s-h)/y,(t.e-h)/y,l[o-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1)}else r.c=!1;h+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),h>t.e)break;n<p-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],o=e._length,i=0;for(i=0;i<o;i+=1)n[0]+=e.v[i][0],n[1]+=e.v[i][1];n[0]/=o,n[1]/=o;var a,s,l,c,u,d,f=shapePool.newElement();for(f.c=e.c,i=0;i<o;i+=1)a=e.v[i][0]+(n[0]-e.v[i][0])*r,s=e.v[i][1]+(n[1]-e.v[i][1])*r,l=e.o[i][0]+(n[0]-e.o[i][0])*-r,c=e.o[i][1]+(n[1]-e.o[i][1])*-r,u=e.i[i][0]+(n[0]-e.i[i][0])*-r,d=e.i[i][1]+(n[1]-e.i[i][1])*-r,f.setTripleAt(a,s,l,c,u,d,i);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,o,i,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,n=0;n<o;n+=1)a.addShape(this.processPath(t[n],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,o=t.or.k.length;for(n=0;n<o;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,o;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],o=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(n[0]=i.getValueAtTime((i.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),o[0]=i.getValueAtTime(i.keyframes[0].t/r,0),o[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(n[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),o[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/r,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[i.pv,a.pv],o[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/r,i.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=o=e;this.v.rotate(-Math.atan2(n[1]-o[1],n[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var o=-t/(2*e);if(0===n)return[o];var i=Math.sqrt(n)/(2*e);return[o-i,o+i]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,o){o&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),o&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var i=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[i[0],a[0]],this.b=[i[1],a[1]],this.c=[i[2],a[2]],this.d=[i[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var o=n;n=r,r=o}for(var i=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<i.length;a+=1)if(i[a]>0&&i[a]<1){var s=e.point(i[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,o,i){if(boxIntersect(e,t))if(r>=i||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)o.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,o,i),intersectsImpl(a[0],s[1],r+1,n,o,i),intersectsImpl(a[1],s[0],r+1,n,o,i),intersectsImpl(a[1],s[1],r+1,n,o,i)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var o=[e[0],e[1],1],i=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(o,i),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,o,i,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*n*o,u=t[1]-Math.sin(r)*n*o;e.setTripleAt(c,u,c+Math.cos(s)*i,u-Math.sin(s)*i,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),o=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,r,n,o,i,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],d=2===i?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,f=2===i?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,f/(2*(o+1)),d/(2*(o+1)),i)}function zigZagSegment(e,t,r,n,o,i){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),l=2===o?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,i,r,l/(2*(n+1)),l/(2*(n+1)),o),i=-i}return i}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,o,i,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],n=l[1],o=(l=linearOffset(e.points[1],e.points[2],t))[0],i=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,n,o,i);null===c&&(c=n);var u=lineIntersection(a,s,o,i);return null===u&&(u=a),new PolynomialBezier(r,c,u,s)}function joinLines(e,t,r,n,o){var i=t.points[3],a=r.points[0];if(3===n)return i;if(pointEqual(i,a))return i;if(2===n){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,i):pointDistance(i,a)/2,d=polarOffset(i,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,l,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var f=lineIntersection(pointEqual(i,t.points[2])?t.points[0]:t.points[2],i,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,i)<o?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):i}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),o=getIntersection(e[e.length-1],t[0]);return o&&(r[e.length-1]=e[e.length-1].split(o[0])[0],n[0]=t[0].split(o[1])[1]),e.length>1&&t.length>1&&(o=getIntersection(e[0],t[t.length-1]))?[[e[0].split(o[0])[0]],[t[t.length-1].split(o[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,o,i,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(o=e.split(a[0]))[0],n=o[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(o=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return i=(o=o[1].split(s))[0],n=o[1],[offsetSegment(r,t),offsetSegment(i,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",o=t.length,i=0;i<o;i+=1)switch(t[i].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,o,i){var a=i?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-o),l=n.s.v[1]+(1-n.s.v[1])*(1-o);e.translate(n.p.v[0]*a*o,n.p.v[1]*a*o,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*o),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(i?1/s:s,i?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,o,i,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(i=0,n=0;n<=this._groups.length-1;n+=1){if(s=i<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=l;var f=this.o.v,p=f%1,h=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(f<0){for(;_>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(n=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===o||n!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,i-=1,n+=o}}else for(i=this._currentCopies,n=0,o=1;i;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,n+=o;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var o,i,a,s,l,c,u,d,f,p,h,m,g=e._length,y=0;for(r=0;r<g;r+=1)o=e.v[r],a=e.o[r],i=e.i[r],o[0]===a[0]&&o[1]===a[1]&&o[0]===i[0]&&o[1]===i[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=h=o[0]+(s[0]-o[0])*c,d=m=o[1]-(o[1]-s[1])*c,f=u-(u-o[0])*roundCorner,p=d-(d-o[1])*roundCorner,n.setTripleAt(u,d,f,p,h,m,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=f=o[0]+(s[0]-o[0])*c,d=p=o[1]+(s[1]-o[1])*c,h=u-(u-o[0])*roundCorner,m=d-(d-o[1])*roundCorner,n.setTripleAt(u,d,f,p,h,m,y),y+=1):(n.setTripleAt(o[0],o[1],a[0],a[1],i[0],i[1],y),y+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,o,i,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,n=0;n<o;n+=1)a.addShape(this.processPath(t[n],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(t,r,e),i=lerpPoint(r,n,e),a=lerpPoint(o,i,e);return[new PolynomialBezier(this.points[0],t,o,a,!0),new PolynomialBezier(a,i,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var o=e._length,i=shapePool.newElement();if(i.c=e.c,e.c||(o-=1),0===o)return i;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(i,e,0,t,r,n,a);for(var l=0;l<o;l+=1)a=zigZagSegment(i,s,t,r,n,-a),s=l!==o-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%o):null,zigZagCorner(i,e,l+1,t,r,n,a);return i},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,o,i,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,n=0;n<o;n+=1)a.addShape(this.processPath(t[n],l,c,u));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var o=shapePool.newElement();o.c=e.c;var i,a,s,l=e.length();e.c||(l-=1);var c=[];for(i=0;i<l;i+=1)s=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(s,t));if(!e.c)for(i=l-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,d=null;for(i=0;i<c.length;i+=1){var f=c[i];for(d&&(u=joinLines(o,d,f[0],r,n)),d=f[f.length-1],a=0;a<f.length;a+=1)s=f[a],u&&pointEqual(s.points[0],u)?o.setXYAt(s.points[1][0],s.points[1][1],"o",o.length()-1):o.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],o.length()),o.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],o.length()),u=s.points[3]}return c.length&&joinLines(o,d,c[0][0],r,n),o},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,o,i,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,n=0;n<o;n+=1)a.addShape(this.processPath(t[n],l,u,c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var o=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,o=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&o.push(r[t]);return o.join(",")}(e)+", "+t,{node:n,w:o,parent:r}}function i(e,t){var r,n=document.body&&t?"svg":"canvas",o=getFontProperties(e);if("svg"===n){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",o.style),i.setAttribute("font-weight",o.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),r=i}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=o.style+" "+o.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var o=0;for(t+=2;o<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;o+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,o=e.length,i=this.chars.length;for(t=0;t<o;t+=1){for(r=0,n=!1;r<i;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),i+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=i(e),e.cache={}}),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var l,c,u=!0;if(n[r].loaded=!1,n[r].monoCase=o(n[r].fFamily,"monospace"),n[r].sansCase=o(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("f-family",n[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(d)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(n[r].fPath)&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.type="text/css",f.rel="stylesheet",f.href=n[r].fPath,document.body.appendChild(f)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)n[r].fPath===l[c].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[r].fPath),t.appendChild(p)}}}else n[r].loaded=!0,s-=1;n[r].helper=i(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var o=0,i=this.chars.length;o<i;){if(this.chars[o].ch===t&&this.chars[o].style===r&&this.chars[o].fFamily===n)return this.chars[o];o+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),o=e;if(!n.cache[o]){var i=n.helper;if(" "===e){var a=i.measureText("|"+e+"|"),s=i.measureText("||");n.cache[o]=(a-s)/100}else n.cache[o]=i.measureText(e)/100}return n.cache[o]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,o=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(o-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var o,i=n.length;for(r=0;r<i;r+=1)o=new GroupEffect(n[r],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,o=this.data.ef.length,i=this.data.ef;for(r=0;r<o;r+=1){switch(n=null,i[r].ty){case 0:n=new SliderEffect(i[r],t,this);break;case 1:n=new AngleEffect(i[r],t,this);break;case 2:n=new ColorEffect(i[r],t,this);break;case 3:n=new PointEffect(i[r],t,this);break;case 4:case 7:n=new CheckboxEffect(i[r],t,this);break;case 10:n=new LayerIndexEffect(i[r],t,this);break;case 11:n=new MaskIndexEffect(i[r],t,this);break;case 5:n=new EffectsManager(i[r],t,this);break;default:n=new NoValueEffect(i[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),o=e("text"),i=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,o=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<o;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,o=this.layers,i=0,a=o.length;i<a;)o[i].ind==t&&(n[i]&&!0!==n[i]?(r.push(n[i]),n[i].setAsParent(),void 0!==o[i].parent?this.buildElementParenting(e,o[i].parent,r):e.setHierarchy(r)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,o=this.elements.length;for(n=0;n<o;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,o,i=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,d,f,p=this.masksProperties,h=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(y="mask",v="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==h?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),o=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:o,lastPath:""},i.appendChild(o);else{var b;if(h+=1,o.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),i.appendChild(u),o.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(d=null,f=null),this.storedData[n]={elem:o,x:f,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[n].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+h),w.appendChild(o),i.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+h+")"),m.length=0,m.push(_)}else m.push(o);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);h>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)o*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,o=this.comp;n;)o.finalTransform?(o.data.hasMask&&t.splice(0,0,o.finalTransform),o=o.comp):n=!1;var i,a=t.length;for(r=0;r<a;r+=1)i=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,o,i=" M"+t.v[0][0]+","+t.v[0][1];for(o=t._length,n=1;n<o;n+=1)i+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&o>1&&(i+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",a)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",o=e.data.ef?e.data.ef.length:0,i=createElementID(),a=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<o;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),i.appendChild(this.layerElement),this.transformedElement=i,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,o,i=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",i),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(n),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(d),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),l.appendChild(d),o.appendChild(this.layerElement),l.appendChild(o)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=i}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,o=e.length;n<o;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var i,a=t.length||0;for(o=0;o<a;o+=1)i=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=i.k||this.k,this.dataProps[o]={n:t[o].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,o=4*this.data.p;for(t=0;t<o;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var o,i,a,s=[];for(a=4*t.g.p,i=0;i<a;i+=4)o=createNS("stop"),n.appendChild(o),s.push(o);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,o,i=createNS("mask"),a=createNS("path");i.appendChild(a);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<o;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=i,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var o,i=e.o,a=e.i,s=e.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<t;o+=1)l+=" C"+n.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+n.applyToPointStringified(a[o][0],a[o][1])+" "+n.applyToPointStringified(s[o][0],s[o][1]);return r&&t&&(l+=" C"+n.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function o(r,n,o){var i,a,s,l,c,u,d,f,p,h,m=n.styles.length,g=n.lvl;for(u=0;u<m;u+=1){if(l=n.sh._mdf||o,n.styles[u].lvl<g){for(f=t.reset(),p=g-n.styles[u].lvl,h=n.transformers.length-1;!l&&p>0;)l=n.transformers[h].mProps._mdf||l,p-=1,h-=1;if(l)for(p=g-n.styles[u].lvl,h=n.transformers.length-1;p>0;)f.multiply(n.transformers[h].mProps.v),p-=1,h-=1}else f=e;if(a=(d=n.sh.paths)._length,l){for(s="",i=0;i<a;i+=1)(c=d.shapes[i])&&c._length&&(s+=buildShapeString(c,c._length,c.c,f));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=l||n.styles[u]._mdf}}function i(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var n,o,i,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||r){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||r){var p=1===e.t?"x1":"cx",h="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(h,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(h,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(i=n.length,o=0;o<i;o+=1)(a=n[o]).setAttribute("offset",m[4*o]+"%"),a.setAttribute("stop-color","rgb("+m[4*o+1]+","+m[4*o+2]+","+m[4*o+3]+")")}if(c&&(t.g._omdf||r)){var g=t.g.o;for(i=(n=t.g._collapsable?t.cst:t.ost).length,o=0;o<i;o+=1)a=n[o],t.g._collapsable||a.setAttribute("offset",g[2*o]+"%"),a.setAttribute("stop-opacity",g[2*o+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var y=Math.atan2(d[1]-u[1],d[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,_=Math.cos(y+t.a.v)*b+u[0],w=Math.sin(y+t.a.v)*b+u[1];l.setAttribute("fx",_),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",w))}}function l(e,t,r){var n=t.style,o=t.d;o&&(o._mdf||r)&&o.dashStr&&(n.pElem.setAttribute("stroke-dasharray",o.dashStr),n.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return o;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,o,i){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=o,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,o=this.shapes.length,i=this.stylesList.length,a=[],s=!1;for(r=0;r<i;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<o;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),o=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),o.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var o=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,o,i,a){var s,l,c,u,d,f,p=[].concat(i),h=e.length-1,m=[],g=[];for(s=h;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=r[f-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],o),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,o+1,p,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],p,o)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(f?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(f?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=g.length,s=0;s<h;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,o,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,a=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(n=0;n<o;n+=1)i=r!==this.keysIndex?this.effectsSequence[n](i,i.t):this.effectsSequence[n](this.currentData,i.t);t!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],o=0,i=e.length,a=!1,s=!1,l="";o<i;)a=s,s=!1,t=e.charCodeAt(o),l=e.charAt(o),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,o)?l=e.substr(o,14):(r=e.charCodeAt(o+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(o,2),a=!0):l=FontManager.isFlagEmoji(e.substr(o,4))?e.substr(o,4):e.substr(o,2)):t>56319?(r=e.charCodeAt(o+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),o+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,o,i,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],d=0,f=c.m.g,p=0,h=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),_=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,E=e.tr/1e3*e.finalSize;if(e.sz)for(var k,x,T=!0,O=e.sz[0],C=e.sz[1];T;){k=0,y=0,r=(x=this.buildFinalText(e.t)).length,E=e.tr/1e3*e.finalSize;var j=-1;for(t=0;t<r;t+=1)S=x[t].charCodeAt(0),n=!1," "===x[t]?j=t:13!==S&&3!==S||(y=0,n=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(x[t],b.fStyle,b.fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(x[t],e.f,e.finalSize),y+_>O&&" "!==x[t]?(-1===j?r+=1:t=j,k+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,j===t?1:0,"\r"),j=-1,y=0):(y+=_,y+=E);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&C<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,r=e.finalText.length,T=!1)}y=-E,_=0;var P,I=0;for(t=0;t<r;t+=1)if(n=!1,13===(S=(P=e.finalText[t]).charCodeAt(0))||3===S?(I=0,g.push(y),v=y>v?y:v,y=-2*E,o="",n=!0,m+=1):o=P,l.chars?(s=l.getCharData(P,b.fStyle,l.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(o,e.f,e.finalSize)," "===P?I+=_+E:(y+=_+E+I,I=0),u.push({l:_,an:_,add:p,n,anIndexes:[],val:o,line:m,animatorJustifyOffset:0}),2==f){if(p+=_,""===o||" "===o||t===r-1){for(""!==o&&" "!==o||(p-=_);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=_,h+=1;d+=1,p=0}}else if(3==f){if(p+=_,""===o||t===r-1){for(""===o&&(p-=_);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=_,h+=1;p=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var R,A,M,D,N=c.a;a=N.length;var L=[];for(i=0;i<a;i+=1){for((R=N[i]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),D=0,M=R.s.b,t=0;t<r;t+=1)(A=u[t]).anIndexes[i]=D,(1==M&&""!==A.val||2==M&&""!==A.val&&" "!==A.val||3==M&&(A.n||" "==A.val||t==r-1)||4==M&&(A.n||t==r-1))&&(1===R.s.rn&&L.push(D),D+=1);c.a[i].s.totalChars=D;var B,F=-1;if(1===R.s.rn)for(t=0;t<r;t+=1)F!=(A=u[t]).anIndexes[i]&&(F=A.anIndexes[i],B=L.splice(Math.floor(Math.random()*L.length),1)[0]),A.anIndexes[i]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,i=0,a=1,s=1;this.ne.v>0?o=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(o,i,a,s).get,c=0,u=this.finalS,d=this.finalE,f=this.data.sh;if(2===f)c=l(c=d===u?n>=d?1:0:e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(3===f)c=l(c=d===u?n>=d?0:1:1-e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(4===f)d===u?c=0:(c=e(0,t(.5/(d-u)+(n-u)/(d-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===f){if(d===u)c=0;else{var p=d-u,h=-p/2+(n=t(e(0,n+.5-u),d-u)),m=p/2;c=Math.sqrt(1-h*h/(m*m))}c=l(c)}else 6===f?(d===u?c=0:(n=t(e(0,n+.5-u),d-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(d-u)))/2),c=l(c)):(n>=r(u)&&(c=e(0,t(n-u<0?t(d,1)-(u-n):d-n,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,o=this.e.v/t+r;if(n>o){var i=n;n=o,o=i}this.finalS=n,this.finalE=o}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},o=PropertyFactory.getProp,i=t.a;this.a={r:i.r?o(e,i.r,0,degToRads,r):n,rx:i.rx?o(e,i.rx,0,degToRads,r):n,ry:i.ry?o(e,i.ry,0,degToRads,r):n,sk:i.sk?o(e,i.sk,0,degToRads,r):n,sa:i.sa?o(e,i.sa,0,degToRads,r):n,s:i.s?o(e,i.s,1,.01,r):n,a:i.a?o(e,i.a,1,0,r):n,o:i.o?o(e,i.o,0,.01,r):n,p:i.p?o(e,i.p,1,0,r):n,sw:i.sw?o(e,i.sw,0,0,r):n,sc:i.sc?o(e,i.sc,1,0,r):n,fc:i.fc?o(e,i.fc,1,0,r):n,fh:i.fh?o(e,i.fh,0,0,r):n,fs:i.fs?o(e,i.fs,0,.01,r):n,fb:i.fb?o(e,i.fb,0,.01,r):n,t:i.t?o(e,i.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,o,i,a,s,l,c,u,d,f,p,h,m,g,y,v,b,_,w=this._moreOptions.alignment.v,S=this._animatorsData,E=this._textData,k=this.mHelper,x=this._renderType,T=this.renderedLetters.length,O=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,j=_.v;for(this._pathData.r.v&&(j=j.reverse()),a={tLength:0,segments:[]},i=j._length-1,y=0,o=0;o<i;o+=1)C=bez.buildBezierData(j.v[o],j.v[o+1],[j.o[o][0]-j.v[o][0],j.o[o][1]-j.v[o][1]],[j.i[o+1][0]-j.v[o+1][0],j.i[o+1][1]-j.v[o+1][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength;o=i,_.v.c&&(C=bez.buildBezierData(j.v[o],j.v[0],[j.o[o][0]-j.v[o][0],j.o[o][1]-j.v[o][1]],[j.i[0][0]-j.v[0][0],j.i[0][1]-j.v[0][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,f=0,d=1,c=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(h=m[f=m.length-1].points).length-1;s<0;)s+=h[d].partialLength,(d-=1)<0&&(d=(h=m[f-=1].points).length-1);p=(h=m[f].points)[d-1],g=(l=h[d]).partialLength}i=O.length,r=0,n=0;var P,I,R,A,M,D=1.2*e.finalSize*.714,N=!0;R=S.length;var L,B,F,z,U,H,q,V,W,G,$,K,Y=-1,J=s,X=f,Q=d,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,oe=2===e.j?-.5:-1,ie=0,ae=!0;for(o=0;o<i;o+=1)if(O[o].n){for(re&&(re+=ne);ie<o;)O[ie].animatorJustifyOffset=re,ie+=1;re=0,ae=!0}else{for(I=0;I<R;I+=1)(P=S[I].a).t.propType&&(ae&&2===e.j&&(ne+=P.t.v*oe),(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?re+=P.t.v*M[0]*oe:re+=P.t.v*M*oe);ae=!1}for(re&&(re+=ne);ie<o;)O[ie].animatorJustifyOffset=re,ie+=1}for(o=0;o<i;o+=1){if(k.reset(),z=1,O[o].n)r=0,n+=e.yOffset,n+=N?1:0,s=J,N=!1,this._hasMaskedPath&&(d=Q,p=(h=m[f=X].points)[d-1],g=(l=h[d]).partialLength,c=0),ee="",$="",W="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==O[o].line){switch(e.j){case 1:s+=y-e.lineWidths[O[o].line];break;case 2:s+=(y-e.lineWidths[O[o].line])/2}Z=O[o].line}Y!==O[o].ind&&(O[Y]&&(s+=O[Y].extra),s+=O[o].an/2,Y=O[o].ind),s+=w[0]*O[o].an*.005;var se=0;for(I=0;I<R;I+=1)(P=S[I].a).p.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?se+=P.p.v[0]*M[0]:se+=P.p.v[0]*M),P.a.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?se+=P.a.v[0]*M[0]:se+=P.a.v[0]*M);for(u=!0,this._pathData.a.v&&(s=.5*O[0].an+(y-this._pathData.f.v-.5*O[0].an-.5*O[O.length-1].an)*Y/(i-1),s+=this._pathData.f.v);u;)c+g>=s+se||!h?(v=(s+se-c)/l.partialLength,B=p.point[0]+(l.point[0]-p.point[0])*v,F=p.point[1]+(l.point[1]-p.point[1])*v,k.translate(-w[0]*O[o].an*.005,-w[1]*D*.01),u=!1):h&&(c+=l.partialLength,(d+=1)>=h.length&&(d=0,m[f+=1]?h=m[f].points:_.v.c?(d=0,h=m[f=0].points):(c-=l.partialLength,h=null)),h&&(p=l,g=(l=h[d]).partialLength));L=O[o].an/2-O[o].add,k.translate(-L,0,0)}else L=O[o].an/2-O[o].add,k.translate(-L,0,0),k.translate(-w[0]*O[o].an*.005,-w[1]*D*.01,0);for(I=0;I<R;I+=1)(P=S[I].a).t.propType&&(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?M.length?s+=P.t.v*M[0]:s+=P.t.v*M:M.length?r+=P.t.v*M[0]:r+=P.t.v*M));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(U=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(q=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<R;I+=1)(P=S[I].a).a.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?k.translate(-P.a.v[0]*M[0],-P.a.v[1]*M[1],P.a.v[2]*M[2]):k.translate(-P.a.v[0]*M,-P.a.v[1]*M,P.a.v[2]*M));for(I=0;I<R;I+=1)(P=S[I].a).s.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?k.scale(1+(P.s.v[0]-1)*M[0],1+(P.s.v[1]-1)*M[1],1):k.scale(1+(P.s.v[0]-1)*M,1+(P.s.v[1]-1)*M,1));for(I=0;I<R;I+=1){if(P=S[I].a,M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),P.sk.propType&&(M.length?k.skewFromAxis(-P.sk.v*M[0],P.sa.v*M[1]):k.skewFromAxis(-P.sk.v*M,P.sa.v*M)),P.r.propType&&(M.length?k.rotateZ(-P.r.v*M[2]):k.rotateZ(-P.r.v*M)),P.ry.propType&&(M.length?k.rotateY(P.ry.v*M[1]):k.rotateY(P.ry.v*M)),P.rx.propType&&(M.length?k.rotateX(P.rx.v*M[0]):k.rotateX(P.rx.v*M)),P.o.propType&&(M.length?z+=(P.o.v*M[0]-z)*M[0]:z+=(P.o.v*M-z)*M),e.strokeWidthAnim&&P.sw.propType&&(M.length?H+=P.sw.v*M[0]:H+=P.sw.v*M),e.strokeColorAnim&&P.sc.propType)for(V=0;V<3;V+=1)M.length?U[V]+=(P.sc.v[V]-U[V])*M[0]:U[V]+=(P.sc.v[V]-U[V])*M;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(V=0;V<3;V+=1)M.length?q[V]+=(P.fc.v[V]-q[V])*M[0]:q[V]+=(P.fc.v[V]-q[V])*M;P.fh.propType&&(q=M.length?addHueToRGB(q,P.fh.v*M[0]):addHueToRGB(q,P.fh.v*M)),P.fs.propType&&(q=M.length?addSaturationToRGB(q,P.fs.v*M[0]):addSaturationToRGB(q,P.fs.v*M)),P.fb.propType&&(q=M.length?addBrightnessToRGB(q,P.fb.v*M[0]):addBrightnessToRGB(q,P.fb.v*M))}}for(I=0;I<R;I+=1)(P=S[I].a).p.propType&&(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),this._hasMaskedPath?M.length?k.translate(0,P.p.v[1]*M[0],-P.p.v[2]*M[1]):k.translate(0,P.p.v[1]*M,-P.p.v[2]*M):M.length?k.translate(P.p.v[0]*M[0],P.p.v[1]*M[1],-P.p.v[2]*M[2]):k.translate(P.p.v[0]*M,P.p.v[1]*M,-P.p.v[2]*M));if(e.strokeWidthAnim&&(W=H<0?0:H),e.strokeColorAnim&&(G="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),e.fillColorAnim&&e.fc&&($="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,w[1]*D*.01+n,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(B,F,0),s-=w[0]*O[o].an*.005,O[o+1]&&Y!==O[o+1].ind&&(s+=O[o].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(r,n,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(O[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[o].line]),0,0);break;case 2:k.translate(O[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[o].line])/2,0,0)}k.translate(0,-e.ls),k.translate(L,0,0),k.translate(w[0]*O[o].an*.005,w[1]*D*.01,0),r+=O[o].l+.001*e.tr*e.finalSize}"html"===x?ee=k.toCSS():"svg"===x?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],K=z}T<=o?(A=new LetterProps(K,W,G,$,ee,te),this.renderedLetters.push(A),T+=1,this.lettersChangedFlag=!0):(A=this.renderedLetters[o],this.lettersChangedFlag=A.update(K,W,G,$,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,o=t.length,i="";for(r=0;r<o;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,i+=buildShapeString(n,n.i.length,!0,e));return i},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,o){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),o=createElementID();n.setAttribute("id",o),n.textContent=t.title,this.svgElement.appendChild(n),r+=o}if(t&&t.description){var i=createNS("desc"),a=createElementID();i.setAttribute("id",a),i.textContent=t.description,this.svgElement.appendChild(i),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],o="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(o),o=""):o+=e[t],t+=1;return n.push(o),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var o=r.fWeight,i=r.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,d=0,f=0,p=!0,h=.001*r.tr*r.finalSize;if(!u||l||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(d=-h,f+=r.yOffset,f+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,d,f),d+=s[e].l||0,d+=h),l){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",h);var E=this.buildTextContents(r.finalText);for(t=E.length,f=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=E[e],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,o,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=i[e],n=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var o=createElementID();r.setAttribute("id",o),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var o=t[n].getMatte(this.layers[e].tt);r.setMatte(o)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,o=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(n=this.elements[o].getBaseElement()),o+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var o=this.sequences[n];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var r=0,n=e.transforms.length,o=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=o},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function o(){var o,i,a;t||(o=createNS("svg"),i=createNS("filter"),a=createNS("feColorMatrix"),i.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(a),o.appendChild(i),o.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),n=o,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:o,get:function(n){return t||o(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var o=e.data.ef[t].ty;registeredEffects[o]&&(r=new(0,registeredEffects[o].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,o=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(o=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,o=this.element.finalTransform.mat,i=this.element.canvasContext,a=this.masksProperties.length;for(i.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),n=this.viewData[e].v,t=o.applyToPointArray(n.v[0][0],n.v[0][1],0),i.moveTo(t[0],t[1]);var l=n._length;for(s=1;s<l;s+=1)r=o.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),i.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=o.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),i.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var a,s=r.length;for(o=0;o<s;o+=1)r[o].closed||(a={transforms:n.addTransformSequence(r[o].transforms),trNodes:[]},this.styledShapes.push(a),r[o].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,i=e.ks.or.k.length;for(o=0;o<i;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);n.d=o,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,o){var i,a,s,l,c,u,d=e.length-1,f=[],p=[],h=[].concat(o);for(i=d;i>=0;i-=1){if((l=this.searchProcessedElement(e[i]))?t[i]=r[l-1]:e[i]._shouldRender=n,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)l?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],h),f.push(t[i].style);else if("gr"===e[i].ty){if(l)for(s=t[i].it.length,a=0;a<s;a+=1)t[i].prevViewData[a]=t[i].it[a];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,n,h)}else"tr"===e[i].ty?(l||(u=this.createTransformElement(e[i]),t[i]=u),h.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?l||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty||"zz"===e[i].ty||"op"===e[i].ty?(l?(c=t[i]).closed=!1:((c=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[i].ty&&(l?(c=t[i]).closed=!0:(c=ShapeModifiers.getModifier(e[i].ty),t[i]=c,c.init(this,e,i,t),this.shapeModifiers.push(c),n=!1),p.push(c));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),d=p.length,i=0;i<d;i+=1)p[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,o,i,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),i=l.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===s?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),r=i.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),o=(a=i[t].trNodes).length,n=0;n<o;n+=1)"m"===a[n].t?d.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?d.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var o,i;for(i=e,o=t.length-1;o>=0;o-=1)"tr"===t[o].ty?(i=r[o].transform,this.renderShapeTransform(e,i)):"sh"===t[o].ty||"el"===t[o].ty||"rc"===t[o].ty||"sr"===t[o].ty?this.renderPath(t[o],r[o]):"fl"===t[o].ty?this.renderFill(t[o],r[o],i):"st"===t[o].ty?this.renderStroke(t[o],r[o],i):"gf"===t[o].ty||"gs"===t[o].ty?this.renderGradientFill(t[o],r[o],i):"gr"===t[o].ty?this.renderShape(i,t[o].it,r[o].it):t[o].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,o,i=e.trNodes,a=t.paths,s=a._length;i.length=0;var l=e.transforms.finalTransform;for(o=0;o<s;o+=1){var c=a.shapes[o];if(c&&c.v){for(n=c._length,r=1;r<n;r+=1)1===r&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===n&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,o=t.style;if(!o.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var f=c*d,p=Math.cos(u+t.a.v)*f+s[0],h=Math.sin(u+t.a.v)*f+s[1];n=a.createRadialGradient(p,h,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(i=0;i<m;i+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*i+1]),n.addColorStop(g[4*i]/100,"rgba("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+","+y+")");o.grd=n}o.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(n.da=o.dashArray,n.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,o,i,a,s,l,c,u,d,f,p,h,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,w=0,S=!0,E=0;for(n=0;n<o;n+=1){a=(i=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},y.reset(),v&&g[n].n&&(_=-b,w+=e.yOffset,w+=S?1:0,S=!1),d=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[n].line,_,w),p=createSizedArray(d-1);var k=0;for(u=0;u<d;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,f=c[u].ks.k,h=[],s=1;s<l;s+=1)1===s&&h.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),h.push(y.applyToX(f.o[s-1][0],f.o[s-1][1],0),y.applyToY(f.o[s-1][0],f.o[s-1][1],0),y.applyToX(f.i[s][0],f.i[s][1],0),y.applyToY(f.i[s][0],f.i[s][1],0),y.applyToX(f.v[s][0],f.v[s][1],0),y.applyToY(f.v[s][0],f.v[s][1],0));h.push(y.applyToX(f.o[s-1][0],f.o[s-1][1],0),y.applyToY(f.o[s-1][0],f.o[s-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),p[k]=h,k+=1}v&&(_+=g[n].l,_+=b),this.textSpans[E]?this.textSpans[E].elem=p:this.textSpans[E]={elem:p},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,o,i;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,d=null,f=null,p=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(h.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,h.ctxFillStyle(this.values.fill)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(i=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,h.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,h.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(i=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),o=this.img.width,i=this.img.height,a=o/i,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=i)*s:r=(t=o)/s,n.drawImage(this.img,(o-t)/2,(i-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,o,i;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);o=r/n,(i=this.transformCanvas.w/this.transformCanvas.h)>o&&"meet"===s||i<o&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(i<o&&"meet"===s||i>o&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(i<o&&"meet"===s||i>o&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(i>o&&"meet"===s||i<o&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(i>o&&"meet"===s||i<o&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,o=this.cTr.props;for(t=0;t<16;t+=1)o[t]=n[t];if(e){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=n.opacity,o.fillStyle=n.fillStyle,o.strokeStyle=n.strokeStyle,o.lineWidth=n.lineWidth,o.lineCap=n.lineCap,o.lineJoin=n.lineJoin,o.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,o,i,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),o=this.getTransformedPoint(l,s.o[r]),i=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,o,i,a,t);s.c&&(n=this.getTransformedPoint(l,s.v[r]),o=this.getTransformedPoint(l,s.o[r]),i=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,o,i,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,o){this.getBoundsOfCurve(e,t,r,n);var i=this.shapeBoundingBox;o.x=bmMin(i.left,o.x),o.xMax=bmMax(i.right,o.xMax),o.y=bmMin(i.top,o.y),o.yMax=bmMax(i.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var o,i,a,s,l,c,u,d=[[e[0],n[0]],[e[1],n[1]]],f=0;f<2;++f)i=6*e[f]-12*t[f]+6*r[f],o=-3*e[f]+9*t[f]-9*r[f]+3*n[f],a=3*t[f]-3*e[f],i|=0,a|=0,0==(o|=0)&&0===i||(0===o?(s=-a/i)>0&&s<1&&d[f].push(this.calculateF(s,e,t,r,n,f)):(l=i*i-4*a*o)>=0&&((c=(-i+bmSqrt(l))/(2*o))>0&&c<1&&d[f].push(this.calculateF(c,e,t,r,n,f)),(u=(-i-bmSqrt(l))/(2*o))>0&&u<1&&d[f].push(this.calculateF(u,e,t,r,n,f))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,o,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*r[i]+3*(1-e)*bmPow(e,2)*n[i]+bmPow(e,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var o=e.keyframes[n].s;o>r&&(r=o)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=o,n.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,o,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,d=e.l;o=d.length;var f,p=this.mHelper,h="",m=0;for(n=0;n<o;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[n],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(f=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(p,f),l.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[n].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=d[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var w=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,o,i,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(n=c.length,r=0;r<n;r+=1)c[r].n?s+=1:(i=this.textSpans[r],a=this.textPaths[r],o=l[s],s+=1,o._mdf.m&&(this.isMasked?i.setAttribute("transform",o.m):(i.style.webkitTransform=o.m,i.style.transform=o.m)),i.style.opacity=o.o,o.sw&&o._mdf.sw&&a.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&a.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(a.setAttribute("fill",o.fc),a.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var i=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=i,r.webkitPerspective=i,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),a=[o[0]/i,o[1]/i,o[2]/i],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,f,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var h=this.mat.toCSS();(p=d.container.style).transform=h,p.webkitTransform=h}this.pe._mdf&&((f=d.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var o,i,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a],o=(this.layers[a].ddd?this.getThreeDContainerByPos(a):i.getBaseElement())||o),a+=1;o?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,o):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,o=createTag("div");styleDiv(o);var i=createTag("div");if(styleDiv(i),"3d"===t){(r=o.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=i.style).transform=s,n.webkitTransform=s}o.appendChild(i);var l={container:i,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var o,i=this.threeDElements[r].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[r].container.insertBefore(e,o):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var i=createNS("defs");o.appendChild(i),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=i,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,r=0,n=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,r=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var o=this.createComp(e[t],n,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,o="random",i=t.pow(n,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,o=this,i=0,a=o.i=o.j=0,s=o.S=[];for(r||(e=[r++]);i<n;)s[i]=i++;for(i=0;i<n;i++)s[i]=s[a=l&a+e[i%r]+(t=s[i])],s[a]=t;o.g=function(e){for(var t,r=0,i=o.i,a=o.j,s=o.S;e--;)t=s[i=l&i+1],r=r*n+s[l&(s[i]=s[a=l&a+t])+(s[a]=t)];return o.i=i,o.j=a,r}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var r,n=[],o=_typeof$2(e);if(t&&"object"==o)for(r in e)try{n.push(d(e[r],t-1))}catch(e){}return n.length?n:"string"==o?e:e+"\0"}function f(e,t){for(var r,n=e+"",o=0;o<n.length;)t[l&o]=l&(r^=19*t[l&o])+n.charCodeAt(o++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+o]=function(l,h,m){var g=[],y=f(d((h=!0===h?{entropy:!0}:h||{}).entropy?[l,p(e)]:null===l?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var o=r.navigator,i=o&&o.plugins;return[+new Date,r,i,r.screen,p(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=i,r=0;e<a;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,f(p(v.S),e),(h.pass||m||function(e,r,n,i){return i&&(i.S&&u(i,v),e.state=function(){return u(v,{})}),n?(t[o]=e,r):e})(b,y,"global"in h?h.global:this==t,h.state)},f(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,o=[];for(r=0;r<n;r+=1)o[r]=-e[r];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]+t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]-t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}function mul(e,t){var r,n,o,i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,r=createTypedArray("float32",o),n=0;n<o;n+=1)r[n]=e[n]*t;return r}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,r=createTypedArray("float32",o),n=0;n<o;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,o,i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,r=createTypedArray("float32",o),n=0;n<o;n+=1)r[n]=e[n]/t;return r}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,r=createTypedArray("float32",o),n=0;n<o;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),o=0;for(r=0;r<n;r+=1)o+=Math.pow(t[r]-e[r],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],o=e[1],i=e[2],a=Math.max(n,o,i),s=Math.min(n,o,i),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case n:t=(o-i)/c+(o<i?6:0);break;case o:t=(i-n)/c+2;break;case i:t=(n-o)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,o=e[0],i=e[1],a=e[2];if(0===i)t=a,n=a,r=a;else{var s=a<.5?a*(1+i):a+i-a*i,l=2*a-s;t=hue2rgb(l,s,o+1/3),r=hue2rgb(l,s,o),n=hue2rgb(l,s,o-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,o){if(void 0!==n&&void 0!==o||(n=t,o=r,t=0,r=1),r<t){var i=r;r=t,t=i}if(e<=t)return n;if(e>=r)return o;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(o-n)*s;var l=n.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=n[a]+(o[a]-n[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var o=createTypedArray("float32",n),i=BMMath.random();for(r=0;r<n;r+=1)o[r]=e[r]+i*(t[r]-e[r]);return o}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var o,i=e.length,a=shapePool.newElement();a.setPathData(!!n,i);var s,l,c=[0,0];for(o=0;o<i;o+=1)s=t&&t[o]?t[o]:c,l=r&&r[o]?r[o]:c,a.setTripleAt(e[o][0],e[o][1],l[0]+e[o][0],l[1]+e[o][1],s[0]+e[o][0],s[1]+e[o][1],o,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,o=this.pv.length?this.pv.length:1,i=createTypedArray("float32",o),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<o;n+=1)i[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",o);if(o>1){for(n=0;n<o;n+=1)c[n]=this.pv[n]+i[n]+(-t+2*t*BMMath.random())*l;return c}return this.pv+i[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,o){return applyEase(easeOutBez,e,t,r,n,o)}function easeIn(e,t,r,n,o){return applyEase(easeInBez,e,t,r,n,o)}function ease(e,t,r,n,o){return applyEase(easeInOutBez,e,t,r,n,o)}function applyEase(e,t,r,n,o,i){void 0===o?(o=r,i=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(o)){var s,l=o.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(i[s]-o[s])*a+o[s];return c}return(i-o)*a+o}function nearestKey(e){var t,r,n,o=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<o-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var i={};return i.index=r,i.time=n/elem.comp.globalData.frameRate,i}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=o.length,r=0;r<n;r+=1)t[r]=o[r],t.value[r]=o[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),o=t.viewData.length;for(r=0;r<o;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<o;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var o="";o="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var i="unidimensional"===r?new Number(o):Object.assign({},o);return i.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===r?o[0]:o,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(o){return o?"unidimensional"===o.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,o=t.pv*n,i=new Number(o);return i.value=o,r(i,t,"unidimensional"),function(){return t.k&&t.getValue(),o=t.v*n,i.value!==o&&((i=new Number(o)).value=o,i[0]=o,r(i,t,"unidimensional")),i}}(o):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,o=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",o),a=createTypedArray("float32",o);return i.value=a,r(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<o;t+=1)a[t]=e.v[t]*n,i[t]=a[t];return i}}(o):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,o,i;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[r(),n(),o?o():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function o(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=i,d.toWorld=r,d.toWorldVec=t,d.fromWorld=o,d.fromWorldVec=n,d.toComp=r,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c;var f=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=0===c.data.ty?c.data.h:100,d.width=0===c.data.ty?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,c)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,o,i){function a(e){for(var t=r.ef,n=0,o=t.length;n<o;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?c[n]:c[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(a,o),c=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?c.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,i)):c.push(t(n.effectElements[s],r.ef[s].ty,i,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var o=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):o()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,o=[],i=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)o.push(e(i[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],l=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return o[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function o(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?o.path:null}var i=propertyGroupFactory(o,r);return n.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(o,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),o},ShapeExpressionInterface=function(){function e(e,s,p){var h,m=[],g=e?e.length:0;for(h=0;h<g;h+=1)"gr"===e[h].ty?m.push(t(e[h],s[h],p)):"fl"===e[h].ty?m.push(r(e[h],s[h],p)):"st"===e[h].ty?m.push(i(e[h],s[h],p)):"tm"===e[h].ty?m.push(a(e[h],s[h],p)):"tr"===e[h].ty||("el"===e[h].ty?m.push(l(e[h],s[h],p)):"sr"===e[h].ty?m.push(c(e[h],s[h],p)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],s[h],p)):"rc"===e[h].ty?m.push(u(e[h],s[h],p)):"rd"===e[h].ty?m.push(d(e[h],s[h],p)):"rp"===e[h].ty?m.push(f(e[h],s[h],p)):"gf"===e[h].ty?m.push(n(e[h],s[h],p)):m.push(o(e[h],s[h])));return m}function t(t,r,n){var o=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,n);var i=function(t,r,n){var o,i=function(e){for(var t=0,r=o.length;t<r;){if(o[t]._name===e||o[t].mn===e||o[t].propertyIndex===e||o[t].ix===e||o[t].ind===e)return o[t];t+=1}return"number"==typeof e?o[e-1]:null};i.propertyGroup=propertyGroupFactory(i,n),o=e(t.it,r.it,i.propertyGroup),i.numProperties=o.length;var a=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.transform=a,i.propertyIndex=t.cix,i._name=t.nm,i}(t,r,o.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.content=i,o.transform=a,Object.defineProperty(o,"_name",{get:function(){return t.nm}}),o.numProperties=t.np,o.propertyIndex=t.ix,o.nm=t.nm,o.mn=t.mn,o}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function o(){return function(){return null}}function i(e,t,r){var n,o=propertyGroupFactory(c,r),i=propertyGroupFactory(l,o);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(i);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",o)),t.o.setGroupProperty(PropertyInterface("Opacity",o)),t.w.setGroupProperty(PropertyInterface("Stroke Width",o)),c}function a(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var o=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",o)),t.e.setGroupProperty(PropertyInterface("End",o)),t.o.setGroupProperty(PropertyInterface("Offset",o)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function s(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var o=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var o=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var o=propertyGroupFactory(n,r),i="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",o)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),i.pt.setGroupProperty(PropertyInterface("Points",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var o=propertyGroupFactory(n,r),i="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",o)),i.s.setGroupProperty(PropertyInterface("Size",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function d(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var o=propertyGroupFactory(n,r),i=t;return n.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function f(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var o=propertyGroupFactory(n,r),i=t;return n.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",o)),i.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var o;function i(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:o[e-1];for(var t=0,r=o.length;t<r;){if(o[t]._name===e)return o[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return n}),o=e(t,r,i.propertyGroup),i.numProperties=o.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var o=e.indexOf(t);if(-1!==o){var i=parseInt(e.substr(o+t.length),10);return"object"===_typeof(r=r[i])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var o;for(o=0;o<t.length;o+=1)n+=Math.pow(r[o]-t[o],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,o=this.getValueAtTime(e),i=this.getValueAtTime(e+n);if(o.length)for(t=createTypedArray("float32",o.length),r=0;r<o.length;r+=1)t[r]=(i[r]-o[r])/n;else t=(i-o)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(r?o=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),n=u-(o=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-o)/n)%2!=0)return this.getValueAtTime((n-(l-o)%n+o)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(o/this.comp.globalData.frameRate,0),f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-o)%n+o)/this.comp.globalData.frameRate,0),h=Math.floor((l-o)/n);if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=(f[i]-d[i])*h+p[i];return s}return(f-d)*h+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-o)%n+o)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(r?o=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),n=(o=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/n)%2==0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(o/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-l)/n)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=p[i]-(f[i]-d[i])*h;return s}return p-(f-d)*h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((n-((u-l)%n+u))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,o=this.comp.renderedFrame/this.comp.globalData.frameRate,i=o-e,a=t>1?(o+e-i)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(i+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-o*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,f*this.py.mult,-p*this.pz.mult)}else t.translate(d*this.px.mult,f*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=i(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=o.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,o,i,s,l){var c=a(n,o,i,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===o.a?o.k.length:0,c.propertyIndex=o.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,o,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var o=n._length,i=n[e],a=n.v,s=createSizedArray(o);for(r=0;r<o;r+=1)s[r]="i"===e||"o"===e?[i[r][0]-a[r][0],i[r][1]-a[r][1]]:[i[r][0],i[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,o=this._segmentsLength,i=o.lengths,a=o.totalLength*e,s=0,l=i.length,c=0;s<l;){if(c+i[s].addedLength>a){var u=s,d=r.c&&s===l-1?0:s+1,f=(a-c)/i[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[d],r.o[u],r.i[d],f,i[s]);break}c+=i[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),o=this.pointOnPath(e+.001,t),i=o[0]-n[0],a=o[1]-n[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[i/s,a/s]:[-a/s,i/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,o){var i=u(e,t,r,n,o);return i.propertyIndex=t.ix,i.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,i):4===r&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,o=createNS("feMerge");for(o.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),o.appendChild(r),o.appendChild(r);return o}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,o){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",n+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var a=this.createMergeNode(n,[o,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",n),this.matrixFilter=i;var a=createNS("feFuncR");a.setAttribute("type","table"),i.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,e.appendChild(i)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var o=this.filterManager.effectElements,i=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",n),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,r,n,o){var i=t.container.globalData.renderConfig.filterSize,a=t.data.fs||i;e.setAttribute("x",a.x||i.x),e.setAttribute("y",a.y||i.y),e.setAttribute("width",a.width||i.width),e.setAttribute("height",a.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",o]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),a=createElementID();i.setAttribute("id",a),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");o[0];)s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=i,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,o=this.paths.length;for(t=0;t<o;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();i="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(u/d);for(c=0;c<f;c+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",i)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,o=n[0]+" "+r[0]+" "+t[0],i=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,o){for(var i,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),d=0,f=o-n,p=t-e;s<=256;)a=(i=s/256)<=l?p<0?o:n:i>=c?p<0?n:o:n+f*Math.pow((i-e)/p,1/r),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=r*Math.cos(n),i=r*Math.sin(n);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",n),e.appendChild(o),this.feGaussianBlur=o}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,o=r.children,i=0,a=o.length;i<a&&o[i]!==e.layerElement;)i+=1;i<=a-2&&(n=o[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(n);var i=createNS("symbol");i.setAttribute("id",r),this.replaceInParent(t,r),i.appendChild(t.layerElement),o.appendChild(i);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,o=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+o);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,o=1===t[2].p.v,i=t[3].p.v,a=o?i:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*i,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},e=>{e.exports=function(){function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o}return e}()({1:[function(e,t,r){"use strict";var n=e("../renderer/Renderer"),o=e("../helpers/layerAPIBuilder");function i(e){var t={animation:e,elements:e.renderer.elements.map(function(t){return o(t,e)}),boundingRect:null,scaleData:null};function r(){return e.currentFrame}function i(){return e.currentFrame/e.frameRate}function a(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e.getPropertyAtIndex(r).setValue(t)}function s(e,t){var r,n=e.length,o=[];for(r=0;r<n;r+=1)o.push(e.getPropertyAtIndex(r).toKeypathLayerPoint(t));return 1===o.length?o[0]:o}function l(e,t){var r,n=e.length,o=[];for(r=0;r<n;r+=1)o.push(e.getPropertyAtIndex(r).fromKeypathLayerPoint(t));return 1===o.length?o[0]:o}function c(t){var r,n,o,i=e.animationData.w,a=e.animationData.h,s=i/a,l=t.width,c=t.height,u=l/c,d=e.renderer.renderConfig.preserveAspectRatio.split(" ");return r="meet"===d[1]?u>s?c/a:l/i:u>s?l/i:c/a,n=d[0].substr(0,4),{scaleYOffset:"YMin"===(o=d[0].substr(4))?0:"YMid"===o?(c-a*r)/2:c-a*r,scaleXOffset:"xMin"===n?0:"xMid"===n?(l-i*r)/2:l-i*r,scale:r}}function u(r){r=e.wrapper,t.boundingRect=r.getBoundingClientRect(),t.scaleData=c(t.boundingRect)}function d(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();var n=t.boundingRect,o=[r[0]-n.left,r[1]-n.top],i=t.scaleData;return o[0]=(o[0]-i.scaleXOffset)/i.scale,o[1]=(o[1]-i.scaleYOffset)/i.scale,o}function f(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();var n,o=t.boundingRect,i=t.scaleData;return n=[(n=[r[0]*i.scale+i.scaleXOffset,r[1]*i.scale+i.scaleYOffset])[0]+o.left,n[1]+o.top]}function p(){return t.scaleData}var h={recalculateSize:u,getScaleData:p,toContainerPoint:d,fromContainerPoint:f,getCurrentFrame:r,getCurrentTime:i,addValueCallback:a,toKeypathLayerPoint:s,fromKeypathLayerPoint:l};return Object.assign({},n(t),h)}t.exports=i},{"../helpers/layerAPIBuilder":6,"../renderer/Renderer":42}],2:[function(e,t,r){"use strict";t.exports=","},{}],3:[function(e,t,r){"use strict";t.exports={0:0,1:1,2:2,3:3,4:4,5:5,13:13,comp:0,composition:0,solid:1,image:2,null:3,shape:4,text:5,camera:13}},{}],4:[function(e,t,r){"use strict";t.exports={LAYER_TRANSFORM:"transform"}},{}],5:[function(e,t,r){"use strict";var n=e("../enums/key_path_separator"),o=e("./stringSanitizer");t.exports=function(e){var t=e.split(n),r=t.shift();return{selector:o(r),propertyPath:t.join(n)}}},{"../enums/key_path_separator":2,"./stringSanitizer":7}],6:[function(e,t,r){"use strict";var n=e("../layer/text/TextElement"),o=e("../layer/shape/Shape"),i=e("../layer/null_element/NullElement"),a=e("../layer/solid/SolidElement"),s=e("../layer/image/ImageElement"),l=e("../layer/camera/Camera"),c=e("../layer/LayerBase");t.exports=function(t,r){var u=t.data.ty,d=e("../layer/composition/Composition");switch(u){case 0:return d(t,r);case 1:return a(t,r);case 2:return s(t,r);case 3:return i(t,r);case 4:return o(t,r,t.data.shapes,t.itemsData);case 5:return n(t,r);case 13:return l(t,r);default:return c(t,r)}}},{"../layer/LayerBase":13,"../layer/camera/Camera":15,"../layer/composition/Composition":16,"../layer/image/ImageElement":20,"../layer/null_element/NullElement":21,"../layer/shape/Shape":22,"../layer/solid/SolidElement":35,"../layer/text/TextElement":38}],7:[function(e,t,r){"use strict";function n(e){return e.trim()}t.exports=n},{}],8:[function(e,t,r){"use strict";var n=e("./typedArrays"),o=function(){var e=Math.cos,t=Math.sin,r=Math.tan,o=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(1,0,0,0,0,n,-o,0,0,o,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,0,o,0,0,1,0,0,-o,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),o=t(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(r(e),r(t))}function f(n,o){var i=e(o),a=t(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r=isNaN(r)?1:r,1==e&&1==t&&1==r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,o,i,a,s,l,c,u,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function g(e,t,r,n,o,i,a,s,l,c,u,d,f,p,h,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===o&&1===i&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*i+g[15]*p,g[14]=g[14]*u+g[15]*h,g[15]=g[15]*m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],w=g[4],S=g[5],E=g[6],k=g[7],x=g[8],T=g[9],O=g[10],C=g[11],j=g[12],P=g[13],I=g[14],R=g[15];return g[0]=y*e+v*o+b*l+_*f,g[1]=y*t+v*i+b*c+_*p,g[2]=y*r+v*a+b*u+_*h,g[3]=y*n+v*s+b*d+_*m,g[4]=w*e+S*o+E*l+k*f,g[5]=w*t+S*i+E*c+k*p,g[6]=w*r+S*a+E*u+k*h,g[7]=w*n+S*s+E*d+k*m,g[8]=x*e+T*o+O*l+C*f,g[9]=x*t+T*i+O*c+C*p,g[10]=x*r+T*a+O*u+C*h,g[11]=x*n+T*s+O*d+C*m,g[12]=j*e+P*o+I*l+R*f,g[13]=j*t+P*i+I*c+R*p,g[14]=j*r+P*a+I*u+R*h,g[15]=j*n+P*s+I*d+R*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t]}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function E(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function k(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(e){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],r=this.props[5]/t,n=-this.props[1]/t,o=-this.props[4]/t,i=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t;return[e[0]*r+e[1]*o+a,e[0]*n+e[1]*i+s,0]}function T(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=x(e[t]);return n}function O(e,t,r){var o=n("float32",6);if(this.isIdentity())o[0]=e[0],o[1]=e[1],o[2]=t[0],o[3]=t[1],o[4]=r[0],o[5]=r[1];else{var i=this.props[0],a=this.props[1],s=this.props[4],l=this.props[5],c=this.props[12],u=this.props[13];o[0]=e[0]*i+e[1]*s+c,o[1]=e[0]*a+e[1]*l+u,o[2]=t[0]*i+t[1]*s+c,o[3]=t[0]*a+t[1]*l+u,o[4]=r[0]*i+r[1]*s+c,o[5]=r[0]*a+r[1]*l+u}return o}function C(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function j(e,t){return this.isIdentity()?e+","+t:e*this.props[0]+t*this.props[4]+this.props[12]+","+(e*this.props[1]+t*this.props[5]+this.props[13])}function P(){for(var e=0,t=this.props,r="matrix3d(",n=1e4;e<16;)r+=o(t[e]*n)/n,r+=15===e?")":",",e+=1;return r}function I(){var e=1e4,t=this.props;return"matrix("+o(t[0]*e)/e+","+o(t[1]*e)/e+","+o(t[4]*e)/e+","+o(t[5]*e)/e+","+o(t[12]*e)/e+","+o(t[13]*e)/e+")"}function R(){this.reset=i,this.rotate=a,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=d,this.skewFromAxis=f,this.shear=u,this.scale=p,this.setTransform=h,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=C,this.applyToTriplePoints=O,this.applyToPointStringified=j,this.toCSS=P,this.to2dCSS=I,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=T,this.inversePoint=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=n("float32",16),this.reset()}return function(){return new R}}(); /*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. */t.exports=o},{"./typedArrays":9}],9:[function(e,t,r){"use strict";var n=function(){function e(e,t){var r,n=0,o=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)o.push(r);return o}function t(e,t){return"float32"===e?new Float32Array(t):"int16"===e?new Int16Array(t):"uint8c"===e?new Uint8ClampedArray(t):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();t.exports=n},{}],10:[function(e,t,r){"use strict";var n=e("./animation/AnimationItem");function o(e){return Object.assign({},n(e))}t.exports={createAnimationApi:o}},{"./animation/AnimationItem":1}],11:[function(e,t,r){"use strict";var n=e("../helpers/keyPathBuilder"),o=e("../enums/layer_types");function i(e,t){function r(){return e.length}function a(e,t){return e.filter(function(e){return e.getTargetLayer().data.ty===o[t]})}function s(e,t){return e.filter(function(e){return e.getTargetLayer().data.nm===t})}function l(e,t){return e.filter(function(e){return!!e.hasProperty(t)&&e.getProperty(t)})}function c(t){return i(a(e,t),"layer")}function u(t){return i(s(e,t),"layer")}function d(t){return i(e.filter(function(e){return e.hasProperty(t)}).map(function(e){return e.getProperty(t)}),"property")}function f(t){return i(l(e,t).map(function(e){return e.getProperty(t)}),"property")}function p(e){var r,o,i,a=n(e),s=a.selector;return"renderer"===t||"layer"===t?(r=u(s),o=c(s),i=0===r.length&&0===o.length?f(s):r.concat(o),a.propertyPath?i.getKeyPath(a.propertyPath):i):"property"===t?(i=d(s),a.propertyPath?i.getKeyPath(a.propertyPath):i):void 0}function h(r){var n=r.getElements();return i(e.concat(n),t)}function m(){return e}function g(t){return e[t]}var y={getKeyPath:p,concat:h,getElements:m,getPropertyAtIndex:g};return Object.defineProperty(y,"length",{get:r}),y}t.exports=i},{"../enums/layer_types":3,"../helpers/keyPathBuilder":5}],12:[function(e,t,r){"use strict";function n(e){function t(t,r){for(var n=e.properties||[],o=0,i=n.length;o<i;){if(n[o].name===t)return n[o].value;o+=1}return null}function r(e){return!!t(e)}function n(e){return t(e)}function o(t){return e.parent.fromKeypathLayerPoint(t)}function i(t){return e.parent.toKeypathLayerPoint(t)}return{hasProperty:r,getProperty:n,fromKeypathLayerPoint:o,toKeypathLayerPoint:i}}e("../enums/key_path_separator"),e("../enums/property_names"),t.exports=n},{"../enums/key_path_separator":2,"../enums/property_names":4}],13:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),o=e("./transform/Transform"),i=e("./effects/Effects"),a=e("../helpers/transformationMatrix");function s(e){var t=o(e.element.finalTransform.mProp,e),r=i(e.element.effectsManager.effectElements||[],e);function s(){e.properties.push({name:"transform",value:t},{name:"Transform",value:t},{name:"Effects",value:r},{name:"effects",value:r})}function l(t){var r=e.element;e.parent.toKeypathLayerPoint&&(t=e.parent.toKeypathLayerPoint(t));var n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var o,i=r.hierarchy.length;for(o=0;o<i;o+=1)r.hierarchy[o].finalTransform.mProp.applyToMatrix(n)}return n.inversePoint(t)}function c(t){var r=e.element,n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var o,i=r.hierarchy.length;for(o=0;o<i;o+=1)r.hierarchy[o].finalTransform.mProp.applyToMatrix(n)}return t=n.applyToPointArray(t[0],t[1],t[2]||0),e.parent.fromKeypathLayerPoint?e.parent.fromKeypathLayerPoint(t):t}function u(){return e.element}var d={getTargetLayer:u,toKeypathLayerPoint:l,fromKeypathLayerPoint:c};return s(),Object.assign(e,n(e),d)}t.exports=s},{"../helpers/transformationMatrix":8,"../key_path/KeyPathNode":12,"./effects/Effects":19,"./transform/Transform":39}],14:[function(e,t,r){"use strict";var n=e("../enums/layer_types"),o=e("../helpers/layerAPIBuilder");function i(e){function t(){return e.length}function r(e,t){return e.filter(function(e){return e.data.ty===n[t]})}function a(e,t){return e.filter(function(e){return e.data.nm===t})}function s(){return i(e)}function l(t){return i(r(e,t))}function c(t){return i(a(e,t))}function u(t){return t>=e.length?[]:o(e[parseInt(t)])}function d(t,r){t.reduce(function(t,r){var n=r;return t[r]=function(){var t=arguments;return e.map(function(e){var r=o(e);return r[n]?r[n].apply(null,t):null})},t},h)}function f(){return e}function p(t){return e.concat(t.getTargetElements())}var h={getLayers:s,getLayersByType:l,getLayersByName:c,layer:u,concat:p,getTargetElements:f};return d(["setTranslate","getType","getDuration"]),d(["setText","getText","setDocumentData","canResizeFont","setMinimumFontSize"]),Object.defineProperty(h,"length",{get:t}),h}t.exports=i},{"../enums/layer_types":3,"../helpers/layerAPIBuilder":6}],15:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={},i={element:e,parent:t,properties:a()};function a(){return[{name:"Point of Interest",value:o(e.a,t)},{name:"Zoom",value:o(e.pe,t)},{name:"Position",value:o(e.p,t)},{name:"X Rotation",value:o(e.rx,t)},{name:"Y Rotation",value:o(e.ry,t)},{name:"Z Rotation",value:o(e.rz,t)},{name:"Orientation",value:o(e.or,t)}]}function s(){return i.element}var l={getTargetLayer:s};return Object.assign(r,n(i),l)}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],16:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathList"),o=e("../LayerBase"),i=e("../../helpers/layerAPIBuilder"),a=(e("../../property/Property"),e("./TimeRemap"));function s(e,t){var r={},s={element:e,parent:t,properties:c()};function l(t,r){var n=null,o={name:t.nm};function a(){return n||(n=i(e.elements[r],s)),n}return Object.defineProperty(o,"value",{get:a}),o}function c(){var t=e.layers.map(l);return[{name:"Time Remap",value:a(e.tm)}].concat(t)}var u={};return Object.assign(r,o(s),n(s.elements,"layer"),u)}t.exports=s},{"../../helpers/layerAPIBuilder":6,"../../key_path/KeyPathList":11,"../../property/Property":40,"../LayerBase":13,"./TimeRemap":17}],17:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/ValueProperty");function i(e,t){var r,i={property:e,parent:t},a=!1,s=0,l=0,c=0,u=0,d=!0,f=1,p=!1,h=!1,m=[],g={time:-1};function y(e,t,r){p=!1,r&&(_(),u=e),h&&console.log(e,t),c=Date.now(),s=e,l=t,S()}function v(){var e=m.shift();y(e[0],e[1])}function b(e,t){m.push([e,t])}function _(){m.length=0}function w(e){if(s===l)u=s;else if(!p){var t=Date.now(),r=f*(t-c)/1e3;c=t,s<l?(u+=r)>l&&(m.length?v():d?u%=l-s:u=l):(u-=r)<l&&(m.length?v():u=d?s-(l-u):l),h&&console.log(u)}return I.onEnterFrame&&g.time!==u&&(g.time=u,I.onEnterFrame(g)),u}function S(){a||(a=!0,r=I.setValue(w,h))}function E(e,t){p=!1,t&&_(),S(),l=e}function k(){return a?u:e.v/e.mult}function x(e){d=e}function T(e){f=e}function O(e){h=e}function C(){p=!0}function j(){r&&(r(),i.property=null,i.parent=null)}var P={playSegment:y,playTo:E,queueSegment:b,clearQueue:_,setLoop:x,setSpeed:T,pause:C,setDebugging:O,getCurrentTime:k,onEnterFrame:null,destroy:j},I={};return Object.assign(I,P,o(i),n(i))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/ValueProperty":41}],18:[function(e,t,r){"use strict";var n=e("../../property/Property");function o(e,t){return n(e.p,t)}t.exports=o},{"../../property/Property":40}],19:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:s()};function a(e,r){return{name:e.data?e.data.nm:r.toString(),value:e.data?i(e.effectElements,t):o(e.p,t)}}function s(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(a(e[t],t));return n}var l={};return Object.assign(l,n(r))}e("./EffectElement"),t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./EffectElement":18}],20:[function(e,t,r){"use strict";var n=e("../LayerBase");function o(e){var t={element:e,parent,properties:r()};function r(){return[]}var o={};return Object.assign({},n(t),o)}t.exports=o},{"../LayerBase":13}],21:[function(e,t,r){"use strict";var n=e("../LayerBase");function o(e,t){var r={},o={element:e,parent:t,properties:i()};function i(){return[]}var a={};return Object.assign(r,n(o),a)}t.exports=o},{"../LayerBase":13}],22:[function(e,t,r){"use strict";var n=e("../LayerBase"),o=e("./ShapeContents");function i(e,t){var r={properties:[],parent:t,element:e},i=o(e.data.shapes,e.itemsData,r);function a(){r.properties.push({name:"Contents",value:i})}var s={};return a(),Object.assign(r,n(r),s)}t.exports=i},{"../LayerBase":13,"./ShapeContents":23}],23:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=(e("../../property/Property"),e("./ShapeRectangle")),i=e("./ShapeFill"),a=e("./ShapeStroke"),s=e("./ShapeEllipse"),l=e("./ShapeGradientFill"),c=e("./ShapeGradientStroke"),u=e("./ShapeTrimPaths"),d=e("./ShapeRepeater"),f=e("./ShapePolystar"),p=e("./ShapeRoundCorners"),h=e("./ShapePath"),m=e("../transform/Transform"),g=e("../../helpers/transformationMatrix");function y(e,t,r){var v={properties:w(),parent:r},b=[];function _(r,n){var g={name:r.nm};return Object.defineProperty(g,"value",{get:function(){return b[n]?b[n]:("gr"===r.ty?g=y(e[n].it,t[n].it,v):"rc"===r.ty?g=o(t[n],v):"el"===r.ty?g=s(t[n],v):"fl"===r.ty?g=i(t[n],v):"st"===r.ty?g=a(t[n],v):"gf"===r.ty?g=l(t[n],v):"gs"===r.ty?g=c(t[n],v):"tm"===r.ty?g=u(t[n],v):"rp"===r.ty?g=d(t[n],v):"sr"===r.ty?g=f(t[n],v):"rd"===r.ty?g=p(t[n],v):"sh"===r.ty?g=h(t[n],v):"tr"===r.ty?g=m(t[n].transform.mProps,v):console.log(r.ty),b[n]=g,g);var g}}),g}function w(){return e.map(function(e,t){return _(e,t)})}function S(e){if(v.hasProperty("Transform")){var t=g();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.applyToPointArray(e[0],e[1],e[2]||0)}return v.parent.fromKeypathLayerPoint(e)}function E(e){if(e=v.parent.toKeypathLayerPoint(e),v.hasProperty("Transform")){var t=g();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.inversePoint(e)}return e}var k={fromKeypathLayerPoint:S,toKeypathLayerPoint:E};return Object.assign(v,n(v),k)}t.exports=y},{"../../helpers/transformationMatrix":8,"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39,"./ShapeEllipse":24,"./ShapeFill":25,"./ShapeGradientFill":26,"./ShapeGradientStroke":27,"./ShapePath":28,"./ShapePolystar":29,"./ShapeRectangle":30,"./ShapeRepeater":31,"./ShapeRoundCorners":32,"./ShapeStroke":33,"./ShapeTrimPaths":34}],24:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Size",value:o(e.sh.s,t)},{name:"Position",value:o(e.sh.p,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],25:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Color",value:o(e.c,t)},{name:"Opacity",value:{setValue:o(e.o,t)}}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],26:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Start Point",value:o(e.s,t)},{name:"End Point",value:o(e.s,t)},{name:"Opacity",value:o(e.o,t)},{name:"Highlight Length",value:o(e.h,t)},{name:"Highlight Angle",value:o(e.a,t)},{name:"Colors",value:o(e.g.prop,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],27:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Start Point",value:o(e.s,t)},{name:"End Point",value:o(e.e,t)},{name:"Opacity",value:o(e.o,t)},{name:"Highlight Length",value:o(e.h,t)},{name:"Highlight Angle",value:o(e.a,t)},{name:"Colors",value:o(e.g.prop,t)},{name:"Stroke Width",value:o(e.w,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],28:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"path",value:o(e.sh,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],29:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Points",value:o(e.sh.pt,t)},{name:"Position",value:o(e.sh.p,t)},{name:"Rotation",value:o(e.sh.r,t)},{name:"Inner Radius",value:o(e.sh.ir,t)},{name:"Outer Radius",value:o(e.sh.or,t)},{name:"Inner Roundness",value:o(e.sh.is,t)},{name:"Outer Roundness",value:o(e.sh.os,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],30:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Size",value:o(e.sh.s,t)},{name:"Position",value:o(e.sh.p,t)},{name:"Roundness",value:o(e.sh.r,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],31:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property"),i=e("../transform/Transform");function a(e,t){var r={parent:t,properties:a()};function a(){return[{name:"Copies",value:o(e.c,t)},{name:"Offset",value:o(e.o,t)},{name:"Transform",value:i(e.tr,t)}]}var s={};return Object.assign(s,n(r))}t.exports=a},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39}],32:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Radius",value:o(e.rd,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],33:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Color",value:o(e.c,t)},{name:"Stroke Width",value:o(e.w,t)},{name:"Opacity",value:o(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],34:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={parent:t,properties:i()};function i(){return[{name:"Start",value:o(e.s,t)},{name:"End",value:o(e.e,t)},{name:"Offset",value:o(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],35:[function(e,t,r){"use strict";var n=e("../LayerBase");function o(e,t){var r={element:e,parent:t,properties:o()};function o(){return[]}var i={};return Object.assign({},n(r),i)}t.exports=o},{"../LayerBase":13}],36:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=(e("../../property/Property"),e("./TextAnimator"));function i(e,t){var r={},i={element:e,parent:t,properties:l()};function a(t){var r,n=function(n){var o=t(e.textProperty.currentData);return r!==o?(r=o,Object.assign({},n,o,{__complete:!1})):n};e.textProperty.addEffect(n)}function s(){var t,r,n=[],i=e.textAnimator._animatorsData,a=i.length;for(t=0;t<a;t+=1)r=o(i[t]),n.push({name:e.textAnimator._textData.a[t].nm||"Animator "+(t+1),value:r});return n}function l(){return[{name:"Source",value:{setValue:a}}].concat(s())}var c={};return Object.assign(r,c,n(i))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./TextAnimator":37}],37:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e){var t={},r={properties:x()};function i(t){o(e.a.a).setValue(t)}function a(t){o(e.a.fb).setValue(t)}function s(t){o(e.a.fc).setValue(t)}function l(t){o(e.a.fh).setValue(t)}function c(t){o(e.a.fs).setValue(t)}function u(t){o(e.a.fo).setValue(t)}function d(t){o(e.a.o).setValue(t)}function f(t){o(e.a.p).setValue(t)}function p(t){o(e.a.rx).setValue(t)}function h(t){o(e.a.ry).setValue(t)}function m(t){o(e.a.s).setValue(t)}function g(t){o(e.a.sa).setValue(t)}function y(t){o(e.a.sc).setValue(t)}function v(t){o(e.a.sk).setValue(t)}function b(t){o(e.a.so).setValue(t)}function _(t){o(e.a.sw).setValue(t)}function w(t){o(e.a.sb).setValue(t)}function S(t){o(e.a.sh).setValue(t)}function E(t){o(e.a.ss).setValue(t)}function k(t){o(e.a.t).setValue(t)}function x(){return[{name:"Anchor Point",value:{setValue:i}},{name:"Fill Brightness",value:{setValue:a}},{name:"Fill Color",value:{setValue:s}},{name:"Fill Hue",value:{setValue:l}},{name:"Fill Saturation",value:{setValue:c}},{name:"Fill Opacity",value:{setValue:u}},{name:"Opacity",value:{setValue:d}},{name:"Position",value:{setValue:f}},{name:"Rotation X",value:{setValue:p}},{name:"Rotation Y",value:{setValue:h}},{name:"Scale",value:{setValue:m}},{name:"Skew Axis",value:{setValue:g}},{name:"Stroke Color",value:{setValue:y}},{name:"Skew",value:{setValue:v}},{name:"Stroke Width",value:{setValue:_}},{name:"Tracking Amount",value:{setValue:k}},{name:"Stroke Opacity",value:{setValue:b}},{name:"Stroke Brightness",value:{setValue:w}},{name:"Stroke Saturation",value:{setValue:E}},{name:"Stroke Hue",value:{setValue:S}}]}var T={};return Object.assign(t,T,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],38:[function(e,t,r){"use strict";var n=e("../LayerBase"),o=e("./Text");function i(e){var t={},r=o(e),i={element:e,properties:a()};function a(){return[{name:"text",value:r},{name:"Text",value:r}]}function s(){return e.textProperty.currentData.t}function l(e,t){c({t:e},t)}function c(t,r){return e.updateDocumentData(t,r)}function u(t){return e.canResizeFont(t)}function d(t){return e.setMinimumFontSize(t)}var f={getText:s,setText:l,canResizeFont:u,setDocumentData:c,setMinimumFontSize:d};return Object.assign(t,n(i),f)}t.exports=i},{"../LayerBase":13,"./Text":36}],39:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var r={properties:i()};function i(){return[{name:"Anchor Point",value:o(e.a,t)},{name:"Point of Interest",value:o(e.a,t)},{name:"Position",value:o(e.p,t)},{name:"Scale",value:o(e.s,t)},{name:"Rotation",value:o(e.r,t)},{name:"X Position",value:o(e.px,t)},{name:"Y Position",value:o(e.py,t)},{name:"Z Position",value:o(e.pz,t)},{name:"X Rotation",value:o(e.rx,t)},{name:"Y Rotation",value:o(e.ry,t)},{name:"Z Rotation",value:o(e.rz,t)},{name:"Opacity",value:o(e.o,t)}]}function a(){return e}var s={getTargetTransform:a};return Object.assign(s,n(r))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],40:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),o=e("./ValueProperty");function i(e,t){var r={property:e,parent:t};function i(){r.property=null,r.parent=null}var a={destroy:i};return Object.assign({},a,o(r),n(r))}t.exports=i},{"../key_path/KeyPathNode":12,"./ValueProperty":41}],41:[function(e,t,r){"use strict";var n="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};function o(e){function t(t){var r=e.property;if(r&&r.addEffect)return"function"==typeof t?r.addEffect(t):"multidimensional"===r.propType&&"object"===(void 0===t?"undefined":n(t))&&2===t.length||"unidimensional"===r.propType&&"number"==typeof t?r.addEffect(function(){return t}):void 0}function r(){return e.property.v}return{setValue:t,getValue:r}}t.exports=o},{}],42:[function(e,t,r){"use strict";var n=e("../layer/LayerList"),o=e("../key_path/KeyPathList");function i(e){function t(){return e.animation.animType}return e._type="renderer",Object.assign({getRendererType:t},n(e.elements),o(e.elements,"renderer"))}t.exports=i},{"../key_path/KeyPathList":11,"../layer/LayerList":14}]},{},[10])(10)},,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENTERED:()=>f,ENTERING:()=>d,EXITED:()=>u,EXITING:()=>p,UNMOUNTED:()=>c,default:()=>g});var n=r(679),o=r(680),i=r(296),a=r(1154),s=r(1155),l=r(1156),c="unmounted",u="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=u,n.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?c:u,n.state={status:o},n.nextCallback=null,n}(0,o.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==d&&r!==f&&(t=d):r!==d&&r!==f||(t=p)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this);r&&(0,l.forceReflow)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[i.default.findDOMNode(this),n],s=o[0],l=o[1],c=this.getTimeouts(),u=n?c.appear:c.enter;!e&&!r||a.default.disabled?this.safeSetState({status:f},function(){t.props.onEntered(s)}):(this.props.onEnter(s,l),this.safeSetState({status:d},function(){t.props.onEntering(s,l),t.onTransitionEnd(u,function(){t.safeSetState({status:f},function(){t.props.onEntered(s,l)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!a.default.disabled?(this.props.onExit(n),this.safeSetState({status:p},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(n)})})})):this.safeSetState({status:u},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.default.createElement(s.default.Provider,{value:null},"function"==typeof r?r(e,o):i.default.cloneElement(i.default.Children.only(r),o))},t}(i.default.Component);function m(){}h.contextType=s.default,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=c,h.EXITED=u,h.ENTERING=d,h.ENTERED=f,h.EXITING=p;const g=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={disabled:!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=r(296).default.createContext(null)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{forceReflow:()=>n});var n=function(e){return e.scrollTop}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{forceLoad:()=>w,getDefaultIntegrations:()=>b,init:()=>_,onLoad:()=>S});var n=r(1322),o=r(1323),i=r(1324),a=r(1325),s=r(1327),l=r(338),c=r(1328),u=r(1347),d=r(1360),f=r(1361),p=r(1362),h=r(1365),m=r(1366),g=r(1368),y=r(1369),v=r(1375);function b(e){return[(0,a.inboundFiltersIntegration)(),(0,i.functionToStringIntegration)(),(0,d.browserApiErrorsIntegration)(),(0,u.breadcrumbsIntegration)(),(0,p.globalHandlersIntegration)(),(0,m.linkedErrorsIntegration)(),(0,s.dedupeIntegration)(),(0,h.httpContextIntegration)(),(0,f.browserSessionIntegration)()]}function _(e={}){const t=!e.skipBrowserExtensionCheck&&(0,v.checkAndWarnIfIsEmbeddedBrowserExtension)(),r={...e,enabled:!t&&e.enabled,stackParser:(0,l.stackParserFromStackParserOptions)(e.stackParser||g.defaultStackParser),integrations:(0,o.getIntegrationsToSetup)({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?b():e.defaultIntegrations}),transport:e.transport||y.makeFetchTransport};return(0,n.initAndBind)(c.BrowserClient,r)}function w(){}function S(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>a,setCurrentClient:()=>s});var n=r(301),o=r(309),i=r(315);function a(e,t){!0===t.debug&&(o.DEBUG_BUILD?i.debug.enable():(0,i.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(t.initialScope);const r=new e(t);return s(r),r.init(),r}function s(e){(0,n.getCurrentScope)().setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>d,afterSetupIntegrations:()=>c,defineIntegration:()=>f,getIntegrationsToSetup:()=>s,installedIntegrations:()=>a,setupIntegration:()=>u,setupIntegrations:()=>l});var n=r(301),o=r(309),i=r(315);const a=[];function s(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach(e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(n)}function l(e,t){const r={};return t.forEach(t=>{t&&u(e,t,r)}),r}function c(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function u(e,t,r){if(r[t.name])o.DEBUG_BUILD&&i.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}o.DEBUG_BUILD&&i.debug.log(`Integration installed: ${t.name}`)}}function d(e){const t=(0,n.getClient)();t?t.addIntegration(e):o.DEBUG_BUILD&&i.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function f(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>l});var n=r(301),o=r(1323),i=r(312);let a;const s=new WeakMap,l=(0,o.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,i.getOriginalFunction)(this),r=s.has((0,n.getClient)())&&void 0!==t?t:this;return a.apply(r,e)}}catch{}},setup(e){s.set(e,!0)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFiltersIntegration:()=>u,inboundFiltersIntegration:()=>d});var n=r(309),o=r(1323),i=r(315),a=r(1326),s=r(311),l=r(316);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],u=(0,o.defineIntegration)((e={})=>{let t;return{name:"EventFilters",setup(r){const n=r.getOptions();t=f(e,n)},processEvent(r,o,c){if(!t){const r=c.getOptions();t=f(e,r)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const r=e.transaction;return!!r&&(0,l.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return(0,a.getPossibleEventMessages)(e).some(e=>(0,l.stringMatchesSomePattern)(e,t))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return n.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=p(e);return!!r&&(0,l.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${p(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=p(e);return!r||(0,l.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${p(e)}`),!0}return!1}(r,t)?null:r}}}),d=(0,o.defineIntegration)((e={})=>({...u(e),name:"InboundFilters"}));function f(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function p(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return n.DEBUG_BUILD&&i.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";function n(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>l,dedupeIntegration:()=>s});var n=r(309),o=r(1323),i=r(315),a=r(338);const s=(0,o.defineIntegration)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(l(t,e))return n.DEBUG_BUILD&&i.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function l(e,t){return!!t&&(!!function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t)||!!function(e,t){const r=d(t),n=d(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))}function c(e,t){let r=(0,a.getFramesFromEvent)(e),n=(0,a.getFramesFromEvent)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],o=r[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function u(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function d(e){return e.exception?.values?.[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>d,applyDefaultOptions:()=>f});var n=r(1329),o=r(1342),i=r(1343),a=r(1334),s=r(1338),l=r(1344),c=r(1345),u=r(1346);class d extends n.Client{constructor(e){const t=f(e),r=u.WINDOW.SENTRY_SDK_SOURCE||(0,l.getSDKSource)();(0,i.applySdkMetadata)(t,"browser",["browser"],r),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:n,sendClientReports:c,enableLogs:d,_experiments:p}=this._options;u.WINDOW.document&&(c||d||p?.enableMetrics)&&u.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===u.WINDOW.document.visibilityState&&(c&&this._flushOutcomes(),d&&(0,a._INTERNAL_flushLogsBuffer)(this),p?.enableMetrics&&(0,s._INTERNAL_flushMetricsBuffer)(this))}),n&&this.on("beforeSendSession",o.addAutoIpAddressToSession)}eventFromException(e,t){return(0,c.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,c.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}function f(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:u.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Client:()=>N});var n=r(1330),o=r(322),i=r(301),a=r(309),s=r(1331),l=r(1323),c=r(1334),u=r(1338),d=r(310),f=r(326),p=r(1340),h=r(315),m=r(329),g=r(1332),y=r(1326),v=r(314),b=r(318),_=r(311),w=r(335),S=r(321),E=r(1333),k=r(331),x=r(324),T=r(1341);const O="Not capturing exception because it's already been captured.",C="Discarded session because of missing or non-string release",j=Symbol.for("SentryInternalError"),P=Symbol.for("SentryDoNotSendEventError");function I(e){return{message:e,[j]:!0}}function R(e){return{message:e,[P]:!0}}function A(e){return!!e&&"object"==typeof e&&j in e}function M(e){return!!e&&"object"==typeof e&&P in e}function D(e,t,r,n,o){let i,a=0;e.on(r,()=>{a=0,clearTimeout(i)}),e.on(t,t=>{a+=n(t),a>=8e5?o(e):(clearTimeout(i),i=setTimeout(()=>{o(e)},5e3))}),e.on("flush",()=>{o(e)})}class N{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,m.makeDsn)(e.dsn):a.DEBUG_BUILD&&h.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs&&D(this,"afterCaptureLog","flushLogs",z,c._INTERNAL_flushLogsBuffer),this._options._experiments?.enableMetrics&&D(this,"afterCaptureMetric","flushMetrics",F,u._INTERNAL_flushMetricsBuffer)}captureException(e,t,r){const n=(0,_.uuid4)();if((0,_.checkOrSetAlreadyCaught)(e))return a.DEBUG_BUILD&&h.debug.log(O),n;const o={event_id:n,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,r))),o.event_id}captureMessage(e,t,r,n){const o={event_id:(0,_.uuid4)(),...r},i=(0,v.isParameterizedString)(e)?e:String(e),a=(0,v.isPrimitive)(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(a.then(e=>this._captureEvent(e,o,n))),o.event_id}captureEvent(e,t,r){const n=(0,_.uuid4)();if(t?.originalException&&(0,_.checkOrSetAlreadyCaught)(t.originalException))return a.DEBUG_BUILD&&h.debug.log(O),n;const o={event_id:n,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,l=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,s||r,l)),o.event_id}captureSession(e){this.sendSession(e),(0,d.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];(0,l.setupIntegration)(this,e,this._integrations),t||(0,l.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,g.addItemToEnvelope)(r,(0,g.createAttachmentEnvelopeItem)(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:r=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(a.DEBUG_BUILD&&h.debug.warn(C));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(a.DEBUG_BUILD&&h.debug.warn(C));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=(0,s.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;a.DEBUG_BUILD&&h.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return a.DEBUG_BUILD&&h.debug.error("Error while sending envelope:",e),{}}return a.DEBUG_BUILD&&h.debug.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,l.setupIntegrations)(this,e),(0,l.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const o=t.exception?.values;if(o){n=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){r=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,d.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,S.prepareEvent)(o,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,i.getTraceContextFromScope)(r),...e.contexts};const n=(0,f.getDynamicSamplingContextFromScope)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=(0,i.getCurrentScope)(),n=(0,i.getIsolationScope)()){return a.DEBUG_BUILD&&L(e)&&h.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{a.DEBUG_BUILD&&(M(e)?h.debug.log(e.message):A(e)?h.debug.warn(e.message):h.debug.warn(e))})}_processEvent(e,t,r,n){const o=this.getOptions(),{sampleRate:i}=o,a=B(e),s=L(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===i?void 0:(0,w.parseSampleRate)(i);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),(0,x.rejectedSyncPromise)(R(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d="replay_event"===l?"replay":l;return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),R("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:a,ignoreSpans:s}=t;let l=r;if(L(l)&&o)return o(l,n);if(B(l)){if(a||s){const t=(0,T.convertTransactionEventToSpanJson)(l);if(s?.length&&(0,E.shouldIgnoreSpan)(t,s))return null;if(a){const e=a(t);e?l=(0,b.merge)(r,(0,T.convertSpanJsonToTransactionEvent)(e)):(0,k.showSpanDropWarning)()}if(l.spans){const t=[],r=l.spans;for(const e of r)if(s?.length&&(0,E.shouldIgnoreSpan)(e,s))(0,E.reparentChildSpans)(r,e);else if(a){const r=a(e);r?t.push(r):((0,k.showSpanDropWarning)(),t.push(e))}else t.push(e);const n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(i){if(l.spans){const e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,n)}}return l}(this,o,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,v.isThenable)(e))return e.then(e=>{if(!(0,v.isPlainObject)(e)&&null!==e)throw I(r);return e},e=>{throw I(`${t} rejected with ${e}`)});if(!(0,v.isPlainObject)(e)&&null!==e)throw I(r);return e}(r,c)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw R(`${c} returned \`null\`, will not send event.`)}const i=r.getSession()||n.getSession();if(s&&i&&this._updateSessionFromEvent(i,o),a){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(a&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(M(e)||A(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),I(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){a.DEBUG_BUILD&&h.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(a.DEBUG_BUILD&&h.debug.log("No outcomes to send"));if(!this._dsn)return void(a.DEBUG_BUILD&&h.debug.log("No dsn provided, will not send outcomes"));a.DEBUG_BUILD&&h.debug.log("Sending outcomes:",e);const t=(0,p.createClientReportEnvelope)(e,this._options.tunnel&&(0,m.dsnToString)(this._dsn));this.sendEnvelope(t)}}function L(e){return void 0===e.type}function B(e){return"transaction"===e.type}function F(e){let t=0;return e.name&&(t+=2*e.name.length),"string"==typeof e.value?t+=2*e.value.length:t+=8,t+U(e.attributes)}function z(e){let t=0;return e.message&&(t+=2*e.message.length),t+U(e.attributes)}function U(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*H(e[0]):(0,v.isPrimitive)(e)?t+=H(e):t+=100}),t}function H(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnvelopeEndpointWithUrlEncodedAuth:()=>a,getReportDialogEndpoint:()=>s});var n=r(329);const o="7";function i(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function a(e,t,r){return t||`${function(e){return`${i(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:o};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}function s(e,t){const r=(0,n.makeDsn)(e);if(!r)return"";const o=`${i(r)}embed/error-page/`;let a=`dsn=${(0,n.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${o}?${a}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_enhanceEventWithSdkInfo:()=>l,createEventEnvelope:()=>u,createSessionEnvelope:()=>c,createSpanEnvelope:()=>d});var n=r(326),o=r(329),i=r(1332),a=r(1333),s=r(331);function l(e,t){if(!t)return e;const r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function c(e,t,r,n){const a=(0,i.getSdkMetadataForEnvelopeHeader)(r),s={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!n&&t&&{dsn:(0,o.dsnToString)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,i.createEnvelope)(s,[l])}function u(e,t,r,n){const o=(0,i.getSdkMetadataForEnvelopeHeader)(r),a=e.type&&"replay_event"!==e.type?e.type:"event";l(e,r?.sdk);const s=(0,i.createEventEnvelopeHeaders)(e,o,n,t);delete e.sdkProcessingMetadata;const c=[{type:a},e];return(0,i.createEnvelope)(s,[c])}function d(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),l=t?.getDsn(),c=t?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(r)&&{trace:r},...!!c&&l&&{dsn:(0,o.dsnToString)(l)}},{beforeSendSpan:d,ignoreSpans:f}=t?.getOptions()||{},p=f?.length?e.filter(e=>!(0,a.shouldIgnoreSpan)((0,s.spanToJSON)(e),f)):e,h=e.length-p.length;h&&t?.recordDroppedEvent("before_send","span",h);const m=d?e=>{const t=(0,s.spanToJSON)(e),r=d(t);return r||((0,s.showSpanDropWarning)(),t)}:s.spanToJSON,g=[];for(const e of p){const t=m(e);t&&g.push((0,i.createSpanEnvelopeItem)(t))}return(0,i.createEnvelope)(u,g)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>l,createAttachmentEnvelopeItem:()=>m,createEnvelope:()=>s,createEventEnvelopeHeaders:()=>b,createSpanEnvelopeItem:()=>h,envelopeContainsItemType:()=>u,envelopeItemTypeToDataCategory:()=>y,forEachEnvelopeItem:()=>c,getSdkMetadataForEnvelopeHeader:()=>v,parseEnvelope:()=>p,serializeEnvelope:()=>f});var n=r(303),o=r(329),i=r(337),a=r(305);function s(e,t=[]){return[e,t]}function l(e,t){const[r,n]=e;return[r,[...n,t]]}function c(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function u(e,t){return c(e,(e,r)=>t.includes(r))}function d(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function f(e){const[t,r]=e;let n=JSON.stringify(t);function o(e){"string"==typeof n?n="string"==typeof e?n+e:[d(n),e]:n.push("string"==typeof e?d(e):e)}for(const e of r){const[t,r]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,i.normalize)(r))}o(e)}}return"string"==typeof n?n:function(e){const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(n)}function p(e){let t="string"==typeof e?d(e):e;function r(e){const r=t.subarray(0,e);return t=t.subarray(e+1),r}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(r(e)))}const i=o(),s=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?r(t):o()])}return[i,s]}function h(e){return[{type:"span"},e]}function m(e){const t="string"==typeof e.data?d(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function y(e){return g[e]}function v(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function b(e,t,r,n){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,o.dsnToString)(n)},...i&&{trace:i}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reparentChildSpans:()=>l,shouldIgnoreSpan:()=>s});var n=r(309),o=r(315),i=r(316);function a(e){o.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(e,t){if(!t?.length||!e.description)return!1;for(const r of t){if(c(r)){if((0,i.isMatchingPattern)(e.description,r))return n.DEBUG_BUILD&&a(e),!0;continue}if(!r.name&&!r.op)continue;const t=!r.name||(0,i.isMatchingPattern)(e.description,r.name),o=!r.op||e.op&&(0,i.isMatchingPattern)(e.op,r.op);if(t&&o)return n.DEBUG_BUILD&&a(e),!0}return!1}function l(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const t of e)t.parent_span_id===n&&(t.parent_span_id=r)}function c(e){return"string"==typeof e||e instanceof RegExp}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_captureLog:()=>v,_INTERNAL_captureSerializedLog:()=>y,_INTERNAL_flushLogsBuffer:()=>b,_INTERNAL_getLogBuffer:()=>_,logAttributeToSerializedLogAttribute:()=>m});var n=r(303),o=r(301),i=r(309),a=r(325),s=r(315),l=r(314),c=r(320),u=r(317),d=r(1335),f=r(1336),p=r(1337);const h=100;function m(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function g(e,t,r,n=!0){!r||e[t]&&!n||(e[t]=r)}function y(e,t){const r=w(),n=_(e);void 0===n?r.set(e,[t]):(r.set(e,[...n,t]),n.length>=h&&b(e,n))}function v(e,t=(0,o.getCurrentScope)(),r=y){const n=t?.getClient()??(0,o.getClient)();if(!n)return void(i.DEBUG_BUILD&&s.debug.warn("No client available to capture log."));const{release:p,environment:h,enableLogs:v=!1,beforeSendLog:b}=n.getOptions();if(!v)return void(i.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured."));const[,_]=(0,d._getTraceInfoFromScope)(n,t),w={...e.attributes},{user:{id:S,email:E,username:k}}=function(e){const t=(0,o.getGlobalScope)().getScopeData();return(0,a.mergeScopeData)(t,(0,o.getIsolationScope)().getScopeData()),(0,a.mergeScopeData)(t,e.getScopeData()),t}(t);g(w,"user.id",S,!1),g(w,"user.email",E,!1),g(w,"user.name",k,!1),g(w,"sentry.release",p),g(w,"sentry.environment",h);const{name:x,version:T}=n.getSdkMetadata()?.sdk??{};g(w,"sentry.sdk.name",x),g(w,"sentry.sdk.version",T);const O=n.getIntegrationByName("Replay"),C=O?.getReplayId(!0);g(w,"sentry.replay_id",C),C&&"buffer"===O?.getRecordingMode()&&g(w,"sentry._internal.replay_is_buffering",!0);const j=e.message;if((0,l.isParameterizedString)(j)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=j;t?.length&&(w["sentry.message.template"]=e),t.forEach((e,t)=>{w[`sentry.message.parameter.${t}`]=e})}const P=(0,c._getSpanForScope)(t);g(w,"sentry.trace.parent_span_id",P?.spanContext().spanId);const I={...e,attributes:w};n.emit("beforeCaptureLog",I);const R=b?(0,s.consoleSandbox)(()=>b(I)):I;if(!R)return n.recordDroppedEvent("before_send","log_item",1),void(i.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:A,message:M,attributes:D={},severityNumber:N}=R;r(n,{timestamp:(0,u.timestampInSeconds)(),level:A,body:M,trace_id:_?.trace_id,severity_number:N??f.SEVERITY_TEXT_TO_SEVERITY_NUMBER[A],attributes:Object.keys(D).reduce((e,t)=>(e[t]=m(D[t]),e),{})}),n.emit("afterCaptureLog",R)}function b(e,t){const r=t??_(e)??[];if(0===r.length)return;const n=e.getOptions(),o=(0,p.createLogEnvelope)(r,n._metadata,n.tunnel,e.getDsn());w().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function _(e){return w().get(e)}function w(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getTraceInfoFromScope:()=>a});var n=r(301),o=r(326),i=r(331);function a(e,t){return t?(0,n.withScope)(t,()=>{const r=(0,i.getActiveSpan)(),a=r?(0,i.spanToTraceContext)(r):(0,n.getTraceContextFromScope)(t);return[r?(0,o.getDynamicSamplingContextFromSpan)(r):(0,o.getDynamicSamplingContextFromScope)(e,t),a]}):[void 0,void 0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEVERITY_TEXT_TO_SEVERITY_NUMBER:()=>n});const n={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createLogContainerEnvelopeItem:()=>i,createLogEnvelope:()=>a});var n=r(329),o=r(1332);function i(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function a(e,t,r,a){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&a&&(s.dsn=(0,n.dsnToString)(a)),(0,o.createEnvelope)(s,[i(e)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_captureMetric:()=>g,_INTERNAL_captureSerializedMetric:()=>m,_INTERNAL_flushMetricsBuffer:()=>y,_INTERNAL_getMetricBuffer:()=>v,metricAttributeToSerializedMetricAttribute:()=>p});var n=r(303),o=r(301),i=r(309),a=r(325),s=r(315),l=r(320),c=r(317),u=r(1335),d=r(1339);const f=100;function p(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function h(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function m(e,t){const r=b(),n=v(e);void 0===n?r.set(e,[t]):(r.set(e,[...n,t]),n.length>=f&&y(e,n))}function g(e,t){const r=t?.scope??(0,o.getCurrentScope)(),n=t?.captureSerializedMetric??m,d=r?.getClient()??(0,o.getClient)();if(!d)return void(i.DEBUG_BUILD&&s.debug.warn("No client available to capture metric."));const{release:f,environment:g,_experiments:y}=d.getOptions();if(!y?.enableMetrics)return void(i.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured."));const[,v]=(0,u._getTraceInfoFromScope)(d,r),b={...e.attributes},{user:{id:_,email:w,username:S}}=function(e){const t=(0,o.getGlobalScope)().getScopeData();return(0,a.mergeScopeData)(t,(0,o.getIsolationScope)().getScopeData()),(0,a.mergeScopeData)(t,e.getScopeData()),t}(r);h(b,"user.id",_,!1),h(b,"user.email",w,!1),h(b,"user.name",S,!1),h(b,"sentry.release",f),h(b,"sentry.environment",g);const{name:E,version:k}=d.getSdkMetadata()?.sdk??{};h(b,"sentry.sdk.name",E),h(b,"sentry.sdk.version",k);const x=d.getIntegrationByName("Replay"),T=x?.getReplayId(!0);h(b,"sentry.replay_id",T),T&&"buffer"===x?.getRecordingMode()&&h(b,"sentry._internal.replay_is_buffering",!0);const O={...e,attributes:b},C=y?.beforeSendMetric?y.beforeSendMetric(O):O;if(!C)return void(i.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const j={};for(const e in C.attributes)void 0!==C.attributes[e]&&(j[e]=p(C.attributes[e]));const P=(0,l._getSpanForScope)(r),I=P?P.spanContext().traceId:v?.trace_id,R=P?P.spanContext().spanId:void 0,A={timestamp:(0,c.timestampInSeconds)(),trace_id:I,span_id:R,name:C.name,type:C.type,unit:C.unit,value:C.value,attributes:j};i.DEBUG_BUILD&&s.debug.log("[Metric]",A),n(d,A),d.emit("afterCaptureMetric",O)}function y(e,t){const r=t??v(e)??[];if(0===r.length)return;const n=e.getOptions(),o=(0,d.createMetricEnvelope)(r,n._metadata,n.tunnel,e.getDsn());b().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function v(e){return b().get(e)}function b(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMetricContainerEnvelopeItem:()=>i,createMetricEnvelope:()=>a});var n=r(329),o=r(1332);function i(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function a(e,t,r,a){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&a&&(s.dsn=(0,n.dsnToString)(a)),(0,o.createEnvelope)(s,[i(e)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>i});var n=r(1332),o=r(317);function i(e,t,r){const i=[{type:"client_report"},{timestamp:r||(0,o.dateTimestampInSeconds)(),discarded_events:e}];return(0,n.createEnvelope)(t?{dsn:t}:{},[i])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertSpanJsonToTransactionEvent:()=>i,convertTransactionEventToSpanJson:()=>o});var n=r(327);function o(e){const{trace_id:t,parent_span_id:r,span_id:o,status:i,origin:a,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:r,span_id:o??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}function i(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}}},(e,t,r)=>{"use strict";function n(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function o(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}r.r(t),r.d(t,{addAutoIpAddressToSession:()=>o,addAutoIpAddressToUser:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySdkMetadata:()=>o});var n=r(304);function o(e,t,r=[t],o="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${o}:@sentry/${e}`,version:n.SDK_VERSION})),version:n.SDK_VERSION}),e._metadata=i}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}r.r(t),r.d(t,{getSDKSource:()=>o,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>y,eventFromMessage:()=>v,eventFromUnknownInput:()=>b,exceptionFromError:()=>c,extractMessage:()=>g,extractType:()=>m});var n=r(301),o=r(314),i=r(311),a=r(337),s=r(312),l=r(324);function c(e,t){const r=f(e,t),n={type:m(t),value:g(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function u(e,t,r,i){const s=(0,n.getClient)(),l=s?.getOptions().normalizeDepth,u=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),d={__serialized__:(0,a.normalizeToSize)(t,l)};if(u)return{exception:{values:[c(e,u)]},extra:d};const p={exception:{values:[{type:(0,o.isEvent)(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:w(t,{isUnhandledRejection:i})}]},extra:d};if(r){const t=f(e,r);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}function d(e,t){return{exception:{values:[c(e,t)]}}}function f(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&p.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,o)}catch{}return[]}const p=/Minified React error #\d+;/i;function h(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function m(e){const t=e?.name;if(!t&&h(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function g(e){const t=e?.message;return h(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function y(e,t,r,n){const o=b(e,t,r?.syntheticException||void 0,n);return(0,i.addExceptionMechanism)(o),o.level="error",r?.event_id&&(o.event_id=r.event_id),(0,l.resolvedSyncPromise)(o)}function v(e,t,r="info",n,o){const i=_(e,t,n?.syntheticException||void 0,o);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,l.resolvedSyncPromise)(i)}function b(e,t,r,n,a){let s;if((0,o.isErrorEvent)(t)&&t.error){return d(e,t.error)}if((0,o.isDOMError)(t)||(0,o.isDOMException)(t)){const a=t;if("stack"in t)s=d(e,t);else{const t=a.name||((0,o.isDOMError)(a)?"DOMError":"DOMException"),l=a.message?`${t}: ${a.message}`:t;s=_(e,l,r,n),(0,i.addExceptionTypeValue)(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if((0,o.isError)(t))return d(e,t);if((0,o.isPlainObject)(t)||(0,o.isEvent)(t)){return s=u(e,t,r,a),(0,i.addExceptionMechanism)(s,{synthetic:!0}),s}return s=_(e,t,r,n),(0,i.addExceptionTypeValue)(s,`${t}`,void 0),(0,i.addExceptionMechanism)(s,{synthetic:!0}),s}function _(e,t,r,n){const a={};if(n&&r){const n=f(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,i.addExceptionMechanism)(a,{synthetic:!0})}if((0,o.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}function w(e,{isUnhandledRejection:t}){const r=(0,s.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,o.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,o.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>c,getHttpRequestData:()=>h,ignoreNextOnError:()=>f,shouldIgnoreOnError:()=>d,wrap:()=>p});var n=r(300),o=r(301),i=r(313),a=r(305),s=r(311),l=r(312);const c=a.GLOBAL_OBJ;let u=0;function d(){return u>0}function f(){u++,setTimeout(()=>{u--})}function p(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,l.getOriginalFunction)(e))return e}catch{return e}const r=function(...r){try{const n=r.map(e=>p(e,t));return e.apply(this,n)}catch(e){throw f(),(0,o.withScope)(o=>{o.addEventProcessor(e=>(t.mechanism&&((0,s.addExceptionTypeValue)(e,void 0,void 0),(0,s.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,n.captureException)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,l.markFunctionWrapped)(r,e),(0,l.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function h(){const e=(0,i.getLocationHref)(),{referrer:t}=c.document||{},{userAgent:r}=c.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{breadcrumbsIntegration:()=>w});var n=r(301),o=r(1323),i=r(525),a=r(1348),s=r(313),l=r(1349),c=r(1351),u=r(315),d=r(311),f=r(1353),p=r(316),h=r(1354),m=r(1355),g=r(1357),y=r(1358),v=r(1359),b=r(1346);const _=1024,w=(0,o.defineIntegration)((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,l.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,f.severityLevelFromString)(t.level),message:(0,p.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,p.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,i.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,m.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,n.getClient)()!==e)return;let o,a,l="object"==typeof t?t.serializeAttribute:void 0,c="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;c&&c>_&&(v.DEBUG_BUILD&&u.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${c} was configured. Sentry will use 1024 instead.`),c=_),"string"==typeof l&&(l=[l]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;o=(0,s.htmlTreeAsString)(t,{keyAttrs:l,maxStringLength:c}),a=(0,s.getComponentName)(t)}catch{o="<unknown>"}if(0===o.length)return;const d={category:`ui.${r.name}`,message:o};a&&(d.data={"ui.component_name":a}),(0,i.addBreadcrumb)(d,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,y.addXhrInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:o}=t,s=t.xhr[y.SENTRY_XHR_DATA_KEY];if(!r||!o||!s)return;const{method:l,url:c,status_code:u,body:d}=s,f={method:l,url:c,status_code:u},p={xhr:t.xhr,input:d,startTimestamp:r,endTimestamp:o},h={category:"xhr",data:f,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(u)};e.emit("beforeOutgoingRequestBreadcrumb",h,p),(0,i.addBreadcrumb)(h,p)}}(e)),t.fetch&&(0,c.addFetchInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:o}=t;if(o&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const n=t.fetchData,a={data:t.error,input:t.args,startTimestamp:r,endTimestamp:o},s={category:"fetch",data:n,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,a),(0,i.addBreadcrumb)(s,a)}else{const n=t.response,s={...t.fetchData,status_code:n?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const l={input:t.args,response:n,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),(0,i.addBreadcrumb)(c,l)}}}(e)),t.history&&(0,g.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;let r=t.from,o=t.to;const a=(0,h.parseUrl)(b.WINDOW.location.href);let s=r?(0,h.parseUrl)(r):void 0;const l=(0,h.parseUrl)(o);s?.path||(s=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),(0,i.addBreadcrumb)({category:"navigation",data:{from:r,to:o}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,n.getClient)()===e&&(0,i.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,d.getEventDescription)(t)},{event:t})}}(e))}}})},(e,t,r)=>{"use strict";function n(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}r.r(t),r.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationHandler:()=>s});var n=r(315),o=r(312),i=r(305),a=r(1350);function s(e){const t="console";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,l)}function l(){"console"in i.GLOBAL_OBJ&&n.CONSOLE_LEVELS.forEach(function(e){e in i.GLOBAL_OBJ.console&&(0,o.fill)(i.GLOBAL_OBJ.console,e,function(t){return n.originalConsoleMethods[e]=t,function(...t){const r={args:t,level:e};(0,a.triggerHandlers)("console",r);const o=n.originalConsoleMethods[e];o?.apply(i.GLOBAL_OBJ.console,t)}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>l,maybeInstrument:()=>u,resetInstrumentationHandlers:()=>c,triggerHandlers:()=>d});var n=r(309),o=r(315),i=r(338);const a={},s={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function c(){Object.keys(a).forEach(e=>{a[e]=void 0})}function u(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&o.debug.error(`Error while instrumenting ${e}`,t)}}}function d(e,t){const r=e&&a[e];if(r)for(const a of r)try{a(t)}catch(t){n.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchEndInstrumentationHandler:()=>u,addFetchInstrumentationHandler:()=>c,parseFetchArgs:()=>m});var n=r(314),o=r(312),i=r(1352),a=r(317),s=r(305),l=r(1350);function c(e,t){const r="fetch";(0,l.addHandler)(r,e),(0,l.maybeInstrument)(r,()=>d(void 0,t))}function u(e){const t="fetch-body-resolved";(0,l.addHandler)(t,e),(0,l.maybeInstrument)(t,()=>d(f))}function d(e,t=!1){t&&!(0,i.supportsNativeFetch)()||(0,o.fill)(s.GLOBAL_OBJ,"fetch",function(t){return function(...r){const i=new Error,{method:c,url:u}=m(r),d={args:r,fetchData:{method:c,url:u},startTimestamp:1e3*(0,a.timestampInSeconds)(),virtualError:i,headers:g(r)};return e||(0,l.triggerHandlers)("fetch",{...d}),t.apply(s.GLOBAL_OBJ,r).then(async t=>(e?e(t):(0,l.triggerHandlers)("fetch",{...d,endTimestamp:1e3*(0,a.timestampInSeconds)(),response:t}),t),e=>{if((0,l.triggerHandlers)("fetch",{...d,endTimestamp:1e3*(0,a.timestampInSeconds)(),error:e}),(0,n.isError)(e)&&void 0===e.stack&&(e.stack=i.stack,(0,o.addNonEnumerableProperty)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(d.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}function f(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const r=e.body,n=r.getReader(),o=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4);let i=!0;for(;i;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);const{done:o}=await n.read();clearTimeout(e),o&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,()=>{})}}(t,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,a.timestampInSeconds)(),response:e})})}function p(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?p(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:h(t),method:p(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:h(t),method:p(t,"method")?String(t.method).toUpperCase():"GET"}}function g(e){const[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,n.isRequest)(t))return new Headers(t.headers)}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>f,supportsDOMError:()=>s,supportsDOMException:()=>l,supportsErrorEvent:()=>a,supportsFetch:()=>u,supportsHistory:()=>c,supportsNativeFetch:()=>p,supportsReferrerPolicy:()=>m,supportsReportingObserver:()=>h});var n=r(309),o=r(315);const i=r(305).GLOBAL_OBJ;function a(){try{return new ErrorEvent(""),!0}catch{return!1}}function s(){try{return new DOMError(""),!0}catch{return!1}}function l(){try{return new DOMException(""),!0}catch{return!1}}function c(){return"history"in i&&!!i.history}const u=d;function d(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function f(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function p(){if("string"==typeof EdgeRuntime)return!0;if(!d())return!1;if(f(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=f(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&o.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function h(){return"ReportingObserver"in i}function m(){if(!d())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.r(t),r.d(t,{severityLevelFromString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpSpanDetailsFromUrlObject:()=>c,getSanitizedUrlString:()=>f,getSanitizedUrlStringFromUrlObject:()=>s,isURLObjectRelative:()=>i,parseStringToURLObject:()=>a,parseUrl:()=>u,stripUrlQueryAndFragment:()=>d});var n=r(327);const o="thismessage:/";function i(e){return"isRelative"in e}function a(e,t){const r=e.indexOf("://")<=0&&0!==e.indexOf("//"),n=t??(r?o:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;const t=new URL(e,n);return r?{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function s(e){if(i(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function l(e,t,r,n){return`${r?.method?.toUpperCase()??"GET"} ${n||(e?"client"===t?s(e):e.pathname:"/")}`}function c(e,t,r,o,a){const s={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return a&&(s["server"===t?"http.route":"url.template"]=a,s[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),o?.method&&(s[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=o.method.toUpperCase()),e&&(e.search&&(s["url.query"]=e.search),e.hash&&(s["url.fragment"]=e.hash),e.pathname&&(s["url.path"]=e.pathname,"/"===e.pathname&&(s[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),i(e)||(s[n.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(s["url.port"]=e.port),e.protocol&&(s["url.scheme"]=e.protocol),e.hostname&&(s["server"===t?"server.address":"url.domain"]=e.hostname))),[l(e,t,o,a),s]}function u(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function d(e){return e.split(/[?#]/,1)[0]}function f(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>d,instrumentDOM:()=>f});var n=r(1350),o=r(311),i=r(312),a=r(1356);const s=1e3;let l,c,u;function d(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",f)}function f(){if(!a.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=p(e,!0);a.WINDOW.document.addEventListener("click",t,!1),a.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const r=a.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,i.fill)(n,"addEventListener",function(t){return function(r,n,o){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){const n=p(e);i.handler=n,t.call(this,r,n,o)}i.refCount++}catch{}return t.call(this,r,n,o)}}),(0,i.fill)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function p(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch{return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,i.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,i.addNonEnumerableProperty)(n,"_sentryId",(0,o.uuid4)());const d="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(r)){e({event:r,name:d,global:t}),c=r.type,u=n?n._sentryId:void 0}clearTimeout(l),l=a.WINDOW.setTimeout(()=>{u=void 0,c=void 0},s)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(305).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>l,instrumentHistory:()=>c});var n=r(1350),o=r(312),i=r(1352),a=r(1356);let s;function l(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,c)}function c(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const o=s,i=function(e){try{return new URL(e,a.WINDOW.location.origin).toString()}catch{return e}}(String(r));if(s=i,o===i)return e.apply(this,t);const l={from:o,to:i};(0,n.triggerHandlers)("history",l)}return e.apply(this,t)}}a.WINDOW.addEventListener("popstate",()=>{const e=a.WINDOW.location.href,t=s;if(s=e,t===e)return;const r={from:t,to:e};(0,n.triggerHandlers)("history",r)}),(0,i.supportsHistory)()&&((0,o.fill)(a.WINDOW.history,"pushState",e),(0,o.fill)(a.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>s,addXhrInstrumentationHandler:()=>l,instrumentXHR:()=>c});var n=r(1350),o=r(314),i=r(317),a=r(1356);const s="__sentry_xhr_v3__";function l(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",c)}function c(){if(!a.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const a=new Error,l=1e3*(0,i.timestampInSeconds)(),c=(0,o.isString)(r[0])?r[0].toUpperCase():void 0,u=function(e){if((0,o.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!c||!u)return e.apply(t,r);t[s]={method:c,url:u,request_headers:{}},"POST"===c&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const r={endTimestamp:1e3*(0,i.timestampInSeconds)(),startTimestamp:l,xhr:t,virtualError:a};(0,n.triggerHandlers)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(d(),e.apply(t,r))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,i]=r,a=t[s];return a&&(0,o.isString)(n)&&(0,o.isString)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const o=t[s];if(!o)return e.apply(t,r);void 0!==r[0]&&(o.body=r[0]);const a={startTimestamp:1e3*(0,i.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",a),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserApiErrorsIntegration:()=>l});var n=r(1323),o=r(312),i=r(338),a=r(1346);const s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],l=(0,n.defineIntegration)((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,o.fill)(a.WINDOW,"setTimeout",c),t.setInterval&&(0,o.fill)(a.WINDOW,"setInterval",c),t.requestAnimationFrame&&(0,o.fill)(a.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,o.fill)(XMLHttpRequest.prototype,"send",d);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(e=>function(e,t){const r=a.WINDOW,n=r[e]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;(0,o.fill)(n,"addEventListener",function(r){return function(n,o,s){try{"function"==typeof o.handleEvent&&(o.handleEvent=(0,a.wrap)(o.handleEvent,{mechanism:{data:{handler:(0,i.getFunctionName)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,r){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,r)}(this,n,o),r.apply(this,[n,(0,a.wrap)(o,{mechanism:{data:{handler:(0,i.getFunctionName)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,o.fill)(n,"removeEventListener",function(e){return function(t,r,n){try{const o=r.__sentry_wrapped__;o&&e.call(this,t,o,n)}catch{}return e.call(this,t,r,n)}})}(e,t))}}}});function c(e){return function(...t){const r=t[0];return t[0]=(0,a.wrap)(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,i.getFunctionName)(e)}`}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[(0,a.wrap)(t,{mechanism:{data:{handler:(0,i.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function d(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,o.fill)(r,e,function(t){const r={mechanism:{data:{handler:(0,i.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,o.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,i.getFunctionName)(n)),(0,a.wrap)(t,r)})}),e.apply(this,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>c});var n=r(300),o=r(1323),i=r(315),a=r(1357),s=r(1359),l=r(1346);const c=(0,o.defineIntegration)(()=>({name:"BrowserSession",setupOnce(){void 0!==l.WINDOW.document?((0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)(),(0,a.addHistoryInstrumentationHandler)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)())})):s.DEBUG_BUILD&&i.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{globalHandlersIntegration:()=>m});var n=r(300),o=r(301),i=r(1323),a=r(313),s=r(1363),l=r(1364),c=r(314),u=r(315),d=r(338),f=r(1359),p=r(1345),h=r(1346);const m=(0,i.defineIntegration)((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,s.addGlobalErrorInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:i}=y();if((0,o.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const{msg:s,url:l,line:u,column:f,error:m}=t,g=function(e,t,r,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],f=n,p=r,h=function(e){if(!(0,c.isString)(e)||0===e.length)return;if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/);return`<data:${t?t[1]:"text/javascript"}${e.includes("base64,")?",base64":""}>`}return e.slice(0,1024)}(t)??(0,a.getLocationHref)();0===u.length&&u.push({colno:f,filename:h,function:d.UNKNOWN_FUNCTION,in_app:!0,lineno:p});return e}((0,p.eventFromUnknownInput)(r,m||s,void 0,i,!1),l,u,f);g.level="error",(0,n.captureEvent)(g,{originalException:m,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),g("onerror")),t.onunhandledrejection&&(!function(e){(0,l.addGlobalUnhandledRejectionInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:i}=y();if((0,o.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const a=function(e){if((0,c.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),s=(0,c.isPrimitive)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,p.eventFromUnknownInput)(r,a,void 0,i,!0);s.level="error",(0,n.captureEvent)(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),g("onunhandledrejection"))}}});function g(e){f.DEBUG_BUILD&&u.debug.log(`Global Handler attached: ${e}`)}function y(){const e=(0,o.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(305),o=r(1350);let i=null;function a(e){const t="error";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,s)}function s(){i=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,a){const s={column:n,error:a,line:r,msg:e,url:t};return(0,o.triggerHandlers)("error",s),!!i&&i.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>a});var n=r(305),o=r(1350);let i=null;function a(e){const t="unhandledrejection";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,s)}function s(){i=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,o.triggerHandlers)("unhandledrejection",t),!i||i.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpContextIntegration:()=>i});var n=r(1323),o=r(1346);const i=(0,n.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=(0,o.getHttpRequestData)(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>a});var n=r(1323),o=r(1367),i=r(1345);const a=(0,n.defineIntegration)((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){const s=a.getOptions();(0,o.applyAggregateErrorsToEvent)(i.exceptionFromError,s.stackParser,r,t,e,n)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>o});var n=r(314);function o(e,t,r,o,a,s){if(!a.exception?.values||!s||!(0,n.isInstanceOf)(s.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=i(e,t,o,s.originalException,r,a.exception.values,l,0))}function i(e,t,r,o,l,c,u,d){if(c.length>=r+1)return c;let f=[...c];if((0,n.isInstanceOf)(o[l],Error)){a(u,d);const n=e(t,o[l]),c=f.length;s(n,l,c,d),f=i(e,t,r,o[l],l,[n,...f],n,c)}return Array.isArray(o.errors)&&o.errors.forEach((o,c)=>{if((0,n.isInstanceOf)(o,Error)){a(u,d);const n=e(t,o),p=f.length;s(n,`errors[${c}]`,p,d),f=i(e,t,r,o,l,[n,...f],n,p)}}),f}function a(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function s(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>b,defaultStackParser:()=>_,geckoStackLineParser:()=>f,opera10StackLineParser:()=>g,opera11StackLineParser:()=>v,winjsStackLineParser:()=>h});var n=r(338);function o(e,t,r,o){const i={filename:e,function:"<anonymous>"===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==o&&(i.colno=o),i}const i=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=/at (.+?) ?\(data:(.+?),/,c=[30,e=>{const t=e.match(l);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const r=i.exec(e);if(r){const[,e,t,i]=r;return o(e,n.UNKNOWN_FUNCTION,+t,+i)}const c=a.exec(e);if(c){if(c[2]&&0===c[2].indexOf("eval")){const e=s.exec(c[2]);e&&(c[2]=e[1],c[3]=e[2],c[4]=e[3])}const[e,t]=w(c[1]||n.UNKNOWN_FUNCTION,c[2]);return o(t,e,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||n.UNKNOWN_FUNCTION;return[r,e]=w(r,e),o(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{const t=p.exec(e);return t?o(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,g=[10,e=>{const t=m.exec(e);return t?o(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,v=[20,e=>{const t=y.exec(e);return t?o(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],b=[c,f],_=(0,n.createStackParser)(...b),w=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return r||o?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeFetchTransport:()=>i});var n=r(1370),o=r(1373);function i(e,t=(0,o.getNativeImplementation)("fetch")){let r=0,i=0;return(0,n.createTransport)(e,async function(n){const a=n.body.length;r+=a,i++;const s={body:n.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&i<15,...e.fetchOptions};try{const r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw(0,o.clearCachedImplementation)("fetch"),e}finally{r-=a,i--}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>c});var n=r(309),o=r(315),i=r(1332),a=r(1371),s=r(1372);const l=64;function c(e,t,r=(0,a.makePromiseBuffer)(e.bufferSize||l)){let c={};return{send:function(l){const u=[];if((0,i.forEachEnvelopeItem)(l,(t,r)=>{const n=(0,i.envelopeItemTypeToDataCategory)(r);(0,s.isRateLimited)(c,n)?e.recordDroppedEvent("ratelimit_backoff",n):u.push(t)}),0===u.length)return Promise.resolve({});const d=(0,i.createEnvelope)(l[0],u),f=t=>{(0,i.forEachEnvelopeItem)(d,(r,n)=>{e.recordDroppedEvent(t,(0,i.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,i.serializeEnvelope)(d)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&n.DEBUG_BUILD&&o.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=(0,s.updateRateLimits)(c,e),e),e=>{throw f("network_error"),n.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===a.SENTRY_BUFFER_FULL_ERROR)return n.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_BUFFER_FULL_ERROR:()=>o,makePromiseBuffer:()=>i});var n=r(324);const o=Symbol.for("SentryBufferFullError");function i(e=100){const t=new Set;function r(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return(0,n.rejectedSyncPromise)(o);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a},drain:function(e){if(!t.size)return(0,n.resolvedSyncPromise)(!0);const r=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return r;const o=[r,new Promise(t=>setTimeout(()=>t(!1),e))];return Promise.race(o)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>n,disabledUntil:()=>i,isRateLimited:()=>a,parseRetryAfterHeader:()=>o,updateRateLimits:()=>s});const n=6e4;function o(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const o=Date.parse(`${e}`);return isNaN(o)?n:o-t}function i(e,t){return e[t]||e.all||0}function a(e,t,r=Date.now()){return i(e,t)>r}function s(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},a=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,r,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(r)for(const e of r.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=n+s);else i.all=n+s}else s?i.all=n+o(s,n):429===t&&(i.all=n+6e4);return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>c,fetch:()=>u,getNativeImplementation:()=>l,setTimeout:()=>d});var n=r(315),o=r(1352),i=r(1374),a=r(1356);const s={};function l(e){const t=s[e];if(t)return t;let r=a.WINDOW[e];if((0,o.isNativeFunction)(r))return s[e]=r.bind(a.WINDOW);const l=a.WINDOW.document;if(l&&"function"==typeof l.createElement)try{const t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);const n=t.contentWindow;n?.[e]&&(r=n[e]),l.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&n.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?s[e]=r.bind(a.WINDOW):r}function c(e){s[e]=void 0}function u(...e){return l("fetch")(...e)}function d(...e){return l("setTimeout")(...e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkAndWarnIfIsEmbeddedBrowserExtension:()=>s});var n=r(313),o=r(315),i=r(1359),a=r(1346);function s(){return!!function(){if(void 0===a.WINDOW.window)return!1;const e=a.WINDOW;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const r=(0,n.getLocationHref)(),o=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(a.WINDOW===a.WINDOW.top&&o.some(e=>r.startsWith(`${e}://`)))}()&&(i.DEBUG_BUILD&&(0,o.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>C,browserTracingIntegration:()=>P,getMetaContent:()=>A,startBrowserTracingNavigationSpan:()=>R,startBrowserTracingPageLoadSpan:()=>I});var n=r(1377),o=r(1378),i=r(1383),a=r(326),s=r(327),l=r(301),c=r(330),u=r(331),d=r(313),f=r(305),p=r(315),h=r(312),m=r(317),g=r(334),y=r(1354),v=r(319),b=r(1386),_=r(1413),w=r(1357),S=r(1414),E=r(1359),k=r(1346),x=r(1415),T=r(1416),O=r(1417);const C="BrowserTracing",j={...o.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...O.defaultRequestInstrumentationOptions},P=(e={})=>{const t={name:void 0,source:void 0},r=k.WINDOW.document,{enableInp:h,enableElementTiming:P,enableLongTask:M,enableLongAnimationFrame:B,_experiments:{enableInteractions:F,enableStandaloneClsSpans:z,enableStandaloneLcpSpans:U},beforeStartSpan:H,idleTimeout:q,finalTimeout:V,childSpanTimeout:W,markBackgroundSpan:G,traceFetch:$,traceXHR:K,trackFetchStreamPerformance:Y,shouldCreateSpanForRequest:J,enableHTTPTimings:X,ignoreResourceSpans:Q,ignorePerformanceApiSpans:Z,instrumentPageLoad:ee,instrumentNavigation:te,detectRedirects:re,linkPreviousTrace:ne,consistentTraceSampling:oe,enableReportPageLoaded:ie,onRequestSpanStart:ae,onRequestSpanEnd:se}={...j,...e};let le,ce,ue;function de(e,n,c=!0){const d="pageload"===n.op,f=n.name,p=H?H(n):n,h=p.attributes||{};if(f!==p.name&&(h[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",p.attributes=h),!c){const e=(0,m.dateTimestampInSeconds)();return void(0,i.startInactiveSpan)({...p,startTime:e}).end(e)}t.name=p.name,t.source=h[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const g=(0,o.startIdleSpan)(p,{idleTimeout:q,finalTimeout:V,childSpanTimeout:W,disableAutoFinish:d,beforeSpanEnd:t=>{le?.(),(0,b.addPerformanceEntries)(t,{recordClsOnPageloadSpan:!z,recordLcpOnPageloadSpan:!U,ignoreResourceSpans:Q,ignorePerformanceApiSpans:Z}),N(e,void 0);const r=(0,l.getCurrentScope)(),n=r.getPropagationContext();r.setPropagationContext({...n,traceId:g.spanContext().traceId,sampled:(0,u.spanIsSampled)(g),dsc:(0,a.getDynamicSamplingContextFromSpan)(t)}),d&&(ue=void 0)},trimIdleSpanEndTimestamp:!ie});function y(){r&&["interactive","complete"].includes(r.readyState)&&e.emit("idleSpanEnableAutoFinish",g)}d&&ie&&(ue=g),N(e,g),d&&!ie&&r&&(r.addEventListener("readystatechange",()=>{y()}),y())}return{name:C,setup(e){if((0,n.registerSpanErrorInstrumentation)(),le=(0,b.startTrackingWebVitals)({recordClsStandaloneSpans:z||!1,recordLcpStandaloneSpans:U||!1,client:e}),h&&(0,S.startTrackingINP)(),P&&(0,_.startTrackingElementTiming)(),B&&f.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,b.startTrackingLongAnimationFrames)():M&&(0,b.startTrackingLongTasks)(),F&&(0,b.startTrackingInteractions)(),re&&r){const e=()=>{ce=(0,m.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=D(e);t&&!(0,u.spanToJSON)(t).timestamp&&(E.DEBUG_BUILD&&p.debug.log(`[Tracing] Finishing current active span with op: ${(0,u.spanToJSON)(t).op}`),t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(r,n)=>{if((0,l.getClient)()!==e)return;if(n?.isRedirect)return E.DEBUG_BUILD&&p.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void de(e,{op:"navigation.redirect",...r},!1);ce=void 0,t(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()});const o=(0,l.getCurrentScope)();o.setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),de(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(r,n={})=>{if((0,l.getClient)()!==e)return;t();const o=n.sentryTrace||A("sentry-trace"),i=n.baggage||A("baggage"),a=(0,g.propagationContextFromHeaders)(o,i),s=(0,l.getCurrentScope)();s.setPropagationContext(a),(0,c.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,v.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:(0,k.getHttpRequestData)()}),de(e,{op:"pageload",...r})}),e.on("endPageloadSpan",()=>{ie&&ue&&(ue.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),ue.end())})},afterAllSetup(e){let r=(0,d.getLocationHref)();if("off"!==ne&&(0,T.linkTraces)(e,{linkPreviousTrace:ne,consistentTraceSampling:oe}),k.WINDOW.location){if(ee){const t=(0,m.browserPerformanceTimeOrigin)();I(e,{name:k.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}te&&(0,w.addHistoryInstrumentationHandler)(({to:t,from:n})=>{if(void 0===n&&-1!==r?.indexOf(t))return void(r=void 0);r=void 0;const o=(0,y.parseStringToURLObject)(t),i=D(e),a=i&&re&&function(e,t){const r=(0,u.spanToJSON)(e),n=(0,m.dateTimestampInSeconds)(),o=r.start_timestamp;if(n-o>L)return!1;if(t&&n-t<=L)return!1;return!0}(i,ce);R(e,{name:o?.pathname||k.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}G&&(0,x.registerBackgroundTabDetection)(),F&&function(e,t,r,n,i){const a=k.WINDOW.document;let l;const c=()=>{const a="ui.action.click",c=D(e);if(c){const e=(0,u.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(E.DEBUG_BUILD&&p.debug.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}l&&(l.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),l.end(),l=void 0),i.name?l=(0,o.startIdleSpan)({name:i.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):E.DEBUG_BUILD&&p.debug.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};a&&addEventListener("click",c,{capture:!0})}(e,q,V,W,t),h&&(0,S.registerInpInteractionListener)(),(0,O.instrumentOutgoingRequests)(e,{traceFetch:$,traceXHR:K,trackFetchStreamPerformance:Y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:J,enableHTTPTimings:X,onRequestSpanStart:ae,onRequestSpanEnd:se})}}};function I(e,t,r){e.emit("startPageLoadSpan",t,r),(0,l.getCurrentScope)().setTransactionName(t.name);const n=D(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function R(e,t,r){const{url:n,isRedirect:o}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=(0,l.getCurrentScope)();return i.setTransactionName(t.name),n&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...(0,k.getHttpRequestData)(),url:n}}),D(e)}function A(e){const t=k.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}const M="_sentry_idleSpan";function D(e){return e[M]}function N(e,t){(0,h.addNonEnumerableProperty)(e,M,t)}const L=1.5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>u});var n=r(309),o=r(1363),i=r(1364),a=r(315),s=r(331),l=r(332);let c=!1;function u(){function e(){const e=(0,s.getActiveSpan)(),t=e&&(0,s.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&a.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:l.SPAN_STATUS_ERROR,message:e})}}c||(e.tag="sentry_tracingErrorCallback",c=!0,(0,o.addGlobalErrorInstrumentationHandler)(e),(0,i.addGlobalUnhandledRejectionInstrumentationHandler)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>y,startIdleSpan:()=>S});var n=r(301),o=r(309),i=r(327),a=r(315),s=r(330),l=r(1333),c=r(320),u=r(331),d=r(317),f=r(326),p=r(1379),h=r(1380),m=r(332),g=r(1383);const y={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},v="heartbeatFailed",b="idleTimeout",_="finalTimeout",w="externalFinish";function S(e,t={}){const r=new Map;let S,E=!1,k=w,x=!t.disableAutoFinish;const T=[],{idleTimeout:O=y.idleTimeout,finalTimeout:C=y.finalTimeout,childSpanTimeout:j=y.childSpanTimeout,beforeSpanEnd:P,trimIdleSpanEndTimestamp:I=!0}=t,R=(0,n.getClient)();if(!R||!(0,s.hasSpansEnabled)()){const e=new p.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,f.getDynamicSamplingContextFromSpan)(e)};return(0,f.freezeDscOnSpan)(e,t),e}const A=(0,n.getCurrentScope)(),M=(0,u.getActiveSpan)(),D=function(e){const t=(0,g.startInactiveSpan)(e);return(0,c._setSpanForScope)((0,n.getCurrentScope)(),t),o.DEBUG_BUILD&&a.debug.log("[Tracing] Started span is an idle span"),t}(e);function N(){S&&(clearTimeout(S),S=void 0)}function L(e){N(),S=setTimeout(()=>{!E&&0===r.size&&x&&(k=b,D.end(e))},O)}function B(e){S=setTimeout(()=>{!E&&x&&(k=v,D.end(e))},j)}function F(e){E=!0,r.clear(),T.forEach(e=>e()),(0,c._setSpanForScope)(A,M);const t=(0,u.spanToJSON)(D),{start_timestamp:n}=t;if(!n)return;t.data[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||D.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,k),a.debug.log(`[Tracing] Idle span "${t.op}" finished`);const s=(0,u.getSpanDescendants)(D).filter(e=>e!==D);let l=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:m.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&a.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,u.spanToJSON)(t),{timestamp:n=0,start_timestamp:i=0}=r,s=i<=e,c=n-i<=(C+O)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);s?c||a.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):a.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&s||((0,u.removeChildSpanFromSpan)(D,t),l++)}),l>0&&D.setAttribute("sentry.idle_span_discarded_spans",l)}return D.end=new Proxy(D.end,{apply(e,t,r){if(P&&P(D),t instanceof p.SentryNonRecordingSpan)return;const[n,...o]=r,i=n||(0,d.timestampInSeconds)(),a=(0,u.spanTimeInputToSeconds)(i),s=(0,u.getSpanDescendants)(D).filter(e=>e!==D),c=(0,u.spanToJSON)(D);if(!s.length||!I)return F(a),Reflect.apply(e,t,[a,...o]);const f=R.getOptions().ignoreSpans,h=s?.reduce((e,t)=>{const r=(0,u.spanToJSON)(t);return r.timestamp?f&&(0,l.shouldIgnoreSpan)(r,f)?e:e?Math.max(e,r.timestamp):r.timestamp:e},void 0),m=c.start_timestamp,g=Math.min(m?m+C/1e3:1/0,Math.max(m||-1/0,Math.min(a,h||1/0)));return F(g),Reflect.apply(e,t,[g,...o])}}),T.push(R.on("spanStart",e=>{if(E||e===D||(0,u.spanToJSON)(e).timestamp||e instanceof h.SentrySpan&&e.isStandaloneSpan())return;var t;(0,u.getSpanDescendants)(D).includes(e)&&(t=e.spanContext().spanId,N(),r.set(t,!0),B((0,d.timestampInSeconds)()+j/1e3))})),T.push(R.on("spanEnd",e=>{var t;E||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&L((0,d.timestampInSeconds)()+O/1e3))})),T.push(R.on("idleSpanEnableAutoFinish",e=>{e===D&&(x=!0,L(),r.size&&B())})),t.disableAutoFinish||L(),setTimeout(()=>{E||(D.setStatus({code:m.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),k=_,D.end())},C),D}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>i});var n=r(319),o=r(331);class i{constructor(e={}){this._traceId=e.traceId||(0,n.generateTraceId)(),this._spanId=e.spanId||(0,n.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentrySpan:()=>m});var n=r(301),o=r(309),i=r(1331),a=r(327),s=r(315),l=r(319),c=r(331),u=r(317),d=r(326),f=r(1381),p=r(1382),h=r(333);class m{constructor(e={}){this._traceId=e.traceId||(0,l.generateTraceId)(),this._spanId=e.spanId||(0,l.generateSpanId)(),this._startTime=e.startTimestamp||(0,u.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?c.TRACE_FLAG_SAMPLED:c.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,c.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,c.spanTimeInputToSeconds)(e),(0,f.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,c.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,p.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,c.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,c.getRootSpan)(this).spanContext().spanId:void 0,links:(0,c.convertSpanLinksForEnvelope)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){o.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);const n=g(t)?t:r||(0,u.timestampInSeconds)(),i=g(t)?{}:t||{},a={name:e,time:(0,c.spanTimeInputToSeconds)(n),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,n.getClient)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,c.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,n.getClient)();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,i.createSpanEnvelope)([this],e)):(o.DEBUG_BUILD&&s.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){((0,h.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!y((0,c.spanToJSON)(this)))return;this._name||(o.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,h.getCapturedScopesOnSpan)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const n=(0,c.getSpanDescendants)(this).filter(e=>e!==this&&!function(e){return e instanceof m&&e.isStandaloneSpan()}(e)).map(e=>(0,c.spanToJSON)(e)).filter(y),i=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],n.forEach(e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});const l={contexts:{trace:(0,c.spanToTransactionTraceContext)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.getDynamicSamplingContextFromSpan)(this)},request:r,...i&&{transaction_info:{source:i}}},u=(0,p.timedEventsToMeasurements)(this._events);return u&&Object.keys(u).length&&(o.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function g(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function y(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{logSpanEnd:()=>s,logSpanStart:()=>a});var n=r(309),o=r(315),i=r(331);function a(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:a}=(0,i.spanToJSON)(e),{spanId:s}=e.spanContext(),l=(0,i.spanIsSampled)(e),c=(0,i.getRootSpan)(e),u=c===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${u?"root ":""}span`,f=[`op: ${r}`,`name: ${t}`,`ID: ${s}`];if(a&&f.push(`parent ID: ${a}`),!u){const{op:e,description:t}=(0,i.spanToJSON)(c);f.push(`root ID: ${c.spanContext().spanId}`),e&&f.push(`root op: ${e}`),t&&f.push(`root description: ${t}`)}o.debug.log(`${d}\n ${f.join("\n ")}`)}function s(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >"}=(0,i.spanToJSON)(e),{spanId:a}=e.spanContext(),s=`[Tracing] Finishing "${r}" ${(0,i.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${a}`;o.debug.log(s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>s,timedEventsToMeasurements:()=>l});var n=r(309),o=r(327),i=r(315),a=r(331);function s(e,t,r,s=(0,a.getActiveSpan)()){const l=s&&(0,a.getRootSpan)(s);l&&(n.DEBUG_BUILD&&i.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),l.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function l(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const r=e.attributes||{},n=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{continueTrace:()=>C,startInactiveSpan:()=>O,startNewTrace:()=>I,startSpan:()=>x,startSpanManual:()=>T,suppressTracing:()=>P,withActiveSpan:()=>j});var n=r(302),o=r(303),i=r(301),a=r(309),s=r(327),l=r(328),c=r(315),u=r(1384),d=r(330),f=r(335),p=r(319),h=r(320),m=r(331),g=r(334),y=r(326),v=r(1381),b=r(1385),_=r(1379),w=r(1380),S=r(332),E=r(333);const k="__SENTRY_SUPPRESS_TRACING__";function x(e,t){const r=M();if(r.startSpan)return r.startSpan(e,t);const n=A(e),{forceTransaction:o,parentSpan:a,scope:s}=e,l=s?.clone();return(0,i.withScope)(l,()=>L(a)(()=>{const r=(0,i.getCurrentScope)(),s=N(r,a),l=e.onlyIfParent&&!s?new _.SentryNonRecordingSpan:R({parentSpan:s,spanArguments:n,forceTransaction:o,scope:r});return(0,h._setSpanForScope)(r,l),(0,u.handleCallbackErrors)(()=>t(l),()=>{const{status:e}=(0,m.spanToJSON)(l);!l.isRecording()||e&&"ok"!==e||l.setStatus({code:S.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{l.end()})}))}function T(e,t){const r=M();if(r.startSpanManual)return r.startSpanManual(e,t);const n=A(e),{forceTransaction:o,parentSpan:a,scope:s}=e,l=s?.clone();return(0,i.withScope)(l,()=>L(a)(()=>{const r=(0,i.getCurrentScope)(),s=N(r,a),l=e.onlyIfParent&&!s?new _.SentryNonRecordingSpan:R({parentSpan:s,spanArguments:n,forceTransaction:o,scope:r});return(0,h._setSpanForScope)(r,l),(0,u.handleCallbackErrors)(()=>t(l,()=>l.end()),()=>{const{status:e}=(0,m.spanToJSON)(l);!l.isRecording()||e&&"ok"!==e||l.setStatus({code:S.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function O(e){const t=M();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=A(e),{forceTransaction:n,parentSpan:o}=e;return(e.scope?t=>(0,i.withScope)(e.scope,t):void 0!==o?e=>j(o,e):e=>e())(()=>{const t=(0,i.getCurrentScope)(),a=N(t,o);return e.onlyIfParent&&!a?new _.SentryNonRecordingSpan:R({parentSpan:a,spanArguments:r,forceTransaction:n,scope:t})})}const C=(e,t)=>{const r=(0,o.getMainCarrier)(),a=(0,n.getAsyncContextStrategy)(r);if(a.continueTrace)return a.continueTrace(e,t);const{sentryTrace:s,baggage:c}=e,u=(0,i.getClient)(),d=(0,l.baggageHeaderToDynamicSamplingContext)(c);return u&&!(0,g.shouldContinueTrace)(u,d?.org_id)?I(t):(0,i.withScope)(e=>{const r=(0,g.propagationContextFromHeaders)(s,c);return e.setPropagationContext(r),t()})};function j(e,t){const r=M();return r.withActiveSpan?r.withActiveSpan(e,t):(0,i.withScope)(r=>((0,h._setSpanForScope)(r,e||void 0),t(r)))}function P(e){const t=M();return t.suppressTracing?t.suppressTracing(e):(0,i.withScope)(t=>{t.setSDKProcessingMetadata({[k]:!0});const r=e();return t.setSDKProcessingMetadata({[k]:void 0}),r})}function I(e){return(0,i.withScope)(t=>(t.setPropagationContext({traceId:(0,p.generateTraceId)(),sampleRand:Math.random()}),a.DEBUG_BUILD&&c.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,e)))}function R({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!(0,d.hasSpansEnabled)()){const n=new _.SentryNonRecordingSpan;if(r||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,y.getDynamicSamplingContextFromSpan)(n)};(0,y.freezeDscOnSpan)(n,e)}return n}const o=(0,i.getIsolationScope)();let a;if(e&&!r)a=function(e,t,r){const{spanId:n,traceId:o}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[k]&&(0,m.spanIsSampled)(e),s=a?new w.SentrySpan({...r,parentSpanId:n,traceId:o,sampled:a}):new _.SentryNonRecordingSpan({traceId:o});(0,m.addChildSpanToSpan)(e,s);const l=(0,i.getClient)();l&&(l.emit("spanStart",s),r.endTimestamp&&l.emit("spanEnd",s));return s}(e,n,t),(0,m.addChildSpanToSpan)(e,a);else if(e){const r=(0,y.getDynamicSamplingContextFromSpan)(e),{traceId:o,spanId:i}=e.spanContext(),s=(0,m.spanIsSampled)(e);a=D({traceId:o,parentSpanId:i,...t},n,s),(0,y.freezeDscOnSpan)(a,r)}else{const{traceId:e,dsc:r,parentSpanId:i,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};a=D({traceId:e,parentSpanId:i,...t},n,s),r&&(0,y.freezeDscOnSpan)(a,r)}return(0,v.logSpanStart)(a),(0,E.setCapturedScopesOnSpan)(a,n,o),a}function A(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,m.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function M(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e)}function D(e,t,r){const n=(0,i.getClient)(),o=n?.getOptions()||{},{name:l=""}=e,u={spanAttributes:{...e.attributes},spanName:l,parentSampled:r};n?.emit("beforeSampling",u,{decision:!1});const d=u.parentSampled??r,p=u.spanAttributes,h=t.getPropagationContext(),[m,g,y]=t.getScopeData().sdkProcessingMetadata[k]?[!1]:(0,b.sampleSpan)(o,{name:l,parentSampled:d,attributes:p,parentSampleRate:(0,f.parseSampleRate)(h.dsc?.sample_rate)},h.sampleRand),v=new w.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==g&&y?g:void 0,...p},sampled:m});return!m&&n&&(a.DEBUG_BUILD&&c.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",v),v}function N(e,t){if(t)return t;if(null===t)return;const r=(0,h._getSpanForScope)(e);if(!r)return;const n=(0,i.getClient)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,m.getRootSpan)(r):r}function L(e){return void 0!==e?t=>j(e,t):e=>e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>o});var n=r(314);function o(e,t,r=()=>{},o=()=>{}){let i;try{i=e()}catch(e){throw t(e),r(),e}return function(e,t,r,o){if((0,n.isThenable)(e))return e.then(e=>(r(),o(e),e),e=>{throw t(e),r(),e});return r(),o(e),e}(i,t,r,o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>s});var n=r(309),o=r(315),i=r(330),a=r(335);function s(e,t,r){if(!(0,i.hasSpansEnabled)(e))return[!1];let s,l;"function"==typeof e.tracesSampler?(l=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),s=!0):void 0!==t.parentSampled?l=t.parentSampled:void 0!==e.tracesSampleRate&&(l=e.tracesSampleRate,s=!0);const c=(0,a.parseSampleRate)(l);if(void 0===c)return n.DEBUG_BUILD&&o.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(l)} of type ${JSON.stringify(typeof l)}.`),[!1];if(!c)return n.DEBUG_BUILD&&o.debug.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,c,s];const u=r<c;return u||n.DEBUG_BUILD&&o.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(l)})`),[u,c,s]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>P,_addNavigationSpans:()=>I,_addResourceSpans:()=>A,_setResourceRequestAttributes:()=>M,addPerformanceEntries:()=>j,startTrackingInteractions:()=>C,startTrackingLongAnimationFrames:()=>O,startTrackingLongTasks:()=>T,startTrackingWebVitals:()=>x});var n=r(1382),o=r(327),i=r(331),a=r(313),s=r(314),l=r(316),c=r(317),u=r(1354),d=r(1356),f=r(1387),p=r(1388),h=r(1411),m=r(1412),g=r(1410),y=r(1393),v=r(1394),b=r(1400);const _=2147483647;let w,S,E=0,k={};function x({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){const n=(0,g.getBrowserPerformanceAPI)();if(n&&(0,c.browserPerformanceTimeOrigin)()){n.mark&&d.WINDOW.performance.mark("sentry-tracing-init");const o=t?(0,h.trackLcpAsStandaloneSpan)(r):(0,p.addLcpInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(k.lcp={value:e.value,unit:"millisecond"},w=t)},!0),i=(0,p.addTtfbInstrumentationHandler)(({metric:e})=>{e.entries[e.entries.length-1]&&(k.ttfb={value:e.value,unit:"millisecond"})}),a=e?(0,f.trackClsAsStandaloneSpan)(r):(0,p.addClsInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(k.cls={value:e.value,unit:""},S=t)},!0);return()=>{o?.(),i(),a?.()}}return()=>{}}function T(){(0,p.addPerformanceInstrumentationHandler)("longtask",({entries:e})=>{const t=(0,i.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:n}=(0,i.spanToJSON)(t);for(const i of e){const e=(0,g.msToSec)((0,c.browserPerformanceTimeOrigin)()+i.startTime),a=(0,g.msToSec)(i.duration);"navigation"===r&&n&&e<n||(0,g.startAndEndSpan)(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function O(){new PerformanceObserver(e=>{const t=(0,i.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,g.msToSec)((0,c.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:a}=(0,i.spanToJSON)(t);if("navigation"===a&&n&&e<n)continue;const s=(0,g.msToSec)(r.duration),l={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:h,sourceCharPosition:m}=u;l["browser.script.invoker"]=d,l["browser.script.invoker_type"]=f,p&&(l["code.filepath"]=p),h&&(l["code.function"]=h),-1!==m&&(l["browser.script.source_char_position"]=m),(0,g.startAndEndSpan)(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function C(){(0,p.addPerformanceInstrumentationHandler)("event",({entries:e})=>{const t=(0,i.getActiveSpan)();if(t)for(const r of e)if("click"===r.name){const e=(0,g.msToSec)((0,c.browserPerformanceTimeOrigin)()+r.startTime),n=(0,g.msToSec)(r.duration),i={name:(0,a.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},s=(0,a.getComponentName)(r.target);s&&(i.attributes["ui.component_name"]=s),(0,g.startAndEndSpan)(t,e,e+n,i)}})}function j(e,t){const r=(0,g.getBrowserPerformanceAPI)(),o=(0,c.browserPerformanceTimeOrigin)();if(!r?.getEntries||!o)return;const s=(0,g.msToSec)(o),l=r.getEntries(),{op:u,start_timestamp:f}=(0,i.spanToJSON)(e);l.slice(E).forEach(r=>{const n=(0,g.msToSec)(r.startTime),o=(0,g.msToSec)(Math.max(0,r.duration));if(!("navigation"===u&&f&&s+n<f))switch(r.entryType){case"navigation":I(e,r,s);break;case"mark":case"paint":case"measure":{P(e,r,n,o,s,t.ignorePerformanceApiSpans);const i=(0,b.getVisibilityWatcher)(),a=r.startTime<i.firstHiddenTime;"first-paint"===r.name&&a&&(k.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&a&&(k.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":A(e,r,r.name,n,o,s,t.ignoreResourceSpans)}}),E=Math.max(l.length-1,0),function(e){const t=d.WINDOW.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),(0,g.isMeasurementValue)(r.rtt)&&(k["connection.rtt"]={value:r.rtt,unit:"millisecond"}));(0,g.isMeasurementValue)(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);(0,g.isMeasurementValue)(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===u&&(function(e){const t=(0,v.getNavigationEntry)(!1);if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(k),t.recordClsOnPageloadSpan||delete k.cls,t.recordLcpOnPageloadSpan||delete k.lcp,Object.entries(k).forEach(([e,t])=>{(0,n.setMeasurement)(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",(0,y.getActivationStart)()),function(e,t){w&&t.recordLcpOnPageloadSpan&&(w.element&&e.setAttribute("lcp.element",(0,a.htmlTreeAsString)(w.element)),w.id&&e.setAttribute("lcp.id",w.id),w.url&&e.setAttribute("lcp.url",w.url.trim().slice(0,200)),null!=w.loadTime&&e.setAttribute("lcp.loadTime",w.loadTime),null!=w.renderTime&&e.setAttribute("lcp.renderTime",w.renderTime),e.setAttribute("lcp.size",w.size));S?.sources&&t.recordClsOnPageloadSpan&&S.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,a.htmlTreeAsString)(t.node)))}(e,t)),w=void 0,S=void 0,k={}}function P(e,t,r,n,i,a){if(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,l.stringMatchesSomePattern)(t.name,a))return;const c=(0,v.getNavigationEntry)(!1),u=(0,g.msToSec)(c?c.requestStart:0),d=i+Math.max(r,u),f=i+r,p=f+n,h={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};d!==f&&(h["sentry.browser.measure_happened_before_request"]=!0,h["sentry.browser.measure_start_time"]=d),function(e,t){try{const r=t.detail;if(!r)return;if("object"==typeof r){for(const[t,n]of Object.entries(r))if(n&&(0,s.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,s.isPrimitive)(r))return void(e["sentry.browser.measure.detail"]=r);try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(h,t),d<=p&&(0,g.startAndEndSpan)(e,d,p,{name:t.name,op:t.entryType,attributes:h})}function I(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{R(e,t,n,r)}),R(e,t,"secureConnection",r,"TLS/SSL"),R(e,t,"fetch",r,"cache"),R(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,g.msToSec)(t.requestStart),i=r+(0,g.msToSec)(t.responseEnd),a=r+(0,g.msToSec)(t.responseStart);t.responseEnd&&((0,g.startAndEndSpan)(e,n,i,{op:"browser.request",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,g.startAndEndSpan)(e,a,i,{op:"browser.response",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}function R(e,t,r,n,i=r){const a=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(r),s=t[a],l=t[`${r}Start`];l&&s&&(0,g.startAndEndSpan)(e,n+(0,g.msToSec)(l),n+(0,g.msToSec)(s),{op:`browser.${i}`,name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function A(e,t,r,n,i,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},f=(0,u.parseUrl)(r);f.protocol&&(c["url.scheme"]=f.protocol.split(":").pop()),f.host&&(c["server.address"]=f.host),c["url.same_origin"]=r.includes(d.WINDOW.location.origin),M(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const p={...c,...(0,m.resourceTimingToSpanAttributes)(t)},h=a+n,y=h+i;(0,g.startAndEndSpan)(e,h,y,{name:r.replace(d.WINDOW.location.origin,""),op:l,attributes:p})}function M(e,t,r){r.forEach(([r,n])=>{const o=e[r];null!=o&&("number"==typeof o&&o<_||"string"==typeof o)&&(t[n]=o)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_sendStandaloneClsSpan:()=>f,trackClsAsStandaloneSpan:()=>d});var n=r(327),o=r(301),i=r(313),a=r(315),s=r(317),l=r(1374),c=r(1388),u=r(1410);function d(e){let t,r=0;if(!(0,u.supportsWebVital)("layout-shift"))return;const n=(0,c.addClsInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,o)=>{f(r,t,o,e),n()})}function f(e,t,r,c){l.DEBUG_BUILD&&a.debug.log(`Sending CLS span (${e})`);const d=t?(0,u.msToSec)(((0,s.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,s.timestampInSeconds)(),f=(0,o.getCurrentScope)().getScopeData().transactionName,p=t?(0,i.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",h={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":c};t?.sources&&t.sources.forEach((e,t)=>{h[`cls.source.${t+1}`]=(0,i.htmlTreeAsString)(e.node)});const m=(0,u.startStandaloneWebVitalSpan)({name:p,transaction:f,attributes:h,startTime:d});m&&(m.addEvent("cls",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(d))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>y,addInpInstrumentationHandler:()=>_,addLcpInstrumentationHandler:()=>v,addPerformanceInstrumentationHandler:()=>w,addTtfbInstrumentationHandler:()=>b,isPerformanceEventTiming:()=>P});var n=r(315),o=r(338),i=r(1374),a=r(1389),s=r(1402),l=r(1407),c=r(1397),u=r(1409);const d={},f={};let p,h,m,g;function y(e,t=!1){return O("cls",e,E,p,t)}function v(e,t=!1){return O("lcp",e,k,h,t)}function b(e){return O("ttfb",e,x,m)}function _(e){return O("inp",e,T,g)}function w(e,t){return C(e,t),f[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,c.observe)(e,t=>{S(e,{entries:t})},t)}(e),f[e]=!0),j(e,t)}function S(e,t){const r=d[e];if(r?.length)for(const a of r)try{a(t)}catch(t){i.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(a)}\nError:`,t)}}function E(){return(0,a.onCLS)(e=>{S("cls",{metric:e}),p=e},{reportAllChanges:!0})}function k(){return(0,l.onLCP)(e=>{S("lcp",{metric:e}),h=e},{reportAllChanges:!0})}function x(){return(0,u.onTTFB)(e=>{S("ttfb",{metric:e}),m=e})}function T(){return(0,s.onINP)(e=>{S("inp",{metric:e}),g=e})}function O(e,t,r,n,o=!1){let i;return C(e,t),f[e]||(i=r(),f[e]=!0),n&&t({metric:n}),j(e,t,o?i:void 0)}function C(e,t){d[e]=d[e]||[],d[e].push(t)}function j(e,t,r){return()=>{r&&r();const n=d[e];if(!n)return;const o=n.indexOf(t);-1!==o&&n.splice(o,1)}}function P(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>d,onCLS:()=>f});var n=r(1356),o=r(1390),i=r(1391),a=r(1395),s=r(1396),l=r(1397),c=r(1398),u=r(1399);const d=[.1,.25],f=(e,t={})=>{(0,u.onFCP)((0,c.runOnce)(()=>{const r=(0,i.initMetric)("CLS",0);let c;const u=(0,a.initUnique)(t,s.LayoutShiftManager),f=e=>{for(const t of e)u._processEntry(t);u._sessionValue>r.value&&(r.value=u._sessionValue,r.entries=u._sessionEntries,c())},p=(0,l.observe)("layout-shift",f);p&&(c=(0,o.bindReporter)(e,r,d,t.reportAllChanges),n.WINDOW.document?.addEventListener("visibilitychange",()=>{"hidden"===n.WINDOW.document?.visibilityState&&(f(p.takeRecords()),c(!0))}),n.WINDOW?.setTimeout?.(c))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r,n)=>{let o,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(o??0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(1356),o=r(1392),i=r(1393),a=r(1394);const s=(e,t=-1)=>{const r=(0,a.getNavigationEntry)();let s="navigate";r&&(n.WINDOW.document?.prerendering||(0,i.getActivationStart)()>0?s="prerender":n.WINDOW.document?.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:(0,o.generateUniqueID)(),navigationType:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>o});var n=r(1394);const o=()=>{const e=(0,n.getNavigationEntry)();return e?.activationStart??0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>o});var n=r(1356);const o=(e=!0)=>{const t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initUnique:()=>o});const n=new WeakMap;function o(e,t){return n.get(e)||n.set(e,new t),n.get(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LayoutShiftManager:()=>n});class n{constructor(){n.prototype.__init.call(this),n.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{runOnce:()=>n});const n=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FCPThresholds:()=>c,onFCP:()=>u});var n=r(1390),o=r(1393),i=r(1400),a=r(1391),s=r(1397),l=r(1401);const c=[1800,3e3],u=(e,t={})=>{(0,l.whenActivated)(()=>{const r=(0,i.getVisibilityWatcher)(),l=(0,a.initMetric)("FCP");let u;const d=(0,s.observe)("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<r.firstHiddenTime&&(l.value=Math.max(t.startTime-(0,o.getActivationStart)(),0),l.entries.push(t),u(!0)))});d&&(u=(0,n.bindReporter)(e,l,c,t.reportAllChanges))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>l});var n=r(1356),o=r(1393);let i=-1;const a=e=>{"hidden"===n.WINDOW.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,s())},s=()=>{removeEventListener("visibilitychange",a,!0),removeEventListener("prerenderingchange",a,!0)},l=()=>{if(n.WINDOW.document&&i<0){const e=(0,o.getActivationStart)(),t=n.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;i=t??("hidden"!==n.WINDOW.document?.visibilityState||n.WINDOW.document?.prerendering?1/0:0),addEventListener("visibilitychange",a,!0),addEventListener("prerenderingchange",a,!0)}return{get firstHiddenTime(){return i}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>o});var n=r(1356);const o=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>f,onINP:()=>p});var n=r(1390),o=r(1391),i=r(1395),a=r(1403),s=r(1397),l=r(1405),c=r(1404),u=r(1401),d=r(1406);const f=[200,500],p=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&(0,u.whenActivated)(()=>{(0,c.initInteractionCountPolyfill)();const r=(0,o.initMetric)("INP");let u;const p=(0,i.initUnique)(t,a.InteractionManager),h=e=>{(0,d.whenIdleOrHidden)(()=>{for(const t of e)p._processEntry(t);const t=p._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,u())})},m=(0,s.observe)("event",h,{durationThreshold:t.durationThreshold??40});u=(0,n.bindReporter)(e,r,f,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),(0,l.onHidden)(()=>{h(m.takeRecords()),u(!0)}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractionManager:()=>i});var n=r(1404);let o=0;class i{constructor(){i.prototype.__init.call(this),i.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){o=(0,n.getInteractionCount)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(((0,n.getInteractionCount)()-o)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>c,initInteractionCountPolyfill:()=>u});var n=r(1397);let o=0,i=1/0,a=0;const s=e=>{e.forEach(e=>{e.interactionId&&(i=Math.min(i,e.interactionId),a=Math.max(a,e.interactionId),o=a?(a-i)/7+1:0)})};let l;const c=()=>l?o:performance.interactionCount||0,u=()=>{"interactionCount"in performance||l||(l=(0,n.observe)("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>o});var n=r(1356);const o=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};n.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenIdleOrHidden:()=>a});var n=r(1356),o=r(1405),i=r(1398);const a=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;"hidden"===n.WINDOW.document?.visibilityState?e():(t(e=(0,i.runOnce)(e)),(0,o.onHidden)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>h,onLCP:()=>m});var n=r(1356),o=r(1390),i=r(1393),a=r(1400),s=r(1391),l=r(1395),c=r(1408),u=r(1397),d=r(1398),f=r(1401),p=r(1406);const h=[2500,4e3],m=(e,t={})=>{(0,f.whenActivated)(()=>{const r=(0,a.getVisibilityWatcher)(),f=(0,s.initMetric)("LCP");let m;const g=(0,l.initUnique)(t,c.LCPEntryManager),y=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)g._processEntry(t),t.startTime<r.firstHiddenTime&&(f.value=Math.max(t.startTime-(0,i.getActivationStart)(),0),f.entries=[t],m())},v=(0,u.observe)("largest-contentful-paint",y);if(v){m=(0,o.bindReporter)(e,f,h,t.reportAllChanges);const r=(0,d.runOnce)(()=>{y(v.takeRecords()),v.disconnect(),m(!0)});for(const e of["keydown","click","visibilitychange"])n.WINDOW.document&&addEventListener(e,()=>(0,p.whenIdleOrHidden)(r),{capture:!0,once:!0})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPEntryManager:()=>n});class n{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>c,onTTFB:()=>d});var n=r(1356),o=r(1390),i=r(1393),a=r(1394),s=r(1391),l=r(1401);const c=[800,1800],u=e=>{n.WINDOW.document?.prerendering?(0,l.whenActivated)(()=>u(e)):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",()=>u(e),!0):setTimeout(e)},d=(e,t={})=>{const r=(0,s.initMetric)("TTFB"),n=(0,o.bindReporter)(e,r,c,t.reportAllChanges);u(()=>{const e=(0,a.getNavigationEntry)();e&&(r.value=Math.max(e.responseStart-(0,i.getActivationStart)(),0),r.entries=[e],n(!0))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractNetworkProtocol:()=>p,getBrowserPerformanceAPI:()=>d,isMeasurementValue:()=>l,listenForWebVitalReportEvents:()=>m,msToSec:()=>f,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u,supportsWebVital:()=>h});var n=r(1383),o=r(301),i=r(331),a=r(1356),s=r(1405);function l(e){return"number"==typeof e&&isFinite(e)}function c(e,t,r,{...o}){const a=(0,i.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,n.withActiveSpan)(e,()=>{const e=(0,n.startInactiveSpan)({startTime:t,...o});return e&&e.end(r),e})}function u(e){const t=(0,o.getClient)();if(!t)return;const{name:r,transaction:i,attributes:s,startTime:l}=e,{release:c,environment:u,sendDefaultPii:d}=t.getOptions(),f=t.getIntegrationByName("Replay"),p=f?.getReplayId(),h=(0,o.getCurrentScope)(),m=h.getUser(),g=void 0!==m?m.email||m.id||m.ip_address:void 0;let y;try{y=h.getScopeData().contexts.profile.profile_id}catch{}const v={release:c,environment:u,user:g||void 0,profile_id:y||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":a.WINDOW.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...s};return(0,n.startInactiveSpan)({name:r,attributes:v,startTime:l,experimental:{standalone:!0}})}function d(){return a.WINDOW.addEventListener&&a.WINDOW.performance}function f(e){return e/1e3}function p(e){let t="unknown",r="unknown",n="";for(const o of e){if("/"===o){[t,r]=e.split("/");break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}return n===e&&(t=n),{name:t,version:r}}function h(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function m(e,t){let r,n=!1;function o(e){!n&&r&&t(e,r),n=!0}(0,s.onHidden)(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),i(),a())}),a=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,a()})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_sendStandaloneLcpSpan:()=>f,trackLcpAsStandaloneSpan:()=>d});var n=r(327),o=r(301),i=r(313),a=r(315),s=r(317),l=r(1374),c=r(1388),u=r(1410);function d(e){let t,r=0;if(!(0,u.supportsWebVital)("largest-contentful-paint"))return;const n=(0,c.addLcpInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,o)=>{f(r,t,o,e),n()})}function f(e,t,r,c){l.DEBUG_BUILD&&a.debug.log(`Sending LCP span (${e})`);const d=(0,u.msToSec)(((0,s.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),f=(0,o.getCurrentScope)().getScopeData().transactionName,p=t?(0,i.htmlTreeAsString)(t.element):"Largest contentful paint",h={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":c};t&&(t.element&&(h["lcp.element"]=(0,i.htmlTreeAsString)(t.element)),t.id&&(h["lcp.id"]=t.id),t.url&&(h["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(h["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(h["lcp.renderTime"]=t.renderTime),null!=t.size&&(h["lcp.size"]=t.size));const m=(0,u.startStandaloneWebVitalSpan)({name:p,transaction:f,attributes:h,startTime:d});m&&(m.addEvent("lcp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(d))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resourceTimingToSpanAttributes:()=>a});var n=r(317),o=r(1410);function i(e){return e?(((0,n.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function a(e){const t={};if(null!=e.nextHopProtocol){const{name:r,version:n}=(0,o.extractNetworkProtocol)(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,n.browserPerformanceTimeOrigin)()||(0,o.getBrowserPerformanceAPI)()?.timeOrigin?(r={...t,"http.request.redirect_start":i(e.redirectStart),"http.request.redirect_end":i(e.redirectEnd),"http.request.worker_start":i(e.workerStart),"http.request.fetch_start":i(e.fetchStart),"http.request.domain_lookup_start":i(e.domainLookupStart),"http.request.domain_lookup_end":i(e.domainLookupEnd),"http.request.connect_start":i(e.connectStart),"http.request.secure_connection_start":i(e.secureConnectionStart),"http.request.connection_end":i(e.connectEnd),"http.request.request_start":i(e.requestStart),"http.request.response_start":i(e.responseStart),"http.request.response_end":i(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(r).filter(([,e])=>null!=e))):t;var r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_onElementTiming:()=>d,startTrackingElementTiming:()=>u});var n=r(1383),o=r(327),i=r(301),a=r(331),s=r(317),l=r(1388),c=r(1410);function u(){return(0,c.getBrowserPerformanceAPI)()&&(0,s.browserPerformanceTimeOrigin)()?(0,l.addPerformanceInstrumentationHandler)("element",d):()=>{}}const d=({entries:e})=>{const t=(0,a.getActiveSpan)(),r=t?(0,a.getRootSpan)(t):void 0,l=r?(0,a.spanToJSON)(r).description:(0,i.getCurrentScope)().getScopeData().transactionName;e.forEach(e=>{const t=e;if(!t.identifier)return;const r=t.name,i=t.renderTime,a=t.loadTime,[u,d]=a?[(0,c.msToSec)(a),"load-time"]:i?[(0,c.msToSec)(i),"render-time"]:[(0,s.timestampInSeconds)(),"entry-emission"],f="image-paint"===r?(0,c.msToSec)(Math.max(0,(i??0)-(a??0))):0,p={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.elementtiming",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.elementtiming",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":l,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||"unknown","element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":r};(0,n.startSpan)({name:`element[${t.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},e=>{e.end(u+f)})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_onInp:()=>m,_trackINP:()=>h,registerInpInteractionListener:()=>g,startTrackingINP:()=>f});var n=r(327),o=r(301),i=r(331),a=r(313),s=r(317),l=r(1388),c=r(1410);const u=[],d=new Map;function f(){if((0,c.getBrowserPerformanceAPI)()&&(0,s.browserPerformanceTimeOrigin)()){const e=h();return()=>{e()}}return()=>{}}const p={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function h(){return(0,l.addInpInstrumentationHandler)(m)}const m=({metric:e})=>{if(null==e.value)return;const t=(0,c.msToSec)(e.value);if(t>60)return;const r=e.entries.find(t=>t.duration===e.value&&p[t.name]);if(!r)return;const{interactionId:l}=r,u=p[r.name],f=(0,c.msToSec)((0,s.browserPerformanceTimeOrigin)()+r.startTime),h=(0,i.getActiveSpan)(),m=h?(0,i.getRootSpan)(h):void 0,g=(null!=l?d.get(l):void 0)||m,y=g?(0,i.spanToJSON)(g).description:(0,o.getCurrentScope)().getScopeData().transactionName,v=(0,a.htmlTreeAsString)(r.target),b={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${u}`,[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},_=(0,c.startStandaloneWebVitalSpan)({name:v,transaction:y,attributes:b,startTime:f});_&&(_.addEvent("inp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),_.end(f+t))};function g(){const e=({entries:e})=>{const t=(0,i.getActiveSpan)(),r=t&&(0,i.getRootSpan)(t);e.forEach(e=>{if(!(0,l.isPerformanceEventTiming)(e)||!r)return;const t=e.interactionId;if(null!=t&&!d.has(t)){if(u.length>10){const e=u.shift();d.delete(e)}u.push(t),d.set(t,r)}})};(0,l.addPerformanceInstrumentationHandler)("event",e),(0,l.addPerformanceInstrumentationHandler)("first-input",e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerBackgroundTabDetection:()=>l});var n=r(332),o=r(331),i=r(315),a=r(1359),s=r(1346);function l(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",()=>{const e=(0,o.getActiveSpan)();if(!e)return;const t=(0,o.getRootSpan)(e);if(s.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:s}=(0,o.spanToJSON)(t);a.DEBUG_BUILD&&i.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:n.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):a.DEBUG_BUILD&&i.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PREVIOUS_TRACE_KEY:()=>u,PREVIOUS_TRACE_MAX_DURATION:()=>c,PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE:()=>d,addPreviousTraceSpanLink:()=>p,getPreviousTraceFromSessionStorage:()=>m,linkTraces:()=>f,spanContextSampled:()=>g,storePreviousTraceInSessionStorage:()=>h});var n=r(327),o=r(301),i=r(331),a=r(315),s=r(1359),l=r(1346);const c=3600,u="sentry_previous_trace",d="sentry.previous_trace";function f(e,{linkPreviousTrace:t,consistentTraceSampling:r}){const a="session-storage"===t;let s=a?m():void 0;e.on("spanStart",e=>{if((0,i.getRootSpan)(e)!==e)return;const t=(0,o.getCurrentScope)().getPropagationContext();s=p(s,e,t),a&&h(s)});let l=!0;r&&e.on("beforeSampling",e=>{if(!s)return;const t=(0,o.getCurrentScope)(),r=t.getPropagationContext();l&&r.parentSpanId?l=!1:(t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(s.sampleRate),sampled:String(g(s.spanContext))},sampleRand:s.sampleRand}),e.parentSampled=g(s.spanContext),e.parentSampleRate=s.sampleRate,e.spanAttributes={...e.spanAttributes,[n.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:s.sampleRate})})}function p(e,t,r){const o=(0,i.spanToJSON)(t);const l={spanContext:t.spanContext(),startTimestamp:o.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(o.data?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return l;const u=e.spanContext;return u.traceId===o.trace_id?e:(Date.now()/1e3-e.startTimestamp<=c&&(s.DEBUG_BUILD&&a.debug.log(`Adding previous_trace ${u} link to span ${{op:o.op,...t.spanContext()}}`),t.addLink({context:u,attributes:{[n.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(d,`${u.traceId}-${u.spanId}-${g(u)?1:0}`)),l)}function h(e){try{l.WINDOW.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){s.DEBUG_BUILD&&a.debug.warn("Could not store previous trace in sessionStorage",e)}}function m(){try{const e=l.WINDOW.sessionStorage?.getItem(u);return JSON.parse(e)}catch{return}}function g(e){return 1===e.traceFlags}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRequestInstrumentationOptions:()=>E,instrumentOutgoingRequests:()=>k,shouldAttachHeaders:()=>T});var n=r(1379),o=r(332),i=r(1383),a=r(327),s=r(301),l=r(330),c=r(331),u=r(1418),d=r(1419),f=r(313),p=r(1351),h=r(316),m=r(1354),g=r(1388),y=r(1358),v=r(1420),b=r(1412),_=r(1421);const w=new WeakMap,S=new Map,E={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function k(e,t){const{traceFetch:r,traceXHR:f,trackFetchStreamPerformance:h,shouldCreateSpanForRequest:g,enableHTTPTimings:b,tracePropagationTargets:k,onRequestSpanStart:O,onRequestSpanEnd:C}={...E,...t},j="function"==typeof g?g:e=>!0,P=e=>T(e,k),I={},R=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=S.get(e.span_id);t&&(e.timestamp=t/1e3,S.delete(e.span_id))}}),e)),h&&(0,p.addFetchEndInstrumentationHandler)(e=>{if(e.response){const t=w.get(e.response);t&&e.endTimestamp&&S.set(t,e.endTimestamp)}}),(0,p.addFetchInstrumentationHandler)(e=>{const t=(0,d.instrumentFetchRequest)(e,j,P,I,{propagateTraceparent:R,onRequestSpanEnd:C});if(e.response&&e.fetchData.__span&&w.set(e.response,e.fetchData.__span),t){const r=(0,_.getFullURL)(e.fetchData.url),n=r?(0,m.parseUrl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n}),b&&x(t),O?.(t,{headers:e.headers})}})),f&&(0,y.addXhrInstrumentationHandler)(e=>{const t=function(e,t,r,d,f,p){const h=e.xhr,g=h?.[y.SENTRY_XHR_DATA_KEY];if(!h||h.__sentry_own_request__||!g)return;const{url:b,method:w}=g,S=(0,l.hasSpansEnabled)()&&t(b);if(e.endTimestamp&&S){const t=h.__sentry_xhr_span_id__;if(!t)return;const r=d[t];return void(r&&void 0!==g.status_code&&((0,o.setHttpStatus)(r,g.status_code),r.end(),p?.(r,{headers:(0,_.createHeadersSafely)((0,v.parseXhrResponseHeaders)(h)),error:e.error}),delete d[t]))}const E=(0,_.getFullURL)(b),k=E?(0,m.parseUrl)(E):(0,m.parseUrl)(b),x=(0,m.stripUrlQueryAndFragment)(b),T=!!(0,c.getActiveSpan)(),O=S&&T?(0,i.startInactiveSpan)({name:`${w} ${x}`,attributes:{url:b,type:"xhr","http.method":w,"http.url":E,"server.address":k?.host,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...k?.search&&{"http.query":k?.search},...k?.hash&&{"http.fragment":k?.hash}}}):new n.SentryNonRecordingSpan;h.__sentry_xhr_span_id__=O.spanContext().spanId,d[h.__sentry_xhr_span_id__]=O,r(b)&&function(e,t,r){const{"sentry-trace":n,baggage:o,traceparent:i}=(0,u.getTraceData)({span:t,propagateTraceparent:r});n&&function(e,t,r,n){const o=e.__sentry_xhr_v3__?.request_headers;if(o?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),n&&!o?.traceparent&&e.setRequestHeader("traceparent",n),r){const t=o?.baggage;t&&(0,_.baggageHeaderHasSentryValues)(t)||e.setRequestHeader("baggage",r)}}catch{}}(e,n,o,i)}(h,(0,l.hasSpansEnabled)()&&T?O:void 0,f);const C=(0,s.getClient)();C&&C.emit("beforeOutgoingRequestSpan",O,e);return O}(e,j,P,I,R,C);t&&(b&&x(t),O?.(t,{headers:(0,_.createHeadersSafely)(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function x(e){const{url:t}=(0,c.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;const r=(0,g.addPerformanceInstrumentationHandler)("resource",({entries:n})=>{n.forEach(n=>{(0,_.isPerformanceResourceTiming)(n)&&n.name.endsWith(t)&&(e.setAttributes((0,b.resourceTimingToSpanAttributes)(n)),setTimeout(r))})})}function T(e,t){const r=(0,f.getLocationHref)();if(r){let n,o;try{n=new URL(e,r),o=new URL(r).origin}catch{return!1}const i=n.origin===o;return t?(0,h.stringMatchesSomePattern)(n.toString(),t)||i&&(0,h.stringMatchesSomePattern)(n.pathname,t):i}{const r=!!e.match(/^\/(?!\/)/);return t?(0,h.stringMatchesSomePattern)(e,t):r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>f});var n=r(302),o=r(303),i=r(301),a=r(300),s=r(315),l=r(331),c=r(326),u=r(328),d=r(334);function f(e={}){const t=e.client||(0,i.getClient)();if(!(0,a.isEnabled)()||!t)return{};const r=(0,o.getMainCarrier)(),f=(0,n.getAsyncContextStrategy)(r);if(f.getTraceData)return f.getTraceData(e);const p=e.scope||(0,i.getCurrentScope)(),h=e.span||(0,l.getActiveSpan)(),m=h?(0,l.spanToTraceHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,d.generateSentryTraceHeader)(t,n,r)}(p),g=h?(0,c.getDynamicSamplingContextFromSpan)(h):(0,c.getDynamicSamplingContextFromScope)(t,p),y=(0,u.dynamicSamplingContextToSentryBaggageHeader)(g);if(!d.TRACEPARENT_REGEXP.test(m))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const v={"sentry-trace":m,baggage:y};if(e.propagateTraceparent){const e=h?(0,l.spanToTraceparentHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,d.generateTraceparentHeader)(t,n,r)}(p);e&&(v.traceparent=e)}return v}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addTracingHeadersToFetchRequest:()=>g,_callOnRequestSpanEnd:()=>m,instrumentFetchRequest:()=>h});var n=r(301),o=r(327),i=r(331),a=r(332),s=r(314),l=r(330),c=r(328),u=r(1379),d=r(1383),f=r(1418),p=r(1354);function h(e,t,r,o,s){if(!e.fetchData)return;const{method:c,url:f}=e.fetchData,h=(0,l.hasSpansEnabled)()&&t(f);if(e.endTimestamp&&h){const t=e.fetchData.__span;if(!t)return;const r=o[t];return void(r&&(!function(e,t){if(t.response){(0,a.setHttpStatus)(e,t.response.status);const r=t.response?.headers?.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),m(r,e,s),delete o[t]))}const{spanOrigin:y="auto.http.browser",propagateTraceparent:b=!1}="object"==typeof s?s:{spanOrigin:s},_=!!(0,i.getActiveSpan)(),w=h&&_?(0,d.startInactiveSpan)(function(e,t,r){const n=(0,p.parseStringToURLObject)(e);return{name:n?`${t} ${(0,p.getSanitizedUrlStringFromUrlObject)(n)}`:t,attributes:v(e,n,t,r)}}(f,c,y)):new u.SentryNonRecordingSpan;if(e.fetchData.__span=w.spanContext().spanId,o[w.spanContext().spanId]=w,r(e.fetchData.url)){const t=e.args[0],r=e.args[1]||{},n=g(t,r,(0,l.hasSpansEnabled)()&&_?w:void 0,b);n&&(e.args[1]=r,r.headers=n)}const S=(0,n.getClient)();if(S){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};S.emit("beforeOutgoingRequestSpan",w,t)}return w}function m(e,t,r){const n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}function g(e,t,r,n){const o=(0,f.getTraceData)({span:r,propagateTraceparent:n}),i=o["sentry-trace"],a=o.baggage,l=o.traceparent;if(!i)return;const c=t.headers||((0,s.isRequest)(e)?e.headers:void 0);if(c){if(u=c,"undefined"!=typeof Headers&&(0,s.isInstanceOf)(u,Headers)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),a){const t=e.get("baggage");t?y(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(c)){const e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]),n&&l&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);const t=c.find(e=>"baggage"===e[0]&&y(e[1]));return a&&!t&&e.push(["baggage",a]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,o=r?Array.isArray(r)?[...r]:[r]:[],s=r&&(Array.isArray(r)?r.find(e=>y(e)):y(r));a&&!s&&o.push(a);const u={...c,"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0};return n&&l&&!t&&(u.traceparent=l),u}}return{...o};var u}function y(e){return e.split(",").some(e=>e.trim().startsWith(c.SENTRY_BAGGAGE_KEY_PREFIX))}function v(e,t,r,n){const i={url:e,type:"fetch","http.method":r,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&((0,p.isURLObjectRelative)(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBodyString:()=>a,getFetchRequestArgBody:()=>s,parseXhrResponseHeaders:()=>l,serializeFormData:()=>i});var n=r(315),o=r(1374);function i(e){return new URLSearchParams(e).toString()}function a(e,t=n.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(r){return o.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.DEBUG_BUILD&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function s(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function l(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return o.DEBUG_BUILD&&n.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{baggageHeaderHasSentryValues:()=>o,createHeadersSafely:()=>s,getFullURL:()=>i,isPerformanceResourceTiming:()=>a});var n=r(1346);function o(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))}function i(e){try{return new URL(e,n.WINDOW.location.origin).href}catch{return}}function a(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}function s(e){try{return new Headers(e)}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{excludeGraphQLFetch:()=>n,withoutGraphQLFetch:()=>o});const n=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function o(e){return(t,r)=>{const o=n(t,r);return null===o?null:e(o,r)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{const n=r(1479),o=r(1480),i=r(1503),a=r(1505);function s(e,t,r,i,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=t,t=i=void 0):2!==l||t.getContext||(i=r,r=t,t=void 0),new Promise(function(n,a){try{const a=o.create(r,i);n(e(a,t,i))}catch(e){a(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=r,r=t,t=i=void 0):3===l&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0));try{const n=o.create(r,i);a(null,e(n,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},(e,t,r)=>{const n=r(1481),o=r(1482),i=r(1483),a=r(1484),s=r(1485),l=r(1486),c=r(1487),u=r(1488),d=r(1489),f=r(1492),p=r(1496),h=r(1493),m=r(1497);function g(e,t,r){const n=e.size,o=p.getEncodedBits(t,r);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(n-15+i,8,a,!0),i<8?e.set(8,n-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(n-8,8,1,!0)}function y(e,t,r){const o=new i;r.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)});const a=8*(n.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(a-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,r){const o=n.getSymbolTotalCodewords(t),i=u.getTotalCodewordsCount(t,r),a=o-i,s=u.getBlocksCount(t,r),l=o%s,c=s-l,f=Math.floor(o/s),p=Math.floor(a/s),h=p+1,m=f-p,g=new d(m);let y=0;const v=new Array(s),b=new Array(s);let _=0;const w=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<c?p:h;v[e]=w.slice(y,y+t),b[e]=g.encode(v[e]),y+=t,_=Math.max(_,t)}const S=new Uint8Array(o);let E,k,x=0;for(E=0;E<_;E++)for(k=0;k<s;k++)E<v[k].length&&(S[x++]=v[k][E]);for(E=0;E<m;E++)for(k=0;k<s;k++)S[x++]=b[k][E];return S}(o,e,t)}function v(e,t,r,o){let i;if(Array.isArray(e))i=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let n=t;if(!n){const t=m.rawSplit(e);n=f.getBestVersionForData(t,r)}i=m.fromString(e,n||40)}}const u=f.getBestVersionForData(i,r);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=y(t,r,i),p=n.getSymbolSize(t),h=new a(p);return function(e,t){const r=e.size,n=l.getPositions(t);for(let t=0;t<n.length;t++){const o=n[t][0],i=n[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||r<=o+t))for(let n=-1;n<=7;n++)i+n<=-1||r<=i+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(o+t,i+n,!0,!0):e.set(o+t,i+n,!1,!0))}}(h,t),function(e){const t=e.size;for(let r=8;r<t-8;r++){const t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(h),function(e,t){const r=s.getPositions(t);for(let t=0;t<r.length;t++){const n=r[t][0],o=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,o+r,!0,!0):e.set(n+t,o+r,!1,!0)}}(h,t),g(h,r,0),t>=7&&function(e,t){const r=e.size,n=f.getEncodedBits(t);let o,i,a;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+r-8-3,a=1==(n>>t&1),e.set(o,i,a,!0),e.set(i,o,a,!0)}(h,t),function(e,t){const r=e.size;let n=-1,o=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(o,s-r)){let n=!1;a<t.length&&(n=1==(t[a]>>>i&1)),e.set(o,s-r,n),i--,-1===i&&(a++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}(h,d),isNaN(o)&&(o=c.getBestMask(h,g.bind(null,h,r))),c.applyMask(o,h),g(h,r,o),{modules:h,version:t,errorCorrectionLevel:r,maskPattern:o,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let r,i,a=o.M;return void 0!==t&&(a=o.from(t.errorCorrectionLevel,o.M),r=f.from(t.version),i=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),v(e,r,a,i)}},(e,t)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){const o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},(e,t,r)=>{const n=r(1481).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,r=n(e),o=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const r=[],n=t.getRowColCoords(e),o=n.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||r.push([n[e],n[t]]);return r}},(e,t,r)=>{const n=r(1481).getSymbolSize;t.getPositions=function(e){const t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r=3,n=3,o=40,i=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,o=0,i=0,a=null,s=null;for(let l=0;l<t;l++){o=i=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?o++:(o>=5&&(n+=r+(o-5)),a=t,o=1),t=e.get(c,l),t===s?i++:(i>=5&&(n+=r+(i-5)),s=t,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}return n},t.getPenaltyN2=function(e){const t=e.size;let r=0;for(let n=0;n<t-1;n++)for(let o=0;o<t-1;o++){const t=e.get(n,o)+e.get(n,o+1)+e.get(n+1,o)+e.get(n+1,o+1);4!==t&&0!==t||r++}return r*n},t.getPenaltyN3=function(e){const t=e.size;let r=0,n=0,i=0;for(let o=0;o<t;o++){n=i=0;for(let a=0;a<t;a++)n=n<<1&2047|e.get(o,a),a>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&r++}return r*o},t.getPenaltyN4=function(e){let t=0;const r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*i},t.applyMask=function(e,t){const r=t.size;for(let n=0;n<r;n++)for(let o=0;o<r;o++)t.isReserved(o,n)||t.xor(o,n,a(e,o,n))},t.getBestMask=function(e,r){const n=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<i&&(i=n,o=a)}return o}},(e,t,r)=>{const n=r(1482),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return i[4*(e-1)+0];case n.M:return i[4*(e-1)+1];case n.Q:return i[4*(e-1)+2];case n.H:return i[4*(e-1)+3];default:return}}},(e,t,r)=>{const n=r(1490);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const r=n.mod(t,this.genPoly),o=this.degree-r.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(r,o),e}return r},e.exports=o},(e,t,r)=>{const n=r(1491);t.mul=function(e,t){const r=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)r[o+i]^=n.mul(e[o],t[i]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){const e=r[0];for(let o=0;o<t.length;o++)r[o]^=n.mul(t[o],e);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let o=0;o<e;o++)r=t.mul(r,new Uint8Array([1,n.exp(o)]));return r}},(e,t)=>{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},(e,t,r)=>{const n=r(1481),o=r(1488),i=r(1482),a=r(1493),s=r(1494),l=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let r=0;return e.forEach(function(e){const n=c(e.mode,t);r+=n+e.getBitsLength()}),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);const i=8*(n.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(r===a.MIXED)return i;const l=i-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let n;const o=i.from(r,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(u(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,o);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let o=1;o<=40;o++)if(r<=t.getCapacity(o,n,e))return o}(n.mode,n.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-l>=0;)t^=7973<<n.getBCHDigit(t)-l;return e<<12|t}},(e,t,r)=>{const n=r(1494),o=r(1495);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},(e,t)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},(e,t,r)=>{const n=r(1481),o=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){const r=e.bit<<3|t;let i=r<<10;for(;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return 21522^(r<<10|i)}},(e,t,r)=>{const n=r(1493),o=r(1498),i=r(1499),a=r(1500),s=r(1501),l=r(1495),c=r(1481),u=r(1502);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,r){const n=[];let o;for(;null!==(o=e.exec(r));)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function p(e){const t=f(l.NUMERIC,n.NUMERIC,e),r=f(l.ALPHANUMERIC,n.ALPHANUMERIC,e);let o,i;c.isKanjiModeEnabled()?(o=f(l.BYTE,n.BYTE,e),i=f(l.KANJI,n.KANJI,e)):(o=f(l.BYTE_KANJI,n.BYTE,e),i=[]);return t.concat(r,o,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case n.NUMERIC:return o.getBitsLength(e);case n.ALPHANUMERIC:return i.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;const l=n.getBestModeForData(e);if(r=n.from(t,l),r!==n.BYTE&&r.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(l));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new o(e);case n.ALPHANUMERIC:return new i(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,r){const o=function(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];switch(o.mode){case n.NUMERIC:t.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:t.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:t.push([o,{data:o.data,mode:n.BYTE,length:d(o.data)}]);break;case n.BYTE:t.push([{data:o.data,mode:n.BYTE,length:d(o.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),i=function(e,t){const r={},o={start:{}};let i=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),r[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<i.length;e++){const a=i[e];r[a]&&r[a].node.mode===c.mode?(o[a][u]=h(r[a].lastCount+c.length,c.mode)-h(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),o[a][u]=h(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:r}}(o,r),a=u.find_path(i.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(i.table[a[e]].node);return t.fromArray(function(e){return e.reduce(function(e,t){const r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1493);function o(e){this.mode=n.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);const o=this.data.length-t;o>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*o+1))},e.exports=o},(e,t,r)=>{const n=r(1493),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*o.indexOf(this.data[t]);r+=o.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},(e,t,r)=>{const n=r(1493);function o(e){this.mode=n.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=o},(e,t,r)=>{const n=r(1493),o=r(1481);function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=o.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=i},e=>{"use strict";var t={single_source_shortest_paths:function(e,r,n){var o={},i={};i[r]=0;var a,s,l,c,u,d,f,p=t.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,p.push(l,d),o[l]=s));if(void 0!==n&&void 0===i[n]){var h=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var o=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,o={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},(e,t,r)=>{const n=r(1504);t.render=function(e,t,r){let o=r,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=n.getOptions(o);const a=n.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(a,a);return n.qrToImageData(l.data,e,o),function(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(s,i,a),s.putImageData(l,0,0),i},t.renderToDataURL=function(e,r,n){let o=n;void 0!==o||r&&r.getContext||(o=r,r=void 0),o||(o={});const i=t.render(e,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},(e,t)=>{function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){const n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){const o=r.modules.size,i=r.modules.data,a=t.getScale(o,n),s=Math.floor((o+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=4*(t*s+r),d=n.color.light;if(t>=l&&r>=l&&t<s-l&&r<s-l){d=c[i[Math.floor((t-l)/a)*o+Math.floor((r-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},(e,t,r)=>{const n=r(1504);function o(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function i(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){const a=n.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",o=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=a?i("M",c+r,.5+u+r):i("m",o,0),o=0,a=!1),c+1<t&&e[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,p),p}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var r=i.test(e);return r||a.test(e)?s(e.slice(2),r?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function b(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function _(){var e=h();if(b(e))return w(e);s=setTimeout(_,function(e){var r=t-(e-l);return d?p(r,i-(e-c)):r}(e))}function w(e){return s=void 0,y&&n?v(e):(n=o=void 0,a)}function S(){var e=h(),r=b(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(_,t),u?v(e):a}(l);if(d)return s=setTimeout(_,t),v(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=g(t)||0,m(r)&&(u=!!r.leading,i=(d="maxWait"in r)?f(g(r.maxWait)||0,t):i,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},S.flush=function(){return void 0===s?a:w(h())},S}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(678),o=r(679),i=r(680),a=r(1898),s=r(1900),l=r(296),c=r(1153),u=r(1156),d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},f=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}(0,i.default)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&(0,u.forceReflow)(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&d(e,n),o&&d(e,o),i&&d(e,i)},r.render=function(){var e=this.props,t=(e.classNames,(0,o.default)(e,["classNames"]));return l.default.createElement(c.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.default.Component);f.defaultProps={classNames:""},f.propTypes={};const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1899);function o(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},(e,t,r)=>{"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}r.r(t),r.d(t,{default:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(679),o=r(678),i=r(1902),a=r(680),s=r(296),l=r(1155),c=r(1903),u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind((0,i.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,a.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,o.default)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=(0,n.default)(e,["component","childFactory"]),i=this.state.contextValue,a=u(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?s.default.createElement(l.default.Provider,{value:i},a):s.default.createElement(l.default.Provider,{value:i},s.default.createElement(t,o,a))},t}(s.default.Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};const f=d},(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getChildMapping:()=>o,getInitialChildMapping:()=>s,getNextChildMapping:()=>l,mergeChildMappings:()=>i});var n=r(296);function o(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)}),r}function i(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}function s(e,t){return o(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})})}function l(e,t,r){var s=o(e.children),l=i(t,s);return Object.keys(l).forEach(function(o){var i=l[o];if((0,n.isValidElement)(i)){var c=o in t,u=o in s,d=t[o],f=(0,n.isValidElement)(d)&&!d.props.in;!u||c&&!f?u||!c||f?u&&c&&(0,n.isValidElement)(d)&&(l[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:d.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):l[o]=(0,n.cloneElement)(i,{in:!1}):l[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}}),l}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbstractSeries:()=>n.default,ArcSeries:()=>o.default,AreaSeries:()=>i.default,AxisUtils:()=>re.default,Borders:()=>a.default,ChartLabel:()=>s.default,CircularGridLines:()=>l.default,ContentClipPath:()=>ee.default,ContinuousColorLegend:()=>V.default,ContinuousSizeLegend:()=>W.default,ContourSeries:()=>c.default,Crosshair:()=>u.default,CustomSVGSeries:()=>d.default,DecorativeAxis:()=>f.default,DiscreteColorLegend:()=>G.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>p.default,GridLines:()=>h.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>g.default,Highlight:()=>y.default,Hint:()=>v.default,HorizontalBarSeries:()=>b.default,HorizontalBarSeriesCanvas:()=>_.default,HorizontalGridLines:()=>w.default,HorizontalRectSeries:()=>S.default,HorizontalRectSeriesCanvas:()=>E.default,LabelSeries:()=>k.default,LineMarkSeries:()=>x.default,LineMarkSeriesCanvas:()=>T.default,LineSeries:()=>O.default,LineSeriesCanvas:()=>C.default,MarkSeries:()=>j.default,MarkSeriesCanvas:()=>P.default,ParallelCoordinates:()=>K.default,PolygonSeries:()=>I.default,RadarChart:()=>Y.default,RadialChart:()=>J.default,RectSeries:()=>B.default,RectSeriesCanvas:()=>F.default,Sankey:()=>X.default,ScaleUtils:()=>ne.default,SearchableDiscreteColorLegend:()=>$.default,Sunburst:()=>Q.default,Treemap:()=>Z.default,VerticalBarSeries:()=>R.default,VerticalBarSeriesCanvas:()=>A.default,VerticalGridLines:()=>M.default,VerticalRectSeries:()=>D.default,VerticalRectSeriesCanvas:()=>N.default,Voronoi:()=>L.default,WhiskerSeries:()=>z.default,XAxis:()=>H.default,XYPlot:()=>U.default,YAxis:()=>q.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var n=r(1974),o=r(2075),i=r(2084),a=r(2141),s=r(2142),l=r(2143),c=r(2145),u=r(2171),d=r(2172),f=r(2173),p=r(2175),h=r(2176),m=r(2177),g=r(2178),y=r(2181),v=r(2182),b=r(2183),_=r(2185),w=r(2187),S=r(2188),E=r(2190),k=r(2192),x=r(2193),T=r(2196),O=r(2194),C=r(2198),j=r(2195),P=r(2197),I=r(2199),R=r(2200),A=r(2201),M=r(2202),D=r(2203),N=r(2204),L=r(2205),B=r(2189),F=r(2191),z=r(2206),U=r(2207),H=r(2226),q=r(2231),V=r(2232),W=r(2233),G=r(2234),$=r(2236),K=r(2237),Y=r(2238),J=r(2239),X=r(2240),Q=r(2256),Z=r(2275),ee=r(2292),te=r(2293),re=r(2144),ne=r(2015)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(668),o=r.n(n),i=r(1975),a=r(296),s=r(1985),l=r(2015);function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return p(e)}(this,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g(g(g(g(g({},(0,l.getScalePropTypesByAttribute)("x")),(0,l.getScalePropTypesByAttribute)("y")),(0,l.getScalePropTypesByAttribute)("size")),(0,l.getScalePropTypesByAttribute)("opacity")),(0,l.getScalePropTypesByAttribute)("color")),{},{width:o().number,height:o().number,data:o().arrayOf(o().oneOfType([o().object,o().array])),onValueMouseOver:o().func,onValueMouseOut:o().func,onValueClick:o().func,onValueRightClick:o().func,onSeriesMouseOver:o().func,onSeriesMouseOut:o().func,onSeriesClick:o().func,onSeriesRightClick:o().func,onNearestX:o().func,onNearestXY:o().func,style:o().object,animation:s.AnimationPropType,stack:o().bool}),b=function(e){!function(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}}),t&&d(e,t)}(a,e);var t,r,n,o=f(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(p(e=o.call.apply(o,[this].concat(r))),"_seriesClickHandler",function(t){var r=e.props.onSeriesClick;r&&r({event:t})}),y(p(e),"_seriesMouseOutHandler",function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})}),y(p(e),"_seriesMouseOverHandler",function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})}),y(p(e),"_seriesRightClickHandler",function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})}),y(p(e),"_valueClickHandler",function(t,r){var n=e.props,o=n.onValueClick,i=n.onSeriesClick;o&&o(t,{event:r}),i&&i({event:r})}),y(p(e),"_valueMouseOutHandler",function(t,r){var n=e.props,o=n.onValueMouseOut,i=n.onSeriesMouseOut;o&&o(t,{event:r}),i&&i({event:r})}),y(p(e),"_valueMouseOverHandler",function(t,r){var n=e.props,o=n.onValueMouseOver,i=n.onSeriesMouseOver;o&&o(t,{event:r}),i&&i({event:r})}),y(p(e),"_valueRightClickHandler",function(t,r){var n=e.props,o=n.onValueRightClick,i=n.onSeriesRightClick;o&&o(t,{event:r}),i&&i({event:r})}),e}return t=a,n=[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"onParentMouseMove",value:function(e){var t=this.props,r=t.onNearestX,n=t.onNearestXY,o=t.data;(r||n)&&o&&(n?this._handleNearestXY(e):this._handleNearestX(e))}},{key:"onParentTouchMove",value:function(e){e.preventDefault(),this.onParentMouseMove(e)}},{key:"onParentTouchStart",value:function(e){e.preventDefault()}},{key:"_getAttr0Functor",value:function(e){return(0,l.getAttr0Functor)(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return(0,l.getAttributeFunctor)(this.props,e)}},{key:"_getAttributeValue",value:function(e){return(0,l.getAttributeValue)(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=(0,l.getScaleObjectFromProps)(this.props,e);return t?t.distance:0}},{key:"_getXYCoordinateInContainer",value:function(e){var t=this.props,r=t.marginTop,n=void 0===r?0:r,o=t.marginLeft,i=void 0===o?0:o,a=e.nativeEvent,s=e.currentTarget,l=s.getBoundingClientRect(),c=a.clientX,u=a.clientY;return"touchmove"===a.type&&(c=a.touches[0].pageX,u=a.touches[0].pageY),{x:c-l.left-s.clientLeft-i,y:u-l.top-s.clientTop-n}}},{key:"_handleNearestX",value:function(e){var t=this.props,r=t.onNearestX,n=t.data,o=Number.POSITIVE_INFINITY,i=null,a=null,s=this._getXYCoordinateInContainer(e),l=this._getAttributeFunctor("x");n.forEach(function(e,t){var r=l(e),n=Math.abs(s.x-r);n<o&&(o=n,i=e,a=t)}),i&&r(i,{innerX:l(i),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,r=t.onNearestXY,n=t.data,o=this._getXYCoordinateInContainer(e),a=this._getAttributeFunctor("x"),s=this._getAttributeFunctor("y"),l=(0,i.voronoi)().x(a).y(s)(n).find(o.x,o.y),c=l.data;c&&r(c,{innerX:l[0],innerY:l[1],index:l.index,event:e.nativeEvent})}}])&&u(t.prototype,r),n&&u(t,n),a}(a.PureComponent);b.displayName="AbstractSeries",b.propTypes=v,b.defaultProps={className:"",stack:!1,style:{}};const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{voronoi:()=>n.default});var n=r(1976)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1977),o=r(1978),i=r(1979);function a(){var e=o.x,t=o.y,r=null;function a(n){return new i.default(n.map(function(r,o){var a=[Math.round(e(r,o,n)/i.epsilon)*i.epsilon,Math.round(t(r,o,n)/i.epsilon)*i.epsilon];return a.index=o,a.data=r,a}),r)}return a.polygons=function(e){return a(e).polygons()},a.links=function(e){return a(e).links()},a.triangles=function(e){return a(e).triangles()},a.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),a):t},a.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],a):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},a.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],a):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},a}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e[0]}function o(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{beaches:()=>n,cells:()=>o,circles:()=>i,default:()=>g,edges:()=>a,epsilon:()=>f,epsilon2:()=>p});var n,o,i,a,s=r(1980),l=r(1982),c=r(1984),u=r(1983),d=r(1981),f=1e-6,p=1e-12;function h(e,t,r){return(e[0]-r[0])*(t[1]-e[1])-(e[0]-t[0])*(r[1]-e[1])}function m(e,t){return t[1]-e[1]||t[0]-e[0]}function g(e,t){var r,f,p,h=e.sort(m).pop();for(a=[],o=new Array(e.length),n=new d.default,i=new d.default;;)if(p=c.firstCircle,h&&(!p||h[1]<p.y||h[1]===p.y&&h[0]<p.x))h[0]===r&&h[1]===f||((0,s.addBeach)(h),r=h[0],f=h[1]),h=e.pop();else{if(!p)break;(0,s.removeBeach)(p.arc)}if((0,l.sortCellHalfedges)(),t){var g=+t[0][0],y=+t[0][1],v=+t[1][0],b=+t[1][1];(0,u.clipEdges)(g,y,v,b),(0,l.clipCells)(g,y,v,b)}this.edges=a,this.cells=o,n=i=a=o=null}g.prototype={constructor:g,polygons:function(){var e=this.edges;return this.cells.map(function(t){var r=t.halfedges.map(function(r){return(0,l.cellHalfedgeStart)(t,e[r])});return r.data=t.site.data,r})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(r,n){if(i=(o=r.halfedges).length)for(var o,i,a,s=r.site,l=-1,c=t[o[i-1]],u=c.left===s?c.right:c.left;++l<i;)a=u,u=(c=t[o[l]]).left===s?c.right:c.left,a&&u&&n<a.index&&n<u.index&&h(s,a,u)<0&&e.push([s.data,a.data,u.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,r){for(var n,o,i=this,a=i._found||0,s=i.cells.length;!(o=i.cells[a]);)if(++a>=s)return null;var l=e-o.site[0],c=t-o.site[1],u=l*l+c*c;do{o=i.cells[n=a],a=null,o.halfedges.forEach(function(r){var n=i.edges[r],s=n.left;if(s!==o.site&&s||(s=n.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}})}while(null!==a);return i._found=n,null==r||u<=r*r?o.site:null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBeach:()=>p,removeBeach:()=>f});var n=r(1981),o=r(1982),i=r(1984),a=r(1983),s=r(1979),l=[];function c(){(0,n.RedBlackNode)(this),this.edge=this.site=this.circle=null}function u(e){var t=l.pop()||new c;return t.site=e,t}function d(e){(0,i.detachCircle)(e),s.beaches.remove(e),l.push(e),(0,n.RedBlackNode)(e)}function f(e){var t=e.circle,r=t.x,n=t.cy,o=[r,n],l=e.P,c=e.N,u=[e];d(e);for(var f=l;f.circle&&Math.abs(r-f.circle.x)<s.epsilon&&Math.abs(n-f.circle.cy)<s.epsilon;)l=f.P,u.unshift(f),d(f),f=l;u.unshift(f),(0,i.detachCircle)(f);for(var p=c;p.circle&&Math.abs(r-p.circle.x)<s.epsilon&&Math.abs(n-p.circle.cy)<s.epsilon;)c=p.N,u.push(p),d(p),p=c;u.push(p),(0,i.detachCircle)(p);var h,m=u.length;for(h=1;h<m;++h)p=u[h],f=u[h-1],(0,a.setEdgeEnd)(p.edge,f.site,p.site,o);f=u[0],(p=u[m-1]).edge=(0,a.createEdge)(f.site,p.site,null,o),(0,i.attachCircle)(f),(0,i.attachCircle)(p)}function p(e){for(var t,r,n,l,c=e[0],d=e[1],f=s.beaches._;f;)if((n=h(f,d)-c)>s.epsilon)f=f.L;else{if(!((l=c-m(f,d))>s.epsilon)){n>-s.epsilon?(t=f.P,r=f):l>-s.epsilon?(t=f,r=f.N):t=r=f;break}if(!f.R){t=f;break}f=f.R}(0,o.createCell)(e);var p=u(e);if(s.beaches.insert(t,p),t||r){if(t===r)return(0,i.detachCircle)(t),r=u(t.site),s.beaches.insert(p,r),p.edge=r.edge=(0,a.createEdge)(t.site,p.site),(0,i.attachCircle)(t),void(0,i.attachCircle)(r);if(r){(0,i.detachCircle)(t),(0,i.detachCircle)(r);var g=t.site,y=g[0],v=g[1],b=e[0]-y,_=e[1]-v,w=r.site,S=w[0]-y,E=w[1]-v,k=2*(b*E-_*S),x=b*b+_*_,T=S*S+E*E,O=[(E*x-_*T)/k+y,(b*T-S*x)/k+v];(0,a.setEdgeEnd)(r.edge,g,w,O),p.edge=(0,a.createEdge)(g,e,null,O),r.edge=(0,a.createEdge)(e,w,null,O),(0,i.attachCircle)(t),(0,i.attachCircle)(r)}else p.edge=(0,a.createEdge)(t.site,p.site)}}function h(e,t){var r=e.site,n=r[0],o=r[1],i=o-t;if(!i)return n;var a=e.P;if(!a)return-1/0;var s=(r=a.site)[0],l=r[1],c=l-t;if(!c)return s;var u=s-n,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+o-i/2)))/d+n:(n+s)/2}function m(e,t){var r=e.N;if(r)return h(r,t);var n=e.site;return n[1]===t?n[0]:1/0}},(e,t,r)=>{"use strict";function n(){this._=null}function o(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function i(e,t){var r=t,n=t.R,o=r.U;o?o.L===r?o.L=n:o.R=n:e._=n,n.U=o,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function a(e,t){var r=t,n=t.L,o=r.U;o?o.L===r?o.L=n:o.R=n:e._=n,n.U=o,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function s(e){for(;e.L;)e=e.L;return e}r.r(t),r.d(t,{RedBlackNode:()=>o,default:()=>l}),n.prototype={constructor:n,insert:function(e,t){var r,n,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(o=n.R)&&o.C?(r.C=o.C=!1,n.C=!0,e=n):(e===r.R&&(i(this,r),r=(e=r).U),r.C=!1,n.C=!0,a(this,n)):(o=n.L)&&o.C?(r.C=o.C=!1,n.C=!0,e=n):(e===r.L&&(a(this,r),r=(e=r).U),r.C=!1,n.C=!0,i(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,o=e.U,l=e.L,c=e.R;if(r=l?c?s(c):l:c,o?o.L===e?o.L=r:o.R=r:this._=r,l&&c?(n=r.C,r.C=e.C,r.L=l,l.U=r,r!==c?(o=r.U,r.U=e.U,e=r.R,o.L=e,r.R=c,c.U=r):(r.U=o,o=r,e=r.R)):(n=e.C,e=r),e&&(e.U=o),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===o.L){if((t=o.R).C&&(t.C=!1,o.C=!0,i(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,a(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,i(this,o),e=this._;break}}else if((t=o.L).C&&(t.C=!1,o.C=!0,a(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,i(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,a(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}};const l=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cellHalfedgeEnd:()=>l,cellHalfedgeStart:()=>s,clipCells:()=>u,createCell:()=>i,sortCellHalfedges:()=>c});var n=r(1983),o=r(1979);function i(e){return o.cells[e.index]={site:e,halfedges:[]}}function a(e,t){var r=e.site,n=t.left,o=t.right;return r===o&&(o=n,n=r),o?Math.atan2(o[1]-n[1],o[0]-n[0]):(r===n?(n=t[1],o=t[0]):(n=t[0],o=t[1]),Math.atan2(n[0]-o[0],o[1]-n[1]))}function s(e,t){return t[+(t.left!==e.site)]}function l(e,t){return t[+(t.left===e.site)]}function c(){for(var e,t,r,n,i=0,s=o.cells.length;i<s;++i)if((e=o.cells[i])&&(n=(t=e.halfedges).length)){var l=new Array(n),c=new Array(n);for(r=0;r<n;++r)l[r]=r,c[r]=a(e,o.edges[t[r]]);for(l.sort(function(e,t){return c[t]-c[e]}),r=0;r<n;++r)c[r]=t[l[r]];for(r=0;r<n;++r)t[r]=c[r]}}function u(e,t,r,i){var a,c,u,d,f,p,h,m,g,y,v,b,_=o.cells.length,w=!0;for(a=0;a<_;++a)if(c=o.cells[a]){for(u=c.site,d=(f=c.halfedges).length;d--;)o.edges[f[d]]||f.splice(d,1);for(d=0,p=f.length;d<p;)v=(y=l(c,o.edges[f[d]]))[0],b=y[1],m=(h=s(c,o.edges[f[++d%p]]))[0],g=h[1],(Math.abs(v-m)>o.epsilon||Math.abs(b-g)>o.epsilon)&&(f.splice(d,0,o.edges.push((0,n.createBorderEdge)(u,y,Math.abs(v-e)<o.epsilon&&i-b>o.epsilon?[e,Math.abs(m-e)<o.epsilon?g:i]:Math.abs(b-i)<o.epsilon&&r-v>o.epsilon?[Math.abs(g-i)<o.epsilon?m:r,i]:Math.abs(v-r)<o.epsilon&&b-t>o.epsilon?[r,Math.abs(m-r)<o.epsilon?g:t]:Math.abs(b-t)<o.epsilon&&v-e>o.epsilon?[Math.abs(g-t)<o.epsilon?m:e,t]:null))-1),++p);p&&(w=!1)}if(w){var S,E,k,x=1/0;for(a=0,w=null;a<_;++a)(c=o.cells[a])&&(k=(S=(u=c.site)[0]-e)*S+(E=u[1]-t)*E)<x&&(x=k,w=c);if(w){var T=[e,t],O=[e,i],C=[r,i],j=[r,t];w.halfedges.push(o.edges.push((0,n.createBorderEdge)(u=w.site,T,O))-1,o.edges.push((0,n.createBorderEdge)(u,O,C))-1,o.edges.push((0,n.createBorderEdge)(u,C,j))-1,o.edges.push((0,n.createBorderEdge)(u,j,T))-1)}}for(a=0;a<_;++a)(c=o.cells[a])&&(c.halfedges.length||delete o.cells[a])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clipEdges:()=>c,createBorderEdge:()=>i,createEdge:()=>o,setEdgeEnd:()=>a});var n=r(1979);function o(e,t,r,o){var i=[null,null],s=n.edges.push(i)-1;return i.left=e,i.right=t,r&&a(i,e,t,r),o&&a(i,t,e,o),n.cells[e.index].halfedges.push(s),n.cells[t.index].halfedges.push(s),i}function i(e,t,r){var n=[t,r];return n.left=e,n}function a(e,t,r,n){e[0]||e[1]?e.left===r?e[1]=n:e[0]=n:(e[0]=n,e.left=t,e.right=r)}function s(e,t,r,n,o){var i,a=e[0],s=e[1],l=a[0],c=a[1],u=0,d=1,f=s[0]-l,p=s[1]-c;if(i=t-l,f||!(i>0)){if(i/=f,f<0){if(i<u)return;i<d&&(d=i)}else if(f>0){if(i>d)return;i>u&&(u=i)}if(i=n-l,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>u&&(u=i)}else if(f>0){if(i<u)return;i<d&&(d=i)}if(i=r-c,p||!(i>0)){if(i/=p,p<0){if(i<u)return;i<d&&(d=i)}else if(p>0){if(i>d)return;i>u&&(u=i)}if(i=o-c,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>u&&(u=i)}else if(p>0){if(i<u)return;i<d&&(d=i)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*f,c+u*p]),d<1&&(e[1]=[l+d*f,c+d*p]),!0)}}}}}function l(e,t,r,n,o){var i=e[1];if(i)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],p=u[0],h=u[1],m=(d+p)/2,g=(f+h)/2;if(h===f){if(m<t||m>=n)return;if(d>p){if(l){if(l[1]>=o)return}else l=[m,r];i=[m,o]}else{if(l){if(l[1]<r)return}else l=[m,o];i=[m,r]}}else if(s=g-(a=(d-p)/(h-f))*m,a<-1||a>1)if(d>p){if(l){if(l[1]>=o)return}else l=[(r-s)/a,r];i=[(o-s)/a,o]}else{if(l){if(l[1]<r)return}else l=[(o-s)/a,o];i=[(r-s)/a,r]}else if(f<h){if(l){if(l[0]>=n)return}else l=[t,a*t+s];i=[n,a*n+s]}else{if(l){if(l[0]<t)return}else l=[n,a*n+s];i=[t,a*t+s]}return e[0]=l,e[1]=i,!0}function c(e,t,r,o){for(var i,a=n.edges.length;a--;)l(i=n.edges[a],e,t,r,o)&&s(i,e,t,r,o)&&(Math.abs(i[0][0]-i[1][0])>n.epsilon||Math.abs(i[0][1]-i[1][1])>n.epsilon)||delete n.edges[a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{attachCircle:()=>l,detachCircle:()=>c,firstCircle:()=>n});var n,o=r(1981),i=r(1979),a=[];function s(){(0,o.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function l(e){var t=e.P,r=e.N;if(t&&r){var o=t.site,l=e.site,c=r.site;if(o!==c){var u=l[0],d=l[1],f=o[0]-u,p=o[1]-d,h=c[0]-u,m=c[1]-d,g=2*(f*m-p*h);if(!(g>=-i.epsilon2)){var y=f*f+p*p,v=h*h+m*m,b=(m*y-p*v)/g,_=(f*v-h*y)/g,w=a.pop()||new s;w.arc=e,w.site=l,w.x=b+u,w.y=(w.cy=_+d)+Math.sqrt(b*b+_*_),e.circle=w;for(var S=null,E=i.circles._;E;)if(w.y<E.y||w.y===E.y&&w.x<=E.x){if(!E.L){S=E.P;break}E=E.L}else{if(!E.R){S=E;break}E=E.R}i.circles.insert(S,w),S||(n=w)}}}}function c(e){var t=e.circle;t&&(t.P||(n=t.N),i.circles.remove(t),a.push(t),(0,o.RedBlackNode)(t),e.circle=null)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationPropType:()=>k,default:()=>E,extractAnimatedPropValues:()=>w});var n=r(296),o=r(668),i=r.n(o),a=r(1986),s=r(2e3);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return p(e)}(this,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=i().oneOfType([i().string,i().shape({stiffness:i().number,nonAnimatedProps:i().arrayOf(i().string),damping:i().number}),i().bool]),_={animatedProps:i().arrayOf(i().string).isRequired,animation:b,onStart:i().func,onEnd:i().func};function w(e){var t=e.animatedProps,r=m(e,["animatedProps"]);return t.reduce(function(e,t){return Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]),e},{})}var S=function(e){!function(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}}),t&&d(e,t)}(l,e);var t,r,o,i=f(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),v(p(t=i.call(this,e)),"_motionEndHandler",function(){t.props.onEnd&&t.props.onEnd()}),v(p(t),"_renderChildren",function(e){var r=e.i,o=t.props.children,i=t._interpolator,a=n.default.Children.only(o),s=i?i(r):i,l=s&&s.data||null;return l&&a.props._data&&(l=l.map(function(e,t){var r=a.props._data[t];return y(y({},e),{},{parent:r.parent,children:r.children})})),n.default.cloneElement(a,y(y(y({},a.props),s),{},{data:l||a.props.data||null,_animation:Math.random()}))}),t._updateInterpolator(e),t}return t=l,r=[{key:"UNSAFE_componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=(0,a.default)(w(e),t?w(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.presets.noWobble;if("string"==typeof e)return s.presets[e]||s.presets.noWobble;var t=e.damping,r=e.stiffness;return y(y({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:r||s.presets.noWobble.stiffness})}(this.props.animation),t={i:(0,s.spring)(1,e)},r=Math.random();return n.default.createElement(s.Motion,c({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&u(t.prototype,r),o&&u(t,o),l}(n.PureComponent);S.propTypes=_,S.displayName="Animation";const E=S;var k=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(1987),o=r(1989),i=r(1994),a=r(1996),s=r(1997),l=r(1998),c=r(1999),u=r(1993),d=r(1995);function f(e,t){var r,f=typeof t;return null==t||"boolean"===f?(0,u.default)(t):("number"===f?s.default:"string"===f?(r=(0,n.default)(t))?(t=r,o.default):c.default:t instanceof n.default?o.default:t instanceof Date?a.default:(0,d.isNumberArray)(t)?d.default:Array.isArray(t)?i.genericArray:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?l.default:s.default)(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Color:()=>o,Rgb:()=>x,brighter:()=>a,darker:()=>i,default:()=>_,hsl:()=>A,hslConvert:()=>R,rgb:()=>k,rgbConvert:()=>E});var n=r(1988);function o(){}var i=.7,a=1/i,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,d=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),p=new RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),h=new RegExp(`^rgba\\(${c},${c},${c},${l}\\)$`),m=new RegExp(`^hsl\\(${l},${c},${c}\\)$`),g=new RegExp(`^hsla\\(${l},${c},${c},${l}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new x(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?S(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?S(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new x(t[1],t[2],t[3],1):(t=f.exec(e))?new x(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?S(t[1],t[2],t[3],t[4]):(t=h.exec(e))?S(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?I(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?I(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new x(NaN,NaN,NaN,0):null}function w(e){return new x(e>>16&255,e>>8&255,255&e,1)}function S(e,t,r,n){return n<=0&&(e=t=r=NaN),new x(e,t,r,n)}function E(e){return e instanceof o||(e=_(e)),e?new x((e=e.rgb()).r,e.g,e.b,e.opacity):new x}function k(e,t,r,n){return 1===arguments.length?E(e):new x(e,t,r,null==n?1:n)}function x(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function T(){return`#${P(this.r)}${P(this.g)}${P(this.b)}`}function O(){const e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function j(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function P(e){return((e=j(e))<16?"0":"")+e.toString(16)}function I(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,r,n)}function R(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=_(e)),!e)return new M;if(e instanceof M)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,c=(a+i)/2;return l?(s=t===a?(r-n)/l+6*(r<n):r===a?(n-t)/l+2:(t-r)/l+4,l/=c<.5?a+i:2-a-i,s*=60):l=c>0&&c<1?0:s,new M(s,l,c,e.opacity)}function A(e,t,r,n){return 1===arguments.length?R(e):new M(e,t,r,null==n?1:n)}function M(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function D(e){return(e=(e||0)%360)<0?e+360:e}function N(e){return Math.max(0,Math.min(1,e||0))}function L(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.default)(o,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:b,toString:b}),(0,n.default)(x,k,(0,n.extend)(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?i:Math.pow(i,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new x(j(this.r),j(this.g),j(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:function(){return`#${P(this.r)}${P(this.g)}${P(this.b)}${P(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:O,toString:O})),(0,n.default)(M,A,(0,n.extend)(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?i:Math.pow(i,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new x(L(e>=240?e-240:e+120,o,n),L(e,o,n),L(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new M(D(this.h),N(this.s),N(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*N(this.s)}%, ${100*N(this.l)}%${1===e?")":`, ${e})`}`}}))},(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.r(t),r.d(t,{default:()=>n,extend:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,rgbBasis:()=>c,rgbBasisClosed:()=>u});var n=r(1987),o=r(1990),i=r(1991),a=r(1992);const s=function e(t){var r=(0,a.gamma)(t);function o(e,t){var o=r((e=(0,n.rgb)(e)).r,(t=(0,n.rgb)(t)).r),i=r(e.g,t.g),s=r(e.b,t.b),l=(0,a.default)(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=i(t),e.b=s(t),e.opacity=l(t),e+""}}return o.gamma=e,o}(1);function l(e){return function(t){var r,o,i=t.length,a=new Array(i),s=new Array(i),l=new Array(i);for(r=0;r<i;++r)o=(0,n.rgb)(t[r]),a[r]=o.r||0,s[r]=o.g||0,l[r]=o.b||0;return a=e(a),s=e(s),l=e(l),o.opacity=1,function(e){return o.r=a(e),o.g=s(e),o.b=l(e),o+""}}}var c=l(o.default),u=l(i.default)},(e,t,r)=>{"use strict";function n(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}function o(e){var t=e.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[o],a=e[o+1],s=o>0?e[o-1]:2*i-a,l=o<t-1?e[o+2]:2*a-i;return n((r-o/t)*t,s,i,a,l)}}r.r(t),r.d(t,{basis:()=>n,default:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1990);function o(e){var t=e.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*t),i=e[(o+t-1)%t],a=e[o%t],s=e[(o+1)%t],l=e[(o+2)%t];return(0,n.basis)((r-o/t)*t,i,a,s,l)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,gamma:()=>a,hue:()=>i});var n=r(1993);function o(e,t){return function(r){return e+r*t}}function i(e,t){var r=t-e;return r?o(e,r>180||r<-180?r-360*Math.round(r/360):r):(0,n.default)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):(0,n.default)(isNaN(t)?r:t)}}function s(e,t){var r=t-e;return r?o(e,r):(0,n.default)(isNaN(e)?t:e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,genericArray:()=>a});var n=r(1986),o=r(1995);function i(e,t){return((0,o.isNumberArray)(t)?o.default:a)(e,t)}function a(e,t){var r,o=t?t.length:0,i=e?Math.min(o,e.length):0,a=new Array(i),s=new Array(o);for(r=0;r<i;++r)a[r]=(0,n.default)(e[r],t[r]);for(;r<o;++r)s[r]=t[r];return function(e){for(r=0;r<i;++r)s[r]=a[r](e);return s}}},(e,t,r)=>{"use strict";function n(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function o(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.r(t),r.d(t,{default:()=>n,isNumberArray:()=>o})},(e,t,r)=>{"use strict";function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1986);function o(e,t){var r,o={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?o[r]=(0,n.default)(e[r],t[r]):i[r]=t[r];return function(e){for(r in o)i[r]=o[r](e);return i}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1997),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=new RegExp(o.source,"g");function a(e,t){var r,a,s,l=o.lastIndex=i.lastIndex=0,c=-1,u=[],d=[];for(e+="",t+="";(r=o.exec(e))&&(a=i.exec(t));)(s=a.index)>l&&(s=t.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(r=r[0])===(a=a[0])?u[c]?u[c]+=a:u[++c]=a:(u[++c]=null,d.push({i:c,x:(0,n.default)(r,a)})),l=i.lastIndex;return l<t.length&&(s=t.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?d[0]?function(e){return function(t){return e(t)+""}}(d[0].x):function(e){return function(){return e}}(t):(t=d.length,function(e){for(var r,n=0;n<t;++n)u[(r=d[n]).i]=r.x(e);return u.join("")})}},(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=r(2001);t.Motion=n(o);var i=r(2009);t.StaggeredMotion=n(i);var a=r(2010);t.TransitionMotion=n(a);var s=r(2012);t.spring=n(s);var l=r(2013);t.presets=n(l);var c=r(2003);t.stripStyle=n(c);var u=r(2014);t.reorderKeys=n(u)},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(2002)),s=i(r(2003)),l=i(r(2004)),c=i(r(2005)),u=i(r(2006)),d=i(r(2008)),f=i(r(296)),p=i(r(668)),h=1e3/60,m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=o.state,i=r.currentStyle,a=r.currentVelocity,s=r.lastIdealStyle,l=r.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var u=e[c];"number"==typeof u&&(t||(t=!0,i=n({},i),a=n({},a),s=n({},s),l=n({},l)),i[c]=u,a[c]=0,s[c]=u,l[c]=0)}t&&o.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:l})},this.startAnimationIfNecessary=function(){o.animationID=u.default(function(e){var t=o.props.style;if(d.default(o.state.currentStyle,t,o.state.currentVelocity))return o.wasAnimating&&o.props.onRest&&o.props.onRest(),o.animationID=null,o.wasAnimating=!1,void(o.accumulatedTime=0);o.wasAnimating=!0;var r=e||c.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),s={},u={},f={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)f[m]=g,p[m]=0,s[m]=g,u[m]=0;else{for(var y=o.state.lastIdealStyle[m],v=o.state.lastIdealVelocity[m],b=0;b<a;b++){var _=l.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var w=l.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision),S=w[0],E=w[1];f[m]=y+(S-y)*i,p[m]=v+(E-v)*i,s[m]=y,u[m]=v}}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyle:f,currentVelocity:p,lastIdealStyle:s,lastIdealVelocity:u}),o.unreadPropStyle=null,o.startAnimationIfNecessary()})},this.state=this.defaultState()}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:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||s.default(r),o=a.default(n);return{currentStyle:n,currentVelocity:o,lastIdealStyle:n,lastIdealVelocity:o}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&f.default.Children.only(e)},t}(f.default.Component);t.default=m,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,s){var l=n+(-i*(t-o)+-a*n)*e,c=t+l*e;if(Math.abs(l)<s&&Math.abs(c-o)<s)return r[0]=o,r[1]=0,r;return r[0]=c,r[1]=l,r};var r=[0,0];e.exports=t.default},function(e){(function(){var t,r,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t,r)=>{for(var n=r(2007),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],l=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,f=[],p=1e3/60;s=function(e){if(0===f.length){var t=n(),r=Math.max(0,p-(t-u));u=r+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return f.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},function(e){(function(){var t,r,n,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(2002)),s=i(r(2003)),l=i(r(2004)),c=i(r(2005)),u=i(r(2006)),d=i(r(2008)),f=i(r(296)),p=i(r(668)),h=1e3/60;var m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=o.state,r=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,l=!1,c=0;c<e.length;c++){var u=e[c],d=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(d||(d=!0,l=!0,r[c]=n({},r[c]),i[c]=n({},i[c]),a[c]=n({},a[c]),s[c]=n({},s[c])),r[c][f]=p,i[c][f]=0,a[c][f]=p,s[c][f]=0)}}l&&o.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){o.animationID=u.default(function(e){var t=o.props.styles(o.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!d.default(e[n],t[n],r[n]))return!1;return!0}(o.state.currentStyles,t,o.state.currentVelocities))return o.animationID=null,void(o.accumulatedTime=0);var r=e||c.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),s=[],u=[],f=[],p=[],m=0;m<t.length;m++){var g=t[m],y={},v={},b={},_={};for(var w in g)if(Object.prototype.hasOwnProperty.call(g,w)){var S=g[w];if("number"==typeof S)y[w]=S,v[w]=0,b[w]=S,_[w]=0;else{for(var E=o.state.lastIdealStyles[m][w],k=o.state.lastIdealVelocities[m][w],x=0;x<a;x++){var T=l.default(h/1e3,E,k,S.val,S.stiffness,S.damping,S.precision);E=T[0],k=T[1]}var O=l.default(h/1e3,E,k,S.val,S.stiffness,S.damping,S.precision),C=O[0],j=O[1];y[w]=E+(C-E)*i,v[w]=k+(j-k)*i,b[w]=E,_[w]=k}}f[m]=y,p[m]=v,s[m]=b,u[m]=_}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyles:f,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:u}),o.unreadPropStyles=null,o.startAnimationIfNecessary()})},this.state=this.defaultState()}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:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(s.default),o=n.map(function(e){return a.default(e)});return{currentStyles:n,currentVelocities:o,lastIdealStyles:n,lastIdealVelocities:o}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&f.default.Children.only(e)},t}(f.default.Component);t.default=m,e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(2002)),s=i(r(2003)),l=i(r(2004)),c=i(r(2011)),u=i(r(2005)),d=i(r(2006)),f=i(r(2008)),p=i(r(296)),h=i(r(668)),m=1e3/60;function g(e,t,r){var n=t;return null==n?e.map(function(e,t){return{key:e.key,data:e.data,style:r[t]}}):e.map(function(e,t){for(var o=0;o<n.length;o++)if(n[o].key===e.key)return{key:n[o].key,data:n[o].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}})}function y(e,t,r,n,o,i,s,l,u){for(var d=c.default(n,o,function(e,n){var o=t(n);return null==o||f.default(i[e],o,s[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:o}}),p=[],h=[],m=[],g=[],y=0;y<d.length;y++){for(var v=d[y],b=null,_=0;_<n.length;_++)if(n[_].key===v.key){b=_;break}if(null==b){var w=e(v);p[y]=w,m[y]=w;var S=a.default(v.style);h[y]=S,g[y]=S}else p[y]=i[b],m[y]=l[b],h[y]=s[b],g[y]=u[b]}return[d,p,h,m,g]}var v=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,e,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],c=0;c<e.length;c++){var u=e[c].style,d=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(d||(d=!0,i[c]=n({},i[c]),a[c]=n({},a[c]),s[c]=n({},s[c]),l[c]=n({},l[c]),r[c]={key:r[c].key,data:r[c].data,style:n({},r[c].style)}),i[c][f]=p,a[c][f]=0,s[c][f]=p,l[c][f]=0,r[c].style[f]=p)}}o.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){o.unmounting||(o.animationID=d.default(function(e){if(!o.unmounting){var t=o.props.styles,r="function"==typeof t?t(g(o.state.mergedPropsStyles,o.unreadPropStyles,o.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(n[o].key!==t[o].key)return!1;for(o=0;o<n.length;o++)if(!f.default(e[o],t[o].style,r[o]))return!1;return!0}(o.state.currentStyles,r,o.state.currentVelocities,o.state.mergedPropsStyles))return o.animationID=null,void(o.accumulatedTime=0);var n=e||u.default(),i=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+i,o.accumulatedTime>10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,s=Math.floor(o.accumulatedTime/m),c=y(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,r,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),d=c[0],p=c[1],h=c[2],v=c[3],b=c[4],_=0;_<d.length;_++){var w=d[_].style,S={},E={},k={},x={};for(var T in w)if(Object.prototype.hasOwnProperty.call(w,T)){var O=w[T];if("number"==typeof O)S[T]=O,E[T]=0,k[T]=O,x[T]=0;else{for(var C=v[_][T],j=b[_][T],P=0;P<s;P++){var I=l.default(m/1e3,C,j,O.val,O.stiffness,O.damping,O.precision);C=I[0],j=I[1]}var R=l.default(m/1e3,C,j,O.val,O.stiffness,O.damping,O.precision),A=R[0],M=R[1];S[T]=C+(A-C)*a,E[T]=j+(M-j)*a,k[T]=C,x[T]=j}}v[_]=k,b[_]=x,p[_]=S,h[_]=E}o.animationID=null,o.accumulatedTime-=s*m,o.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:d}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}}))},this.state=this.defaultState()}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:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,o=e.willLeave,i=e.didLeave,l="function"==typeof r?r(t):r,c=void 0;c=null==t?l:t.map(function(e){for(var t=0;t<l.length;t++)if(l[t].key===e.key)return l[t];return e});var u=null==t?l.map(function(e){return s.default(e.style)}):t.map(function(e){return s.default(e.style)}),d=null==t?l.map(function(e){return a.default(e.style)}):t.map(function(e){return a.default(e.style)}),f=y(n,o,i,c,l,u,d,u,d),p=f[0];return{currentStyles:f[1],currentVelocities:f[2],lastIdealStyles:f[3],lastIdealVelocities:f[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=v,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;o<e.length;o++)n[e[o].key]=o;var i={};for(o=0;o<t.length;o++)i[t[o].key]=o;var a=[];for(o=0;o<t.length;o++)a[o]=t[o];for(o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var s=r(o,e[o]);null!=s&&a.push(s)}return a.sort(function(e,r){var o=i[e.key],a=i[r.key],s=n[e.key],l=n[r.key];if(null!=o&&null!=a)return i[e.key]-i[r.key];if(null!=s&&null!=l)return n[e.key]-n[r.key];if(null!=o){for(var c=0;c<t.length;c++){var u=t[c].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(o<i[u]&&l>n[u])return-1;if(o>i[u]&&l<n[u])return 1}}return 1}for(c=0;c<t.length;c++){u=t[c].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(a<i[u]&&s>n[u])return 1;if(a>i[u]&&s<n[u])return-1}}return-1})},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},s,t,{val:e})};var o,i=r(2013),a=(o=i)&&o.__esModule?o:{default:o},s=n({},a.default.noWobble,{precision:.01});e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_adjustCategoricalScale:()=>B,_getScaleDistanceAndAdjustedDomain:()=>L,_getSmallestDistanceIndex:()=>A,default:()=>ee,extractScalePropsFromProps:()=>$,getAttr0Functor:()=>V,getAttributeFunctor:()=>q,getAttributeScale:()=>z,getAttributeValue:()=>W,getDomainByAccessor:()=>D,getFontColorFromBackground:()=>J,getMissingScaleProps:()=>K,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>M,getScaleObjectFromProps:()=>F,getScalePropTypesByAttribute:()=>G,getXYPlotValues:()=>X,literalScale:()=>Y});var n,o=r(2016),i=r(2021),a=r(2048),s=r(2019),l=r(2050),c=r(2064),u=r(2065),d=r(2066),f=r(1987),p=r(668),h=r.n(p),m=r(2073),g=r(2074);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){E(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(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 _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||w(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 w(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k="linear",x="ordinal",T="category",O="literal",C="log",j="time",P=(E(n={},k,i.default),E(n,x,o.point),E(n,T,s.default),E(n,O,Y),E(n,C,a.default),E(n,j,l.default),E(n,"time-utc",c.default),n),I=["color","fill","opacity","stroke"];function R(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function A(e,t){var r=M(t),n=0;if(r)for(var o,i,a=r(e[0]),s=1/0,l=1;l<e.length;l++)o=r(e[l]),(i=Math.abs(o-a))<s&&(s=i,n=l),a=o;return n}function M(e){if(!e)return null;var t=e.type,r=e.domain,n=e.range,o=r[0]===r[1]?0===r[0]?[-1,0]:[-r[0],r[0]]:r;if(t===O)return Y(n[0]);var i=P[t]().domain(o).range(n);return t===x&&(i.padding(.5),function(e){e.invert||(e.invert=function(t){var r=_(e.range(),2),n=r[0],o=r[1],i=Math.min(n,o),a=Math.max(n,o);if(t<i+e.padding()*e.step())return e.domain()[0];if(t>a-e.padding()*e.step())return e.domain()[e.domain().length-1];var s=Math.floor((t-i-e.padding()*e.step())/e.step());return e.domain()[s]})}(i)),i}function D(e,t,r,n){var o=e.reduce(function(e,n){var o=t(n),i=r(n);return H(o)&&e.push(o),H(i)&&e.push(i),e},[]);return o.length?n!==x&&n!==T?(0,u.default)(o):(0,d.set)(o).values():[]}function N(e,t,r,n,o){return r===O?{type:O,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:o}:void 0===t?null:{type:T,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:o}}function L(e,t){var r=t.domain,n=t.type,o=t.accessor,i=t.accessor0,a=function(e,t,r,n){return n===j&&1===t.length?[r(e[0])].concat(b(t)):t}(e,(0,g.getUniquePropertyValues)(e,o),i,n),s=A(a,t),l=[].concat(r);l[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),l[r.length-1]+=function(e){return e.length>1?(e[e.length-1]-e[e.length-2])/2:1===e.length?e[0]-.5:0}(a),n===C&&r[0]<=0&&(l[0]=Math.min(r[1]/10,1));var c=function(e,t,r,n){if(e.length>1){var o=Math.max(r,1);return Math.abs(n(e[o])-n(e[o-1]))}return 1===e.length?Math.abs(n(t[1])-n(t[0])):0}(a,l,s,M(v(v({},t),{},{domain:l})));return{domain0:l[0],domainN:l[l.length-1],distance:c}}function B(e){var t=M(e),r=e.domain,n=e.range;return r.length>1?e.distance=Math.abs(t(r[1])-t(r[0])):e.distance=Math.abs(n[1]-n[0]),e}function F(e,t){var r=function(e,t){var r,n=e[t],o=e["_".concat(t,"Value")],i=e["".concat(t,"Range")],a=e["".concat(t,"Distance")],s=void 0===a?0:a,l=e["".concat(t,"BaseValue")],c=e["".concat(t,"Type")],u=void 0===c?k:c,d=e["".concat(t,"NoFallBack")],f=e["get".concat(R(t))],p=void 0===f?function(e){return e[t]}:f,h=e["get".concat(R(t),"0")],m=void 0===h?function(e){return e["".concat(t,"0")]}:h,y=e["".concat(t,"Domain")];return d||void 0===n?(void 0!==l&&(y=(0,g.addValueToArray)(y,l)),i&&y&&y.length?{domain:(r={domain:y,range:i,type:u,distance:s,attr:t,baseValue:l,accessor:p,accessor0:m}).domain,range:r.range,type:r.type,distance:r.distance,attr:r.attr,baseValue:r.baseValue,isValue:!1,accessor:r.accessor,accessor0:r.accessor0}:N(t,o,e["".concat(t,"Type")],p,m)):N(t,n,e["".concat(t,"Type")],p,m)}(e,t);if(!r)return null;if(!function(e,t){var r=t.attr,n=e._adjustBy,o=void 0===n?[]:n,i=e._adjustWhat;return(void 0===i?[]:i).length&&o.length&&-1!==o.indexOf(r)}(e,r))return r;var n=r.type;return n===x||n===T?B(r):function(e,t){var r=e._allData,n=e._adjustWhat,o=void 0===n?[]:n,i=t.domain.length,a=t.domain,s=a[0],l=a[i-1],c=t.distance;return r.forEach(function(e,r){if(-1!==o.indexOf(r)&&e&&e.length){var n=L(e,t),i=n.domain0,a=n.domainN,u=n.distance;s=Math.min(s,i),l=Math.max(l,a),c=Math.max(c,u)}}),t.domain=[s].concat(b(a.slice(1,-1)),[l]),t.distance=c,t}(e,r)}function z(e,t){return M(F(e,t))}function U(e,t){return t(e.data?e.data:e)}function H(e){return void 0!==e}function q(e,t){var r=F(e,t);if(r){var n=M(r);return function(e){return n(U(e,r.accessor))}}return null}function V(e,t){var r=F(e,t);if(r){var n=r.domain,o=r.baseValue,i=void 0===o?n[0]:o,a=M(r);return function(e){var t=U(e,r.accessor0);return a(H(t)?t:i)}}return null}function W(e,t){var r=F(e,t);return r?(r.isValue||void 0!==e["_".concat(t,"Value")]||(0,m.warning)("[React-vis] Cannot use data defined ".concat(t," for this ")+"series type. Using fallback value instead."),e["_".concat(t,"Value")]||r.range[0]):null}function G(e){var t;return E(t={},"_".concat(e,"Value"),h().any),E(t,"".concat(e,"Domain"),h().array),E(t,"get".concat(R(e)),h().func),E(t,"get".concat(R(e),"0"),h().func),E(t,"".concat(e,"Range"),h().array),E(t,"".concat(e,"Type"),h().oneOf(Object.keys(P))),E(t,"".concat(e,"Distance"),h().number),E(t,"".concat(e,"BaseValue"),h().any),t}function $(e,t){var r={};return Object.keys(e).forEach(function(n){t.find(function(e){var t=0===n.indexOf(e),r=0===n.indexOf("_".concat(e)),o=0===n.indexOf("get".concat(R(e)));return t||r||o})&&(r[n]=e[n])}),r}function K(e,t,r){var n={};return r.forEach(function(r){e["get".concat(R(r))]||(n["get".concat(R(r))]=function(e){return e[r]}),e["get".concat(R(r),"0")]||(n["get".concat(R(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=D(t,e["get".concat(R(r))]||n["get".concat(R(r))],e["get".concat(R(r),"0")]||n["get".concat(R(r),"0")],e["".concat(r,"Type")]),e["".concat(r,"Padding")]&&(n["".concat(r,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var r=_(e,2),n=r[0],o=r[1],i=.01*t*(o-n);return[n-i,o+i]}(n["".concat(r,"Domain")],e["".concat(r,"Padding")])))}),n}function Y(e){function t(t){return void 0===t?e:t}function r(){return t}return t.domain=r,t.range=r,t.unknown=r,t.copy=r,t}function J(e){return e?(0,f.hsl)(e).l>.57?"#222":"#fff":null}function X(e,t){var r=I.reduce(function(t,r){var n=e["".concat(r,"Domain")],o=e["".concat(r,"Range")],i=e["".concat(r,"Type")];return n&&o&&i?v(v({},t),{},E({},r,P[i]().domain(n).range(o))):t},{});return t.map(function(e){return I.reduce(function(t,n){if(e.props&&void 0!==e.props[n]){var o=e.props[n],i=r[n],a=i?i(o):o;return v(v({},t),{},E({},"_".concat(n,"Value"),a))}return t},{})})}var Q=["Padding"].map(function(e){return new RegExp("".concat(e,"$"),"i")});function Z(e){return Object.keys(e).reduce(function(t,r){return Q.every(function(e){return!r.match(e)})||(t[r]=e[r]),t},{})}const ee={extractScalePropsFromProps:$,getAttributeScale:z,getAttributeFunctor:q,getAttr0Functor:V,getAttributeValue:W,getDomainByAccessor:D,getFontColorFromBackground:J,getMissingScaleProps:K,getOptionalScaleProps:Z,getScaleObjectFromProps:F,getScalePropTypesByAttribute:G,getXYPlotValues:X,literalScale:Y}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,point:()=>l});var n=r(2017),o=r(2018),i=r(2019);function a(){var e,t,r=(0,i.default)().unknown(void 0),s=r.domain,l=r.range,c=0,u=1,d=!1,f=0,p=0,h=.5;function m(){var r=s().length,o=u<c,i=o?u:c,a=o?c:u;e=(a-i)/Math.max(1,r-f+2*p),d&&(e=Math.floor(e)),i+=(a-i-e*(r-f))*h,t=e*(1-f),d&&(i=Math.round(i),t=Math.round(t));var m=(0,n.default)(r).map(function(t){return i+e*t});return l(o?m.reverse():m)}return delete r.unknown,r.domain=function(e){return arguments.length?(s(e),m()):s()},r.range=function(e){return arguments.length?([c,u]=e,c=+c,u=+u,m()):[c,u]},r.rangeRound=function(e){return[c,u]=e,c=+c,u=+u,d=!0,m()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(d=!!e,m()):d},r.padding=function(e){return arguments.length?(f=Math.min(1,p=+e),m()):f},r.paddingInner=function(e){return arguments.length?(f=Math.min(1,e),m()):f},r.paddingOuter=function(e){return arguments.length?(p=+e,m()):p},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),m()):h},r.copy=function(){return a(s(),[c,u]).round(d).paddingInner(f).paddingOuter(p).align(h)},o.initRange.apply(m(),arguments)}function s(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return s(t())},e}function l(){return s(a.apply(null,arguments).paddingInner(1))}},(e,t,r)=>{"use strict";function n(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(o);++n<o;)i[n]=e+n*r;return i}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}r.r(t),r.d(t,{initInterpolator:()=>o,initRange:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,implicit:()=>i});var n=r(2020),o=r(2018);const i=Symbol("implicit");function a(){var e=new n.InternMap,t=[],r=[],s=i;function l(n){let o=e.get(n);if(void 0===o){if(s!==i)return s;e.set(n,o=t.push(n)-1)}return r[o%r.length]}return l.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new n.InternMap;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return l},l.range=function(e){return arguments.length?(r=Array.from(e),l):r.slice()},l.unknown=function(e){return arguments.length?(s=e,l):s},l.copy=function(){return a(t,r).unknown(s)},o.initRange.apply(l,arguments),l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternMap:()=>n,InternSet:()=>o});class n extends Map{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class o extends Set{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function i({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function a({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function s({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,linearish:()=>s});var n=r(2022),o=r(2023),i=r(2018),a=r(2032);function s(e){var t=e.domain;return e.ticks=function(e){var r=t();return(0,n.default)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return(0,a.default)(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var o,i,a=t(),s=0,l=a.length-1,c=a[s],u=a[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=(0,n.tickIncrement)(c,u,r))===o)return a[s]=c,a[l]=u,t(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}o=i}return e},e}function l(){var e=(0,o.default)();return e.copy=function(){return(0,o.copy)(e,l())},i.initRange.apply(e,arguments),s(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,tickIncrement:()=>l,tickStep:()=>c});const n=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,r){const s=(t-e)/Math.max(0,r),l=Math.floor(Math.log10(s)),c=s/Math.pow(10,l),u=c>=n?10:c>=o?5:c>=i?2:1;let d,f,p;return l<0?(p=Math.pow(10,-l)/u,d=Math.round(e*p),f=Math.round(t*p),d/p<e&&++d,f/p>t&&--f,p=-p):(p=Math.pow(10,l)*u,d=Math.round(e/p),f=Math.round(t/p),d*p<e&&++d,f*p>t&&--f),f<d&&.5<=r&&r<2?a(e,t,2*r):[d,f,p]}function s(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[o,i,s]=n?a(t,e,r):a(e,t,r);if(!(i>=o))return[];const l=i-o+1,c=new Array(l);if(n)if(s<0)for(let e=0;e<l;++e)c[e]=(i-e)/-s;else for(let e=0;e<l;++e)c[e]=(i-e)*s;else if(s<0)for(let e=0;e<l;++e)c[e]=(o+e)/-s;else for(let e=0;e<l;++e)c[e]=(o+e)*s;return c}function l(e,t,r){return a(e=+e,t=+t,r=+r)[2]}function c(e,t,r){r=+r;const n=(t=+t)<(e=+e),o=n?l(t,e,r):l(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{copy:()=>h,default:()=>g,identity:()=>u,transformer:()=>m});var n=r(2024),o=r(1986),i=r(1997),a=r(2029),s=r(2030),l=r(2031),c=[0,1];function u(e){return e}function d(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function f(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=d(o,n),i=r(a,i)):(n=d(n,o),i=r(i,a)),function(e){return i(n(e))}}function p(e,t,r){var o=Math.min(e.length,t.length)-1,i=new Array(o),a=new Array(o),s=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<o;)i[s]=d(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var r=(0,n.default)(e,t,1,o)-1;return a[r](i[r](t))}}function h(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){var e,t,r,n,s,d,h=c,m=c,g=o.default,y=u;function v(){var e,t,r,o=Math.min(h.length,m.length);return y!==u&&(e=h[0],t=h[o-1],e>t&&(r=e,e=t,t=r),y=function(r){return Math.max(e,Math.min(t,r))}),n=o>2?p:f,s=d=null,b}function b(t){return null==t||isNaN(t=+t)?r:(s||(s=n(h.map(e),m,g)))(e(y(t)))}return b.invert=function(r){return y(t((d||(d=n(m,h.map(e),i.default)))(r)))},b.domain=function(e){return arguments.length?(h=Array.from(e,l.default),v()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),v()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=a.default,v()},b.clamp=function(e){return arguments.length?(y=!!e||u,v()):y!==u},b.interpolate=function(e){return arguments.length?(g=e,v()):g},b.unknown=function(e){return arguments.length?(r=e,b):r},function(r,n){return e=r,t=n,v()}}function g(){return m()(u,u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bisectCenter:()=>c,bisectLeft:()=>l,bisectRight:()=>s,default:()=>u});var n=r(2025),o=r(2026),i=r(2028);const a=(0,o.default)(n.default),s=a.right,l=a.left,c=(0,o.default)(i.default).center,u=s},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2025),o=r(2027);function i(e){let t,r,i;function s(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=n.default,r=(t,r)=>(0,n.default)(e(t),r),i=(t,r)=>e(t)-r):(t=e===n.default||e===o.default?e:a,r=e,i=e),{left:s,center:function(e,t,r=0,n=e.length){const o=s(e,t,r,n-1);return o>r&&i(e[o-1],t)>-i(e[o],t)?o-1:o},right:function(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<=0?o=t+1:i=t}while(o<i)}return o}}}function a(){return 0}},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return null===e?NaN:+e}function*o(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}r.r(t),r.d(t,{default:()=>n,numbers:()=>o})},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return+e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2022),o=r(2033),i=r(2039),a=r(2045),s=r(2046),l=r(2047);function c(e,t,r,c){var u,d=(0,n.tickStep)(e,t,r);switch((c=(0,i.default)(null==c?",f":c)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=c.precision||isNaN(u=(0,s.default)(d,f))||(c.precision=u),(0,o.formatPrefix)(c,f);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(u=(0,l.default)(d,Math.max(Math.abs(e),Math.abs(t))))||(c.precision=u-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(u=(0,a.default)(d))||(c.precision=u-2*("%"===c.type))}return(0,o.format)(c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,format:()=>o,formatPrefix:()=>i});var n,o,i,a=r(2034);function s(e){return n=(0,a.default)(e),o=n.format,i=n.formatPrefix,n}s({thousands:",",grouping:[3],currency:["$",""]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(2035),o=r(2037),i=r(2038),a=r(2039),s=r(2040),l=r(2041),c=r(2042),u=r(2044),d=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(e){var t=void 0===e.grouping||void 0===e.thousands?u.default:(0,o.default)(d.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",p=void 0===e.currency?"":e.currency[1]+"",h=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?u.default:(0,i.default)(d.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"−":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function b(e){var n=(e=(0,a.default)(e)).fill,o=e.align,i=e.sign,u=e.symbol,d=e.zero,b=e.width,_=e.comma,w=e.precision,S=e.trim,E=e.type;"n"===E?(_=!0,E="g"):l.default[E]||(void 0===w&&(w=12),S=!0,E="g"),(d||"0"===n&&"="===o)&&(d=!0,n="0",o="=");var k="$"===u?r:"#"===u&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",x="$"===u?p:/[%p]/.test(E)?g:"",T=l.default[E],O=/[defgprs%]/.test(E);function C(e){var r,a,l,u=k,p=x;if("c"===E)p=T(e)+p,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:T(Math.abs(e),w),S&&(e=(0,s.default)(e)),g&&0===+e&&"+"!==i&&(g=!1),u=(g?"("===i?i:y:"-"===i||"("===i?"":i)+u,p=("s"===E?f[8+c.prefixExponent/3]:"")+p+(g&&"("===i?")":""),O)for(r=-1,a=e.length;++r<a;)if(48>(l=e.charCodeAt(r))||l>57){p=(46===l?h+e.slice(r+1):e.slice(r))+p,e=e.slice(0,r);break}}_&&!d&&(e=t(e,1/0));var C=u.length+e.length+p.length,j=C<b?new Array(b-C+1).join(n):"";switch(_&&d&&(e=t(j+e,j.length?b-p.length:1/0),j=""),o){case"<":e=u+e+p+j;break;case"=":e=u+j+e+p;break;case"^":e=j.slice(0,C=j.length>>1)+u+e+p+j.slice(C);break;default:e=j+u+e+p}return m(e)}return w=void 0===w?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),C.toString=function(){return e+""},C}return{format:b,formatPrefix:function(e,t){var r=b(((e=(0,a.default)(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3))),i=Math.pow(10,-o),s=f[8+o/3];return function(e){return r(i*e)+s}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2036);function o(e){return(e=(0,n.formatDecimalParts)(Math.abs(e)))?e[1]:NaN}},(e,t,r)=>{"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function o(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.r(t),r.d(t,{default:()=>n,formatDecimalParts:()=>o})},(e,t,r)=>{"use strict";function n(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FormatSpecifier:()=>i,default:()=>o});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},(e,t,r)=>{"use strict";function n(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2036),o=r(2042),i=r(2043);const a={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n.default,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>(0,i.default)(100*e,t),r:i.default,s:o.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,prefixExponent:()=>n});var n,o=r(2036);function i(e,t){var r=(0,o.formatDecimalParts)(e,t);if(!r)return e+"";var i=r[0],a=r[1],s=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,o.formatDecimalParts)(e,Math.max(0,t+s-1))[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2036);function o(e,t){var r=(0,n.formatDecimalParts)(e,t);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2035);function o(e){return Math.max(0,-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2035);function o(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3)))-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2035);function o(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,n.default)(t)-(0,n.default)(e))+1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g,loggish:()=>m});var n=r(2022),o=r(2033),i=r(2039),a=r(2049),s=r(2023),l=r(2018);function c(e){return Math.log(e)}function u(e){return Math.exp(e)}function d(e){return-Math.log(-e)}function f(e){return-Math.exp(-e)}function p(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return(t,r)=>-e(-t,r)}function m(e){const t=e(c,u),r=t.domain;let s,l,m=10;function g(){return s=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(m),l=function(e){return 10===e?p:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=h(s),l=h(l),e(d,f)):e(c,u),t}return t.base=function(e){return arguments.length?(m=+e,g()):m},t.domain=function(e){return arguments.length?(r(e),g()):r()},t.ticks=e=>{const t=r();let o=t[0],i=t[t.length-1];const a=i<o;a&&([o,i]=[i,o]);let c,u,d=s(o),f=s(i);const p=null==e?10:+e;let h=[];if(!(m%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),o>0){for(;d<=f;++d)for(c=1;c<m;++c)if(u=d<0?c/l(-d):c*l(d),!(u<o)){if(u>i)break;h.push(u)}}else for(;d<=f;++d)for(c=m-1;c>=1;--c)if(u=d>0?c/l(-d):c*l(d),!(u<o)){if(u>i)break;h.push(u)}2*h.length<p&&(h=(0,n.default)(o,i,p))}else h=(0,n.default)(d,f,Math.min(f-d,p)).map(l);return a?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===m?"s":","),"function"!=typeof r&&(m%1||null!=(r=(0,i.default)(r)).precision||(r.trim=!0),r=(0,o.format)(r)),e===1/0)return r;const n=Math.max(1,m*e/t.ticks().length);return e=>{let t=e/l(Math.round(s(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=()=>r((0,a.default)(r(),{floor:e=>l(Math.floor(s(e))),ceil:e=>l(Math.ceil(s(e)))})),t}function g(){const e=m((0,s.transformer)()).domain([1,10]);return e.copy=()=>(0,s.copy)(e,g()).base(e.base()),l.initRange.apply(e,arguments),e}},(e,t,r)=>{"use strict";function n(e,t){var r,n=0,o=(e=e.slice()).length-1,i=e[n],a=e[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),e[n]=t.floor(i),e[o]=t.ceil(a),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calendar:()=>y,default:()=>v});var n=r(2051),o=r(2054),i=r(2055),a=r(2056),s=r(2057),l=r(2058),c=r(2059),u=r(2060),d=r(2062),f=r(2023),p=r(2018),h=r(2049);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,r,n,o,i,a,s,l,c){var u=(0,f.default)(),d=u.invert,p=u.domain,v=c(".%L"),b=c(":%S"),_=c("%I:%M"),w=c("%I %p"),S=c("%a %d"),E=c("%b %d"),k=c("%B"),x=c("%Y");function T(e){return(l(e)<e?v:s(e)<e?b:a(e)<e?_:i(e)<e?w:n(e)<e?o(e)<e?S:E:r(e)<e?k:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,g)):p().map(m)},u.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?T:c(t)},u.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p((0,h.default)(r,e)):u},u.copy=function(){return(0,f.copy)(u,y(e,t,r,n,o,i,a,s,l,c))},u}function v(){return p.initRange.apply(y(u.timeTicks,u.timeTickInterval,c.timeYear,l.timeMonth,s.timeSunday,a.timeDay,i.timeHour,o.timeMinute,n.second,d.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{second:()=>i,seconds:()=>a});var n=r(2052),o=r(2053);const i=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*o.durationSecond)},(e,t)=>(t-e)/o.durationSecond,e=>e.getUTCSeconds()),a=i.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeInterval:()=>i});const n=new Date,o=new Date;function i(e,t,r,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=t=>(e(t=new Date(+t)),t),s.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),s.round=e=>{const t=s(e),r=s.ceil(e);return e-t<r-e?t:r},s.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),s.range=(r,n,o)=>{const i=[];if(r=s.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return i;let a;do{i.push(a=new Date(+r)),t(r,o),e(r)}while(a<r&&r<n);return i},s.filter=r=>i(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(s.count=(t,i)=>(n.setTime(+t),o.setTime(+i),e(n),e(o),Math.floor(r(n,o))),s.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?t=>a(t)%e===0:t=>s.count(0,t)%e===0):s:null)),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{durationDay:()=>a,durationHour:()=>i,durationMinute:()=>o,durationMonth:()=>l,durationSecond:()=>n,durationWeek:()=>s,durationYear:()=>c});const n=1e3,o=60*n,i=60*o,a=24*i,s=7*a,l=30*a,c=365*a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMinute:()=>i,timeMinutes:()=>a,utcMinute:()=>s,utcMinutes:()=>l});var n=r(2052),o=r(2053);const i=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.durationSecond)},(e,t)=>{e.setTime(+e+t*o.durationMinute)},(e,t)=>(t-e)/o.durationMinute,e=>e.getMinutes()),a=i.range,s=(0,n.timeInterval)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*o.durationMinute)},(e,t)=>(t-e)/o.durationMinute,e=>e.getUTCMinutes()),l=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeHour:()=>i,timeHours:()=>a,utcHour:()=>s,utcHours:()=>l});var n=r(2052),o=r(2053);const i=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.durationSecond-e.getMinutes()*o.durationMinute)},(e,t)=>{e.setTime(+e+t*o.durationHour)},(e,t)=>(t-e)/o.durationHour,e=>e.getHours()),a=i.range,s=(0,n.timeInterval)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*o.durationHour)},(e,t)=>(t-e)/o.durationHour,e=>e.getUTCHours()),l=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeDay:()=>i,timeDays:()=>a,unixDay:()=>c,unixDays:()=>u,utcDay:()=>s,utcDays:()=>l});var n=r(2052),o=r(2053);const i=(0,n.timeInterval)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.durationMinute)/o.durationDay,e=>e.getDate()-1),a=i.range,s=(0,n.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/o.durationDay,e=>e.getUTCDate()-1),l=s.range,c=(0,n.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/o.durationDay,e=>Math.floor(e/o.durationDay)),u=c.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeFriday:()=>d,timeFridays:()=>v,timeMonday:()=>s,timeMondays:()=>h,timeSaturday:()=>f,timeSaturdays:()=>b,timeSunday:()=>a,timeSundays:()=>p,timeThursday:()=>u,timeThursdays:()=>y,timeTuesday:()=>l,timeTuesdays:()=>m,timeWednesday:()=>c,timeWednesdays:()=>g,utcFriday:()=>T,utcFridays:()=>A,utcMonday:()=>S,utcMondays:()=>j,utcSaturday:()=>O,utcSaturdays:()=>M,utcSunday:()=>w,utcSundays:()=>C,utcThursday:()=>x,utcThursdays:()=>R,utcTuesday:()=>E,utcTuesdays:()=>P,utcWednesday:()=>k,utcWednesdays:()=>I});var n=r(2052),o=r(2053);function i(e){return(0,n.timeInterval)(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.durationMinute)/o.durationWeek)}const a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),f=i(6),p=a.range,h=s.range,m=l.range,g=c.range,y=u.range,v=d.range,b=f.range;function _(e){return(0,n.timeInterval)(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/o.durationWeek)}const w=_(0),S=_(1),E=_(2),k=_(3),x=_(4),T=_(5),O=_(6),C=w.range,j=S.range,P=E.range,I=k.range,R=x.range,A=T.range,M=O.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMonth:()=>o,timeMonths:()=>i,utcMonth:()=>a,utcMonths:()=>s});var n=r(2052);const o=(0,n.timeInterval)(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth()),i=o.range,a=(0,n.timeInterval)(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeYear:()=>o,timeYears:()=>i,utcYear:()=>a,utcYears:()=>s});var n=r(2052);const o=(0,n.timeInterval)(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());o.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null;const i=o.range,a=(0,n.timeInterval)(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());a.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null;const s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeTickInterval:()=>v,timeTicks:()=>y,utcTickInterval:()=>g,utcTicks:()=>m});var n=r(2026),o=r(2022),i=r(2053),a=r(2061),s=r(2051),l=r(2054),c=r(2055),u=r(2056),d=r(2057),f=r(2058),p=r(2059);function h(e,t,r,l,c,u){const d=[[s.second,1,i.durationSecond],[s.second,5,5*i.durationSecond],[s.second,15,15*i.durationSecond],[s.second,30,30*i.durationSecond],[u,1,i.durationMinute],[u,5,5*i.durationMinute],[u,15,15*i.durationMinute],[u,30,30*i.durationMinute],[c,1,i.durationHour],[c,3,3*i.durationHour],[c,6,6*i.durationHour],[c,12,12*i.durationHour],[l,1,i.durationDay],[l,2,2*i.durationDay],[r,1,i.durationWeek],[t,1,i.durationMonth],[t,3,3*i.durationMonth],[e,1,i.durationYear]];function f(t,r,s){const l=Math.abs(r-t)/s,c=(0,n.default)(([,,e])=>e).right(d,l);if(c===d.length)return e.every((0,o.tickStep)(t/i.durationYear,r/i.durationYear,s));if(0===c)return a.millisecond.every(Math.max((0,o.tickStep)(t,r,s),1));const[u,f]=d[l/d[c-1][2]<d[c][2]/l?c-1:c];return u.every(f)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const o=r&&"function"==typeof r.range?r:f(e,t,r),i=o?o.range(e,+t+1):[];return n?i.reverse():i},f]}const[m,g]=h(p.utcYear,f.utcMonth,d.utcSunday,u.unixDay,c.utcHour,l.utcMinute),[y,v]=h(p.timeYear,f.timeMonth,d.timeSunday,u.timeDay,c.timeHour,l.timeMinute)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{millisecond:()=>o,milliseconds:()=>i});var n=r(2052);const o=(0,n.timeInterval)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,n.timeInterval)(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):o:null);const i=o.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c,timeFormat:()=>o,timeParse:()=>i,utcFormat:()=>a,utcParse:()=>s});var n,o,i,a,s,l=r(2063);function c(e){return n=(0,l.default)(e),o=n.format,i=n.parse,a=n.utcFormat,s=n.utcParse,n}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2056),o=r(2057),i=r(2059);function a(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function s(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function l(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function c(e){var t=e.dateTime,r=e.date,i=e.time,c=e.periods,d=e.days,f=e.shortDays,p=e.months,h=e.shortMonths,m=g(c),Y=y(c),me=g(d),Oe=y(d),Ce=g(f),je=y(f),Pe=g(p),Ie=y(p),Re=g(h),Ae=y(h),Me={a:function(e){return f[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return h[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:B,e:B,f:q,g:ee,G:re,H:F,I:z,j:U,L:H,m:V,M:W,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Te,S:G,u:$,U:K,V:J,w:X,W:Q,x:null,X:null,y:Z,Y:te,Z:ne,"%":ke},De={a:function(e){return f[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return h[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:oe,e:oe,f:ce,g:_e,G:Se,H:ie,I:ae,j:se,L:le,m:ue,M:de,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xe,s:Te,S:fe,u:pe,U:he,V:ge,w:ye,W:ve,x:null,X:null,y:be,Y:we,Z:Ee,"%":ke},Ne={a:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.w=je.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=me.exec(t.slice(r));return n?(e.w=Oe.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=Re.exec(t.slice(r));return n?(e.m=Ae.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.m=Ie.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return Fe(e,t,r,n)},d:C,e:C,f:M,g:k,G:E,H:P,I:P,j,L:A,m:O,M:I,p:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.p=Y.get(n[0].toLowerCase()),r+n[0].length):-1},q:T,Q:N,s:L,S:R,u:b,U:_,V:w,w:v,W:S,x:function(e,t,n){return Fe(e,r,t,n)},X:function(e,t,r){return Fe(e,i,t,r)},y:k,Y:E,Z:x,"%":D};function Le(e,t){return function(r){var n,o,i,a=[],s=-1,l=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=u[n=e.charAt(++s)])?n=e.charAt(++s):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),a.push(n),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Be(e,t){return function(r){var i,c,u=l(1900,void 0,1);if(Fe(u,e,r+="",0)!=r.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(t&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(c=(i=s(l(u.y,0,1))).getUTCDay(),i=c>4||0===c?o.utcMonday.ceil(i):(0,o.utcMonday)(i),i=n.utcDay.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(c=(i=a(l(u.y,0,1))).getDay(),i=c>4||0===c?o.timeMonday.ceil(i):(0,o.timeMonday)(i),i=n.timeDay.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),c="Z"in u?s(l(u.y,0,1)).getUTCDay():a(l(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,s(u)):a(u)}}function Fe(e,t,r,n){for(var o,i,a=0,s=t.length,l=r.length;a<s;){if(n>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Ne[o in u?t.charAt(a++):o])||(n=i(e,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return Me.x=Le(r,Me),Me.X=Le(i,Me),Me.c=Le(t,Me),De.x=Le(r,De),De.X=Le(i,De),De.c=Le(t,De),{format:function(e){var t=Le(e+="",Me);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Le(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var u={"-":"",_:" ",0:"0"},d=/^\s*\d+/,f=/^%/,p=/[\\^$*+?|[\]().{}]/g;function h(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function m(e){return e.replace(p,"\\$&")}function g(e){return new RegExp("^(?:"+e.map(m).join("|")+")","i")}function y(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function v(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function b(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function _(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function w(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function S(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function E(e,t,r){var n=d.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function k(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function O(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function C(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function j(e,t,r){var n=d.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function P(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function I(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function R(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function A(e,t,r){var n=d.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function M(e,t,r){var n=d.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function D(e,t,r){var n=f.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function N(e,t,r){var n=d.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function L(e,t,r){var n=d.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function B(e,t){return h(e.getDate(),t,2)}function F(e,t){return h(e.getHours(),t,2)}function z(e,t){return h(e.getHours()%12||12,t,2)}function U(e,t){return h(1+n.timeDay.count((0,i.timeYear)(e),e),t,3)}function H(e,t){return h(e.getMilliseconds(),t,3)}function q(e,t){return H(e,t)+"000"}function V(e,t){return h(e.getMonth()+1,t,2)}function W(e,t){return h(e.getMinutes(),t,2)}function G(e,t){return h(e.getSeconds(),t,2)}function $(e){var t=e.getDay();return 0===t?7:t}function K(e,t){return h(o.timeSunday.count((0,i.timeYear)(e)-1,e),t,2)}function Y(e){var t=e.getDay();return t>=4||0===t?(0,o.timeThursday)(e):o.timeThursday.ceil(e)}function J(e,t){return e=Y(e),h(o.timeThursday.count((0,i.timeYear)(e),e)+(4===(0,i.timeYear)(e).getDay()),t,2)}function X(e){return e.getDay()}function Q(e,t){return h(o.timeMonday.count((0,i.timeYear)(e)-1,e),t,2)}function Z(e,t){return h(e.getFullYear()%100,t,2)}function ee(e,t){return h((e=Y(e)).getFullYear()%100,t,2)}function te(e,t){return h(e.getFullYear()%1e4,t,4)}function re(e,t){var r=e.getDay();return h((e=r>=4||0===r?(0,o.timeThursday)(e):o.timeThursday.ceil(e)).getFullYear()%1e4,t,4)}function ne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+h(t/60|0,"0",2)+h(t%60,"0",2)}function oe(e,t){return h(e.getUTCDate(),t,2)}function ie(e,t){return h(e.getUTCHours(),t,2)}function ae(e,t){return h(e.getUTCHours()%12||12,t,2)}function se(e,t){return h(1+n.utcDay.count((0,i.utcYear)(e),e),t,3)}function le(e,t){return h(e.getUTCMilliseconds(),t,3)}function ce(e,t){return le(e,t)+"000"}function ue(e,t){return h(e.getUTCMonth()+1,t,2)}function de(e,t){return h(e.getUTCMinutes(),t,2)}function fe(e,t){return h(e.getUTCSeconds(),t,2)}function pe(e){var t=e.getUTCDay();return 0===t?7:t}function he(e,t){return h(o.utcSunday.count((0,i.utcYear)(e)-1,e),t,2)}function me(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.utcThursday)(e):o.utcThursday.ceil(e)}function ge(e,t){return e=me(e),h(o.utcThursday.count((0,i.utcYear)(e),e)+(4===(0,i.utcYear)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return h(o.utcMonday.count((0,i.utcYear)(e)-1,e),t,2)}function be(e,t){return h(e.getUTCFullYear()%100,t,2)}function _e(e,t){return h((e=me(e)).getUTCFullYear()%100,t,2)}function we(e,t){return h(e.getUTCFullYear()%1e4,t,4)}function Se(e,t){var r=e.getUTCDay();return h((e=r>=4||0===r?(0,o.utcThursday)(e):o.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function Ee(){return"+0000"}function ke(){return"%"}function xe(e){return+e}function Te(e){return Math.floor(+e/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2051),o=r(2054),i=r(2055),a=r(2056),s=r(2057),l=r(2058),c=r(2059),u=r(2060),d=r(2062),f=r(2050),p=r(2018);function h(){return p.initRange.apply((0,f.calendar)(u.utcTicks,u.utcTickInterval,c.utcYear,l.utcMonth,s.utcSunday,a.utcDay,i.utcHour,o.utcMinute,n.second,d.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";function n(e,t){let r,n;if(void 0===t)for(const t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n<t&&(n=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===r?i>=i&&(r=n=i):(r>i&&(r=i),n<i&&(n=i)))}return[r,n]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{entries:()=>l.default,keys:()=>a.default,map:()=>i.default,nest:()=>n.default,set:()=>o.default,values:()=>s.default});var n=r(2067),o=r(2069),i=r(2068),a=r(2070),s=r(2071),l=r(2072)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2068);function o(){var e,t,r,o=[],c=[];function u(r,i,a,s){if(i>=o.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var l,c,d,f=-1,p=r.length,h=o[i++],m=(0,n.default)(),g=a();++f<p;)(d=m.get(l=h(c=r[f])+""))?d.push(c):m.set(l,[c]);return m.each(function(e,t){s(g,t,u(e,i,a,s))}),g}function d(e,r){if(++r>o.length)return e;var n,i=c[r-1];return null!=t&&r>=o.length?n=e.entries():(n=[],e.each(function(e,t){n.push({key:t,values:d(e,r)})})),null!=i?n.sort(function(e,t){return i(e.key,t.key)}):n}return r={object:function(e){return u(e,0,i,a)},map:function(e){return u(e,0,s,l)},entries:function(e){return d(u(e,0,s,l),0)},key:function(e){return o.push(e),r},sortKeys:function(e){return c[o.length-1]=e,r},sortValues:function(t){return e=t,r},rollup:function(e){return t=e,r}}}function i(){return{}}function a(e,t,r){e[t]=r}function s(){return(0,n.default)()}function l(e,t,r){e.set(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,prefix:()=>n});var n="$";function o(){}function i(e,t){var r=new o;if(e instanceof o)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var n,i=-1,a=e.length;if(null==t)for(;++i<a;)r.set(i,e[i]);else for(;++i<a;)r.set(t(n=e[i],i,e),n)}else if(e)for(var s in e)r.set(s,e[s]);return r}o.prototype=i.prototype={constructor:o,has:function(e){return n+e in this},get:function(e){return this[n+e]},set:function(e,t){return this[n+e]=t,this},remove:function(e){var t=n+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===n&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===n&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===n&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===n&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===n&&++e;return e},empty:function(){for(var e in this)if(e[0]===n)return!1;return!0},each:function(e){for(var t in this)t[0]===n&&e(this[t],t.slice(1),this)}};const a=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2068);function o(){}var i=n.default.prototype;function a(e,t){var r=new o;if(e instanceof o)e.each(function(e){r.add(e)});else if(e){var n=-1,i=e.length;if(null==t)for(;++n<i;)r.add(e[n]);else for(;++n<i;)r.add(t(e[n],n,e))}return r}o.prototype=a.prototype={constructor:o,has:i.has,add:function(e){return e+="",this[n.prefix+e]=e,this},remove:i.remove,clear:i.clear,values:i.keys,size:i.size,empty:i.empty,each:i.each};const s=a},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(r);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(e[r]);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{getDOMNode:()=>f,isReactDOMSupported:()=>d,warnOnce:()=>g,warning:()=>m});var o,i,a=r(296).default.version.split("."),s=(i=2,function(e){if(Array.isArray(e))return e}(o=a)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(o,i)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(o,i)||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.")}()),l=s[0],c=s[1],u=Number(c)>13||Number(l)>13,d=function(){return u},f=function(e){return d()?e:e&&e.getDOMNode()},p={},h={test:!0,production:!0};function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.g.process&&h.production||t&&p[e]||(console.warn(e),p[e]=!0)}function g(e){m(e,!0)}},(e,t,r)=>{"use strict";function n(e,t){var r=new Set(e.map(t));return Array.from(r)}function o(e,t){var r=[].concat(e);return r[0]>t&&(r[0]=t),r[r.length-1]<t&&(r[r.length-1]=t),r}function i(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}r.r(t),r.d(t,{addValueToArray:()=>o,getUniquePropertyValues:()=>n,transformValueToString:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2076),l=r(2081),c=r(1974),u=r(2015),d=r(2083);function f(e){return f="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},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w="rv-xy-plot__series rv-xy-plot__series--arc",S=["radius","angle"],E=b(b({},c.default.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function k(e){var t=e.radius,r=e.angle,n=e.angle0,o=-1*r+Math.PI/2,i=-1*n+Math.PI/2;return b(b({},e),{},{x:t*Math.cos(o),y:t*Math.sin(o),angle:o,angle0:i})}var x=function(e){!function(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}}),t&&m(e,t)}(c,e);var t,r,o,i=g(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=(t=i.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=c,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),r=(0,u.extractScalePropsFromProps)(e,S),n=(0,u.getMissingScaleProps)(b(b({},t),r),e.data,S);return b(b(b({},t),r),n)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,r=e.innerHeight,n=Math.min(t/2,r/2);return{radiusRange:[0,n],_radiusValue:n,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,r=t.arcClassName,o=t.animation,i=t.className,f=t.center,h=t.data,m=t.disableSeries,g=t.hideSeries,y=t.marginLeft,v=t.marginTop,_=t.padAngle,S=t.style;if(!h)return null;if(o){var E=h.map(function(e){return b({},e)});return n.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},n.default.createElement(a.default,p({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS,data:E}),n.default.createElement(c,p({},this.props,{animation:null,disableSeries:!0,data:E}))),n.default.createElement(c,p({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var x=this.state.scaleProps,T=x.radiusDomain,O=(0,u.getAttributeFunctor)(x,"radius"),C=(0,u.getAttr0Functor)(x,"radius"),j=(0,u.getAttributeFunctor)(x,"angle"),P=(0,u.getAttr0Functor)(x,"angle"),I=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),R=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),A=this._getAttributeFunctor("opacity"),M=this._getAttributeFunctor("x"),D=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,d.getCombinedClassName)(w,i),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:g?0:1,pointerEvents:m?"none":"all",transform:"translate(".concat(y+M(f),",").concat(v+D(f),")")},h.map(function(t,o){var i={innerRadius:T[1]===T[0]?0:C(t),outerRadius:O(t),startAngle:P(t)||0,endAngle:j(t)},a=(0,s.default)().padAngle(_),l=t.style||{},c=t.className||"";return n.default.createElement("path",{key:"path-".concat(o),style:b(b({opacity:A&&A(t),stroke:R&&R(t),fill:I&&I(t)},S),l),onClick:function(r){return e._valueClickHandler(k(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(k(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(k(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(k(t),r)},className:"".concat(w,"-path ").concat(r," ").concat(c),d:a(i)})}))}}])&&h(t.prototype,r),o&&h(t,o),c}(c.default);x.propTypes=b(b(b(b({},c.default.propTypes),(0,u.getScalePropTypesByAttribute)("radius")),(0,u.getScalePropTypesByAttribute)("angle")),{},{center:i().shape({x:i().number,y:i().number}),arcClassName:i().string,padAngle:i().oneOfType([i().func,i().number])}),x.defaultProps=E,x.displayName="ArcSeries";const T=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2077),o=r(2078),i=r(2079);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function l(e){return e.startAngle}function c(e){return e.endAngle}function u(e){return e&&e.padAngle}function d(e,t,r,n,i,a,s){var l=e-r,c=t-n,u=(s?a:-a)/(0,o.sqrt)(l*l+c*c),d=u*c,f=-u*l,p=e+d,h=t+f,m=r+d,g=n+f,y=(p+m)/2,v=(h+g)/2,b=m-p,_=g-h,w=b*b+_*_,S=i-a,E=p*g-m*h,k=(_<0?-1:1)*(0,o.sqrt)((0,o.max)(0,S*S*w-E*E)),x=(E*_-b*k)/w,T=(-E*b-_*k)/w,O=(E*_+b*k)/w,C=(-E*b+_*k)/w,j=x-y,P=T-v,I=O-y,R=C-v;return j*j+P*P>I*I+R*R&&(x=O,T=C),{cx:x,cy:T,x01:-d,y01:-f,x11:x*(i/S-1),y11:T*(i/S-1)}}function f(){var e=a,t=s,r=(0,n.default)(0),f=null,p=l,h=c,m=u,g=null,y=(0,i.withPath)(v);function v(){var n,i,a=+e.apply(this,arguments),s=+t.apply(this,arguments),l=p.apply(this,arguments)-o.halfPi,c=h.apply(this,arguments)-o.halfPi,u=(0,o.abs)(c-l),v=c>l;if(g||(g=n=y()),s<a&&(i=s,s=a,a=i),s>o.epsilon)if(u>o.tau-o.epsilon)g.moveTo(s*(0,o.cos)(l),s*(0,o.sin)(l)),g.arc(0,0,s,l,c,!v),a>o.epsilon&&(g.moveTo(a*(0,o.cos)(c),a*(0,o.sin)(c)),g.arc(0,0,a,c,l,v));else{var b,_,w=l,S=c,E=l,k=c,x=u,T=u,O=m.apply(this,arguments)/2,C=O>o.epsilon&&(f?+f.apply(this,arguments):(0,o.sqrt)(a*a+s*s)),j=(0,o.min)((0,o.abs)(s-a)/2,+r.apply(this,arguments)),P=j,I=j;if(C>o.epsilon){var R=(0,o.asin)(C/a*(0,o.sin)(O)),A=(0,o.asin)(C/s*(0,o.sin)(O));(x-=2*R)>o.epsilon?(E+=R*=v?1:-1,k-=R):(x=0,E=k=(l+c)/2),(T-=2*A)>o.epsilon?(w+=A*=v?1:-1,S-=A):(T=0,w=S=(l+c)/2)}var M=s*(0,o.cos)(w),D=s*(0,o.sin)(w),N=a*(0,o.cos)(k),L=a*(0,o.sin)(k);if(j>o.epsilon){var B,F=s*(0,o.cos)(S),z=s*(0,o.sin)(S),U=a*(0,o.cos)(E),H=a*(0,o.sin)(E);if(u<o.pi)if(B=function(e,t,r,n,i,a,s,l){var c=r-e,u=n-t,d=s-i,f=l-a,p=f*c-d*u;if(!(p*p<o.epsilon))return[e+(p=(d*(t-a)-f*(e-i))/p)*c,t+p*u]}(M,D,U,H,F,z,N,L)){var q=M-B[0],V=D-B[1],W=F-B[0],G=z-B[1],$=1/(0,o.sin)((0,o.acos)((q*W+V*G)/((0,o.sqrt)(q*q+V*V)*(0,o.sqrt)(W*W+G*G)))/2),K=(0,o.sqrt)(B[0]*B[0]+B[1]*B[1]);P=(0,o.min)(j,(a-K)/($-1)),I=(0,o.min)(j,(s-K)/($+1))}else P=I=0}T>o.epsilon?I>o.epsilon?(b=d(U,H,M,D,s,I,v),_=d(F,z,N,L,s,I,v),g.moveTo(b.cx+b.x01,b.cy+b.y01),I<j?g.arc(b.cx,b.cy,I,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,I,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(b.y11,b.x11),!v),g.arc(0,0,s,(0,o.atan2)(b.cy+b.y11,b.cx+b.x11),(0,o.atan2)(_.cy+_.y11,_.cx+_.x11),!v),g.arc(_.cx,_.cy,I,(0,o.atan2)(_.y11,_.x11),(0,o.atan2)(_.y01,_.x01),!v))):(g.moveTo(M,D),g.arc(0,0,s,w,S,!v)):g.moveTo(M,D),a>o.epsilon&&x>o.epsilon?P>o.epsilon?(b=d(N,L,F,z,a,-P,v),_=d(M,D,U,H,a,-P,v),g.lineTo(b.cx+b.x01,b.cy+b.y01),P<j?g.arc(b.cx,b.cy,P,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,P,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(b.y11,b.x11),!v),g.arc(0,0,a,(0,o.atan2)(b.cy+b.y11,b.cx+b.x11),(0,o.atan2)(_.cy+_.y11,_.cx+_.x11),v),g.arc(_.cx,_.cy,P,(0,o.atan2)(_.y11,_.x11),(0,o.atan2)(_.y01,_.x01),!v))):g.arc(0,0,a,k,E,v):g.lineTo(N,L)}else g.moveTo(0,0);if(g.closePath(),n)return g=null,n+""||null}return v.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+p.apply(this,arguments)+ +h.apply(this,arguments))/2-o.pi/2;return[(0,o.cos)(n)*r,(0,o.sin)(n)*r]},v.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),v):e},v.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),v):t},v.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:(0,n.default)(+e),v):r},v.padRadius=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):f},v.startAngle=function(e){return arguments.length?(p="function"==typeof e?e:(0,n.default)(+e),v):p},v.endAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,n.default)(+e),v):h},v.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,n.default)(+e),v):m},v.context=function(e){return arguments.length?(g=null==e?null:e,v):g},v}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>n,acos:()=>h,asin:()=>m,atan2:()=>o,cos:()=>i,epsilon:()=>u,halfPi:()=>f,max:()=>a,min:()=>s,pi:()=>d,sin:()=>l,sqrt:()=>c,tau:()=>p});const n=Math.abs,o=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,f=d/2,p=2*d;function h(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{withPath:()=>o});var n=r(2080);function o(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new n.Path(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Path:()=>l,path:()=>c,pathRound:()=>u});const n=Math.PI,o=2*n,i=1e-6,a=o-i;function s(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class l{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?s:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,o,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,r,o,a){if(e=+e,t=+t,r=+r,o=+o,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=r-e,u=o-t,d=s-e,f=l-t,p=d*d+f*f;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>i)if(Math.abs(f*c-u*d)>i&&a){let h=r-s,m=o-l,g=c*c+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(p),_=a*Math.tan((n-Math.acos((g+p-y)/(2*v*b)))/2),w=_/b,S=_/v;Math.abs(w-1)>i&&this._append`L${e+w*d},${t+w*f}`,this._append`A${a},${a},0,0,${+(f*h>d*m)},${this._x1=e+S*c},${this._y1=t+S*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,s,l,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(s),d=r*Math.sin(s),f=e+u,p=t+d,h=1^c,m=c?s-l:l-s;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>i||Math.abs(this._y1-p)>i)&&this._append`L${f},${p}`,r&&(m<0&&(m=m%o+o),m>a?this._append`A${r},${r},0,1,${h},${e-u},${t-d}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:m>i&&this._append`A${r},${r},0,${+(m>=n)},${h},${this._x1=e+r*Math.cos(l)},${this._y1=t+r*Math.sin(l)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(){return new l}function u(e=3){return new l(+e)}c.prototype=l.prototype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANIMATED_SERIES_PROPS:()=>h,getRadialDomain:()=>p,getSeriesChildren:()=>u,getSeriesPropsFromChildren:()=>f,getStackParams:()=>m,getStackedData:()=>d,isSeriesChild:()=>c});var n=r(296),o=r(1974),i=r(2082);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return e.type.prototype instanceof o.default}function u(e){return n.default.Children.toArray(e).filter(function(e){return e&&c(e)})}function d(e,t){var r=e.some(function(e){return e&&e.props.stack}),n={};return e.reduce(function(e,o){if(!o)return e.push(null),e;var i=o.type.displayName,a=o.props,c=a.data,u=a.cluster,d=void 0===u?"default":u,f=a.stack,p=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some(function(e){return e.radius&&e.angle})}(e)?e.map(function(e){return s(s({},e),{},{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})}):e}(c);if(!t||!p||!p.length||r&&!f)return e.push(p),e;var h="".concat(t,"0"),m="y"===t?"x":"y";return e.push(p.map(function(e){var r,o;n[d]||(n[d]={}),n[d][i]||(n[d][i]={});var a,c=n[d][i][e[m]];if(!c)return n[d][i][e[m]]=(l(a={},h,e[h]),l(a,t,e[t]),a),s({},e);var u=s(s({},e),{},(l(r={},h,c[t]),l(r,t,c[t]+e[t]-(e[h]||0)),r));return n[d][i][e[m]]=(l(o={},h,u[h]),l(o,t,u[t]),o),u})),e},[])}function f(e){var t=[],r=function(e){var t={};return e.filter(c).forEach(function(e){var r=e.type.displayName,n=e.props.cluster;t[r]||(t[r]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[r].clusters.add(n),t[r].sameTypeTotal++}),t}(e),n=0,o=i.DEFAULT_OPACITY;return e.forEach(function(e){var a;if(c(e)){var l=r[e.type.displayName],u=i.DISCRETE_COLOR_RANGE[n%i.DISCRETE_COLOR_RANGE.length];a=s(s({},l),{},{seriesIndex:n,_colorValue:u,_opacityValue:o}),l.sameTypeIndex++,n++,e.props.cluster&&(a.cluster=e.props.cluster,a.clusters=Array.from(l.clusters),a.sameTypeTotal=a.clusters.length,a.sameTypeIndex=a.clusters.indexOf(e.props.cluster))}t.push(a)}),t}function p(e){return e.reduce(function(e,t){return Math.max(t.radius,e)},0)}var h=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function m(e){var t=e._stackBy,r=e.valuePosAttr,n=e.cluster,o=e.sameTypeTotal,i=void 0===o?1:o,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==r||n||(i=1,s=0),{sameTypeTotal:i,sameTypeIndex:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUOUS_COLOR_RANGE:()=>i,DEFAULT_COLOR:()=>d,DEFAULT_OPACITY:()=>c,DEFAULT_SIZE:()=>u,DEFAULT_TICK_SIZE:()=>f,DISCRETE_COLOR_RANGE:()=>n,EXTENDED_DISCRETE_COLOR_RANGE:()=>o,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>l,SIZE_RANGE:()=>a});var n=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],o=["#19CDD7","#DDB27C","#88572C","#FF991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],i=["#EF5D28","#FF9833"],a=[1,10],s=[.1,1],l="literal",c=1,u=5,d=n[0],f=7},(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e&&"string"==typeof e}).join(" ")}r.r(t),r.d(t,{getCombinedClassName:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(296),o=r(668),i=r.n(o),a=r(2086),s=r(2085),l=r(1985),c=r(2082),u=r(2081),d=r(2073),f=r(2083),p=r(1974);function h(e){return h="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},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E=function(e){!function(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}}),t&&_(e,t)}(p,e);var t,r,o,i=w(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i.apply(this,arguments)}return t=p,(r=[{key:"_renderArea",value:function(e,t,r,n,o,i){var l=a.default();return null!==o&&("string"==typeof o&&s[o]?l=l.curve(s[o]):"function"==typeof o&&(l=l.curve(o))),(l=(l=l.defined(i)).x(t).y0(r).y1(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,o=e.curve,i=e.data,a=e.marginLeft,s=e.marginTop,h=e.style;if(this.props.nullAccessor&&(0,d.warning)("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return n.default.createElement(l.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(p,v({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),b=this._getAttr0Functor("y"),_=this._getAttributeValue("stroke")||this._getAttributeValue("color"),w=this._getAttributeValue("fill")||this._getAttributeValue("color"),S=this._getAttributeValue("opacity"),E=Number.isFinite(S)?S:c.DEFAULT_OPACITY,k=this.props.nullAccessor||this.props.getNull,x=this._renderArea(i,m,b,y,o,k);return n.default.createElement("path",{d:x,className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(a,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:E,stroke:_,fill:w},h)})}}])&&b(t.prototype,r),o&&b(t,o),p}(p.default);E.displayName="AreaSeries",E.propTypes=g(g({},p.default.propTypes),{},{getNull:i().func}),E.defaultProps=g(g({},p.default.defaultProps),{},{getNull:function(){return!0}});const k=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.default,area:()=>o.default,areaRadial:()=>s.default,curveBasis:()=>O.default,curveBasisClosed:()=>x.default,curveBasisOpen:()=>T.default,curveBumpX:()=>C.bumpX,curveBumpY:()=>C.bumpY,curveBundle:()=>j.default,curveCardinal:()=>R.default,curveCardinalClosed:()=>P.default,curveCardinalOpen:()=>I.default,curveCatmullRom:()=>D.default,curveCatmullRomClosed:()=>A.default,curveCatmullRomOpen:()=>M.default,curveLinear:()=>L.default,curveLinearClosed:()=>N.default,curveMonotoneX:()=>B.monotoneX,curveMonotoneY:()=>B.monotoneY,curveNatural:()=>F.default,curveStep:()=>z.default,curveStepAfter:()=>z.stepAfter,curveStepBefore:()=>z.stepBefore,line:()=>i.default,lineRadial:()=>l.default,link:()=>u.link,linkHorizontal:()=>u.linkHorizontal,linkRadial:()=>u.linkRadial,linkVertical:()=>u.linkVertical,pie:()=>a.default,pointRadial:()=>c.default,radialArea:()=>s.default,radialLine:()=>l.default,stack:()=>U.default,stackOffsetDiverging:()=>q.default,stackOffsetExpand:()=>H.default,stackOffsetNone:()=>V.default,stackOffsetSilhouette:()=>W.default,stackOffsetWiggle:()=>G.default,stackOrderAppearance:()=>$.default,stackOrderAscending:()=>K.default,stackOrderDescending:()=>Y.default,stackOrderInsideOut:()=>J.default,stackOrderNone:()=>X.default,stackOrderReverse:()=>Q.default,symbol:()=>d.default,symbolAsterisk:()=>f.default,symbolCircle:()=>p.default,symbolCross:()=>h.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>g.default,symbolPlus:()=>y.default,symbolSquare:()=>v.default,symbolSquare2:()=>b.default,symbolStar:()=>_.default,symbolTimes:()=>k.default,symbolTriangle:()=>w.default,symbolTriangle2:()=>S.default,symbolWye:()=>E.default,symbolX:()=>k.default,symbols:()=>d.symbolsFill,symbolsFill:()=>d.symbolsFill,symbolsStroke:()=>d.symbolsStroke});var n=r(2076),o=r(2086),i=r(2089),a=r(2091),s=r(2094),l=r(2096),c=r(2097),u=r(2098),d=r(2100),f=r(2101),p=r(2102),h=r(2103),m=r(2104),g=r(2105),y=r(2106),v=r(2107),b=r(2108),_=r(2109),w=r(2110),S=r(2111),E=r(2112),k=r(2113),x=r(2114),T=r(2117),O=r(2116),C=r(2099),j=r(2118),P=r(2119),I=r(2121),R=r(2120),A=r(2122),M=r(2124),D=r(2123),N=r(2125),L=r(2088),B=r(2126),F=r(2127),z=r(2128),U=r(2129),H=r(2132),q=r(2133),V=r(2130),W=r(2134),G=r(2135),$=r(2136),K=r(2137),Y=r(2138),J=r(2139),X=r(2131),Q=r(2140)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2087),o=r(2077),i=r(2088),a=r(2089),s=r(2079),l=r(2090);function c(e,t,r){var c=null,u=(0,o.default)(!0),d=null,f=i.default,p=null,h=(0,s.withPath)(m);function m(o){var i,a,s,l,m,g=(o=(0,n.default)(o)).length,y=!1,v=new Array(g),b=new Array(g);for(null==d&&(p=f(m=h())),i=0;i<=g;++i){if(!(i<g&&u(l=o[i],i,o))===y)if(y=!y)a=i,p.areaStart(),p.lineStart();else{for(p.lineEnd(),p.lineStart(),s=i-1;s>=a;--s)p.point(v[s],b[s]);p.lineEnd(),p.areaEnd()}y&&(v[i]=+e(l,i,o),b[i]=+t(l,i,o),p.point(c?+c(l,i,o):v[i],r?+r(l,i,o):b[i]))}if(m)return p=null,m+""||null}function g(){return(0,a.default)().defined(u).curve(f).context(d)}return e="function"==typeof e?e:void 0===e?l.x:(0,o.default)(+e),t="function"==typeof t?t:void 0===t?(0,o.default)(0):(0,o.default)(+t),r="function"==typeof r?r:void 0===r?l.y:(0,o.default)(+r),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),c=null,m):e},m.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),m):e},m.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:(0,o.default)(+e),m):c},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),r=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),m):t},m.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,o.default)(+e),m):r},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(r)},m.lineX1=function(){return g().x(c).y(t)},m.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(!!e),m):u},m.curve=function(e){return arguments.length?(f=e,null!=d&&(p=f(d)),m):f},m.context=function(e){return arguments.length?(null==e?d=p=null:p=f(d=e),m):d},m}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,slice:()=>n});var n=Array.prototype.slice;function o(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}},(e,t,r)=>{"use strict";function n(e){this._context=e}function o(e){return new n(e)}r.r(t),r.d(t,{default:()=>o}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2087),o=r(2077),i=r(2088),a=r(2079),s=r(2090);function l(e,t){var r=(0,o.default)(!0),l=null,c=i.default,u=null,d=(0,a.withPath)(f);function f(o){var i,a,s,f=(o=(0,n.default)(o)).length,p=!1;for(null==l&&(u=c(s=d())),i=0;i<=f;++i)!(i<f&&r(a=o[i],i,o))===p&&((p=!p)?u.lineStart():u.lineEnd()),p&&u.point(+e(a,i,o),+t(a,i,o));if(s)return u=null,s+""||null}return e="function"==typeof e?e:void 0===e?s.x:(0,o.default)(e),t="function"==typeof t?t:void 0===t?s.y:(0,o.default)(t),f.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),f):e},f.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),f):t},f.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.default)(!!e),f):r},f.curve=function(e){return arguments.length?(c=e,null!=l&&(u=c(l)),f):c},f.context=function(e){return arguments.length?(null==e?l=u=null:u=c(l=e),f):l},f}},(e,t,r)=>{"use strict";function n(e){return e[0]}function o(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2087),o=r(2077),i=r(2092),a=r(2093),s=r(2078);function l(){var e=a.default,t=i.default,r=null,l=(0,o.default)(0),c=(0,o.default)(s.tau),u=(0,o.default)(0);function d(o){var i,a,d,f,p,h=(o=(0,n.default)(o)).length,m=0,g=new Array(h),y=new Array(h),v=+l.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,c.apply(this,arguments)-v)),_=Math.min(Math.abs(b)/h,u.apply(this,arguments)),w=_*(b<0?-1:1);for(i=0;i<h;++i)(p=y[g[i]=i]=+e(o[i],i,o))>0&&(m+=p);for(null!=t?g.sort(function(e,r){return t(y[e],y[r])}):null!=r&&g.sort(function(e,t){return r(o[e],o[t])}),i=0,d=m?(b-h*w)/m:0;i<h;++i,v=f)a=g[i],f=v+((p=y[a])>0?p*d:0)+w,y[a]={data:o[a],index:i,value:p,startAngle:v,endAngle:f,padAngle:_};return y}return d.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),d):e},d.sortValues=function(e){return arguments.length?(t=e,r=null,d):t},d.sort=function(e){return arguments.length?(r=e,t=null,d):r},d.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,o.default)(+e),d):l},d.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,o.default)(+e),d):c},d.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),d):u},d}},(e,t,r)=>{"use strict";function n(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2095),o=r(2086),i=r(2096);function a(){var e=(0,o.default)().curve(n.curveRadialLinear),t=e.curve,r=e.lineX0,a=e.lineX1,s=e.lineY0,l=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,i.lineRadial)(r())},delete e.lineX0,e.lineEndAngle=function(){return(0,i.lineRadial)(a())},delete e.lineX1,e.lineInnerRadius=function(){return(0,i.lineRadial)(s())},delete e.lineY0,e.lineOuterRadius=function(){return(0,i.lineRadial)(l())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{curveRadialLinear:()=>n,default:()=>i});var n=i(r(2088).default);function o(e){this._curve=e}function i(e){function t(t){return new o(e(t))}return t._curve=e,t}o.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,lineRadial:()=>i});var n=r(2095),o=r(2089);function i(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}function a(){return i((0,o.default)().curve(n.curveRadialLinear))}},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{link:()=>u,linkHorizontal:()=>d,linkRadial:()=>p,linkVertical:()=>f});var n=r(2087),o=r(2077),i=r(2099),a=r(2079),s=r(2090);function l(e){return e.source}function c(e){return e.target}function u(e){let t=l,r=c,i=s.x,u=s.y,d=null,f=null,p=(0,a.withPath)(h);function h(){let o;const a=n.slice.call(arguments),s=t.apply(this,a),l=r.apply(this,a);if(null==d&&(f=e(o=p())),f.lineStart(),a[0]=s,f.point(+i.apply(this,a),+u.apply(this,a)),a[0]=l,f.point(+i.apply(this,a),+u.apply(this,a)),f.lineEnd(),o)return f=null,o+""||null}return h.source=function(e){return arguments.length?(t=e,h):t},h.target=function(e){return arguments.length?(r=e,h):r},h.x=function(e){return arguments.length?(i="function"==typeof e?e:(0,o.default)(+e),h):i},h.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),h):u},h.context=function(t){return arguments.length?(null==t?d=f=null:f=e(d=t),h):d},h}function d(){return u(i.bumpX)}function f(){return u(i.bumpY)}function p(){const e=u(i.bumpRadial);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bumpRadial:()=>l,bumpX:()=>a,bumpY:()=>s});var n=r(2097);class o{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class i{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const r=(0,n.default)(this._x0,this._y0),o=(0,n.default)(this._x0,this._y0=(this._y0+t)/2),i=(0,n.default)(e,this._y0),a=(0,n.default)(e,t);this._context.moveTo(...r),this._context.bezierCurveTo(...o,...i,...a)}this._x0=e,this._y0=t}}function a(e){return new o(e,!0)}function s(e){return new o(e,!1)}function l(e){return new i(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,symbolsFill:()=>v,symbolsStroke:()=>b});var n=r(2077),o=r(2079),i=r(2101),a=r(2102),s=r(2103),l=r(2104),c=r(2105),u=r(2106),d=r(2107),f=r(2108),p=r(2109),h=r(2110),m=r(2111),g=r(2112),y=r(2113);const v=[a.default,s.default,l.default,d.default,p.default,h.default,g.default],b=[a.default,u.default,y.default,m.default,i.default,f.default,c.default];function _(e,t){let r=null,i=(0,o.withPath)(s);function s(){let n;if(r||(r=n=i()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:(0,n.default)(e||a.default),t="function"==typeof t?t:(0,n.default)(void 0===t?64:+t),s.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(t),s):e},s.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),s):t},s.context=function(e){return arguments.length?(r=null==e?null:e,s):r},s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2078);const o=(0,n.sqrt)(3),i={draw(e,t){const r=.59436*(0,n.sqrt)(t+(0,n.min)(t/28,.75)),i=r/2,a=i*o;e.moveTo(0,r),e.lineTo(0,-r),e.moveTo(-a,-i),e.lineTo(a,i),e.moveTo(-a,i),e.lineTo(a,-i)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=(0,n.sqrt)(t/n.pi);e.moveTo(r,0),e.arc(0,0,r,0,n.tau)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=(0,n.sqrt)(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2078);const o=(0,n.sqrt)(1/3),i=2*o,a={draw(e,t){const r=(0,n.sqrt)(t/i),a=r*o;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=.62625*(0,n.sqrt)(t);e.moveTo(0,-r),e.lineTo(r,0),e.lineTo(0,r),e.lineTo(-r,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=.87559*(0,n.sqrt)(t-(0,n.min)(t/7,2));e.moveTo(-r,0),e.lineTo(r,0),e.moveTo(0,r),e.lineTo(0,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=(0,n.sqrt)(t),o=-r/2;e.rect(o,o,r,r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=.4431*(0,n.sqrt)(t);e.moveTo(r,r),e.lineTo(r,-r),e.lineTo(-r,-r),e.lineTo(-r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2078);const o=(0,n.sin)(n.pi/10)/(0,n.sin)(7*n.pi/10),i=(0,n.sin)(n.tau/10)*o,a=-(0,n.cos)(n.tau/10)*o,s={draw(e,t){const r=(0,n.sqrt)(.8908130915292852*t),o=i*r,s=a*r;e.moveTo(0,-r),e.lineTo(o,s);for(let t=1;t<5;++t){const i=n.tau*t/5,a=(0,n.cos)(i),l=(0,n.sin)(i);e.lineTo(l*r,-a*r),e.lineTo(a*o-l*s,l*o+a*s)}e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2078);const o=(0,n.sqrt)(3),i={draw(e,t){const r=-(0,n.sqrt)(t/(3*o));e.moveTo(0,2*r),e.lineTo(-o*r,-r),e.lineTo(o*r,-r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2078);const o=(0,n.sqrt)(3),i={draw(e,t){const r=.6824*(0,n.sqrt)(t),i=r/2,a=r*o/2;e.moveTo(0,-r),e.lineTo(a,i),e.lineTo(-a,i),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2078);const o=-.5,i=(0,n.sqrt)(3)/2,a=1/(0,n.sqrt)(12),s=3*(a/2+1),l={draw(e,t){const r=(0,n.sqrt)(t/s),l=r/2,c=r*a,u=l,d=r*a+r,f=-u,p=d;e.moveTo(l,c),e.lineTo(u,d),e.lineTo(f,p),e.lineTo(o*l-i*c,i*l+o*c),e.lineTo(o*u-i*d,i*u+o*d),e.lineTo(o*f-i*p,i*f+o*p),e.lineTo(o*l+i*c,o*c-i*l),e.lineTo(o*u+i*d,o*d-i*u),e.lineTo(o*f+i*p,o*p-i*f),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2078);const o={draw(e,t){const r=.6189*(0,n.sqrt)(t-(0,n.min)(t/6,1.7));e.moveTo(-r,-r),e.lineTo(r,r),e.moveTo(-r,r),e.lineTo(r,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2115),o=r(2116);function i(e){this._context=e}function a(e){return new i(e)}i.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:(0,o.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function o(e){this._context=e}function i(e){return new o(e)}r.r(t),r.d(t,{Basis:()=>o,default:()=>i,point:()=>n}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2116);function o(e){this._context=e}function i(e){return new o(e)}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2116);function o(e,t){this._basis=new n.Basis(e),this._beta=t}o.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,o=e[0],i=t[0],a=e[r]-o,s=t[r]-i,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+n*a),this._beta*t[l]+(1-this._beta)*(i+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const i=function e(t){function r(e){return 1===t?new n.Basis(e):new o(e,t)}return r.beta=function(t){return e(+t)},r}(.85)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalClosed:()=>i,default:()=>a});var n=r(2115),o=r(2120);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,o.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function o(e,t){this._context=e,this._k=(1-t)/6}r.r(t),r.d(t,{Cardinal:()=>o,default:()=>i,point:()=>n}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const i=function e(t){function r(e){return new o(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalOpen:()=>o,default:()=>i});var n=r(2120);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const i=function e(t){function r(e){return new o(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2119),o=r(2115),i=r(2123);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:o.default,areaEnd:o.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,i.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new n.CardinalClosed(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,point:()=>i});var n=r(2078),o=r(2120);function i(e,t,r){var o=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>n.epsilon){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>n.epsilon){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(o,i,a,s,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:i(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new o.Cardinal(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2121),o=r(2123);function i(e,t){this._context=e,this._alpha=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,o.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return t?new i(e,t):new n.CardinalOpen(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2115);function o(e){this._context=e}function i(e){return new o(e)}o.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}},(e,t,r)=>{"use strict";function n(e){return e<0?-1:1}function o(e,t,r){var o=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(o||i<0&&-0),s=(r-e._y1)/(i||o<0&&-0),l=(a*i+s*o)/(o+i);return(n(a)+n(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function i(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function a(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function s(e){this._context=e}function l(e){this._context=new c(e)}function c(e){this._context=e}function u(e){return new s(e)}function d(e){return new l(e)}r.r(t),r.d(t,{monotoneX:()=>u,monotoneY:()=>d}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,r=o(this,e,t)),r);break;default:a(this,this._t0,r=o(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(l.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}}},(e,t,r)=>{"use strict";function n(e){this._context=e}function o(e){var t,r,n=e.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function i(e){return new n(e)}r.r(t),r.d(t,{default:()=>i}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=o(e),i=o(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},(e,t,r)=>{"use strict";function n(e,t){this._context=e,this._t=t}function o(e){return new n(e,.5)}function i(e){return new n(e,0)}function a(e){return new n(e,1)}r.r(t),r.d(t,{default:()=>o,stepAfter:()=>a,stepBefore:()=>i}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2087),o=r(2077),i=r(2130),a=r(2131);function s(e,t){return e[t]}function l(e){const t=[];return t.key=e,t}function c(){var e=(0,o.default)([]),t=a.default,r=i.default,c=s;function u(o){var i,a,s=Array.from(e.apply(this,arguments),l),u=s.length,d=-1;for(const e of o)for(i=0,++d;i<u;++i)(s[i][d]=[0,+c(e,s[i].key,d,o)]).data=e;for(i=0,a=(0,n.default)(t(s));i<u;++i)s[a[i]].index=i;return r(s,a),s}return u.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(Array.from(t)),u):e},u.value=function(e){return arguments.length?(c="function"==typeof e?e:(0,o.default)(+e),u):c},u.order=function(e){return arguments.length?(t=null==e?a.default:"function"==typeof e?e:(0,o.default)(Array.from(e)),u):t},u.offset=function(e){return arguments.length?(r=null==e?i.default:e,u):r},u}},(e,t,r)=>{"use strict";function n(e,t){if((o=e.length)>1)for(var r,n,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(n=a,a=e[t[i]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2130);function o(e,t){if((o=e.length)>0){for(var r,o,i,a=0,s=e[0].length;a<s;++a){for(i=r=0;r<o;++r)i+=e[r][a][1]||0;if(i)for(r=0;r<o;++r)e[r][a][1]/=i}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";function n(e,t){if((s=e.length)>0)for(var r,n,o,i,a,s,l=0,c=e[t[0]].length;l<c;++l)for(i=a=0,r=0;r<s;++r)(o=(n=e[t[r]][l])[1]-n[0])>0?(n[0]=i,n[1]=i+=o):o<0?(n[1]=a,n[0]=a+=o):(n[0]=0,n[1]=o)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2130);function o(e,t){if((r=e.length)>0){for(var r,o=0,i=e[t[0]],a=i.length;o<a;++o){for(var s=0,l=0;s<r;++s)l+=e[s][o][1]||0;i[o][1]+=i[o][0]=-l/2}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2130);function o(e,t){if((i=e.length)>0&&(o=(r=e[t[0]]).length)>0){for(var r,o,i,a=0,s=1;s<o;++s){for(var l=0,c=0,u=0;l<i;++l){for(var d=e[t[l]],f=d[s][1]||0,p=(f-(d[s-1][1]||0))/2,h=0;h<l;++h){var m=e[t[h]];p+=(m[s][1]||0)-(m[s-1][1]||0)}c+=f,u+=p*f}r[s-1][1]+=r[s-1][0]=a,c&&(a-=u/c)}r[s-1][1]+=r[s-1][0]=a,(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2131);function o(e){var t=e.map(i);return(0,n.default)(e).sort(function(e,r){return t[e]-t[r]})}function i(e){for(var t,r=-1,n=0,o=e.length,i=-1/0;++r<o;)(t=+e[r][1])>i&&(i=t,n=r);return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,sum:()=>i});var n=r(2131);function o(e){var t=e.map(i);return(0,n.default)(e).sort(function(e,r){return t[e]-t[r]})}function i(e){for(var t,r=0,n=-1,o=e.length;++n<o;)(t=+e[n][1])&&(r+=t);return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2137);function o(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2136),o=r(2137);function i(e){var t,r,i=e.length,a=e.map(o.sum),s=(0,n.default)(e),l=0,c=0,u=[],d=[];for(t=0;t<i;++t)r=s[t],l<c?(l+=a[r],u.push(r)):(c+=a[r],d.push(r));return d.reverse().concat(u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2131);function o(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(296),o=r(668),i=r.n(o),a=r(2083);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={style:i().shape({bottom:i().object,left:i().object,right:i().object,top:i().object}),marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},d="rv-xy-plot__borders-bottom",f="rv-xy-plot__borders",p="rv-xy-plot__borders-left",h="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function g(e){var t=e.marginTop,r=e.marginBottom,o=e.marginLeft,i=e.marginRight,s=e.innerWidth,c=e.innerHeight,u=e.style,g=e.className,y=c+t+r,v=s+o+i;return n.default.createElement("g",{className:(0,a.getCombinedClassName)(f,g)},n.default.createElement("rect",{className:(0,a.getCombinedClassName)(d,"".concat(g,"-bottom")),style:l(l({},u.all),u.bottom),x:0,y:y-r,width:v,height:r}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(p,"".concat(g,"-left")),style:l(l({},u.all),u.left),x:0,y:0,width:o,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(g,"-right")),style:l(l({},u.all),u.right),x:v-i,y:0,width:i,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(g,"-top")),style:l(l({},u.all),u.top),x:0,y:0,width:v,height:t}))}g.displayName="Borders",g.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},g.propTypes=u,g.requiresSVG=!0;const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(668),i=r.n(o),a=r(2083);function s(e){return s="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},s(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(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}}),t&&c(e,t)}(s,e);var t,r,o,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,o=[{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"render",value:function(){var e=this.props,t=e.innerHeight,r=e.innerWidth,o=e.marginBottom,i=e.marginLeft,s=e.marginRight,l=e.marginTop,c=e.className,u=e.includeMargin,d=e.style,f=e.text,p=(r+(u?i+s:0))*e.xPercent+(u?0:i),h=(t+(u?l+o:0))*e.yPercent+(u?l:0);return n.default.createElement("g",{transform:"translate(".concat(p,", ").concat(h,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",c)},n.default.createElement("text",d,f))}}])&&l(t.prototype,r),o&&l(t,o),s}(n.default.PureComponent);f.displayName="ChartLabel",f.propTypes={className:i().string,includeMargin:i().bool,style:i().object,text:i().string.isRequired,xPercent:i().number.isRequired,yPercent:i().number.isRequired},f.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(2015),s=r(1985),l=r(2144);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],b=function(e){!function(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}}),t&&m(e,t)}(c,e);var t,r,o,i=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop;return{left:e.marginLeft,top:n,width:t,height:r,style:{},tickTotal:(0,l.getTicksTotalFromSize)(Math.min(t,r))}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.centerX,o=e.centerY;if(t)return n.default.createElement(s.default,p({},this.props,{animatedProps:v}),n.default.createElement(c,p({},this.props,{animation:null})));var i=d(d({},this._getDefaultProps()),this.props),u=i.tickTotal,f=i.tickValues,h=i.marginLeft,m=i.marginTop,g=i.rRange,y=i.style,b=(0,a.getAttributeScale)(i,"x"),_=(0,a.getAttributeScale)(i,"y"),w=(0,l.getTickValues)(b,u,f);return n.default.createElement("g",{transform:"translate(".concat(b(r)+h,",").concat(_(o)+m,")"),className:"rv-xy-plot__circular-grid-lines"},w.reduce(function(e,t,r){var o=b(t);return g&&(o<g[0]||o>g[1])?e:e.concat([n.default.createElement("circle",p({cx:0,cy:0,r:o},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:y}))])},[]))}}])&&h(t.prototype,r),o&&h(t,o),c}(n.PureComponent);b.displayName="CircularGridLines",b.propTypes={centerX:i().number,centerY:i().number,width:i().number,height:i().number,top:i().number,left:i().number,rRange:i().arrayOf(i().number),style:i().object,tickValues:i().arrayOf(i().number),tickTotal:i().number,animation:s.AnimationPropType,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},b.defaultProps={centerX:0,centerY:0},b.requiresSVG=!0;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DIRECTION:()=>a,ORIENTATION:()=>i,default:()=>f,generateFit:()=>c,generatePoints:()=>u,getAxisAngle:()=>d,getTickValues:()=>l,getTicksTotalFromSize:()=>s});var n=r(2017),o=r(2021),i={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",VERTICAL:"vertical",HORIZONTAL:"horizontal"},a={VERTICAL:"vertical",HORIZONTAL:"horizontal"};function s(e){return e<700?e>300?10:5:20}function l(e,t,r){return r||(e.ticks?e.ticks(t):e.domain())}function c(e,t){if(e.x===t.x)return{left:e.y,right:t.y,slope:0,offset:e.x};var r=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:r,offset:e.y-r*e.x}}function u(e){var t=e.axisStart,r=e.axisEnd,i=e.numberOfTicks,a=e.axisDomain,s=c(t,r),l=s.left,u=s.right,d=s.slope,f=s.offset,p=(u-l)/i,h=(0,o.default)().domain([l,u]).range(a),m=t.x===r.x;return{slope:m?1/0:d,points:(0,n.default)(l,u+p,p).map(function(e){return m?{y:e,x:d*e+f,text:h(e)}:{x:e,y:d*e+f,text:h(e)}}).slice(0,i+1)}}function d(e,t){return e.x===t.x?t.y>e.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}const f={DIRECTION:a,ORIENTATION:i,getTicksTotalFromSize:s,getTickValues:l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(296),o=r(668),i=r.n(o),a=r(2146),s=r(2159),l=r(2021),c=r(1974),u=r(1985),d=r(2081),f=r(2083),p=r(2082);function h(e){return h="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},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E=function(e){!function(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}}),t&&_(e,t)}(c,e);var t,r,o,i=w(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.bandwidth,o=e.className,i=e.colorRange,h=e.data,m=e.innerHeight,y=e.innerWidth,b=e.marginLeft,_=e.marginTop,w=e.style;if(!h||!y||!m)return null;if(t)return n.default.createElement(u.default,v({},this.props,{animatedProps:d.ANIMATED_SERIES_PROPS}),n.default.createElement(c,v({},this.props,{animation:null})));var S=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),k=(0,a.default)().x(function(e){return S(e)}).y(function(e){return E(e)}).size([y,m]).bandwidth(r)(h),x=(0,s.default)(),T=function(e){return e.reduce(function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}},{min:1/0,max:-1/0})}(k),O=T.min,C=T.max,j=(0,l.default)().domain([O,C]).range(i||p.CONTINUOUS_COLOR_RANGE);return n.default.createElement("g",{className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",o),transform:"translate(".concat(b,",").concat(_,")")},k.map(function(e,t){return n.default.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:x(e),style:g({fill:j(e.value)},w)})}))}}])&&b(t.prototype,r),o&&b(t,o),c}(c.default);E.propTypes=g(g({},c.default.propTypes),{},{animation:i().bool,bandwidth:i().number,className:i().string,marginLeft:i().number,marginTop:i().number,style:i().object}),E.defaultProps=g(g({},c.default.defaultProps),{},{bandwidth:40,style:{}});const k=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2147),o=r(2148),i=r(2022),a=r(2149),s=r(2150),l=r(2151);function c(e){return e[0]}function u(e){return e[1]}function d(){return 1}function f(){var e=c,t=u,r=d,f=960,p=500,h=20,m=2,g=3*h,y=f+2*g>>m,v=p+2*g>>m,b=(0,s.default)(20);function _(o){var i=new Float32Array(y*v),a=Math.pow(2,-m),s=-1;for(const n of o){var l=(e(n,++s,o)+g)*a,c=(t(n,s,o)+g)*a,u=+r(n,s,o);if(u&&l>=0&&l<y&&c>=0&&c<v){var d=Math.floor(l),f=Math.floor(c),p=l-d-.5,b=c-f-.5;i[d+f*y]+=(1-p)*(1-b)*u,i[d+1+f*y]+=p*(1-b)*u,i[d+1+(f+1)*y]+=p*b*u,i[d+(f+1)*y]+=(1-p)*b*u}}return(0,n.blur2)({data:i,width:y,height:v},h*a),i}function w(e){var t=_(e),r=b(t),n=Math.pow(2,2*m);return Array.isArray(r)||(r=(0,i.default)(Number.MIN_VALUE,(0,o.default)(t)/n,r)),(0,l.default)().size([y,v]).thresholds(r.map(e=>e*n))(t).map((e,t)=>(e.value=+r[t],S(e)))}function S(e){return e.coordinates.forEach(E),e}function E(e){e.forEach(k)}function k(e){e.forEach(x)}function x(e){e[0]=e[0]*Math.pow(2,m)-g,e[1]=e[1]*Math.pow(2,m)-g}function T(){return y=f+2*(g=3*h)>>m,v=p+2*g>>m,w}return w.contours=function(e){var t=_(e),r=(0,l.default)().size([y,v]),n=Math.pow(2,2*m),i=e=>{e=+e;var o=S(r.contour(t,e*n));return o.value=e,o};return Object.defineProperty(i,"max",{get:()=>(0,o.default)(t)/n}),i},w.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),w):e},w.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),w):t},w.weight=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.default)(+e),w):r},w.size=function(e){if(!arguments.length)return[f,p];var t=+e[0],r=+e[1];if(!(t>=0&&r>=0))throw new Error("invalid size");return f=t,p=r,T()},w.cellSize=function(e){if(!arguments.length)return 1<<m;if(!((e=+e)>=1))throw new Error("invalid cell size");return m=Math.floor(Math.log(e)/Math.LN2),T()},w.thresholds=function(e){return arguments.length?(b="function"==typeof e?e:Array.isArray(e)?(0,s.default)(a.slice.call(e)):(0,s.default)(e),w):b},w.bandwidth=function(e){if(!arguments.length)return Math.sqrt(h*(h+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return h=(Math.sqrt(4*e*e+1)-1)/2,T()},w}},(e,t,r)=>{"use strict";function n(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let r=e.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!t)return e;const n=c(t),o=e.slice();return n(e,o,0,r,1),n(o,e,0,r,1),n(e,o,0,r,1),e}r.r(t),r.d(t,{blur:()=>n,blur2:()=>o,blurImage:()=>i});const o=a(c),i=a(function(e){const t=c(e);return(e,r,n,o,i)=>{t(e,r,(n<<=2)+0,(o<<=2)+0,i<<=2),t(e,r,n+1,o+1,i),t(e,r,n+2,o+2,i),t(e,r,n+3,o+3,i)}});function a(e){return function(t,r,n=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((n=+n)>=0))throw new RangeError("invalid ry");let{data:o,width:i,height:a}=t;if(!((i=Math.floor(i))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:o.length/i))>=0))throw new RangeError("invalid height");if(!i||!a||!r&&!n)return t;const c=r&&e(r),u=n&&e(n),d=o.slice();return c&&u?(s(c,d,o,i,a),s(c,o,d,i,a),s(c,d,o,i,a),l(u,o,d,i,a),l(u,d,o,i,a),l(u,o,d,i,a)):c?(s(c,o,d,i,a),s(c,d,o,i,a),s(c,o,d,i,a)):u&&(l(u,o,d,i,a),l(u,d,o,i,a),l(u,o,d,i,a)),t}}function s(e,t,r,n,o){for(let i=0,a=n*o;i<a;)e(t,r,i,i+=n,1)}function l(e,t,r,n,o){for(let i=0,a=n*o;i<n;++i)e(t,r,i,i+a,n)}function c(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(r,n,o,i,a)=>{if(!((i-=a)>=o))return;let s=e*n[o];const l=a*e;for(let e=o,t=o+l;e<t;e+=a)s+=n[Math.min(i,e)];for(let e=o,c=i;e<=c;e+=a)s+=n[Math.min(i,e+l)],r[e]=s/t,s-=n[Math.max(o,e-l)]}}(e);const r=e-t,n=2*e+1;return(e,o,i,a,s)=>{if(!((a-=s)>=i))return;let l=t*o[i];const c=s*t,u=c+s;for(let e=i,t=i+c;e<t;e+=s)l+=o[Math.min(a,e)];for(let t=i,d=a;t<=d;t+=s)l+=o[Math.min(a,t+c)],e[t]=(l+r*(o[Math.max(i,t-u)]+o[Math.min(a,t+u)]))/n,l-=o[Math.max(i,t-c)]}}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2065),o=r(2152),i=r(2154),a=r(2022),s=r(2149),l=r(2155),c=r(2156),u=r(2150),d=r(2157),f=r(2158),p=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function h(){var e=1,t=1,r=o.default,h=S;function b(e){var t=r(e);if(Array.isArray(t))t=t.slice().sort(l.default);else{const r=(0,n.default)(e,m);for(t=(0,a.default)(...(0,i.default)(r[0],r[1],t),t);t[t.length-1]>=r[1];)t.pop();for(;t[1]<r[0];)t.shift()}return t.map(t=>_(e,t))}function _(r,n){const o=null==n?NaN:+n;if(isNaN(o))throw new Error(`invalid value: ${n}`);var i=[],a=[];return function(r,n,o){var i,a,s,l,c,u,d=new Array,f=new Array;i=a=-1,l=g(r[0],n),p[l<<1].forEach(h);for(;++i<e-1;)s=l,l=g(r[i+1],n),p[s|l<<1].forEach(h);p[l|0].forEach(h);for(;++a<t-1;){for(i=-1,l=g(r[a*e+e],n),c=g(r[a*e],n),p[l<<1|c<<2].forEach(h);++i<e-1;)s=l,l=g(r[a*e+e+i+1],n),u=c,c=g(r[a*e+i+1],n),p[s|l<<1|c<<2|u<<3].forEach(h);p[l|c<<3].forEach(h)}i=-1,c=r[a*e]>=n,p[c<<2].forEach(h);for(;++i<e-1;)u=c,c=g(r[a*e+i+1],n),p[c<<2|u<<3].forEach(h);function h(e){var t,r,n=[e[0][0]+i,e[0][1]+a],s=[e[1][0]+i,e[1][1]+a],l=w(n),c=w(s);(t=f[l])?(r=d[c])?(delete f[t.end],delete d[r.start],t===r?(t.ring.push(s),o(t.ring)):d[t.start]=f[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete f[t.end],t.ring.push(s),f[t.end=c]=t):(t=d[c])?(r=f[l])?(delete d[t.start],delete f[r.end],t===r?(t.ring.push(s),o(t.ring)):d[r.start]=f[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(n),d[t.start=l]=t):d[l]=f[c]={start:l,end:c,ring:[n,s]}}p[c<<3].forEach(h)}(r,o,function(e){h(e,r,o),(0,c.default)(e)>0?i.push([e]):a.push(e)}),a.forEach(function(e){for(var t,r=0,n=i.length;r<n;++r)if(-1!==(0,d.default)((t=i[r])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:n,coordinates:i}}function w(t){return 2*t[0]+t[1]*(e+1)*4}function S(r,n,o){r.forEach(function(r){var i=r[0],a=r[1],s=0|i,l=0|a,c=y(n[l*e+s]);i>0&&i<e&&s===i&&(r[0]=v(i,y(n[l*e+s-1]),c,o)),a>0&&a<t&&l===a&&(r[1]=v(a,y(n[(l-1)*e+s]),c,o))})}return b.contour=_,b.size=function(r){if(!arguments.length)return[e,t];var n=Math.floor(r[0]),o=Math.floor(r[1]);if(!(n>=0&&o>=0))throw new Error("invalid size");return e=n,t=o,b},b.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:Array.isArray(e)?(0,u.default)(s.slice.call(e)):(0,u.default)(e),b):r},b.smooth=function(e){return arguments.length?(h=e?S:f.default,b):h===S},b}function m(e){return isFinite(e)?e:NaN}function g(e,t){return null!=e&&+e>=t}function y(e){return null==e||isNaN(e=+e)?-1/0:e}function v(e,t,r,n){const o=n-t,i=r-t,a=isFinite(o)||isFinite(i)?o/i:Math.sign(o)/Math.sign(i);return isNaN(a)?e:e+a-.5}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2153);function o(e){return Math.max(1,Math.ceil(Math.log((0,n.default)(e))/Math.LN2)+1)}},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++r;else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(o=+o)>=o&&++r}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2022);function o(e,t,r){let o;for(;;){const i=(0,n.tickIncrement)(e,t,r);if(i===o||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),o=i}}},(e,t,r)=>{"use strict";function n(e,t){return e-t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=0,r=e.length,n=e[r-1][1]*e[0][0]-e[r-1][0]*e[0][1];++t<r;)n+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n=-1,i=t.length;++n<i;)if(r=o(e,t[n]))return r;return 0}function o(e,t){for(var r=t[0],n=t[1],o=-1,a=0,s=e.length,l=s-1;a<s;l=a++){var c=e[a],u=c[0],d=c[1],f=e[l],p=f[0],h=f[1];if(i(c,f,t))return 0;d>n!=h>n&&r<(p-u)*(n-d)/(h-d)+u&&(o=-o)}return o}function i(e,t,r){var n,o,i,a;return function(e,t,r){return(t[0]-e[0])*(r[1]-e[1])===(r[0]-e[0])*(t[1]-e[1])}(e,t,r)&&(o=e[n=+(e[0]===t[0])],i=r[n],a=t[n],o<=i&&i<=a||a<=i&&i<=o)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(2160),o=r(2161),i=r(2162),a=r(2166),s=r(2167),l=r(2168),c=r(2169),u=r(2170);function d(e,t){let r,d,f=3,p=4.5;function h(e){return e&&("function"==typeof p&&d.pointRadius(+p.apply(this,arguments)),(0,o.default)(e,r(d))),d.result()}return h.area=function(e){return(0,o.default)(e,r(i.default)),i.default.result()},h.measure=function(e){return(0,o.default)(e,r(c.default)),c.default.result()},h.bounds=function(e){return(0,o.default)(e,r(a.default)),a.default.result()},h.centroid=function(e){return(0,o.default)(e,r(s.default)),s.default.result()},h.projection=function(t){return arguments.length?(r=null==t?(e=null,n.default):(e=t).stream,h):e},h.context=function(e){return arguments.length?(d=null==e?(t=null,new u.default(f)):new l.default(t=e),"function"!=typeof p&&d.pointRadius(p),h):t},h.pointRadius=function(e){return arguments.length?(p="function"==typeof e?e:(d.pointRadius(+e),+e),h):p},h.digits=function(e){if(!arguments.length)return f;if(null==e)f=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);f=t}return null===t&&(d=new u.default(f)),h},h.projection(e).digits(f).context(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>e},(e,t,r)=>{"use strict";function n(e,t){e&&i.hasOwnProperty(e.type)&&i[e.type](e,t)}r.r(t),r.d(t,{default:()=>l});var o={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,o=-1,i=r.length;++o<i;)n(r[o].geometry,t)}},i={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)a(r[n],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)s(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,o=-1,i=r.length;++o<i;)n(r[o],t)}};function a(e,t,r){var n,o=-1,i=e.length-r;for(t.lineStart();++o<i;)n=e[o],t.point(n[0],n[1],n[2]);t.lineEnd()}function s(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)a(e[r],t,1);t.polygonEnd()}function l(e,t){e&&o.hasOwnProperty(e.type)?o[e.type](e,t):n(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n,o,i,a,s=r(2163),l=r(2164),c=r(2165),u=new s.Adder,d=new s.Adder,f={point:c.default,lineStart:c.default,lineEnd:c.default,polygonStart:function(){f.lineStart=p,f.lineEnd=g},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=c.default,u.add((0,l.abs)(d)),d=new s.Adder},result:function(){var e=u/2;return u=new s.Adder,e}};function p(){f.point=h}function h(e,t){f.point=m,n=i=e,o=a=t}function m(e,t){d.add(a*e-i*t),i=e,a=t}function g(){m(n,o)}const y=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Adder:()=>n,fcumsum:()=>i,fsum:()=>o});class n{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let r=0;for(let n=0;n<this._n&&n<32;n++){const o=t[n],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[r++]=a),e=i}return t[r]=e,this._n=r+1,this}valueOf(){const e=this._partials;let t,r,n,o=this._n,i=0;if(o>0){for(i=e[--o];o>0&&(t=i,r=e[--o],i=t+r,n=r-(i-t),!n););o>0&&(n<0&&e[o-1]<0||n>0&&e[o-1]>0)&&(r=2*n,t=i+r,r==t-i&&(i=t))}return i}}function o(e,t){const r=new n;if(void 0===t)for(let t of e)(t=+t)&&r.add(t);else{let n=-1;for(let o of e)(o=+t(o,++n,e))&&r.add(o)}return+r}function i(e,t){const r=new n;let o=-1;return Float64Array.from(e,void 0===t?e=>r.add(+e||0):n=>r.add(+t(n,++o,e)||0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>d,acos:()=>x,asin:()=>T,atan:()=>f,atan2:()=>p,ceil:()=>m,cos:()=>h,degrees:()=>c,epsilon:()=>n,epsilon2:()=>o,exp:()=>g,floor:()=>y,halfPi:()=>a,haversin:()=>O,hypot:()=>v,log:()=>b,pi:()=>i,pow:()=>_,quarterPi:()=>s,radians:()=>u,sign:()=>S,sin:()=>w,sqrt:()=>E,tan:()=>k,tau:()=>l});var n=1e-6,o=1e-12,i=Math.PI,a=i/2,s=i/4,l=2*i,c=180/i,u=i/180,d=Math.abs,f=Math.atan,p=Math.atan2,h=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,v=Math.hypot,b=Math.log,_=Math.pow,w=Math.sin,S=Math.sign||function(e){return e>0?1:e<0?-1:0},E=Math.sqrt,k=Math.tan;function x(e){return e>1?0:e<-1?i:Math.acos(e)}function T(e){return e>1?a:e<-1?-a:Math.asin(e)}function O(e){return(e=w(e/2))*e}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2165),o=1/0,i=o,a=-o,s=a;const l={point:function(e,t){e<o&&(o=e);e>a&&(a=e);t<i&&(i=t);t>s&&(s=t)},lineStart:n.default,lineEnd:n.default,polygonStart:n.default,polygonEnd:n.default,result:function(){var e=[[o,i],[a,s]];return a=s=-(i=o=1/0),e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n,o,i,a,s=r(2164),l=0,c=0,u=0,d=0,f=0,p=0,h=0,m=0,g=0,y={point:v,lineStart:b,lineEnd:S,polygonStart:function(){y.lineStart=E,y.lineEnd=k},polygonEnd:function(){y.point=v,y.lineStart=b,y.lineEnd=S},result:function(){var e=g?[h/g,m/g]:p?[d/p,f/p]:u?[l/u,c/u]:[NaN,NaN];return l=c=u=d=f=p=h=m=g=0,e}};function v(e,t){l+=e,c+=t,++u}function b(){y.point=_}function _(e,t){y.point=w,v(i=e,a=t)}function w(e,t){var r=e-i,n=t-a,o=(0,s.sqrt)(r*r+n*n);d+=o*(i+e)/2,f+=o*(a+t)/2,p+=o,v(i=e,a=t)}function S(){y.point=v}function E(){y.point=x}function k(){T(n,o)}function x(e,t){y.point=T,v(n=i=e,o=a=t)}function T(e,t){var r=e-i,n=t-a,o=(0,s.sqrt)(r*r+n*n);d+=o*(i+e)/2,f+=o*(a+t)/2,p+=o,h+=(o=a*e-i*t)*(i+e),m+=o*(a+t),g+=3*o,v(i=e,a=t)}const O=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2164),o=r(2165);function i(e){this._context=e}i.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,n.tau)}},result:o.default}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n,o,i,a,s,l=r(2163),c=r(2164),u=r(2165),d=new l.Adder,f={point:u.default,lineStart:function(){f.point=p},lineEnd:function(){n&&h(o,i),f.point=u.default},polygonStart:function(){n=!0},polygonEnd:function(){n=null},result:function(){var e=+d;return d=new l.Adder,e}};function p(e,t){f.point=h,o=a=e,i=s=t}function h(e,t){a-=e,s-=t,d.add((0,c.sqrt)(a*a+s*s)),a=e,s=t}const m=f},(e,t,r)=>{"use strict";let n,o,i,a;r.r(t),r.d(t,{default:()=>s});class s{constructor(e){this._append=null==e?l:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return l;if(t!==n){const e=10**t;n=t,o=function(t){let r=1;this._+=t[0];for(const n=t.length;r<n;++r)this._+=Math.round(arguments[r]*e)/e+t[r]}}return o}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==i||this._append!==o){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,i=e,o=this._append,a=this._,this._=t}this._+=a}}result(){const e=this._;return this._="",e.length?e:null}}function l(e){let t=1;this._+=e[0];for(const r=e.length;t<r;++t)this._+=arguments[t]+e[t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(296),o=r(668),i=r.n(o),a=r(2074),s=r(2015),l=r(2083);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){var t=b(e);if(t)return{title:"x",value:(0,a.transformValueToString)(t.x)}}function v(e){return e.map(function(e,t){if(e)return{value:e.y,title:t}})}function b(e){return(e||[]).find(function(e){return Boolean(e)})}var _=function(e){!function(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}}),t&&h(e,t)}(c,e);var t,r,o,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,o=[{key:"defaultProps",get:function(){return{titleFormat:y,itemsFormat:v,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:i().string,values:i().arrayOf(i().oneOfType([i().number,i().string,i().object,i().bool])),series:i().object,innerWidth:i().number,innerHeight:i().number,marginLeft:i().number,marginTop:i().number,orientation:i().oneOf(["left","right"]),itemsFormat:i().func,titleFormat:i().func,style:i().shape({line:i().object,title:i().object,box:i().object})}}}],(r=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,r=(0,e.itemsFormat)(t);return r?r.filter(function(e){return e}).map(function(e,t){return n.default.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},n.default.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",n.default.createElement("span",{className:"rv-crosshair__item__value"},e.value))}):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,r=e.titleFormat,o=e.style,i=r(t);return i?n.default.createElement("div",{className:"rv-crosshair__title",key:"title",style:o.title},n.default.createElement("span",{className:"rv-crosshair__title__title"},i.title),": ",n.default.createElement("span",{className:"rv-crosshair__title__value"},i.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,o=e.values,i=e.marginTop,a=e.marginLeft,c=e.innerWidth,u=e.innerHeight,f=e.style,p=b(o);if(!p)return null;var h=(0,s.getAttributeFunctor)(this.props,"x")(p),m=this.props.orientation,g=a+h,y=i,v="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?h>c/2?"left":"right":m);return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-crosshair",r),style:{left:"".concat(g,"px"),top:"".concat(y,"px")}},n.default.createElement("div",{className:"rv-crosshair__line",style:d({height:"".concat(u,"px")},f.line)}),n.default.createElement("div",{className:v},t||n.default.createElement("div",{className:"rv-crosshair__inner__content",style:f.box},n.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems()))))}}])&&p(t.prototype,r),o&&p(t,o),c}(n.PureComponent);_.displayName="Crosshair";const w=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(296),o=r(668),i=r.n(o),a=r(1974),s=r(1985),l=r(2081),c=r(2083);function u(e){return u="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},u(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w={stroke:"blue",fill:"blue"};function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"diamond":return n.default.createElement("polygon",{style:r,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var o=b(new Array(5)).map(function(e,r){var n=r/5*Math.PI*2,o=n+Math.PI/10,i=n-Math.PI/10,a=t/2.61;return"\n ".concat(Math.cos(i)*t," ").concat(Math.sin(i)*t,"\n ").concat(Math.cos(o)*a," ").concat(Math.sin(o)*a,"\n ")}).join(" ");return n.default.createElement("polygon",{points:o,x:"0",y:"0",height:t,width:t,style:r});case"square":return n.default.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:r});default:return n.default.createElement("circle",{cx:"0",cy:"0",r:t/2,style:r})}}var E=function(e){!function(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}}),t&&p(e,t)}(a,e);var t,r,o,i=h(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.className,i=t.customComponent,u=t.data,f=t.innerHeight,p=t.innerWidth,h=t.marginLeft,m=t.marginTop,g=t.style,v=t.size;if(!u||!p||!f)return null;if(r)return n.default.createElement(s.default,d({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(a,d({},this.props,{animation:!1})));var b=this._getAttributeFunctor("x"),_=this._getAttributeFunctor("y"),w=u.map(function(t,r){var o={x:b(t),y:_(t)},a=function(e){var t=e.customComponent,r=e.defaultType,n=e.positionInPixels,o=e.positionFunctions,i=e.style,a=e.propsSize,s=t.size,l=y(y({},i),t.style||{}),c=t.customComponent;return c||"string"!=typeof r?c?"string"==typeof c?S(c||r,s,l):c(t,n,l,o):r(t,n,l,o):S(r,s||a,l)}({customComponent:t,positionInPixels:o,defaultType:i,positionFunctions:{x:b,y:_},style:g,propsSize:v});return n.default.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(r),transform:"translate(".concat(o.x,",").concat(o.y,")"),onMouseEnter:function(r){return e._valueMouseOverHandler(t,r)},onMouseLeave:function(r){return e._valueMouseOutHandler(t,r)}},a)});return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",o),transform:"translate(".concat(h,",").concat(m,")")},w)}}])&&f(t.prototype,r),o&&f(t,o),a}(a.default);E.propTypes={animation:i().bool,className:i().string,customComponent:i().oneOfType([i().string,i().func]),data:i().arrayOf(i().shape({x:i().oneOfType([i().string,i().number]).isRequired,y:i().oneOfType([i().string,i().number]).isRequired})).isRequired,marginLeft:i().number,marginTop:i().number,style:i().object,size:i().number,onValueMouseOver:i().func,onValueMouseOut:i().func},E.defaultProps=y(y({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const k=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(296),o=r(2033),i=r(668),a=r.n(i),s=r(1974),l=r(2174),c=r(1985),u=r(2083);function d(e){return d="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},d(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],w=function(e){!function(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}}),t&&y(e,t)}(a,e);var t,r,o,i=v(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,o=e.marginLeft,i=e.marginTop,s=e.axisStart,d=e.axisEnd,f=e.axisDomain,h=e.numberOfTicks,g=e.tickValue,y=e.tickSize,v=e.style;if(t)return n.default.createElement(c.default,m({},this.props,{animatedProps:_}),n.default.createElement(a,m({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),w=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-manipulable-axis rv-xy-plot__axis",r),transform:"translate(".concat(o,",").concat(i,")")},n.default.createElement("line",m({},p({x1:b({x:s.x}),x2:b({x:d.x}),y1:w({y:s.y}),y2:w({y:d.y})},v.line),{className:"rv-xy-plot__axis__line"})),n.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,l.default)({axisDomain:f,axisEnd:{x:b(d),y:w(d)},axisStart:{x:b(s),y:w(s)},numberOfTicks:h,tickValue:g,tickSize:y,style:v})))}}])&&g(t.prototype,r),o&&g(t,o),a}(s.default),S=(0,o.format)(".2r");w.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return S(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},w.propTypes=p(p({},s.default.propTypes),{},{axisDomain:a().arrayOf(a().number).isRequired,axisEnd:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,axisStart:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,className:a().string,numberOfTicks:a().number,tickValue:a().func,tickSize:a().number,style:a().shape({line:a().object,ticks:a().object,text:a().object})}),w.displayName="DecorativeAxis";const E=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(296),o=r(2144);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=e.axisDomain,r=e.numberOfTicks,a=e.axisStart,l=e.axisEnd,c=e.tickValue,u=e.tickSize,d=e.style,f=(0,o.generatePoints)({axisStart:a,axisEnd:l,numberOfTicks:r,axisDomain:t}).points,p=(0,o.getAxisAngle)(a,l)+Math.PI/2;return f.map(function(e,t){var r=s({x1:0,y1:0,x2:u*Math.cos(p),y2:u*Math.sin(p)},d.ticks),o=s({x:u*Math.cos(p),y:u*Math.sin(p),textAnchor:"start"},d.text);return n.default.createElement("g",{key:t,transform:"translate(".concat(e.x,", ").concat(e.y,")"),className:"rv-xy-plot__axis__tick"},n.default.createElement("line",i({},r,{className:"rv-xy-plot__axis__tick__line"})),n.default.createElement("text",i({},o,{className:"rv-xy-plot__axis__tick__text"}),c(e.text)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(296),o=r(668),i=r.n(o),a=r(2083);function s(e){var t=e.className;return n.default.createElement("defs",{className:(0,a.getCombinedClassName)("rv-gradient-defs",t)},e.children)}s.displayName="GradientDefs",s.requiresSVG=!0,s.propTypes={className:i().string},s.defaultProps={className:""};const l=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(296),o=r(668),i=r.n(o),a=r(2015),s=r(2083),l=r(1985),c=r(2144);function u(e){return u="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},u(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=c.DIRECTION.VERTICAL,_=c.DIRECTION.HORIZONTAL,w={direction:i().oneOf([b,_]),attr:i().string.isRequired,width:i().number,height:i().number,top:i().number,left:i().number,style:i().object,tickValues:i().arrayOf(i().oneOfType([i().number,i().string])),tickTotal:i().number,animation:l.AnimationPropType,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},S={direction:b},E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],k=function(e){!function(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}}),t&&g(e,t)}(u,e);var t,r,o,i=y(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return t=u,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,o=e.marginLeft,i=e.direction;return{left:o,top:n,width:t,height:r,tickTotal:(0,c.getTicksTotalFromSize)(i===b?t:r)}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className;if(t)return n.default.createElement(l.default,h({},this.props,{animatedProps:E}),n.default.createElement(u,h({},this.props,{animation:null})));var o=f(f({},this._getDefaultProps()),this.props),i=o.attr,d=o.direction,m=o.width,g=o.height,y=o.style,v=o.tickTotal,_=o.tickValues,w=o.top,S=o.left,k=d===b,x=k?"y":"x",T=k?"x":"y",O=k?g:m,C=(0,a.getAttributeScale)(o,i),j=(0,c.getTickValues)(C,v,_);return n.default.createElement("g",{transform:"translate(".concat(S,",").concat(w,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",r)},j.map(function(e,t){var r,o=C(e),i=(p(r={},"".concat(T,"1"),o),p(r,"".concat(T,"2"),o),p(r,"".concat(x,"1"),0),p(r,"".concat(x,"2"),O),r);return n.default.createElement("line",h({},i,{key:t,className:"rv-xy-plot__grid-lines__line",style:y}))}))}}])&&m(t.prototype,r),o&&m(t,o),u}(n.PureComponent);k.displayName="GridLines",k.defaultProps=S,k.propTypes=w,k.requiresSVG=!0;const x=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(296),o=r(1985),i=r(2081),a=r(2083),s=r(1974);function l(e){return l="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},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(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}}),t&&h(e,t)}(c,e);var t,r,s,l=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return t=c,s=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e||"y"===e}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.className,l=t.data,d=t.marginLeft,p=t.marginTop,h=t.style;if(!l)return null;if(r)return n.default.createElement(o.default,f({},this.props,{animatedProps:i.ANIMATED_SERIES_PROPS}),n.default.createElement(c,f({},this.props,{animation:null})));var m=u({rectStyle:{}},h).rectStyle,g=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),v=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),w=this._getScaleDistance("x"),S=this._getScaleDistance("y");return n.default.createElement("g",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--heatmap",s),transform:"translate(".concat(d,",").concat(p,")")},l.map(function(t,r){var o=u(u({style:u({stroke:_&&_(t),fill:b&&b(t),opacity:v&&v(t)},h)},m),{},{x:g(t)-w/2,y:y(t)-S/2,width:w,height:S,onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}});return n.default.createElement("rect",f({key:r},o))}))}}])&&p(t.prototype,r),s&&p(t,s),c}(s.default);y.propTypes=u({},s.default.propTypes),y.displayName="HeatmapSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2179),l=r(2021),c=r(2081),u=r(2083),d=r(2082),f=r(1974);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){m(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return g="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},g(e)}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k=function(e){!function(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}}),t&&b(e,t)}(d,e);var t,r,o,i=_(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.className,i=t.colorRange,f=t.data,p=t.innerHeight,h=t.innerWidth,m=t.marginLeft,g=t.marginTop,v=t.radius,b=t.sizeHexagonsWithCount,_=t.style,w=t.xOffset,E=t.yOffset;if(!f)return null;if(r)return n.default.createElement(a.default,y({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(d,y({},this.props,{animation:null})));var k=this._getAttributeFunctor("x"),x=this._getAttributeFunctor("y"),T=(0,s.hexbin)().x(function(e){return k(e)+w}).y(function(e){return x(e)+E}).radius(v).size([h,p]),O=T.hexagon(),C=T(f),j=function(e,t){var r=e.countDomain;return r||[0,Math.max.apply(Math,S(t.map(function(e){return e.length})))]}(this.props,C),P=(0,l.default)().domain(j).range(i),I=(0,l.default)().domain(j).range([0,v]);return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--hexbin",o),transform:"translate(".concat(m,",").concat(g,")")},C.map(function(t,r){var o={style:_,d:b?T.hexagon(I(t.length)):O,fill:P(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}};return n.default.createElement("path",y({key:String(r)},o))}))}}])&&v(t.prototype,r),o&&v(t,o),d}(f.default);k.propTypes=h(h({},f.default.propTypes),{},{radius:i().number}),k.defaultProps={radius:20,colorRange:d.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},k.displayName="HexbinSeries";const x=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hexbin:()=>n.default});var n=r(2180)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=Math.PI/3,o=[0,n,2*n,3*n,4*n,5*n];function i(e){return e[0]}function a(e){return e[1]}function s(){var e,t,r,s=0,l=0,c=1,u=1,d=i,f=a;function p(e){var n,o={},i=[],a=e.length;for(n=0;n<a;++n)if(!isNaN(l=+d.call(null,s=e[n],n,e))&&!isNaN(c=+f.call(null,s,n,e))){var s,l,c,u=Math.round(c/=r),p=Math.round(l=l/t-(1&u)/2),h=c-u;if(3*Math.abs(h)>1){var m=l-p,g=p+(l<p?-1:1)/2,y=u+(c<u?-1:1),v=l-g,b=c-y;m*m+h*h>v*v+b*b&&(p=g+(1&u?1:-1)/2,u=y)}var _=p+"-"+u,w=o[_];w?w.push(s):(i.push(w=o[_]=[s]),w.x=(p+(1&u)/2)*t,w.y=u*r)}return i}function h(e){var t=0,r=0;return o.map(function(n){var o=Math.sin(n)*e,i=-Math.cos(n)*e,a=o-t,s=i-r;return t=o,r=i,[a,s]})}return p.hexagon=function(t){return"m"+h(null==t?e:+t).join("l")+"z"},p.centers=function(){for(var n=[],o=Math.round(l/r),i=Math.round(s/t),a=o*r;a<u+e;a+=r,++o)for(var d=i*t+(1&o)*t/2;d<c+t/2;d+=t)n.push([d,a]);return n},p.mesh=function(){var t=h(e).slice(0,4).join("l");return p.centers().map(function(e){return"M"+e+"m"+t}).join("")},p.x=function(e){return arguments.length?(d=e,p):d},p.y=function(e){return arguments.length?(f=e,p):f},p.radius=function(o){return arguments.length?(t=2*(e=+o)*Math.sin(n),r=1.5*e,p):e},p.size=function(e){return arguments.length?(s=l=0,c=+e[0],u=+e[1],p):[c-s,u-l]},p.extent=function(e){return arguments.length?(s=+e[0][0],l=+e[0][1],c=+e[1][0],u=+e[1][1],p):[[s,l],[c,u]]},p.radius(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(1974),s=r(2015),l=r(2083);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e){return d="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},d(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var b=function(e){!function(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}}),t&&p(e,t)}(a,e);var t,r,o,i=h(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(m(e=i.call.apply(i,[this].concat(r))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=a,(r=[{key:"_getDrawArea",value:function(e,t){var r=this.state,n=r.startLocX,o=r.startLocY,i=this.props,a=i.enableX,s=i.enableY,l=i.highlightWidth,c=i.highlightHeight,u=i.innerWidth,d=i.innerHeight,f=i.marginLeft,p=i.marginRight,h=i.marginBottom,m=i.marginTop,g=l||u+f+p,y=c||d+m+h;return{bottom:s?Math.max(o,t):y,right:a?Math.max(n,e):g,left:a?Math.min(e,n):0,top:s?Math.min(t,o):0}}},{key:"_getDragArea",value:function(e,t){var r=this.props,n=r.enableX,o=r.enableY,i=this.state,a=i.startLocX,s=i.startLocY,l=i.dragArea;return{bottom:l.bottom+(o?t-s:0),left:l.left+(n?e-a:0),right:l.right+(n?e-a:0),top:l.top+(o?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var r=this.props,n=r.enableX,o=r.enableY,i=this.state,a=i.dragArea,s=i.brushArea,l=s.left,c=s.right,u=s.top,d=s.bottom,f=a&&(e<l||e>c),p=a&&(t<u||t>d);return n&&o?f||p:n?f:!o||p}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,r=t.enableX,n=t.enableY,o=t.marginLeft,i=t.marginTop,a=(0,s.getAttributeScale)(this.props,"x"),l=(0,s.getAttributeScale)(this.props,"y");return r&&n?{bottom:l.invert(e.bottom),left:a.invert(e.left-o),right:a.invert(e.right-o),top:l.invert(e.top)}:n?{bottom:l.invert(e.bottom-i),top:l.invert(e.top-i)}:r?{left:a.invert(e.left-o),right:a.invert(e.right-o)}:{}}},{key:"startBrushing",value:function(e){var t=this,r=this.props,n=r.onBrushStart,o=r.onDragStart,i=r.drag,a=this.state.dragArea,s=v(e.nativeEvent),l=s.xLoc,c=s.yLoc,u=function(e,r){var n={bottom:c,left:l,right:l,top:c};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:l,startLocY:c})},d=this._clickedOutsideDrag(l,c);if(i&&!a||!i||d)return u(!1,d),void(n&&n(e));i&&a&&(u(!0,d),o&&o(e))}},{key:"stopBrushing",value:function(){var e=this.state,t=e.brushing,r=e.dragging,n=e.brushArea;if(t||r){var o=this.props,i=o.onBrushEnd,a=o.onDragEnd,s=o.drag,l=Math.abs(n.right-n.left)<5,c=Math.abs(n.top-n.bottom)<5||l;this.setState({brushing:!1,dragging:!1,brushArea:s?n:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:s&&!c&&n}),t&&i&&i(c?null:this._convertAreaToCoordinates(n)),s&&a&&a(c?null:this._convertAreaToCoordinates(n))}}},{key:"onBrush",value:function(e){var t=this.props,r=t.onBrush,n=t.onDrag,o=t.drag,i=this.state,a=i.brushing,s=i.dragging,l=v(e.nativeEvent),c=l.xLoc,u=l.yLoc;if(a){var d=this._getDrawArea(c,u);this.setState({brushArea:d}),r&&r(this._convertAreaToCoordinates(d))}if(o&&s){var f=this._getDragArea(c,u);this.setState({brushArea:f}),n&&n(this._convertAreaToCoordinates(f))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.color,o=t.className,i=t.highlightHeight,a=t.highlightWidth,c=t.highlightX,u=t.highlightY,d=t.innerWidth,f=t.innerHeight,p=t.marginLeft,h=t.marginRight,m=t.marginTop,g=t.marginBottom,y=t.opacity,v=this.state.brushArea,b=v.left,_=v.right,w=v.top,S=v.bottom,E=0;c&&(E=(0,s.getAttributeScale)(this.props,"x")(c));var k=0;u&&(k=(0,s.getAttributeScale)(this.props,"y")(u));var x=a||p+h+d,T=i||m+g+f;return n.default.createElement("g",{transform:"translate(".concat(E,", ").concat(k,")"),className:(0,l.getCombinedClassName)(o,"rv-highlight-container")},n.default.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(x,0),height:Math.max(T,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),n.default.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:r,x:b,y:w,width:Math.min(Math.max(0,_-b),x),height:Math.min(Math.max(0,S-w),T)}))}}])&&f(t.prototype,r),o&&f(t,o),a}(a.default);b.displayName="HighlightOverlay",b.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},b.propTypes=u(u({},a.default.propTypes),{},{enableX:i().bool,enableY:i().bool,highlightHeight:i().number,highlightWidth:i().number,highlightX:i().oneOfType([i().string,i().number]),highlightY:i().oneOfType([i().string,i().number]),onBrushStart:i().func,onDragStart:i().func,onBrush:i().func,onDrag:i().func,onBrushEnd:i().func,onDragEnd:i().func});const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(296),o=r(668),i=r.n(o),a=r(2074),s=r(2015),l=r(2083);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},v={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function b(e){return Object.keys(e).map(function(t){return{title:t,value:(0,a.transformValueToString)(e[t])}})}var _=function(e){!function(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}}),t&&h(e,t)}(c,e);var t,r,o,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,o=[{key:"defaultProps",get:function(){return{format:b,align:{horizontal:y.AUTO,vertical:y.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:i().number,marginLeft:i().number,innerWidth:i().number,innerHeight:i().number,scales:i().object,value:i().object,format:i().func,style:i().object,className:i().string,align:i().shape({horizontal:i().oneOf([y.AUTO,y.LEFT,y.RIGHT,y.LEFT_EDGE,y.RIGHT_EDGE]),vertical:i().oneOf([y.AUTO,y.BOTTOM,y.TOP,y.BOTTOM_EDGE,y.TOP_EDGE])}),getAlignStyle:i().func,orientation:i().oneOf([v.BOTTOM_LEFT,v.BOTTOM_RIGHT,v.TOP_LEFT,v.TOP_RIGHT])}}}],(r=[{key:"_getAlign",value:function(e,t){var r=this.props,n=r.innerWidth,o=r.innerHeight,i=r.orientation,a=r.align,s=a.horizontal,l=a.vertical,c=i?this._mapOrientationToAlign(i):{horizontal:s,vertical:l};return s===y.AUTO&&(c.horizontal=e>n/2?y.LEFT:y.RIGHT),l===y.AUTO&&(c.vertical=t>o/2?y.TOP:y.BOTTOM),c}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation,r=t?"rv-hint--orientation-".concat(t):"";return"".concat(r," rv-hint--horizontalAlign-").concat(e.horizontal,"\n rv-hint--verticalAlign-").concat(e.vertical)}},{key:"_getAlignStyle",value:function(e,t,r){return d(d({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,r))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,r=t.innerHeight;return{bottom:t.marginBottom+r-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,r=t.innerWidth;return{right:t.marginRight+r-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,r=e.getAlignStyle,n=(0,s.getAttributeFunctor)(this.props,"x")(t),o=(0,s.getAttributeFunctor)(this.props,"y")(t),i=this._getAlign(n,o);return{position:r?r(i,n,o):this._getAlignStyle(i,n,o),positionClassName:this._getAlignClassNames(i)}}},{key:"_getXCSS",value:function(e,t){switch(e){case y.LEFT_EDGE:return this._getCSSLeft(null);case y.RIGHT_EDGE:return this._getCSSRight(null);case y.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case y.TOP_EDGE:return this._getCSSTop(null);case y.BOTTOM_EDGE:return this._getCSSBottom(null);case y.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case v.BOTTOM_LEFT:return{horizontal:y.LEFT,vertical:y.BOTTOM};case v.BOTTOM_RIGHT:return{horizontal:y.RIGHT,vertical:y.BOTTOM};case v.TOP_LEFT:return{horizontal:y.LEFT,vertical:y.TOP};case v.TOP_RIGHT:return{horizontal:y.RIGHT,vertical:y.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,r=e.format,o=e.children,i=e.style,a=e.className,s=this._getPositionInfo(),c=s.position,u=s.positionClassName;return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-hint",u,a),style:d(d(d({},i),c),{},{position:"absolute"})},o||n.default.createElement("div",{className:"rv-hint__content",style:i.content},r(t).map(function(e,t){return n.default.createElement("div",{key:"rv-hint".concat(t),style:i.row},n.default.createElement("span",{className:"rv-hint__title",style:i.title},e.title),": ",n.default.createElement("span",{className:"rv-hint__value",style:i.value},e.value))})))}}])&&p(t.prototype,r),o&&p(t,o),c}(n.PureComponent);_.displayName="Hint",_.ORIENTATION=v,_.ALIGN=y;const w=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(1974),i=r(2184);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(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}}),t&&c(e,t)}(d,e);var t,r,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(i.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,r),o&&l(t,o),d}(o.default);f.displayName="HorizontalBarSeries";const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2081),l=r(2083),c=r(1974);function u(e){return u="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},u(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(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}}),t&&g(e,t)}(d,e);var t,r,o,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,o=[{key:"propTypes",get:function(){return f(f({},c.default.propTypes),{},{linePosAttr:i().string,valuePosAttr:i().string,lineSizeAttr:i().string,valueSizeAttr:i().string,cluster:i().string,barWidth:i().number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.className,i=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr,_=t.barWidth;if(!i)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,h({},this.props,{animation:null})));var w=(0,s.getStackParams)(this.props),S=w.sameTypeTotal,E=w.sameTypeIndex,k=this._getScaleDistance(c),x=this._getAttributeFunctor(c),T=this._getAttributeFunctor(v),O=this._getAttr0Functor(v),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),j=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("opacity"),I=k/2*_;return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",o),transform:"translate(".concat(m,",").concat(g,")")},i.map(function(t,r){var o,i=2*I,a=x(t),s=i/S-(S-1)/S,l=a-I+s*E+E,d=(p(o={style:f({opacity:P&&P(t),stroke:j&&j(t),fill:C&&C(t)},y)},c,l),p(o,u,s),p(o,v,Math.min(O(t),T(t))),p(o,b,Math.abs(-O(t)+T(t))),p(o,"onClick",function(r){return e._valueClickHandler(t,r)}),p(o,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),p(o,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),p(o,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),o);return n.default.createElement("rect",h({key:"".concat(r)},d))}))}}])&&m(t.prototype,r),o&&m(t,o),d}(c.default);b.displayName="BarSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1974),o=r(2186);function i(e){return i="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},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(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}}),t&&u(e,t)}(a,e);var t,r,n,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){o.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);p.displayName="HorizontalBarSeriesCanvas",p.propTypes=s({},n.default.propTypes);const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(668),o=r.n(n),i=r(1987),a=r(2082),s=r(2015),l=r(2081),c=r(1974);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){return p="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},p(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(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}}),t&&m(e,t)}(c,e);var t,r,n,o=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,o=e.lineSizeAttr,c=e.valuePosAttr,u=e.marginTop,d=e.marginBottom;if(r&&0!==r.length){var f=function(e,t){var r=(0,s.getScaleObjectFromProps)(e,t);return r?r.distance:0}(e,n),p=(0,s.getAttributeFunctor)(e,n),h=(0,s.getAttributeFunctor)(e,c),m=(0,s.getAttr0Functor)(e,c),g=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),v=(0,s.getAttributeFunctor)(e,"opacity"),b=f/2*.85,_=2*b,w=(0,l.getStackParams)(e),S=w.sameTypeTotal,E=w.sameTypeIndex;r.forEach(function(e){var r=p(e)-b,n=_/S-(S-1)/S,s=(0,i.rgb)(g(e)),l=(0,i.rgb)(y(e)),f=v(e)||a.DEFAULT_OPACITY,w=r+n*E+E,k=Math.min(m(e),h(e)),x="x"===c?k:w,T="y"===c?k:w,O=Math.abs(-m(e)+h(e)),C="height"===o?n:O,j="width"===o?n:O;t.beginPath(),t.rect(x+d,T+u,j,C),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(f,")"),t.fill(),t.strokeStyle="rgba(".concat(l.r,", ").concat(l.g,", ").concat(l.b,", ").concat(f,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&h(t.prototype,r),n&&h(t,n),c}(c.default);v.displayName="BarSeriesCanvas",v.defaultProps=d(d({},c.default.defaultProps),{},{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),v.propTypes=d({},c.default.propTypes);const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(296),o=r(668),i=r.n(o),a=r(2144),s=r(2176);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=a.DIRECTION.HORIZONTAL,f=c(c({},s.default.propTypes),{},{direction:i().oneOf([d])}),p={direction:d,attr:"y"};function h(e){return n.default.createElement(s.default,e)}h.displayName="HorizontalGridLines",h.propTypes=f,h.defaultProps=p,h.requiresSVG=!0;const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(1974),i=r(2189);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(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}}),t&&c(e,t)}(d,e);var t,r,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(i.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,r),o&&l(t,o),d}(o.default);f.displayName="HorizontalRectSeries";const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2081),l=r(2083),c=r(1974);function u(e){return u="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},u(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(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}}),t&&g(e,t)}(d,e);var t,r,o,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,o=[{key:"propTypes",get:function(){return f(f({},c.default.propTypes),{},{linePosAttr:i().string,valuePosAttr:i().string,lineSizeAttr:i().string,valueSizeAttr:i().string})}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.className,i=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr;if(!i)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,h({},this.props,{animation:null})));var _=this._getAttributeFunctor(c),w=this._getAttr0Functor(c),S=this._getAttributeFunctor(v),E=this._getAttr0Functor(v),k=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),x=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),T=this._getAttributeFunctor("opacity");return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--rect",o),transform:"translate(".concat(m,",").concat(g,")")},i.map(function(t,r){var o,i=(p(o={style:f({opacity:T&&T(t),stroke:x&&x(t),fill:k&&k(t)},y)},c,w(t)),p(o,u,Math.abs(_(t)-w(t))),p(o,v,Math.min(E(t),S(t))),p(o,b,Math.abs(-E(t)+S(t))),p(o,"onClick",function(r){return e._valueClickHandler(t,r)}),p(o,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),p(o,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),p(o,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),o);return n.default.createElement("rect",h({key:String(r)},i))}))}}])&&m(t.prototype,r),o&&m(t,o),d}(c.default);b.displayName="RectSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1974),o=r(2191);function i(e){return i="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},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(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}}),t&&u(e,t)}(a,e);var t,r,n,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){o.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);p.displayName="HorizontalRectSeriesCanvas",p.propTypes=s({},n.default.propTypes);const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(668),o=r.n(n),i=r(1987),a=r(2082),s=r(2015),l=r(1974);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return f="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},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(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}}),t&&h(e,t)}(l,e);var t,r,n,o=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.apply(this,arguments)}return t=l,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,o=e.lineSizeAttr,l=e.marginLeft,c=e.marginTop,u=e.valuePosAttr;if(r&&0!==r.length){var d=(0,s.getAttributeFunctor)(e,n),f=(0,s.getAttr0Functor)(e,n),p=(0,s.getAttributeFunctor)(e,u),h=(0,s.getAttr0Functor)(e,u),m=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,i.rgb)(m(e)),n=(0,i.rgb)(g(e)),s=y(e)||a.DEFAULT_OPACITY,v=f(e),b=Math.min(h(e),p(e)),_="x"===u?b:v,w="y"===u?b:v,S=Math.abs(d(e)-f(e)),E=Math.abs(-h(e)+p(e)),k="height"===o?S:E,x="width"===o?S:E;t.beginPath(),t.rect(_+l,w+c,x,k),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(s,")"),t.fill(),t.strokeStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(s,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&p(t.prototype,r),n&&p(t,n),l}(l.default);y.displayName="RectSeriesCanvas",y.defaultProps=u(u({},l.default.defaultProps),{},{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),y.propTypes=u({},l.default.propTypes);const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(296),o=r(668),i=r.n(o),a=r(1974),s=r(1985),l=r(2081),c=r(2083);function u(e){return u="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},u(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e,t){return e||(t?"start":"end")},_=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},w=function(e){!function(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}}),t&&g(e,t)}(a,e);var t,r,o,i=y(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.allowOffsetToBeReversed,i=t.className,u=t.data,d=t._data,p=t.getLabel,m=t.marginLeft,g=t.marginTop,y=t.rotation,v=t.style,w=t.xRange,S=t.yRange,E=t.labelAnchorX,k=t.labelAnchorY;if(!u)return null;if(r)return n.default.createElement(s.default,h({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(a,h({},this.props,{animation:null,_data:u})));var x=this._getAttributeFunctor("x"),T=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--label",i),transform:"translate(".concat(m,",").concat(g,")"),style:v},u.reduce(function(t,r,i){var a=r.style,s=r.xOffset,l=r.yOffset;if(!p(r))return t;var c=x(r),u=T(r),m=c<(w[1]-w[0])/2,g=u<Math.abs(S[1]-S[0])/2,v=c+(o&&m?-1:1)*(s||0),O=u+(o&&g?-1:1)*(l||0),C=0===r.rotation||r.rotation?r.rotation:y,j=f({dominantBaseline:_(k,g),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(r,t)},onContextMenu:function(t){return e._valueRightClickHandler(r,t)},onMouseOver:function(t){return e._valueMouseOverHandler(r,t)},onMouseOut:function(t){return e._valueMouseOutHandler(r,t)},textAnchor:b(E,m),x:v,y:O,transform:"rotate(".concat(C,",").concat(v,",").concat(O,")")},a),P=p(d?d[i]:r);return t.concat([n.default.createElement("text",h({key:String(i)},j),P)])},[]))}}])&&m(t.prototype,r),o&&m(t,o),a}(a.default);w.propTypes={animation:i().bool,allowOffsetToBeReversed:i().bool,className:i().string,data:i().arrayOf(i().shape({x:i().oneOfType([i().number,i().string]),y:i().oneOfType([i().number,i().string]),angle:i().number,radius:i().number,label:i().string,xOffset:i().number,yOffset:i().number,style:i().object})).isRequired,marginLeft:i().number,marginTop:i().number,rotation:i().number,style:i().object,xRange:i().arrayOf(i().number),yRange:i().arrayOf(i().number),labelAnchorX:i().string,labelAnchorY:i().string},w.defaultProps=f(f({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),w.displayName="LabelSeries";const S=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(1974),s=r(2194),l=r(2195);function c(e){return c="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},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g({},s.default.propTypes),{},{lineStyle:i().object,markStyle:i().object}),b=function(e){!function(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}}),t&&f(e,t)}(a,e);var t,r,o,i=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,o=[{key:"defaultProps",get:function(){return g(g({},s.default.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(r=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,r=e.markStyle,o=e.style;return n.default.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},n.default.createElement(s.default,u({},this.props,{style:g(g({},o),t)})),n.default.createElement(l.default,u({},this.props,{style:g(g({},o),r)})))}}])&&d(t.prototype,r),o&&d(t,o),a}(a.default);b.displayName="LineMarkSeries",b.propTypes=v;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(296),o=r(668),i=r.n(o),a=r(2089),s=r(2085),l=r(1985),c=r(2082),u=r(2081),d=r(2073),f=r(2083),p=r(1974);function h(e){return h="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},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E={dashed:"6, 2",solid:null},k=function(e){!function(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}}),t&&_(e,t)}(p,e);var t,r,o,i=w(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i.apply(this,arguments)}return t=p,(r=[{key:"_renderLine",value:function(e,t,r,n,o){var i=a.default();return null!==n&&("string"==typeof n&&s[n]?i=i.curve(s[n]):"function"==typeof n&&(i=i.curve(n))),(i=(i=i.defined(o)).x(t).y(r))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,o=e.data;if(this.props.nullAccessor&&(0,d.warning)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return n.default.createElement(l.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(p,v({},this.props,{animation:null})));var i=this.props,a=i.curve,s=i.marginLeft,h=i.marginTop,m=i.strokeDasharray,y=i.strokeStyle,b=i.strokeWidth,_=i.style,w=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y"),k=this._getAttributeValue("stroke")||this._getAttributeValue("color"),x=this._getAttributeValue("opacity"),T=Number.isFinite(x)?x:c.DEFAULT_OPACITY,O=this.props.nullAccessor||this.props.getNull,C=this._renderLine(o,w,S,a,O);return n.default.createElement("path",{d:C,className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(s,",").concat(h,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:T,strokeDasharray:E[y]||m,strokeWidth:b,stroke:k},_)})}}])&&b(t.prototype,r),o&&b(t,o),p}(p.default);k.displayName="LineSeries",k.propTypes=g(g({},p.default.propTypes),{},{strokeStyle:i().oneOf(Object.keys(E)),curve:i().oneOfType([i().string,i().func]),getNull:i().func}),k.defaultProps=g(g({},p.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const x=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2081),l=r(2073),c=r(2083),u=r(2082),d=r(1974);function f(e){return f="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},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){!function(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}}),t&&v(e,t)}(d,e);var t,r,o,i=b(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,(r=[{key:"_renderCircle",value:function(e,t,r,o,i){var a=this,s=i.fill,l=i.opacity,c=i.size,d=i.stroke,f=i.x,p=i.y,h={r:c?c(e):u.DEFAULT_SIZE,cx:f(e),cy:p(e),style:m({opacity:l?l(e):u.DEFAULT_OPACITY,stroke:d&&d(e),fill:s&&s(e),strokeWidth:r||1},o),key:t,onClick:function(t){return a._valueClickHandler(e,t)},onContextMenu:function(t){return a._valueRightClickHandler(e,t)},onMouseOver:function(t){return a._valueMouseOverHandler(e,t)},onMouseOut:function(t){return a._valueMouseOutHandler(e,t)}};return n.default.createElement("circle",h)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,o=t.className,i=t.data,u=t.marginLeft,f=t.marginTop,h=t.strokeWidth,m=t.style;this.props.nullAccessor&&(0,l.warning)("nullAccessor has been renamed to getNull",!0);var g=this.props.nullAccessor||this.props.getNull;if(!i)return null;if(r)return n.default.createElement(a.default,p({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,p({},this.props,{animation:null})));var y={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("opacity"),size:this._getAttributeFunctor("size"),stroke:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x:this._getAttributeFunctor("x"),y:this._getAttributeFunctor("y")};return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--mark",o),transform:"translate(".concat(u,",").concat(f,")")},i.map(function(t,r){return g(t)&&e._renderCircle(t,r,h,m,y)}))}}])&&y(t.prototype,r),o&&y(t,o),d}(d.default);w.displayName="MarkSeries",w.propTypes=m(m({},d.default.propTypes),{},{getNull:i().func,strokeWidth:i().number}),w.defaultProps={getNull:function(){return!0}};const S=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1974),o=r(2197),i=r(2198);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l="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},l(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(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}}),t&&u(e,t)}(s,e);var t,r,n,a=d(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,n=[{key:"renderLayer",value:function(e,t){i.default.renderLayer(e,t),o.default.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),s}(n.default);p.displayName="LineMarkSeriesCanvas",p.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},n.default.propTypes);const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(1987),o=r(2082),i=r(2015),a=r(1974);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(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}}),t&&d(e,t)}(l,e);var t,r,a,s=f(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return t=l,a=[{key:"renderLayer",value:function(e,t){var r=e.data,a=e.marginLeft,s=e.marginTop,l=(0,i.getAttributeFunctor)(e,"x"),c=(0,i.getAttributeFunctor)(e,"y"),u=(0,i.getAttributeFunctor)(e,"size")||function(){return o.DEFAULT_SIZE},d=(0,i.getAttributeFunctor)(e,"fill")||(0,i.getAttributeFunctor)(e,"color"),f=(0,i.getAttributeFunctor)(e,"stroke")||(0,i.getAttributeFunctor)(e,"color"),p=(0,i.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,n.rgb)(d(e)),i=(0,n.rgb)(f(e)),h=p(e)||o.DEFAULT_OPACITY;t.beginPath(),t.arc(l(e)+a,c(e)+s,u(e),0,2*Math.PI),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(h,")"),t.fill(),t.strokeStyle="rgba(".concat(i.r,", ").concat(i.g,", ").concat(i.b,", ").concat(h,")"),t.stroke()})}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&u(t.prototype,r),a&&u(t,a),l}(a.default);h.displayName="MarkSeriesCanvas",h.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},a.default.propTypes);const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(668),o=r.n(n),i=r(1987),a=r(2089),s=r(2085),l=r(296),c=r(2082),u=r(2015),d=r(1974);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return m="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},m(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=function(e){!function(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}}),t&&y(e,t)}(d,e);var t,r,n,o=v(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,n=e.data,o=e.marginLeft,l=e.marginTop,d=e.strokeWidth,f=e.strokeDasharray;if(n&&0!==n.length){var p=(0,u.getAttributeFunctor)(e,"x"),h=(0,u.getAttributeFunctor)(e,"y"),m=(0,u.getAttributeValue)(e,"stroke")||(0,u.getAttributeValue)(e,"color"),g=(0,i.rgb)(m),y=(0,u.getAttributeValue)(e,"opacity"),v=Number.isFinite(y)?y:c.DEFAULT_OPACITY,b=a.default().x(function(e){return p(e)+o}).y(function(e){return h(e)+l});"string"==typeof r&&s[r]?b=b.curve(s[r]):"function"==typeof r&&(b=b.curve(r)),t.beginPath(),t.strokeStyle="rgba(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(v,")"),t.lineWidth=d,f&&t.setLineDash(f),b.context(t)(n),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return l.default.createElement("div",null)}}])&&g(t.prototype,r),n&&g(t,n),d}(d.default);_.displayName="LineSeriesCanvas",_.defaultProps=p(p({},d.default.defaultProps),{},{strokeWidth:2}),_.propTypes=p(p({},d.default.propTypes),{},{strokeWidth:o().number});const w=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(296),o=r(1985),i=r(2081),a=r(2083),s=r(1974);function l(e){return l="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},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e,t,r){return"".concat(e.reduce(function(e,n,o){return"".concat(e," ").concat(o?"L":"M").concat(t(n)," ").concat(r(n))},"")," Z")},y=function(e){!function(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}}),t&&p(e,t)}(y,e);var t,r,l,m=h(y);function y(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),m.apply(this,arguments)}return t=y,l=[{key:"propTypes",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},s.default.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.color,l=t.className,c=t.data,u=t.marginLeft,f=t.marginTop,p=t.style;if(!c)return null;if(r)return n.default.createElement(o.default,d({},this.props,{animatedProps:i.ANIMATED_SERIES_PROPS}),n.default.createElement(y,d({},this.props,{animation:null})));var h=this._getAttributeFunctor("x"),m=this._getAttributeFunctor("y");return n.default.createElement("path",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--polygon",l),onMouseOver:function(t){return e._seriesMouseOverHandler(c,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(c,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:s||"#12939A",style:p,d:g(c,h,m),transform:"translate(".concat(u,",").concat(f,")")})}}])&&f(t.prototype,r),l&&f(t,l),y}(s.default);y.displayName="PolygonSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(1974),i=r(2184);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(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}}),t&&c(e,t)}(d,e);var t,r,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(i.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,r),o&&l(t,o),d}(o.default);f.displayName="VerticalBarSeries";const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1974),o=r(2186);function i(e){return i="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},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(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}}),t&&u(e,t)}(a,e);var t,r,n,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){o.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);p.displayName="HorizontalBarSeriesCanvas",p.propTypes=s({},n.default.propTypes);const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(296),o=r(668),i=r.n(o),a=r(2176);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(2144).DIRECTION.VERTICAL,d=l(l({},a.default.propTypes),{},{direction:i().oneOf([u])}),f={direction:u,attr:"x"};function p(e){return n.default.createElement(a.default,e)}p.displayName="VerticalGridLines",p.propTypes=d,p.defaultProps=f,p.requiresSVG=!0;const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(1974),i=r(2189);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(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}}),t&&c(e,t)}(d,e);var t,r,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(i.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,r),o&&l(t,o),d}(o.default);f.displayName="VerticalRectSeries";const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1974),o=r(2191);function i(e){return i="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},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(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}}),t&&u(e,t)}(a,e);var t,r,n,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){o.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);p.displayName="HorizontalRectSeriesCanvas",p.propTypes=s({},n.default.propTypes);const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(296),o=r(668),i=r.n(o),a=r(1975),s=r(2015),l=r(2083);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e){return e};function p(e){var t,r,o,i,c,d=e.className,f=e.extent,p=e.nodes,h=e.onBlur,m=e.onClick,g=e.onMouseUp,y=e.onMouseDown,v=e.onHover,b=e.polygonStyle,_=e.style,w=e.x,S=e.y,E=(0,a.voronoi)().x(w||(0,s.getAttributeFunctor)(e,"x")).y(S||(0,s.getAttributeFunctor)(e,"y")).extent(f||(r=(t=e).innerWidth,o=t.innerHeight,i=t.marginLeft,c=t.marginTop,[[i,c],[r+i,o+c]])).polygons(p),k=function(e){return function(t){t.preventDefault();var r=function(e){var t=e.nativeEvent,r=t.pageX,n=t.pageY,o=document.elementFromPoint(r,n);if(!o)return-1;var i=o.parentNode;return Array.prototype.indexOf.call(i.childNodes,o)}(t);if(r>-1&&r<E.length){var n=E[r];e(n.data)}}};return n.default.createElement("g",{className:(0,l.getCombinedClassName)(d,"rv-voronoi"),style:_,onTouchEnd:k(g),onTouchStart:k(y),onTouchMove:k(v),onTouchCancel:k(h)},E.map(function(e,t){return n.default.createElement("path",{className:"rv-voronoi__cell ".concat(e.data&&e.data.className||""),d:"M".concat(e.join("L"),"Z"),onClick:function(){return m(e.data)},onMouseUp:function(){return g(e.data)},onMouseDown:function(){return y(e.data)},onMouseOver:function(){return v(e.data)},onMouseOut:function(){return h(e.data)},fill:"none",style:u(u({pointerEvents:"all"},b),e.data&&e.data.style),key:t})}))}p.requiresSVG=!0,p.displayName="Voronoi",p.defaultProps={className:"",onBlur:f,onClick:f,onHover:f,onMouseDown:f,onMouseUp:f},p.propTypes={className:i().string,extent:i().arrayOf(i().arrayOf(i().number)),nodes:i().arrayOf(i().object).isRequired,onBlur:i().func,onClick:i().func,onHover:i().func,onMouseDown:i().func,onMouseUp:i().func,x:i().func,y:i().func};const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2081),l=r(2083),c=r(2082),u=r(1974);function d(e){return d="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},d(e)}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){!function(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}}),t&&h(e,t)}(u,e);var t,r,o,i=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,o=e.crossBarWidth,i=e.data,d=e.marginLeft,p=e.marginTop,h=e.strokeWidth,m=e.style;if(!i)return null;if(t)return n.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(u,f({},this.props,{animation:null})));var g={crossBarWidth:o,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:h,style:m,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--whisker",r),transform:"translate(".concat(d,",").concat(p,")")},i.map(function(e){return function(t,r){var o=e.crossBarWidth,i=e.opacityFunctor,a=e.sizeFunctor,s=e.strokeFunctor,l=e.strokeWidth,u=e.style,d=e.valueClickHandler,f=e.valueMouseOutHandler,p=e.valueMouseOverHandler,h=e.valueRightClickHandler,m=e.xFunctor,g=e.yFunctor,y=a?a(t):0,b=m(t),_=g(t),w=m({x:t.x+t.xVariance/2}),S=m({x:t.x-t.xVariance/2}),E=g({y:t.y+t.yVariance/2}),k=g({y:t.y-t.yVariance/2}),x=w&&b+y<w,T=E&&_-y>E;if(!x&&!T)return null;var O=v({opacity:i?i(t):c.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:l||1},u),C=o/2,j={x1:b+y,y1:_,x2:w,y2:_,style:O},P={x1:b-y,y1:_,x2:S,y2:_,style:O},I={x1:w,y1:_-C,x2:w,y2:_+C,style:O},R={x1:S,y1:_-C,x2:S,y2:_+C,style:O},A={x1:b,y1:_-y,x2:b,y2:E,style:O},M={x1:b,y1:_+y,x2:b,y2:k,style:O},D={x1:b-C,y1:E,x2:b+C,y2:E,style:O},N={x1:b-C,y1:k,x2:b+C,y2:k,style:O};return n.default.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return d(t,e)},onContextMenu:function(e){return h(t,e)},onMouseOver:function(e){return p(t,e)},onMouseOut:function(e){return f(t,e)}},x?n.default.createElement("g",{className:"x-whiskers"},n.default.createElement("line",j),n.default.createElement("line",P),n.default.createElement("line",I),n.default.createElement("line",R)):null,T?n.default.createElement("g",{className:"y-whiskers"},n.default.createElement("line",A),n.default.createElement("line",M),n.default.createElement("line",D),n.default.createElement("line",N)):null)}}(g)))}}])&&p(t.prototype,r),o&&p(t,o),u}(u.default);_.displayName="WhiskerSeries",_.propTypes=v(v({},u.default.propTypes),{},{strokeWidth:i().number}),_.defaultProps=v(v({},u.default.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});const w=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>P});var n=r(296),o=r(668),i=r.n(o),a=r(2208),s=r.n(a),l=r(2083),c=r(2015),u=r(2081),d=r(2224),f=r(1985),p=r(2082),h=r(2225);function m(e){return m="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},m(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return S(e)}(this,r)}}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){T(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=["x","y","radius","angle","color","fill","stroke","opacity","size"];function C(e){return e.map(function(e){return Array.isArray(e)?e.map(function(e){return x(x({},e),{},{parent:null})}):e})}var j=function(e){!function(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}}),t&&_(e,t)}(r,e);var t=w(r);function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),T(S(n=t.call(this,e)),"_clickHandler",function(e){var t=n.props.onClick;t&&t(e)}),T(S(n),"_doubleClickHandler",function(e){var t=n.props.onDoubleClick;t&&t(e)}),T(S(n),"_mouseDownHandler",function(e){var t=n.props,r=t.onMouseDown,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseDown&&o.onParentMouseDown(e)})}),T(S(n),"_mouseEnterHandler",function(e){var t=n.props,r=t.onMouseEnter,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseEnter&&o.onParentMouseEnter(e)})}),T(S(n),"_mouseLeaveHandler",function(e){var t=n.props,r=t.onMouseLeave,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseLeave&&o.onParentMouseLeave(e)})}),T(S(n),"_mouseMoveHandler",function(e){var t=n.props,r=t.onMouseMove,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseMove&&o.onParentMouseMove(e)})}),T(S(n),"_mouseUpHandler",function(e){var t=n.props,r=t.onMouseUp,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseUp&&o.onParentMouseUp(e)})}),T(S(n),"_touchCancelHandler",function(e){var t=n.props.onTouchCancel;t&&t(e)}),T(S(n),"_touchEndHandler",function(e){var t=n.props.onTouchEnd;t&&t(e)}),T(S(n),"_touchMoveHandler",function(e){var t=n.props,r=t.onTouchMove,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentTouchMove&&o.onParentTouchMove(e)})}),T(S(n),"_touchStartHandler",function(e){var t=n.props,r=t.onTouchStart,o=t.children;r&&r(e),(0,u.getSeriesChildren)(o).forEach(function(t,r){var o=n["series".concat(r)];o&&o.onParentTouchStart&&o.onParentTouchStart(e)})});var o=e.stackBy,i=(0,u.getSeriesChildren)(e.children),a=(0,u.getStackedData)(i,o);return n.state={scaleMixins:n._getScaleMixins(a,e),data:a},n}return b(r,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:f.AnimationPropType,className:i().string,dontCheckIfEmpty:i().bool,height:i().number.isRequired,margin:d.MarginPropType,onClick:i().func,onDoubleClick:i().func,onMouseDown:i().func,onMouseUp:i().func,onMouseEnter:i().func,onMouseLeave:i().func,onMouseMove:i().func,onTouchStart:i().func,onTouchMove:i().func,onTouchEnd:i().func,onTouchCancel:i().func,onWheel:i().func,stackBy:i().oneOf(O),style:i().object,width:i().number.isRequired}}}]),b(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=(0,u.getSeriesChildren)(e.children),r=(0,u.getStackedData)(t,e.stackBy),n=this.state.scaleMixins,o=this._getScaleMixins(r,e);(function(e,t,r){var n=x(x({},e),{},{_allData:r?C(e._allData):e._allData}),o=x(x({},t),{},{_allData:r?C(t._allData):t._allData});return s()(n,o)})(o,n,e.hasTreeStructure)||this.setState({scaleMixins:o,data:r})}},{key:"_getClonedChildComponents",value:function(){var e=this,t=this.props,r=this.props.animation,o=this.state,i=o.scaleMixins,a=o.data,s=(0,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),l=n.default.Children.toArray(this.props.children),f=(0,u.getSeriesPropsFromChildren)(l),p=(0,c.getXYPlotValues)(t,l);return l.map(function(t,o){var l=null;if(f[o]){var c=f[o].seriesIndex;l={data:a[c]}}return n.default.cloneElement(t,x(x(x(x(x(x(x({},s),{},{animation:r},l&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(f[o].seriesIndex)]=t}}:{}),f[o]),i),t.props),p[o]),l))})}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,d.getInnerDimensions)(e,d.DEFAULT_MARGINS),r=t.innerWidth,n=t.innerHeight,o=["color","fill","stroke"].reduce(function(t,r){var n="category"===e["".concat(r,"Type")]?p.EXTENDED_DISCRETE_COLOR_RANGE:p.CONTINUOUS_COLOR_RANGE;return x(x({},t),{},T({},"".concat(r,"Range"),n))},{});return x(x({xRange:[0,r],yRange:[n,0]},o),{},{opacityType:p.OPACITY_TYPE,sizeRange:p.SIZE_RANGE})}},{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter(function(e){return e}),o=(r=[]).concat.apply(r,g(n)),i=this._getDefaultScaleProps(t),a=(0,c.getOptionalScaleProps)(t),s=(0,c.extractScalePropsFromProps)(t,O),l=(0,c.getMissingScaleProps)(x(x(x({},i),a),s),o,O),d=(0,u.getSeriesChildren)(t.children),f={},p=new Set,h=new Set;return d.forEach(function(r,n){r&&e[n]&&O.forEach(function(e){var o=r.type.getParentConfig(e,r.props),i=o.isDomainAdjustmentNeeded,a=o.zeroBaseValue;if(i&&(p.add(e),h.add(n)),a){var s=t["".concat(e,"Domain")];f["".concat(e,"BaseValue")]=s?s[0]:0}})}),x(x(x(x(x({},i),f),s),l),{},{_allData:e,_adjustBy:Array.from(p),_adjustWhat:Array.from(h),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some(function(e){return e&&e.some(function(e){return e})})}},{key:"renderCanvasComponents",value:function(e){var t=e.filter(function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas});if(0===t.length)return null;var r=t[0].props,o=r.marginLeft,i=r.marginTop,a=r.marginBottom,s=r.marginRight,l=r.innerHeight,c=r.innerWidth;return n.default.createElement(h.default,{innerHeight:l,innerWidth:c,marginLeft:o,marginTop:i,marginBottom:a,marginRight:s},t)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.dontCheckIfEmpty,o=e.style,i=e.width,a=e.height,s=e.onWheel;if(!r&&this._isPlotEmpty())return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-xy-plot",t),style:x({width:"".concat(i,"px"),height:"".concat(a,"px")},this.props.style)});var c=this._getClonedChildComponents();return n.default.createElement("div",{style:{width:"".concat(i,"px"),height:"".concat(a,"px")},className:(0,l.getCombinedClassName)("rv-xy-plot",t)},n.default.createElement("svg",{className:"rv-xy-plot__inner",width:i,height:a,style:o,onClick:this._clickHandler,onDoubleClick:this._doubleClickHandler,onMouseDown:this._mouseDownHandler,onMouseUp:this._mouseUpHandler,onMouseMove:this._mouseMoveHandler,onMouseLeave:this._mouseLeaveHandler,onMouseEnter:this._mouseEnterHandler,onTouchStart:this._mouseDownHandler,onTouchMove:this._touchMoveHandler,onTouchEnd:this._touchEndHandler,onTouchCancel:this._touchCancelHandler,onWheel:s},c.filter(function(e){return e&&e.type.requiresSVG})),this.renderCanvasComponents(c),c.filter(function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas}))}}]),r}(n.default.Component);j.displayName="XYPlot";const P=j},(e,t,r)=>{var n=r(2209),o=r(163),i=r(2212),a=r(202),s=r(2217),l=r(2223),c=Date.prototype.getTime;function u(e,t,r){var p=r||{};return!!(p.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?p.strict?i(e,t):e==t:function(e,t,r){var i,p;if(typeof e!=typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=f(e),y=f(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var v=n(e),b=n(t)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),i=v.length-1;i>=0;i--)if(v[i]!=b[i])return!1;for(i=v.length-1;i>=0;i--)if(!u(e[p=v[i]],t[p],r))return!1;return!0}(e,t,p))}function d(e){return null==e}function f(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]))}e.exports=u},(e,t,r)=>{"use strict";var n=Array.prototype.slice,o=r(2210),i=Object.keys,a=i?function(e){return i(e)}:r(2211),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},(e,t,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(2210),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(l)for(var v=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=n},(e,t,r)=>{"use strict";var n=r(2213),o=r(209),i=r(2214),a=r(2215),s=r(2216),l=o(a(),Object);n(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},(e,t,r)=>{"use strict";var n=r(2209),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=r(211),l=r(212)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)c(e,i[s],t[i[s]],r[i[s]])};u.supportsDescriptors=!!l,e.exports=u},e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},(e,t,r)=>{"use strict";var n=r(2214);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(2215),o=r(2213);e.exports=function(){var e=n();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},(e,t,r)=>{"use strict";var n=r(2213),o=r(209),i=r(2218),a=r(2221),s=r(2222),l=o(a());n(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},(e,t,r)=>{"use strict";var n=r(2219),o=r(174),i=Object;e.exports=n(function(){if(null==this||this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0)},(e,t,r)=>{"use strict";var n=r(211),o=r(212)(),i=r(2220).functionsHaveConfigurableNames(),a=r(174);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!i||(o?n(e,"name",t,!0,!0):n(e,"name",t)),e}},e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r(function(){},"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==function(){}.bind().name},e.exports=t},(e,t,r)=>{"use strict";var n=r(2218),o=r(2213).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),e.get.call(r),"dy"===t)return e.get}}return n}},(e,t,r)=>{"use strict";var n=r(2213).supportsDescriptors,o=r(2221),i=r(184),a=Object.defineProperty,s=r(169),l=r(188),c=/a/;e.exports=function(){if(!n||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(c),r=i(t,"flags");return r&&r.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},(e,t,r)=>{"use strict";var n=r(166),o=n("Date.prototype.getDay"),i=n("Object.prototype.toString"),a=r(164)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Date]"===i(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_MARGINS:()=>d,MarginPropType:()=>u,getInnerDimensions:()=>l,getRadialLayoutMargin:()=>c});var n=r(668),o=r.n(n);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=e.margin,n=e.width,o=e.height,i=a(a({},t),"number"==typeof r?{left:r,right:r,top:r,bottom:r}:r),s=i.left,l=void 0===s?0:s,c=i.top,u=void 0===c?0:c,d=i.right,f=void 0===d?0:d,p=i.bottom,h=void 0===p?0:p;return{marginLeft:l,marginTop:u,marginRight:f,marginBottom:h,innerHeight:o-h-u,innerWidth:n-l-f}}function c(e,t,r){var n=e/2-r,o=t/2-r;return{bottom:o,left:n,right:n,top:o}}var u=o().oneOfType([o().shape({left:o().number,top:o().number,right:o().number,bottom:o().number}),o().number]),d={left:40,right:10,top:10,bottom:40}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(296),o=r(668),i=r.n(o),a=r(1986),s=r(1985),l=r(2081);function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t,r,n,o){e.clearRect(0,0,r,t),n.forEach(function(t){var r=t.interpolator,n=t.newProps,i=t.animation?r?r(o/30):r:function(){return{}};t.renderLayer(m(m({},n),i),e)})}var v=function(e){!function(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}}),t&&d(e,t)}(c,e);var t,r,o,i=f(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,o=[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}],(r=[{key:"componentDidMount",value:function(){var e=this.canvas.getContext("2d");if(e){var t=this.props.pixelRatio;e&&(e.scale(t,t),this.drawChildren(null,this.props,e))}}},{key:"componentDidUpdate",value:function(e){this.drawChildren(e,this.props,this.canvas.getContext("2d"))}},{key:"drawChildren",value:function(e,t,r){var n=t.children,o=t.innerHeight,i=t.innerWidth,c=t.marginBottom,u=t.marginLeft,d=t.marginRight,f=t.marginTop;if(r){var p,h,g=n.find(function(e){return e.props.animation}),v=o+f+c,b=i+u+d,_=(p=t.children,h=e?e.children:[],p.map(function(e,t){var r=h[t]?h[t].props:{},n=e.props,o=(0,s.extractAnimatedPropValues)(m(m({},r),{},{animatedProps:l.ANIMATED_SERIES_PROPS})),i=n?(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:l.ANIMATED_SERIES_PROPS})):null,c=(0,a.default)(o,i);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:c}}));g?function(e,t,r,n){var o=0,i=setInterval(function(){e?(y(e,t,r,n,o),o>30&&clearInterval(i),o+=1):clearInterval(i)},1)}(r,v,b,_):y(r,v,b,_)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.innerHeight,o=t.innerWidth,i=t.marginBottom,a=t.marginLeft,s=t.marginRight,l=t.marginTop,c=t.pixelRatio,u=r+l+i,d=o+a+s;return n.default.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},n.default.createElement("canvas",{className:"rv-xy-canvas-element",height:u*c,width:d*c,style:{height:"".concat(u,"px"),width:"".concat(d,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&u(t.prototype,r),o&&u(t,o),c}(n.Component);v.displayName="CanvasWrapper",v.propTypes={marginBottom:i().number.isRequired,marginLeft:i().number.isRequired,marginRight:i().number.isRequired,marginTop:i().number.isRequired,innerHeight:i().number.isRequired,innerWidth:i().number.isRequired,pixelRatio:i().number.isRequired};const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(296),o=r(668),i=r.n(o),a=r(2144),s=r(2227);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,p=c(c({},s.default.propTypes),{},{orientation:i().oneOf([d,f])}),h={orientation:f,attr:"x",attrAxis:"y"};function m(e){return n.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=p,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>P});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2144),l=r(2015),c=r(2083),u=r(2228),d=r(2229),f=r(2230);function p(e){return p="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},p(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var S=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],E=s.ORIENTATION.LEFT,k=s.ORIENTATION.RIGHT,x=s.ORIENTATION.TOP,T=s.ORIENTATION.BOTTOM,O={orientation:i().oneOf([E,k,x,T]),attr:i().string.isRequired,attrAxis:i().string,width:i().number,height:i().number,top:i().number,left:i().number,title:i().string,style:i().object,className:i().string,hideTicks:i().bool,hideLine:i().bool,on0:i().bool,tickLabelAngle:i().number,tickSize:i().number,tickSizeInner:i().number,tickSizeOuter:i().number,tickPadding:i().number,tickValues:i().arrayOf(i().oneOfType([i().number,i().string])),tickFormat:i().func,tickTotal:i().number,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},C={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:T},j=function(e){!function(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}}),t&&b(e,t)}(p,e);var t,r,o,i=_(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i.apply(this,arguments)}return t=p,(r=[{key:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,o=e.marginBottom,i=e.marginLeft,a=e.marginRight,l=e.orientation;return l===T?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:r+n,left:i,width:t,height:o}:l===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:i,width:t,height:n}:l===E?{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:0,width:i,height:r}:{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:i+t,width:a,height:r}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?S.filter(function(t){return e.nonAnimatedProps.indexOf(t)<0}):S;return n.default.createElement(a.default,y({},this.props,{animatedProps:t}),n.default.createElement(p,y({},this.props,{animation:null})))}var r=m(m({},this._getDefaultAxisProps()),this.props),o=r.attrAxis,i=r.className,s=r.height,h=r.hideLine,g=r.hideTicks,v=r.left,b=r.marginTop,_=r.on0,w=r.orientation,x=r.position,T=r.style,O=r.title,C=r.top,j=r.width,P=[E,k].indexOf(w)>-1,I=P?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",R=v,A=C;if(_){var M=(0,l.getAttributeScale)(r,o);P?R=M(0):A=b+M(0)}return n.default.createElement("g",{transform:"translate(".concat(R,",").concat(A,")"),className:(0,c.getCombinedClassName)("rv-xy-plot__axis",I,i),style:T},!h&&n.default.createElement(u.default,{height:s,width:j,orientation:w,style:m(m({},T),T.line)}),!g&&n.default.createElement(d.default,y({},r,{style:m(m({},T),T.ticks)})),O?n.default.createElement(f.default,{position:x,title:O,height:s,width:j,style:m(m({},T),T.title),orientation:w}):null)}}])&&v(t.prototype,r),o&&v(t,o),p}(n.PureComponent);j.displayName="Axis",j.propTypes=O,j.defaultProps=C,j.requiresSVG=!0;const P=j},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(296),o=r(668),i=r.n(o),a=r(2144);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=a.ORIENTATION.LEFT,c=a.ORIENTATION.RIGHT,u=a.ORIENTATION.TOP,d=a.ORIENTATION.BOTTOM,f={height:i().number.isRequired,style:i().object,orientation:i().oneOf([l,c,u,d]).isRequired,width:i().number.isRequired};function p(e){var t,r=e.orientation,o=e.width,i=e.height,a=e.style;return t=r===l?{x1:o,x2:o,y1:0,y2:i}:r===c?{x1:0,x2:0,y1:0,y2:i}:r===u?{x1:0,x2:o,y1:i,y2:i}:{x1:0,x2:o,y1:0,y2:0},n.default.createElement("line",s({},t,{className:"rv-xy-plot__axis__line",style:a}))}p.defaultProps={style:{}},p.displayName="AxisLine",p.propTypes=f;const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(296),o=r(668),i=r.n(o),a=r(2144),s=r(2015);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=a.ORIENTATION.LEFT,v=a.ORIENTATION.RIGHT,b=a.ORIENTATION.TOP,_=a.ORIENTATION.BOTTOM,w={height:i().number.isRequired,orientation:i().oneOf([y,v,b,_]).isRequired,style:i().object,width:i().number.isRequired};var S=function(e){!function(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}}),t&&h(e,t)}(l,e);var t,r,o,i=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===y||e===b}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, ".concat(e,")")}}:function(e){return{transform:"translate(".concat(e,", 0)")}}}},{key:"_getTickLabelProps",value:function(){var e,t=this.props,r=t.orientation,n=t.tickLabelAngle,o=t.tickSize,i=t.tickSizeOuter,a=void 0===i?o:i,s=t.tickPadding,l=void 0===s?o:s;e=r===y||r===_&&n?"end":r===v||r===b&&n?"start":"middle";var c=this._isAxisVertical(),u=(this._areTicksWrapped()?-1:1)*(a+l),d=(c?"translate(".concat(u,", 0)"):"translate(0, ".concat(u,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===b||n?"0":r===_?"0.72em":"0.32em",transform:d}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,r=t.tickSize,n=t.tickSizeOuter,o=void 0===n?r:n,i=t.tickSizeInner,a=void 0===i?r:i,s=this._isAxisVertical(),l=s?"y":"x",c=s?"x":"y",u=this._areTicksWrapped()?-1:1;return f(e={},"".concat(l,"1"),0),f(e,"".concat(l,"2"),0),f(e,"".concat(c,"1"),-u*a),f(e,"".concat(c,"2"),u*o),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===y||e===v}},{key:"render",value:function(){var e=this.props,t=e.attr,r=e.orientation,o=e.width,i=e.height,l=e.style,u=e.tickFormat,f=e.tickTotal,p=e.tickValues,h=r===y?o:0,m=r===b?i:0,g=(0,s.getAttributeScale)(this.props,t),v=(0,a.getTickValues)(g,f,p),_=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(g,f,u),w=this._getTickContainerPropsGetterFn(),S=this._getTickLineProps(),E=this._getTickLabelProps(),k=v.map(function(e,t){var r=g(e),i=_(e,t,g,f),a=n.default.isValidElement(i)&&!["tspan","textPath"].includes(i.type),s=i&&"string"!=typeof i.type;return n.default.createElement("g",c({key:t},w(r,0),{className:"rv-xy-plot__axis__tick",style:l}),n.default.createElement("line",c({},S,{className:"rv-xy-plot__axis__tick__line",style:d(d({},l),l.line)})),a?n.default.cloneElement(i,s?d(d({},E),{},{containerWidth:o,tickCount:v.length}):void 0):n.default.createElement("text",c({},E,{className:"rv-xy-plot__axis__tick__text",style:d(d({},l),l.text)}),i))});return n.default.createElement("g",{transform:"translate(".concat(h,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},k)}}])&&p(t.prototype,r),o&&p(t,o),l}(n.default.Component);S.defaultProps={style:{}},S.displayName="AxisTicks",S.propTypes=w,S.requiresSVG=!0;const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(296),o=r(668),i=r.n(o),a=r(2144);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=16,d=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,p=a.ORIENTATION.TOP,h=a.ORIENTATION.BOTTOM,m={width:i().number.isRequired,height:i().number.isRequired,orientation:i().oneOf([d,f,p,h]).isRequired,style:i().object,title:i().string.isRequired};function g(e){var t=e.orientation,r=e.position,o=e.width,i=e.height,a=e.style,s=e.title,m=t===p?i:0,g="translate(".concat(t===d?o:0,", ").concat(m,")"),y=function(e,t){var r;return c(r={},d,{end:{x:u,y:6,rotation:-90,textAnchor:"end"},middle:{x:u,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:u,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,f,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,p,{start:{x:6,y:u,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:u,rotation:0,textAnchor:"middle"},end:{x:e-6,y:u,rotation:0,textAnchor:"end"}}),c(r,h,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),r}(o,i)[t][r],v=y.x,b=y.y,_=y.rotation,w=y.textAnchor,S="translate(".concat(v,", ").concat(b,") rotate(").concat(_,")");return n.default.createElement("g",{transform:g,className:"rv-xy-plot__axis__title"},n.default.createElement("g",{style:l({textAnchor:w},a),transform:S},n.default.createElement("text",{style:a},s)))}g.displayName="AxisTitle",g.propTypes=m,g.defaultProps={position:"end"};const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(296),o=r(668),i=r.n(o),a=r(2144),s=r(2227);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,p=c(c({},s.default.propTypes),{},{orientation:i().oneOf([d,f])}),h={orientation:d,attr:"y",attrAxis:"x"};function m(e){return n.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=p,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(296),o=r(668),i=r.n(o),a=r(2082),s=r(2083),l={className:i().string,height:i().number,endColor:i().string,endTitle:i().oneOfType([i().number,i().string]).isRequired,midColor:i().string,midTitle:i().oneOfType([i().number,i().string]),startColor:i().string,startTitle:i().oneOfType([i().number,i().string]).isRequired,width:i().number},c={className:"",startColor:a.CONTINUOUS_COLOR_RANGE[0],endColor:a.CONTINUOUS_COLOR_RANGE[1]};function u(e){var t=e.startColor,r=e.midColor,o=e.endColor,i=e.startTitle,a=e.midTitle,l=e.endTitle,c=e.height,u=e.width,d=e.className,f=[t];return r&&f.push(r),f.push(o),n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",d),style:{width:u,height:c}},n.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(f.join(","),")")}}),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},i),n.default.createElement("span",{className:"rv-legend-titles__right"},l),a?n.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}u.displayName="ContinuousColorLegend",u.propTypes=l,u.defaultProps=c;const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(296),o=r(668),i=r.n(o),a=r(2083),s={className:i().string,circlesTotal:i().number,endSize:i().number,endTitle:i().oneOfType([i().number,i().string]).isRequired,height:i().number,startSize:i().number,startTitle:i().oneOfType([i().number,i().string]).isRequired,width:i().number};function l(e){for(var t=e.startTitle,r=e.endTitle,o=e.startSize,i=e.endSize,s=e.circlesTotal,l=e.height,c=e.width,u=e.className,d=[],f=(i-o)/(s-1),p=0;p<s;p++){var h=f*p+o;d.push(n.default.createElement("div",{key:p,className:"rv-bubble",style:{width:h,height:h,borderRadius:h/2}})),d.push(" ")}return n.default.createElement("div",{className:(0,a.getCombinedClassName)("rv-continuous-size-legend",u),style:{width:c,height:l}},n.default.createElement("div",{className:"rv-bubbles",style:{height:i}},d,n.default.createElement("div",{className:"rv-spacer"})),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},t),n.default.createElement("span",{className:"rv-legend-titles__right"},r)))}l.displayName="ContinuousSizeLegend",l.propTypes=s,l.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};const c=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(296),o=r(668),i=r.n(o),a=r(2235),s=r(2082),l=r(2083);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=e.className,r=e.colors,o=e.height,i=e.items,s=e.onItemClick,c=e.onItemMouseEnter,d=e.onItemMouseLeave,f=e.orientation,p=e.style,h=e.width;return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-discrete-color-legend",f,t),style:u({width:h,height:o},p)},i.map(function(e,t){return n.default.createElement(a.default,{title:e.title?e.title:e,color:e.color?e.color:r[t%r.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:f,key:t,onClick:s?function(r){return s(e,t,r)}:null,onMouseEnter:c?function(r){return c(e,t,r)}:null,onMouseLeave:c?function(r){return d(e,t,r)}:null})}))}f.displayName="DiscreteColorLegendItem",f.propTypes={className:i().string,items:i().arrayOf(i().oneOfType([i().shape({title:i().oneOfType([i().string,i().element]).isRequired,color:i().string,disabled:i().bool}),i().string.isRequired,i().element])).isRequired,onItemClick:i().func,onItemMouseEnter:i().func,onItemMouseLeave:i().func,height:i().number,width:i().number,orientation:i().oneOf(["vertical","horizontal"])},f.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const p=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(296),o=r(668),i=r.n(o);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={dashed:"6, 2",solid:null};function u(e){var t=e.color,r=e.strokeDasharray,o=e.strokeStyle,i=e.strokeWidth,a=e.disabled,l=e.onClick,u=e.orientation,d=e.onMouseEnter,f=e.onMouseLeave,p=e.title,h="rv-discrete-color-legend-item ".concat(u);a&&(h+=" disabled"),l&&(h+=" clickable");var m=c[o]||r;return n.default.createElement("div",{className:h,onClick:l,onMouseEnter:d,onMouseLeave:f},n.default.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},n.default.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:s(s(s({},i?{strokeWidth:i}:{}),m?{strokeDasharray:m}:{}),{},{stroke:a?null:t})})),n.default.createElement("span",{className:"rv-discrete-color-legend-item__title"},p))}u.propTypes={color:i().string.isRequired,disabled:i().bool,title:i().oneOfType([i().string,i().element]).isRequired,onClick:i().func,onMouseEnter:i().func,onMouseLeave:i().func,orientation:i().oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:i().string,strokeWidth:i().number,strokeStyle:i().oneOf(Object.keys(c))},u.defaultProps={disabled:!1,strokeStyle:"solid"},u.displayName="DiscreteColorLegendItem";const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(296),o=r(668),i=r.n(o),a=r(2234),s=r(2083);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=c(c({},a.default.propTypes),{},{searchText:i().string,onSearchChange:i().func,searchPlaceholder:i().string,searchFn:i().func}),f={className:"",searchText:"",searchFn:function(e,t){return e.filter(function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)})}};function p(e){var t=e.className,r=e.colors,o=e.height,i=e.items,l=e.onItemClick,c=e.onItemMouseEnter,u=e.onItemMouseLeave,d=e.onSearchChange,f=e.orientation,p=e.searchFn,h=e.searchPlaceholder,m=e.searchText,g=e.width,y=d?function(e){var t=e.target.value;return d(t)}:null,v=p(i,m);return n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:g,height:o}},n.default.createElement("form",{className:"rv-search-wrapper__form"},n.default.createElement("input",{type:"search",placeholder:h,className:"rv-search-wrapper__form__input",value:m,onChange:y})),n.default.createElement("div",{className:"rv-search-wrapper__contents"},n.default.createElement(a.default,{colors:r,items:v,onItemClick:l,onItemMouseEnter:c,onItemMouseLeave:u,orientation:f})))}p.propTypes=d,p.defaultProps=f,p.displayName="SearchableDiscreteColorLegend";const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(296),o=r(668),i=r.n(o),a=r(2021),s=r(2033),l=r(1985),c=r(2207),u=r(2082),d=r(2224),f=r(2083),p=r(2194),h=r(2193),m=r(2192),g=r(2173),y=r(2181);function v(e){return v="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},v(e)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;return S(e)}(this,r)}}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){T(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O="rv-parallel-coordinates-chart",C=(0,s.format)(".2r");function j(e){var t=e.domains,r=e.style;return t.map(function(e){return{x:e.name,y:1.1,label:e.name,style:r}})}var P=function(e){!function(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}}),t&&_(e,t)}(s,e);var t,r,o,i=w(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(S(e=i.call.apply(i,[this].concat(r))),"state",{brushFilters:{}}),e}return t=s,(r=[{key:"render",value:function(){var e=this,t=this.state.brushFilters,r=this.props,o=r.animation,i=r.brushing,s=r.className,l=r.children,u=r.colorRange,v=r.data,b=r.domains,_=r.height,w=r.hideInnerMostValues,S=r.margin,E=r.onMouseLeave,k=r.onMouseEnter,C=r.showMarks,P=r.style,I=r.tickFormat,R=r.width,A=function(e){var t=e.animation,r=e.domains,o=e.style,i=e.tickFormat;return r.map(function(e,r){var a=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(r,"-axis"),axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:a,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):i(t)},style:o.axes})})}({domains:b,animation:o,hideInnerMostValues:w,style:P,tickFormat:I}),M=function(e){var t=e.animation,r=e.brushFilters,o=e.colorRange,i=e.domains,s=e.data,l=e.style,c=e.showMarks,u=i.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return s.map(function(e,a){var s=!0,d=i.map(function(t){var n=t.getValue,o=t.name,i=u[o](n?n(e):e[o]),a=r[o];return a&&(i<a.min||i>a.max)&&(s=!1),{x:o,y:i}}),f="".concat(O,"-line"),m="".concat(f," ").concat(O,"-line-unselected"),g={animation:t,className:s?f:m,key:"".concat(a,"-polygon"),data:d,color:e.color||o[a%o.length],style:x(x({},l.lines),e.style||{})};return s||(g.style=x(x({},g.style),l.deselectedLineStyle)),c?n.default.createElement(h.default,g):n.default.createElement(p.default,g)})}({animation:o,brushFilters:t,colorRange:u,domains:b,data:v,showMarks:C,style:P}),D=n.default.createElement(m.default,{animation:!0,key:s,className:"".concat(O,"-label"),data:j({domains:b,style:P.labels})}),N=(0,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),L=N.marginLeft,B=N.marginRight;return n.default.createElement(c.default,{height:_,width:R,margin:S,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(s,O),onMouseLeave:E,onMouseEnter:k,xType:"ordinal",yDomain:[0,1]},l,A.concat(M).concat(D),i&&b.map(function(r){var o=function(n){e.setState({brushFilters:x(x({},t),{},T({},r.name,n?{min:n.bottom,max:n.top}:null))})};return n.default.createElement(y.default,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:o,onDragEnd:o,highlightWidth:(R-L-B)/b.length,enableX:!1})}))}}])&&b(t.prototype,r),o&&b(t,o),s}(n.Component);P.displayName="ParallelCoordinates",P.propTypes={animation:l.AnimationPropType,brushing:i().bool,className:i().string,colorType:i().string,colorRange:i().arrayOf(i().string),data:i().arrayOf(i().object).isRequired,domains:i().arrayOf(i().shape({name:i().string.isRequired,domain:i().arrayOf(i().number).isRequired,tickFormat:i().func})).isRequired,height:i().number.isRequired,margin:d.MarginPropType,style:i().shape({axes:i().object,labels:i().object,lines:i().object}),showMarks:i().bool,tickFormat:i().func,width:i().number.isRequired},P.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:C};const I=P},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(296),o=r(668),i=r.n(o),a=r(2021),s=r(2033),l=r(1985),c=r(2207),u=r(2082),d=r(2224),f=r(2083),p=r(2195),h=r(2199),m=r(2192),g=r(2173);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-radar-chart",w=(0,s.format)(".2r");function S(e){var t=1e-12;return Math.abs(e)<=t?e=0:e>0?Math.abs(e-.5)<=t&&(e=.5):e<0&&Math.abs(e+.5)<=t&&(e=-.5),e}function E(e){var t=e.domains,r=e.startingAngle,n=e.style;return t.map(function(e,o){var i=e.name,a=o/t.length*Math.PI*2+r;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:i,style:n}})}function k(e){var t=e.animation,r=e.className,o=e.children,i=e.colorRange,s=e.data,l=e.domains,u=e.height,d=e.hideInnerMostValues,y=e.margin,b=e.onMouseLeave,w=e.onMouseEnter,k=e.startingAngle,x=e.style,T=e.tickFormat,O=e.width,C=e.renderAxesOverPolygons,j=e.onValueMouseOver,P=e.onValueMouseOut,I=e.onSeriesMouseOver,R=e.onSeriesMouseOut,A=function(e){var t=e.animation,r=e.domains,o=e.startingAngle,i=e.style,a=e.tickFormat,s=e.hideInnerMostValues;return r.map(function(e,l){var c=l/r.length*Math.PI*2+o,u=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(l,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:S(Math.cos(c)),y:S(Math.sin(c))},axisDomain:u,numberOfTicks:5,tickValue:function(t){return s&&t===u[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:i.axes})})}({domains:l,animation:t,hideInnerMostValues:d,startingAngle:k,style:x,tickFormat:T}),M=function(e){var t=e.animation,r=e.colorRange,o=e.domains,i=e.data,s=e.style,l=e.startingAngle,c=e.onSeriesMouseOver,u=e.onSeriesMouseOut,d=o.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return i.map(function(e,i){var a=o.map(function(t,r){var n=t.name,i=t.getValue,a=i?i(e):e[n],s=r/o.length*Math.PI*2+l,c=Math.max(d[n](a),0);return{x:c*Math.cos(s),y:c*Math.sin(s),name:e.name}});return n.default.createElement(h.default,{animation:t,className:"".concat(_,"-polygon"),key:"".concat(i,"-polygon"),data:a,style:v({stroke:e.color||e.stroke||r[i%r.length],fill:e.color||e.fill||r[i%r.length]},s.polygons),onSeriesMouseOver:c,onSeriesMouseOut:u})})}({animation:t,colorRange:i,domains:l,data:s,startingAngle:k,style:x,onSeriesMouseOver:I,onSeriesMouseOut:R}),D=function(e){var t=e.animation,r=e.domains,o=e.data,i=e.startingAngle,s=e.style,l=e.onValueMouseOver,c=e.onValueMouseOut;if(l){var u=r.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return o.map(function(e,o){var a=r.map(function(t,n){var o=t.name,a=t.getValue,s=a?a(e):e[o],l=n/r.length*Math.PI*2+i,c=Math.max(u[o](s),0);return{x:c*Math.cos(l),y:c*Math.sin(l),domain:o,value:s,dataName:e.name}});return n.default.createElement(p.default,{animation:t,className:"".concat(_,"-polygonPoint"),key:"".concat(o,"-polygonPoint"),data:a,size:10,style:v(v({},s.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:l,onValueMouseOut:c})})}}({animation:t,colorRange:i,domains:l,data:s,startingAngle:k,style:x,onValueMouseOver:j,onValueMouseOut:P}),N=n.default.createElement(m.default,{animation:t,key:r,className:"".concat(_,"-label"),data:E({domains:l,style:x.labels,startingAngle:k})});return n.default.createElement(c.default,{height:u,width:O,margin:y,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(r,_),onMouseLeave:b,onMouseEnter:w,xDomain:[-1,1],yDomain:[-1,1]},o,!C&&A.concat(M).concat(N).concat(D),C&&M.concat(N).concat(A).concat(D))}k.displayName="RadarChart",k.propTypes={animation:l.AnimationPropType,className:i().string,colorType:i().string,colorRange:i().arrayOf(i().string),data:i().arrayOf(i().object).isRequired,domains:i().arrayOf(i().shape({name:i().string.isRequired,domain:i().arrayOf(i().number).isRequired,tickFormat:i().func})).isRequired,height:i().number.isRequired,hideInnerMostValues:i().bool,margin:d.MarginPropType,startingAngle:i().number,style:i().shape({axes:i().object,labels:i().object,polygons:i().object}),tickFormat:i().func,width:i().number.isRequired,renderAxesOverPolygons:i().bool,onValueMouseOver:i().func,onValueMouseOut:i().func,onSeriesMouseOver:i().func,onSeriesMouseOut:i().func},k.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:w,renderAxesOverPolygons:!1};const x=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(296),o=r(668),i=r.n(o),a=r(2091),s=r(1985),l=r(2075),c=r(2192),u=r(2207),d=r(2082),f=r(2224),p=r(2081),h=r(2083);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=e.animation,r=e.className,o=e.children,i=e.colorType,s=e.data,d=e.getAngle,g=e.getLabel,v=e.getSubLabel,b=e.height,_=e.hideRootNode,w=e.innerRadius,S=e.labelsAboveChildren,E=e.labelsRadiusMultiplier,k=e.labelsStyle,x=e.margin,T=e.onMouseLeave,O=e.onMouseEnter,C=e.radius,j=e.showLabels,P=e.style,I=e.width,R=function(e){var t=e.data,r=e.getAngle;return(0,a.default)().sort(null).value(r)(t).reverse().map(function(e,t){return y(y({},e.data),{},{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})})}({data:s,height:b,hideRootNode:_,width:I,getAngle:d}),A=(0,p.getRadialDomain)(R),M=y(y({colorType:i},e),{},{animation:t,radiusDomain:[0,A],data:R,radiusNoFallBack:!0,style:P,arcClassName:"rv-radial-chart__series--pie__slice"});C&&(M.radiusDomain=[0,1],M.radiusRange=[w||0,C],M.radiusType="linear");var D=C||function(e,t){return Math.min(e,t)/2-15}(I,b),N=(0,f.getRadialLayoutMargin)(I,b,D),L=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,n=t.getLabel,o=t.getSubLabel;return e.reduce(function(e,t){var i=t.angle,a=t.angle0,s=t.radius,l=(i+a)/2*-1+Math.PI/2,c=[];return n(t)&&c.push({angle:l,radius:s*r,label:n(t)}),o(t)&&c.push({angle:l,radius:s*r,label:o(t),style:{fontSize:10},yOffset:12}),e.concat(c)},[])}(R,{getLabel:g,getSubLabel:v},E);return n.default.createElement(u.default,{height:b,width:I,margin:y(y({},N),x),className:(0,h.getCombinedClassName)(r,"rv-radial-chart"),onMouseLeave:T,onMouseEnter:O,xDomain:[-A,A],yDomain:[-A,A]},n.default.createElement(l.default,m({},M,{getAngle:function(e){return e.angle}})),j&&!S&&n.default.createElement(c.default,{data:L,style:k}),o,j&&S&&n.default.createElement(c.default,{data:L,style:k}))}b.displayName="RadialChart",b.propTypes={animation:s.AnimationPropType,className:i().string,colorType:i().string,data:i().arrayOf(i().shape({angle:i().number,className:i().string,label:i().string,radius:i().number,style:i().object})).isRequired,getAngle:i().func,getAngle0:i().func,padAngle:i().oneOfType([i().func,i().number]),getRadius:i().func,getRadius0:i().func,getLabel:i().func,height:i().number.isRequired,labelsAboveChildren:i().bool,labelsStyle:i().object,margin:f.MarginPropType,onValueClick:i().func,onValueMouseOver:i().func,onValueMouseOut:i().func,showLabels:i().bool,style:i().object,subLabel:i().func,width:i().number.isRequired},b.defaultProps={className:"",colorType:"category",colorRange:d.DISCRETE_COLOR_RANGE,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(296),o=r(668),i=r.n(o),a=r(2241),s=r(2207),l=r(2224),c=r(2083),u=r(2203),d=r(2192),f=r(2205),p=r(2082),h=r(2255);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}var w=function(e){return e},S={justify:a.sankeyJustify,center:a.sankeyCenter,left:a.sankeyLeft,right:a.sankeyRight},E={top:20,left:20,right:20,bottom:20};function k(e){var t=e.align,r=e.animation,o=e.children,i=e.className,m=e.hasVoronoi,y=e.height,b=e.hideLabels,w=e.labelRotation,k=e.layout,x=e.links,T=e.linkOpacity,O=e.margin,C=e.nodePadding,j=e.nodes,P=e.nodeWidth,I=e.onValueClick,R=e.onValueMouseOver,A=e.onValueMouseOut,M=e.onLinkClick,D=e.onLinkMouseOver,N=e.onLinkMouseOut,L=e.style,B=e.width;if(0===j.length)return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",i)}));var F=v(new Array(j.length)).map(function(e,t){return g({},j[t])}),z=v(new Array(x.length)).map(function(e,t){return g({},x[t])}),U=(0,l.getInnerDimensions)({margin:O,height:y,width:B},E),H=U.marginLeft,q=U.marginTop,V=U.marginRight,W=U.marginBottom,G=(0,a.sankey)().extent([[H,q],[B-V,y-W-q]]).nodeWidth(P).nodePadding(C).nodes(F).links(z).nodeAlign(S[t]).iterations(k);G(F);var $=G.nodeWidth(),K=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",i)}),z.map(function(e,t){return n.default.createElement(h.default,{style:L.links,data:K(e),opacity:e.opacity||T,color:e.color,onLinkClick:M,onLinkMouseOver:D,onLinkMouseOut:N,strokeWidth:Math.max(e.width,1),node:e,nWidth:$,key:"link-".concat(t)})}),n.default.createElement(u.default,{animation:r,className:(0,c.getCombinedClassName)(i,"rv-sankey__node"),data:F.map(function(e){return g(g({},e),{},{y:e.y1-q,y0:e.y0-q,x:e.x1,x0:e.x0,color:e.color||p.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})}),style:L.rects,onValueClick:I,onValueMouseOver:R,onValueMouseOut:A,colorType:"literal"}),!b&&n.default.createElement(d.default,{animation:r,className:i,rotation:w,labelAnchorY:"text-before-edge",data:F.map(function(e,t){return g({x:e.x0+(e.x0<B/2?$+10:-10),y:(e.y0+e.y1)/2-q,label:e.name,style:g({textAnchor:e.x0<B/2?"start":"end",dy:"-.5em"},L.labels)},j[t])})}),m&&n.default.createElement(f.default,{className:"rv-sankey__voronoi",extent:[[-H,-q],[B+V,y+W]],nodes:F,onClick:I,onHover:R,onBlur:A,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),o)}k.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:E,nodePadding:10,nodeWidth:10,onValueMouseOver:w,onValueClick:w,onValueMouseOut:w,onLinkClick:w,onLinkMouseOver:w,onLinkMouseOut:w,style:{links:{},rects:{},labels:{}}},k.propTypes={align:i().oneOf(["justify","left","right","center"]),className:i().string,hasVoronoi:i().bool,height:i().number.isRequired,hideLabels:i().bool,labelRotation:i().number,layout:i().number,links:i().arrayOf(i().shape({source:i().oneOfType([i().number,i().object]).isRequired,target:i().oneOfType([i().number,i().object]).isRequired})).isRequired,margin:l.MarginPropType,nodePadding:i().number,nodes:i().arrayOf(i().object).isRequired,nodeWidth:i().number,onValueMouseOver:i().func,onValueClick:i().func,onValueMouseOut:i().func,onLinkClick:i().func,onLinkMouseOver:i().func,onLinkMouseOut:i().func,style:i().shape({links:i().object,rects:i().object,labels:i().object}),width:i().number.isRequired};const x=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sankey:()=>n.default,sankeyCenter:()=>o.center,sankeyJustify:()=>o.justify,sankeyLeft:()=>o.left,sankeyLinkHorizontal:()=>i.default,sankeyRight:()=>o.right});var n=r(2242),o=r(2246),i=r(2248)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(2243),o=r(2244),i=r(2245),a=r(2246),s=r(2247);function l(e,t){return u(e.source,t.source)||e.index-t.index}function c(e,t){return u(e.target,t.target)||e.index-t.index}function u(e,t){return e.y0-t.y0}function d(e){return e.value}function f(e){return e.index}function p(e){return e.nodes}function h(e){return e.links}function m(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function g({nodes:e}){for(const t of e){let e=t.y0,r=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const e of t.targetLinks)e.y1=r+e.width/2,r+=e.width}}function y(){let e,t,r,y=0,v=0,b=1,_=1,w=24,S=8,E=f,k=a.justify,x=p,T=h,O=6;function C(){const a={nodes:x.apply(null,arguments),links:T.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,r]of e.entries())r.index=t,r.sourceLinks=[],r.targetLinks=[];const n=new Map(e.map((t,r)=>[E(t,r,e),t]));for(const[e,r]of t.entries()){r.index=e;let{source:t,target:o}=r;"object"!=typeof t&&(t=r.source=m(n,t)),"object"!=typeof o&&(o=r.target=m(n,o)),t.sourceLinks.push(r),o.targetLinks.push(r)}if(null!=r)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(r),n.sort(r)}(a),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max((0,i.default)(t.sourceLinks,d),(0,i.default)(t.targetLinks,d)):t.fixedValue}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,o=0;for(;r.size;){for(const e of r){e.depth=o;for(const{target:t}of e.sourceLinks)n.add(t)}if(++o>t)throw new Error("circular link");r=n,n=new Set}}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,o=0;for(;r.size;){for(const e of r){e.height=o;for(const{source:t}of e.targetLinks)n.add(t)}if(++o>t)throw new Error("circular link");r=n,n=new Set}}(a),function(r){const a=function({nodes:e}){const r=(0,n.default)(e,e=>e.depth)+1,o=(b-y-w)/(r-1),i=new Array(r);for(const t of e){const e=Math.max(0,Math.min(r-1,Math.floor(k.call(null,t,r))));t.layer=e,t.x0=y+e*o,t.x1=t.x0+w,i[e]?i[e].push(t):i[e]=[t]}if(t)for(const e of i)e.sort(t);return i}(r);e=Math.min(S,(_-v)/((0,n.default)(a,e=>e.length)-1)),function(t){const r=(0,o.default)(t,t=>(_-v-(t.length-1)*e)/(0,i.default)(t,d));for(const n of t){let t=v;for(const o of n){o.y0=t,o.y1=t+o.value*r,t=o.y1+e;for(const e of o.sourceLinks)e.width=e.value*r}t=(_-t+e)/(n.length+1);for(let e=0;e<n.length;++e){const r=n[e];r.y0+=t*(e+1),r.y1+=t*(e+1)}D(n)}}(a);for(let e=0;e<O;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/O);P(a,t,r),j(a,t,r)}}(a),g(a),a}function j(e,r,n){for(let o=1,i=e.length;o<i;++o){const i=e[o];for(const e of i){let t=0,n=0;for(const{source:r,value:o}of e.targetLinks){let i=o*(e.layer-r.layer);t+=N(r,e)*i,n+=i}if(!(n>0))continue;let o=(t/n-e.y0)*r;e.y0+=o,e.y1+=o,M(e)}void 0===t&&i.sort(u),I(i,n)}}function P(e,r,n){for(let o=e.length-2;o>=0;--o){const i=e[o];for(const e of i){let t=0,n=0;for(const{target:r,value:o}of e.sourceLinks){let i=o*(r.layer-e.layer);t+=L(e,r)*i,n+=i}if(!(n>0))continue;let o=(t/n-e.y0)*r;e.y0+=o,e.y1+=o,M(e)}void 0===t&&i.sort(u),I(i,n)}}function I(t,r){const n=t.length>>1,o=t[n];A(t,o.y0-e,n-1,r),R(t,o.y1+e,n+1,r),A(t,_,t.length-1,r),R(t,v,0,r)}function R(t,r,n,o){for(;n<t.length;++n){const i=t[n],a=(r-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),r=i.y1+e}}function A(t,r,n,o){for(;n>=0;--n){const i=t[n],a=(i.y1-r)*o;a>1e-6&&(i.y0-=a,i.y1-=a),r=i.y0-e}}function M({sourceLinks:e,targetLinks:t}){if(void 0===r){for(const{source:{sourceLinks:e}}of t)e.sort(c);for(const{target:{targetLinks:t}}of e)t.sort(l)}}function D(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(c),r.sort(l)}function N(t,r){let n=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:i}of t.sourceLinks){if(o===r)break;n+=i+e}for(const{source:e,width:o}of r.targetLinks){if(e===t)break;n-=o}return n}function L(t,r){let n=r.y0-(r.targetLinks.length-1)*e/2;for(const{source:o,width:i}of r.targetLinks){if(o===t)break;n+=i+e}for(const{target:e,width:o}of t.sourceLinks){if(e===r)break;n-=o}return n}return C.update=function(e){return g(e),e},C.nodeId=function(e){return arguments.length?(E="function"==typeof e?e:(0,s.default)(e),C):E},C.nodeAlign=function(e){return arguments.length?(k="function"==typeof e?e:(0,s.default)(e),C):k},C.nodeSort=function(e){return arguments.length?(t=e,C):t},C.nodeWidth=function(e){return arguments.length?(w=+e,C):w},C.nodePadding=function(t){return arguments.length?(S=e=+t,C):S},C.nodes=function(e){return arguments.length?(x="function"==typeof e?e:(0,s.default)(e),C):x},C.links=function(e){return arguments.length?(T="function"==typeof e?e:(0,s.default)(e),C):T},C.linkSort=function(e){return arguments.length?(r=e,C):r},C.size=function(e){return arguments.length?(y=v=0,b=+e[0],_=+e[1],C):[b-y,_-v]},C.extent=function(e){return arguments.length?(y=+e[0][0],b=+e[1][0],v=+e[0][1],_=+e[1][1],C):[[y,v],[b,_]]},C.iterations=function(e){return arguments.length?(O=+e,C):O},C}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)(t=+t)&&(r+=t);else{let n=-1;for(let o of e)(o=+t(o,++n,e))&&(r+=o)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{center:()=>l,justify:()=>s,left:()=>i,right:()=>a});var n=r(2244);function o(e){return e.target.depth}function i(e){return e.depth}function a(e,t){return t-1-e.height}function s(e,t){return e.sourceLinks.length?e.depth:t-1}function l(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,n.default)(e.sourceLinks,o)-1:0}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2249);function o(e){return[e.source.x1,e.y0]}function i(e){return[e.target.x0,e.y1]}function a(){return(0,n.linkHorizontal)().source(o).target(i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkHorizontal:()=>h,linkRadial:()=>g,linkVertical:()=>m});var n=r(2250),o=r(2251),i=r(2252),a=r(2253),s=r(2254);function l(e){return e.source}function c(e){return e.target}function u(e){var t=l,r=c,s=a.x,u=a.y,d=null;function f(){var i,a=o.slice.call(arguments),l=t.apply(this,a),c=r.apply(this,a);if(d||(d=i=(0,n.default)()),e(d,+s.apply(this,(a[0]=l,a)),+u.apply(this,a),+s.apply(this,(a[0]=c,a)),+u.apply(this,a)),i)return d=null,i+""||null}return f.source=function(e){return arguments.length?(t=e,f):t},f.target=function(e){return arguments.length?(r=e,f):r},f.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,i.default)(+e),f):s},f.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),f):u},f.context=function(e){return arguments.length?(d=null==e?null:e,f):d},f}function d(e,t,r,n,o){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,o,n,o)}function f(e,t,r,n,o){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+o)/2,n,r,n,o)}function p(e,t,r,n,o){var i=(0,s.default)(t,r),a=(0,s.default)(t,r=(r+o)/2),l=(0,s.default)(n,r),c=(0,s.default)(n,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],c[0],c[1])}function h(){return u(d)}function m(){return u(f)}function g(){var e=u(p);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=Math.PI,o=2*n,i=1e-6,a=o-i;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function l(){return new s}s.prototype=l.prototype={constructor:s,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,o,i){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,r,o,a){e=+e,t=+t,r=+r,o=+o,a=+a;var s=this._x1,l=this._y1,c=r-e,u=o-t,d=s-e,f=l-t,p=d*d+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>i)if(Math.abs(f*c-u*d)>i&&a){var h=r-s,m=o-l,g=c*c+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(p),_=a*Math.tan((n-Math.acos((g+p-y)/(2*v*b)))/2),w=_/b,S=_/v;Math.abs(w-1)>i&&(this._+="L"+(e+w*d)+","+(t+w*f)),this._+="A"+a+","+a+",0,0,"+ +(f*h>d*m)+","+(this._x1=e+S*c)+","+(this._y1=t+S*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,s,l,c){e=+e,t=+t,c=!!c;var u=(r=+r)*Math.cos(s),d=r*Math.sin(s),f=e+u,p=t+d,h=1^c,m=c?s-l:l-s;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+f+","+p:(Math.abs(this._x1-f)>i||Math.abs(this._y1-p)>i)&&(this._+="L"+f+","+p),r&&(m<0&&(m=m%o+o),m>a?this._+="A"+r+","+r+",0,1,"+h+","+(e-u)+","+(t-d)+"A"+r+","+r+",0,1,"+h+","+(this._x1=f)+","+(this._y1=p):m>i&&(this._+="A"+r+","+r+",0,"+ +(m>=n)+","+h+","+(this._x1=e+r*Math.cos(l))+","+(this._y1=t+r*Math.sin(l))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};const c=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return e[0]}function o(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>o})},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(296),o=r(2082),i=r(1985),a=r(2081);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=o.DISCRETE_COLOR_RANGE[1];function c(e){var t=e.animation,r=e.data,o=e.node,u=e.opacity,d=e.color,f=e.strokeWidth,p=e.style,h=e.onLinkClick,m=e.onLinkMouseOver,g=e.onLinkMouseOut;return t?n.default.createElement(i.default,s({},e,{animatedProps:a.ANIMATED_SERIES_PROPS}),n.default.createElement(c,s({},e,{animation:null}))):n.default.createElement("path",s({d:r},p,{className:"rv-sankey__link",opacity:Number.isFinite(u)?u:.7,stroke:d||l,onClick:function(e){return h(o,e)},onMouseOver:function(e){return m(o,e)},onMouseOut:function(e){return g(o,e)},strokeWidth:f,fill:"none"}))}c.displayName="SankeyLink",c.requiresSVG=!0;const u=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(296),o=r(668),i=r.n(o),a=r(2257),s=r(2271),l=r(2021),c=r(2274),u=r(1985),d=r(2192),f=r(2075),p=r(2207),h=r(2081),m=r(2224),g=r(2083);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-sunburst",w=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var S=function(){};function E(e){var t=e.getAngle,r=e.getAngle0,o=e.animation,i=e.className,u=e.children,y=e.data,b=e.height,E=e.hideRootNode,k=e.getLabel,x=e.width,T=e.getSize,O=e.colorType,C=function(e){var t=e.data,r=e.height,n=e.hideRootNode,o=e.width,i=e.getSize,u=(0,s.default)(),d=(0,a.default)(t).sum(i),f=Math.min(o,r)/2-10,p=(0,l.default)().range([0,2*Math.PI]),h=(0,c.sqrt)().range([0,f]);return u(d).descendants().reduce(function(e,t,r){return n&&0===r?e:e.concat([v({angle0:Math.max(0,Math.min(2*Math.PI,p(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,p(t.x1))),radius0:Math.max(0,h(t.y0)),radius:Math.max(0,h(t.y1)),depth:t.depth,parent:t.parent},t.data)])},[])}({data:y,height:b,hideRootNode:E,width:x,getSize:T}),j=(0,h.getRadialDomain)(C),P=(0,m.getRadialLayoutMargin)(x,b,j),I=function(e,t){var r=t.getAngle,n=t.getAngle0,o=t.getLabel,i=t.getRadius0;return e.filter(o).map(function(e){var t=-1*r(e)+Math.PI/2,o=(-1*n(e)+Math.PI/2+t)/2,a=!e.dontRotateLabel,s=-o/(2*Math.PI)*360;return v(v({},e),{},{children:null,angle:null,radius:null,x:i(e)*Math.cos(o),y:i(e)*Math.sin(o),style:v({textAnchor:s>90?"end":"start"},e.labelStyle),rotation:a?s>90?s+180:90===s?90:s:null})})}(C,{getAngle:t,getAngle0:r,getLabel:k,getRadius0:function(e){return e.radius0}});return n.default.createElement(p.default,{height:b,hasTreeStructure:!0,width:x,className:(0,g.getCombinedClassName)(_,i),margin:P,xDomain:[-j,j],yDomain:[-j,j]},n.default.createElement(f.default,v(v({colorType:O},e),{},{animation:o,radiusDomain:[0,j],data:o?C.map(function(e,t){return v(v({},e),{},{parent:null,children:null,index:t})}):C,_data:o?C:null,arcClassName:"".concat(_,"__series--radial__arc")},w.reduce(function(t,r){var n,i=e[r];return t[r]=o?(n=i,function(e,t){return n?n(C[e.index],t):S}):i,t},{}))),I.length>0&&n.default.createElement(d.default,{data:I,getLabel:k}),u)}E.displayName="Sunburst",E.propTypes={animation:u.AnimationPropType,getAngle:i().func,getAngle0:i().func,className:i().string,colorType:i().string,data:i().object.isRequired,height:i().number.isRequired,hideRootNode:i().bool,getLabel:i().func,onValueClick:i().func,onValueMouseOver:i().func,onValueMouseOut:i().func,getSize:i().func,width:i().number.isRequired,padAngle:i().oneOfType([i().func,i().number])},E.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};const k=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Node:()=>w,computeHeight:()=>_,default:()=>g});var n=r(2258),o=r(2259),i=r(2260),a=r(2261),s=r(2262),l=r(2263),c=r(2264),u=r(2265),d=r(2266),f=r(2267),p=r(2268),h=r(2269),m=r(2270);function g(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=y);for(var r,n,o,i,a,s=new w(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new w(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(_)}function y(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function b(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function w(e){this.data=e,this.depth=this.height=0,this.parent=null}w.prototype=g.prototype={constructor:w,count:n.default,each:o.default,eachAfter:a.default,eachBefore:i.default,find:s.default,sum:l.default,sort:c.default,path:u.default,ancestors:d.default,descendants:f.default,leaves:p.default,links:h.default,copy:function(){return g(this).eachBefore(b)},[Symbol.iterator]:m.default}},(e,t,r)=>{"use strict";function n(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function o(){return this.eachAfter(n)}r.r(t),r.d(t,{default:()=>o})},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;e=r.pop(),t=n.pop();for(;e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){return Array.from(this)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function*n(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2272),o=r(2273);function i(){var e=1,t=1,r=0,i=!1;function a(a){var s=a.height+1;return a.x0=a.y0=r,a.x1=e,a.y1=t/s,a.eachBefore(function(e,t){return function(n){n.children&&(0,o.default)(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var i=n.x0,a=n.y0,s=n.x1-r,l=n.y1-r;s<i&&(i=s=(i+s)/2),l<a&&(a=l=(a+l)/2),n.x0=i,n.y0=a,n.x1=s,n.y1=l}}(t,s)),i&&a.eachBefore(n.default),a}return a.round=function(e){return arguments.length?(i=!!e,a):i},a.size=function(r){return arguments.length?(e=+r[0],t=+r[1],a):[e,t]},a.padding=function(e){return arguments.length?(r=+e,a):r},a}},(e,t,r)=>{"use strict";function n(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r,n,o){for(var i,a=e.children,s=-1,l=a.length,c=e.value&&(n-t)/e.value;++s<l;)(i=a[s]).y0=r,i.y1=o,i.x0=t,i.x1=t+=i.value*c}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,powish:()=>c,sqrt:()=>d});var n=r(2021),o=r(2023),i=r(2018);function a(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function s(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function l(e){return e<0?-e*e:e*e}function c(e){var t=e(o.identity,o.identity),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(o.identity,o.identity):.5===r?e(s,l):e(a(r),a(1/r)):r},(0,n.linearish)(t)}function u(){var e=c((0,o.transformer)());return e.copy=function(){return(0,o.copy)(e,u()).exponent(e.exponent())},i.initRange.apply(e,arguments),e}function d(){return u.apply(null,arguments).exponent(.5)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>P});var n=r(296),o=r(668),i=r.n(o),a=r(2257),s=r(2276),l=r(2271),c=r(2283),u=r(2286),d=r(2273),f=r(2285),p=r(2287),h=r(2284),m=r(2288),g=r(2082),y=r(1985),v=r(2015),b=r(2224),_=r(2289),w=r(2291);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S.apply(this,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T={squarify:h.default,resquarify:m.default,slice:f.default,dice:d.default,slicedice:p.default,binary:u.default},O=function(e){return e},C=["opacity","color"];function j(e){var t=function(e){var t=e.data.children||[],r=k(k(k({},e),(0,v.getMissingScaleProps)(e,t,C)),{},{_allData:t});return{opacity:(0,v.getAttributeFunctor)(r,"opacity"),color:(0,v.getAttributeFunctor)(r,"color")}}(e),r=(0,b.getInnerDimensions)(e,e.margin);var o=e.renderMode,i=function(){var t=r.innerWidth,n=r.innerHeight,o=e.data,i=e.mode,u=e.padding,d=e.sortFunction,f=e.getSize;if(!o)return[];if("partition"===i||"partition-pivot"===i){var p=(0,l.default)().size("partition-pivot"===i?[n,t]:[t,n]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants();return"partition-pivot"===i?p.map(function(e){return k(k({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})}):p}if("circlePack"===i)return(0,s.default)().size([t,n]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants();var h=T[i];return(0,c.default)(h).tile(h).size([t,n]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants()}(),u="SVG"===o?w.default:_.default;return n.default.createElement(u,S({},e,{nodes:i,scales:t}))}j.displayName="Treemap",j.propTypes={animation:y.AnimationPropType,className:i().string,data:i().object.isRequired,height:i().number.isRequired,hideRootNode:i().bool,margin:b.MarginPropType,mode:i().oneOf(Object.keys(T).concat(["circlePack","partition","partition-pivot"])),onLeafClick:i().func,onLeafMouseOver:i().func,onLeafMouseOut:i().func,useCirclePacking:i().bool,padding:i().number.isRequired,sortFunction:i().func,width:i().number.isRequired,getSize:i().func,getColor:i().func},j.defaultProps={className:"",colorRange:g.CONTINUOUS_COLOR_RANGE,_colorValue:g.DEFAULT_COLOR,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:O,onLeafMouseOver:O,onLeafMouseOut:O,opacityType:g.OPACITY_TYPE,_opacityValue:g.DEFAULT_OPACITY,padding:1,sortFunction:function(e,t,r){return r?r(e)-r(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};const P=j},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2277),o=r(2278),i=r(2279),a=r(2280);function s(e){return Math.sqrt(e.value)}function l(){var e=null,t=1,r=1,a=o.constantZero;function l(n){const l=(0,i.default)();return n.x=t/2,n.y=r/2,e?n.eachBefore(c(e)).eachAfter(u(a,.5,l)).eachBefore(d(1)):n.eachBefore(c(s)).eachAfter(u(o.constantZero,1,l)).eachAfter(u(a,n.r/Math.min(t,r),l)).eachBefore(d(Math.min(t,r)/(2*n.r))),n}return l.radius=function(t){return arguments.length?(e=(0,n.optional)(t),l):e},l.size=function(e){return arguments.length?(t=+e[0],r=+e[1],l):[t,r]},l.padding=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.default)(+e),l):a},l}function c(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function u(e,t,r){return function(n){if(o=n.children){var o,i,s,l=o.length,c=e(n)*t||0;if(c)for(i=0;i<l;++i)o[i].r+=c;if(s=(0,a.packSiblingsRandom)(o,r),c)for(i=0;i<l;++i)o[i].r-=c;n.r=s+c}}}function d(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}},(e,t,r)=>{"use strict";function n(e){return null==e?null:o(e)}function o(e){if("function"!=typeof e)throw new Error;return e}r.r(t),r.d(t,{optional:()=>n,required:()=>o})},(e,t,r)=>{"use strict";function n(){return 0}function o(e){return function(){return e}}r.r(t),r.d(t,{constantZero:()=>n,default:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});const n=1664525,o=1013904223,i=4294967296;function a(){let e=1;return()=>(e=(n*e+o)%i)/i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,packSiblingsRandom:()=>u});var n=r(2281),o=r(2279),i=r(2282);function a(e,t,r){var n,o,i,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(o=t.r+r.r,o*=o,a=e.r+r.r,o>(a*=a)?(n=(c+a-o)/(2*c),i=Math.sqrt(Math.max(0,a/c-n*n)),r.x=e.x-n*s-i*l,r.y=e.y-n*l+i*s):(n=(c+o-a)/(2*c),i=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x+n*s-i*l,r.y=t.y+n*l+i*s)):(r.x=t.x+r.r,r.y=t.y)}function s(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,o=t.y-e.y;return r>0&&r*r>n*n+o*o}function l(e){var t=e._,r=e.next._,n=t.r+r.r,o=(t.x*r.r+r.x*t.r)/n,i=(t.y*r.r+r.y*t.r)/n;return o*o+i*i}function c(e){this._=e,this.next=null,this.previous=null}function u(e,t){if(!(d=(e=(0,n.default)(e)).length))return 0;var r,o,u,d,f,p,h,m,g,y,v;if((r=e[0]).x=0,r.y=0,!(d>1))return r.r;if(o=e[1],r.x=-o.r,o.x=r.r,o.y=0,!(d>2))return r.r+o.r;a(o,r,u=e[2]),r=new c(r),o=new c(o),u=new c(u),r.next=u.previous=o,o.next=r.previous=u,u.next=o.previous=r;e:for(h=3;h<d;++h){a(r._,o._,u=e[h]),u=new c(u),m=o.next,g=r.previous,y=o._.r,v=r._.r;do{if(y<=v){if(s(m._,u._)){o=m,r.next=o,o.previous=r,--h;continue e}y+=m._.r,m=m.next}else{if(s(g._,u._)){(r=g).next=o,o.previous=r,--h;continue e}v+=g._.r,g=g.previous}}while(m!==g.next);for(u.previous=r,u.next=o,r.next=o.previous=o=u,f=l(r);(u=u.next)!==o;)(p=l(u))<f&&(r=u,f=p);o=r.next}for(r=[o._],u=o;(u=u.next)!==o;)r.push(u._);for(u=(0,i.packEncloseRandom)(r,t),h=0;h<d;++h)(r=e[h]).x-=u.x,r.y-=u.y;return u.r}function d(e){return u(e,(0,o.default)()),e}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function o(e,t){let r,n,o=e.length;for(;o;)n=t()*o--|0,r=e[o],e[o]=e[n],e[n]=r;return e}r.r(t),r.d(t,{default:()=>n,shuffle:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,packEncloseRandom:()=>a});var n=r(2281),o=r(2279);function i(e){return a(e,(0,o.default)())}function a(e,t){for(var r,o,i=0,a=(e=(0,n.shuffle)(Array.from(e),t)).length,l=[];i<a;)r=e[i],o&&c(o,r)?++i:(o=d(l=s(l,r)),i=0);return o}function s(e,t){var r,n;if(u(t,e))return[t];for(r=0;r<e.length;++r)if(l(t,e[r])&&u(f(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(l(f(e[r],e[n]),t)&&l(f(e[r],t),e[n])&&l(f(e[n],t),e[r])&&u(p(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function l(e,t){var r=e.r-t.r,n=t.x-e.x,o=t.y-e.y;return r<0||r*r<n*n+o*o}function c(e,t){var r=e.r-t.r+1e-9*Math.max(e.r,t.r,1),n=t.x-e.x,o=t.y-e.y;return r>0&&r*r>n*n+o*o}function u(e,t){for(var r=0;r<t.length;++r)if(!c(e,t[r]))return!1;return!0}function d(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return f(e[0],e[1]);case 3:return p(e[0],e[1],e[2])}var t}function f(e,t){var r=e.x,n=e.y,o=e.r,i=t.x,a=t.y,s=t.r,l=i-r,c=a-n,u=s-o,d=Math.sqrt(l*l+c*c);return{x:(r+i+l/d*u)/2,y:(n+a+c/d*u)/2,r:(d+o+s)/2}}function p(e,t,r){var n=e.x,o=e.y,i=e.r,a=t.x,s=t.y,l=t.r,c=r.x,u=r.y,d=r.r,f=n-a,p=n-c,h=o-s,m=o-u,g=l-i,y=d-i,v=n*n+o*o-i*i,b=v-a*a-s*s+l*l,_=v-c*c-u*u+d*d,w=p*h-f*m,S=(h*_-m*b)/(2*w)-n,E=(m*g-h*y)/w,k=(p*b-f*_)/(2*w)-o,x=(f*y-p*g)/w,T=E*E+x*x-1,O=2*(i+S*E+k*x),C=S*S+k*k-i*i,j=-(Math.abs(T)>1e-6?(O+Math.sqrt(O*O-4*T*C))/(2*T):C/O);return{x:n+S+E*j,y:o+k+x*j,r:j}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2272),o=r(2284),i=r(2277),a=r(2278);function s(){var e=o.default,t=!1,r=1,s=1,l=[0],c=a.constantZero,u=a.constantZero,d=a.constantZero,f=a.constantZero,p=a.constantZero;function h(e){return e.x0=e.y0=0,e.x1=r,e.y1=s,e.eachBefore(m),l=[0],t&&e.eachBefore(n.default),e}function m(t){var r=l[t.depth],n=t.x0+r,o=t.y0+r,i=t.x1-r,a=t.y1-r;i<n&&(n=i=(n+i)/2),a<o&&(o=a=(o+a)/2),t.x0=n,t.y0=o,t.x1=i,t.y1=a,t.children&&(r=l[t.depth+1]=c(t)/2,n+=p(t)-r,o+=u(t)-r,(i-=d(t)-r)<n&&(n=i=(n+i)/2),(a-=f(t)-r)<o&&(o=a=(o+a)/2),e(t,n,o,i,a))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(r=+e[0],s=+e[1],h):[r,s]},h.tile=function(t){return arguments.length?(e=(0,i.required)(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(c="function"==typeof e?e:(0,a.default)(+e),h):c},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(u="function"==typeof e?e:(0,a.default)(+e),h):u},h.paddingRight=function(e){return arguments.length?(d="function"==typeof e?e:(0,a.default)(+e),h):d},h.paddingBottom=function(e){return arguments.length?(f="function"==typeof e?e:(0,a.default)(+e),h):f},h.paddingLeft=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),h):p},h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,phi:()=>i,squarifyRatio:()=>a});var n=r(2273),o=r(2285),i=(1+Math.sqrt(5))/2;function a(e,t,r,i,a,s){for(var l,c,u,d,f,p,h,m,g,y,v,b=[],_=t.children,w=0,S=0,E=_.length,k=t.value;w<E;){u=a-r,d=s-i;do{f=_[S++].value}while(!f&&S<E);for(p=h=f,v=f*f*(y=Math.max(d/u,u/d)/(k*e)),g=Math.max(h/v,v/p);S<E;++S){if(f+=c=_[S].value,c<p&&(p=c),c>h&&(h=c),v=f*f*y,(m=Math.max(h/v,v/p))>g){f-=c;break}g=m}b.push(l={value:f,dice:u<d,children:_.slice(w,S)}),l.dice?(0,n.default)(l,r,i,a,k?i+=d*f/k:s):(0,o.default)(l,r,i,k?r+=u*f/k:a,s),k-=f,w=S}return b}const s=function e(t){function r(e,r,n,o,i){a(t,e,r,n,o,i)}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(i)},(e,t,r)=>{"use strict";function n(e,t,r,n,o){for(var i,a=e.children,s=-1,l=a.length,c=e.value&&(o-r)/e.value;++s<l;)(i=a[s]).x0=t,i.x1=n,i.y0=r,i.y1=r+=i.value*c}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r,n,o){var i,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=i=0;i<l;++i)c[i+1]=a+=s[i].value;!function e(t,r,n,o,i,a,l){if(t>=r-1){var u=s[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=l)}var d=c[t],f=n/2+d,p=t+1,h=r-1;for(;p<h;){var m=p+h>>>1;c[m]<f?p=m+1:h=m}f-c[p-1]<c[p]-f&&t+1<p&&--p;var g=c[p]-d,y=n-g;if(a-o>l-i){var v=n?(o*y+a*g)/n:a;e(t,p,g,o,i,v,l),e(p,r,y,v,i,a,l)}else{var b=n?(i*y+l*g)/n:l;e(t,p,g,o,i,a,b),e(p,r,y,o,b,a,l)}}(0,l,e.value,t,r,n,o)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2273),o=r(2285);function i(e,t,r,i,a){(1&e.depth?o.default:n.default)(e,t,r,i,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2273),o=r(2285),i=r(2284);const a=function e(t){function r(e,r,a,s,l){if((c=e._squarify)&&c.ratio===t)for(var c,u,d,f,p,h=-1,m=c.length,g=e.value;++h<m;){for(d=(u=c[h]).children,f=u.value=0,p=d.length;f<p;++f)u.value+=d[f].value;u.dice?(0,n.default)(u,r,a,s,g?a+=(l-a)*u.value/g:l):(0,o.default)(u,r,a,g?r+=(s-r)*u.value/g:s,l),g-=u.value}else e._squarify=c=(0,i.squarifyRatio)(t,e,r,a,s,l),c.ratio=t}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(i.phi)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(296),o=r(2290),i=r(2083);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=e.animation,r=e.className,s=e.height,c=e.hideRootNode,u=e.getLabel,d=e.mode,f=e.nodes,p=e.width,h=e.scales,m=e.style,g="circlePack"===d;return n.default.createElement("div",{className:(0,i.getCombinedClassName)("rv-treemap",g&&"rv-treemap-circle-paked",r),style:{height:s,width:p}},f.map(function(r,i){if(c&&!i)return null;var s=l(l({animation:t,node:r,getLabel:u},e),{},{x0:g?r.x:r.x0,x1:g?r.x:r.x1,y0:g?r.y:r.y0,y1:g?r.y:r.y1,r:g?r.r:1,scales:h,style:m});return n.default.createElement(o.default,a({},s,{key:"leaf-".concat(i)}))}))}u.displayName="TreemapDOM";const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(296),o=r(668),i=r.n(o),a=r(1985),s=r(2015);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}var f=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function p(e){var t=e.animation,r=e.getLabel,o=e.mode,i=e.node,l=e.onLeafClick,u=e.onLeafMouseOver,h=e.onLeafMouseOut,m=e.r,g=e.scales,y=e.x0,v=e.x1,b=e.y0,_=e.y1,w=e.style;if(t)return n.default.createElement(a.default,d({},e,{animatedProps:f}),n.default.createElement(p,d({},e,{animation:null})));var S="circlePack"===o,E=g.color(i),k=g.opacity(i),x=(0,s.getFontColorFromBackground)(E),T=r(i.data),O=c(c({top:S?b-m:b,left:S?y-m:y,width:S?2*m:v-y,height:S?2*m:_-b,background:E,opacity:k,color:x},w),i.data.style);return n.default.createElement("div",{className:"rv-treemap__leaf ".concat(S?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return u(i,e)},onMouseLeave:function(e){return h(i,e)},onClick:function(e){return l(i,e)},style:O},n.default.createElement("div",{className:"rv-treemap__leaf__content"},T))}p.propTypes={animation:a.AnimationPropType,height:i().number.isRequired,mode:i().string,node:i().object.isRequired,onLeafClick:i().func,onLeafMouseOver:i().func,onLeafMouseOut:i().func,scales:i().object.isRequired,width:i().number.isRequired,r:i().number.isRequired,x0:i().number.isRequired,x1:i().number.isRequired,y0:i().number.isRequired,y1:i().number.isRequired};const h=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(296),o=r(2207),i=r(2199),a=r(2195),s=r(2192),l=r(2083);function c(e){return c="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},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(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}}),t&&m(e,t)}(p,e);var t,r,c,d=g(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return t=p,(r=[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,o=e.nodes,i=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,d=o.reduce(function(e,t,n){if(!n&&r)return e;var o=t.x,i=t.y,a=t.r;return{maxY:Math.max(i+a,e.maxY),minY:Math.min(i-a,e.minY),maxX:Math.max(o+1.2*a,e.maxX),minX:Math.min(o-1.2*a,e.minX),rows:e.rows.concat([{x:o,y:i,size:a,color:c.color(t)}])}},{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),f=d.rows,p=d.minY,h=d.maxY,m=d.minX,g=d.maxX;return{updatedNodes:n.default.createElement(a.default,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:i,onSeriesMouseLeave:s,onSeriesClick:l,data:f,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:u}),minY:p,maxY:h,minX:m,maxX:g}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,o=e.nodes,a=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,d=c.color;return o.reduce(function(e,o,c){if(!c&&r)return e;var p=o.x0,h=o.x1,m=o.y1,g=o.y0,y=p,v=g,b=m-g,_=h-p;e.maxY=Math.max(v+b,e.maxY),e.minY=Math.min(v,e.minY),e.maxX=Math.max(y+_,e.maxX),e.minX=Math.min(y,e.minX);var w=[{x:y,y:v},{x:y,y:v+b},{x:y+_,y:v+b},{x:y+_,y:v}];return e.updatedNodes=e.updatedNodes.concat([n.default.createElement(i.default,{animation:t,className:"rv-treemap__leaf",key:c,color:d(o),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:l,data:w,style:f(f({},u),o.style)})]),e},{updatedNodes:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,i=e.mode,a=e.nodes,c=e.width,d="circlePack"===i,p=d?this.getCircularNodes():this.getNonCircularNodes(),h=p.minY,m=p.maxY,g=p.minX,y=p.maxX,v=p.updatedNodes,b=a.reduce(function(e,t){return t.data.title?e.concat(f(f({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e},[]);return n.default.createElement(o.default,u({className:(0,l.getCombinedClassName)("rv-treemap",d&&"rv-treemap-circle-paked",t),width:c,height:r,yDomain:[m,h],xDomain:[g,y],colorType:"literal",hasTreeStructure:!0},this.props),v,n.default.createElement(s.default,{data:b}))}}])&&h(t.prototype,r),c&&h(t,c),p}(n.default.Component);v.displayName="TreemapSVG";const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(296);function o(e){var t=e.id,r=void 0===t?"content-area":t,o=e.innerWidth,i=e.innerHeight;return n.default.createElement("defs",null,n.default.createElement("clipPath",{id:r},n.default.createElement("rect",{x:0,y:0,width:o,height:i})))}o.requiresSVG=!0,o.displayName="ContentClipPath"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FlexibleHeightXYPlot:()=>R,FlexibleWidthXYPlot:()=>I,FlexibleXYPlot:()=>A,makeHeightFlexible:()=>C,makeVisFlexible:()=>j,makeWidthFlexible:()=>P});var n=r(296),o=r(2294),i=r.n(o),a=r(2207),s=r(2073);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="container",w=[],S=100,E=null;function k(){i().clearTimeout(E),E=i().setTimeout(x,S)}function x(){w.forEach(function(e){return e()})}function T(e){return w.push(e),1===w.length&&i().addEventListener("resize",k),function(){!function(e){var t=w.indexOf(e);t>-1&&w.splice(t,1)}(e),0===w.length&&(i().clearTimeout(E),i().removeEventListener("resize",k))}}function O(e,t,r){var o,i=(o=function(o){!function(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}}),t&&m(e,t)}(a,o);var i=g(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),b(y(t=i.call(this,e)),"_onResize",function(){var e=(0,s.getDOMNode)(t[_]),r=e.offsetHeight,n=e.offsetWidth,o=t.state.height===r?{}:{height:r},i=t.state.width===n?{}:{width:n};t.setState(d(d({},o),i))}),t.state={height:0,width:0},t}return h(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return f(t,["height","width"])}}]),h(a,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=T(this._onResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var o=this,i=this.state,a=i.height,s=i.width,l=d(d({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),u=d(d({},r?{height:a}:{}),t?{width:s}:{});return n.default.createElement("div",{ref:function(e){return o[_]=e},style:{width:"100%",height:"100%"}},n.default.createElement(e,c({},u,l)))}}]),a}(n.default.Component),o);return i.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),i}function C(e){return O(e,!1,!0)}function j(e){return O(e,!0,!0)}function P(e){return O(e,!0,!1)}var I=P(a.default),R=C(a.default),A=j(a.default)},(e,t,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},e.exports=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareVersions:()=>o});var n=r(2571);const o=(e,t)=>{const r=(0,n.validateAndParse)(e),o=(0,n.validateAndParse)(t),i=r.pop(),a=o.pop(),s=(0,n.compareSegments)(r,o);return 0!==s?s:i&&a?(0,n.compareSegments)(i.split("."),a.split(".")):i||a?i?-1:1:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareSegments:()=>l,semver:()=>n,validateAndParse:()=>o});const n=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,o=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(n);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},i=e=>"*"===e||"x"===e||"X"===e,a=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},s=(e,t)=>{if(i(e)||i(t))return 0;const[r,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(a(e),a(t));return r>n?1:r<n?-1:0},l=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=s(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{DragDropContext:()=>An,Draggable:()=>Jn,Droppable:()=>wo,useKeyboardSensor:()=>un,useMouseSensor:()=>an,useTouchSensor:()=>hn});var n=r(296),o=r(2903),i=r(2904),a=r(2907),s=r(2909),l=r(678);function c(e,t){}c.bind(null,"warn"),c.bind(null,"error");function u(){}function d(e,t,r){const n=t.map(t=>{const n=function(e,t){return{...e,...t}}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}});return function(){n.forEach(e=>{e()})}}const f=!0,p="Invariant failed";class h extends Error{}function m(e,t){throw new h(f?p:`${p}: ${t||""}`)}h.prototype.toString=function(){return this.message};class g extends n.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=u,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof h&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=d(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof h))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const y=e=>e+1,v=(e,t)=>{const r=e.droppableId===t.droppableId,n=y(e.index),o=y(t.index);return r?`\n You have moved the item from position ${n}\n to position ${o}\n `:`\n You have moved the item from position ${n}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},b=(e,t,r)=>t.droppableId===r.droppableId?`\n The item ${e}\n has been combined with ${r.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${r.draggableId}\n in list ${r.droppableId}\n `,_=e=>`\n The item has returned to its starting position\n of ${y(e.index)}\n`,w={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${y(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return v(e.source,t);const r=e.combine;return r?b(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${_(e.source)}\n `;const t=e.destination,r=e.combine;return t?`\n You have dropped the item.\n ${v(e.source,t)}\n `:r?`\n You have dropped the item.\n ${b(e.draggableId,e.source,r)}\n `:`\n The item has been dropped while not over a drop area.\n ${_(e.source)}\n `}};function S(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function E(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!S(e[r],t[r]))return!1;return!0}function k(e,t){const r=(0,n.useState)(()=>({inputs:t,result:e()}))[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||Boolean(t&&i.current.inputs&&E(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,n.useEffect)(()=>{o.current=!1,i.current=a},[a]),a.result}function x(e,t){return k(()=>e,t)}const T={x:0,y:0},O=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),C=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),j=(e,t)=>e.x===t.x&&e.y===t.y,P=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),I=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},R=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),A=(e,t)=>Math.min(...t.map(t=>R(e,t))),M=e=>t=>({x:e(t.x),y:e(t.y)});const D=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),N=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],L=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const r=(0,a.getRect)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r})(t.pageMarginBox,e):(0,a.getRect)(e);var B=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const o=((e,t)=>t?D(e,t.scroll.diff.displacement):e)(e.marginBox,n),i=((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(o,r,t);return{page:e,withPlaceholder:t,active:L(i,n)}},F=(e,t)=>{e.frame||m();const r=e.frame,n=C(t,r.scroll.initial),o=P(n),i={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}},a=B({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function z(e,t=E){let r=null;function n(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;const o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){r=null},n}const U=z(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),H=z(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),q=z(e=>Object.values(e)),V=z(e=>Object.values(e));var W=z((e,t)=>{const r=V(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return r});function G(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function $(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var K=z((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),Y=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const J={point:T,value:0},X={invisible:{},visible:{},all:[]},Q={displaced:X,displacedBy:J,at:null};var Z=(e,t)=>r=>e<=r&&r<=t,ee=e=>{const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const o=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;const a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;if(a&&s)return!0;return a&&i||s&&o}},te=e=>{const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};const re={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ne={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const oe=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:o})=>{const i=n?((e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:T;return D(e,r)})(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(i,t,o)&&((e,t,r)=>r(t)(e))(i,r,o)},ie=e=>oe({...e,isVisibleThroughFrameFn:te});function ae({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:o,last:i}){return e.reduce(function(e,s){const l=function(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,a.getRect)((0,a.expand)(r,n))}(s,r),c=s.descriptor.id;e.all.push(c);var u;if(!(u={target:l,destination:t,viewport:n,withDroppableDisplacement:!0},oe({...u,isVisibleThroughFrameFn:ee})))return e.invisible[s.descriptor.id]=!0,e;const d=((e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;const{invisible:n,visible:o}=t;if(n[e])return!1;const i=o[e];return!i||i.shouldAnimate})(c,i,o),f={draggableId:c,shouldAnimate:d};return e.visible[c]=f,e},{all:[],visible:{},invisible:{}})}function se({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const o=function(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:X,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function le({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:o,last:i,index:a,forceShouldAnimate:s}){const l=Y(e,r);if(null==a)return se({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const c=t.find(e=>e.descriptor.index===a);if(!c)return se({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const u=K(e,t),d=t.indexOf(c);return{displaced:ae({afterDragging:u.slice(d),destination:r,displacedBy:o,last:i,viewport:n.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function ce(e,t){return Boolean(t.effected[e])}var ue=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:o,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||m(),"REORDER"===c.type){const n=(({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const o=n.index,i=e?o+1:o-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return i<a||i>(t?s:s+1)?null:i})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return null==n?null:le({draggable:r,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:n})}const u=(({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=n.draggableId,a=r[i].descriptor.index;return ce(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:n,combine:c.combine,afterCritical:l});return null==u?null:le({draggable:r,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},de=({afterCritical:e,impact:t,draggables:r})=>{const n=$(t);n||m();const o=n.draggableId,i=r[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const o=Boolean(e.visible[r]||e.invisible[r]);return ce(r,t)?o?T:P(n.point):o?n.point:T})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return O(i,a)};const fe=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,pe=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,he=({axis:e,moveRelativeTo:t,isMoving:r})=>I(e.line,t.marginBox[e.end]+fe(e,r),pe(e,t.marginBox,r)),me=({axis:e,moveRelativeTo:t,isMoving:r})=>I(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),pe(e,t.marginBox,r));var ge=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o})=>{const i=W(n.descriptor.id,r),s=t.page,l=n.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:r})=>I(e.line,t.contentBox[e.start]+fe(e,r),pe(e,t.contentBox,r)))({axis:l,moveInto:n.page,isMoving:s});const{displaced:c,displacedBy:u}=e,d=c.all[0];if(d){const e=r[d];if(ce(d,o))return me({axis:l,moveRelativeTo:e.page,isMoving:s});const t=(0,a.offset)(e.page,u.point);return me({axis:l,moveRelativeTo:t,isMoving:s})}const f=i[i.length-1];if(f.descriptor.id===t.descriptor.id)return s.borderBox.center;if(ce(f.descriptor.id,o)){const e=(0,a.offset)(f.page,P(o.displacedBy.point));return he({axis:l,moveRelativeTo:e,isMoving:s})}return he({axis:l,moveRelativeTo:f.page,isMoving:s})},ye=(e,t)=>{const r=e.frame;return r?O(t,r.scroll.diff.displacement):t};var ve=e=>{const t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?ge({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o}):de({impact:e,draggables:n,afterCritical:o}):i})(e),r=e.droppable;return r?ye(r,t):t},be=(e,t)=>{const r=C(t,e.scroll.initial),n=P(r);return{frame:(0,a.getRect)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function _e(e,t){return e.map(e=>t[e])}var we=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>O(e.scroll.diff.displacement,t))(r,e),o=C(n,t.page.borderBox.center);return O(t.client.borderBox.center,o)},Se=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=C(r,e.page.borderBox.center),s={target:D(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:n};return i?(e=>{return oe({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=Z(e.top,e.bottom),n=Z(e.left,e.right);return e=>t===re?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):ie(s)},Ee=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;const c=W(r.descriptor.id,n),u=Y(t,r),d=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:o})=>{if(!r.isCombineEnabled)return null;if(!G(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,s=a.length?a[0]:null;if(e)return s?i(s):null;const l=K(t,n);if(!s)return l.length?i(l[l.length-1].descriptor.id):null;const c=l.findIndex(e=>e.descriptor.id===s);-1===c&&m();const u=c-1;return u<0?null:i(l[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:o})||ue({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:o,viewport:i,afterCritical:l});if(!d)return null;const f=ve({impact:d,draggable:t,droppable:r,draggables:n,afterCritical:l});if(Se({draggable:t,destination:r,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:we({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null}}const p=C(f,a),h=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:o})=>{const i=be(t,O(t.scroll.current,o)),a=r.frame?F(r,O(r.frame.scroll.current,o)):r,s=e.displaced,l=ae({afterDragging:_e(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),c=ae({afterDragging:_e(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},f=[s,l,c];return s.all.forEach(e=>{const t=function(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}(e,f);t?d[e]=t:u[e]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:d}}})({impact:d,viewport:i,destination:r,draggables:n,maxScrollChange:p});return{clientSelection:s,impact:h,scrollJumpRequest:p}};const ke=e=>{const t=e.subject.active;return t||m(),t};const xe=(e,t)=>{const r=e.page.borderBox.center;return ce(e.descriptor.id,t)?C(r,t.displacedBy.point):r},Te=(e,t)=>{const r=e.page.borderBox;return ce(e.descriptor.id,t)?D(r,P(t.displacedBy.point)):r};var Oe=z(function(e,t){const r=t[e.line];return{value:r,point:I(e.line,r)}});const Ce=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),je=(e,t,r)=>{const n=e.frame;Y(t,e)&&m(),e.subject.withPlaceholder&&m();const o=Oe(e.axis,t.displaceBy).point,i=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return I(n.line,t[n.line]);const o=e.subject.page.contentBox[n.size],i=W(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-o;return i<=0?null:I(n.line,i)})(e,o,r),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=i?O(n.scroll.max,i):n.scroll.max,l=Ce(n,s),c=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}};var Pe=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:o,droppables:i,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:o})=>{const i=r.subject.active;if(!i)return null;const a=r.axis,s=Z(i[a.start],i[a.end]),l=q(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>ee(o.frame)(ke(e))).filter(t=>{const r=ke(t);return e?i[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{const t=ke(e),r=Z(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||r(i[a.start])||r(i[a.end])}).sort((t,r)=>{const n=ke(t)[a.crossAxisStart],o=ke(r)[a.crossAxisStart];return e?n-o:o-n}).filter((e,t,r)=>ke(e)[a.crossAxisStart]===ke(r[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const c=l.filter(e=>Z(ke(e)[a.start],ke(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>ke(e)[a.start]-ke(t)[a.start])[0]:l.sort((e,r)=>{const n=A(t,N(ke(e))),o=A(t,N(ke(r)));return n!==o?n-o:ke(e)[a.start]-ke(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:i,viewport:a});if(!l)return null;const c=W(l.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:o})=>{const i=n.filter(e=>ie({target:Te(e,o),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{const i=R(e,ye(r,xe(t,o))),a=R(e,ye(r,xe(n,o)));return i<a?-1:a<i?1:t.descriptor.index-n.descriptor.index});return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:o,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(r.length)return null;const e={displaced:X,displacedBy:J,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=ve({impact:e,draggable:n,droppable:i,draggables:o,afterCritical:s}),l=Y(n,i)?i:je(i,n,o);return Se({draggable:n,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||l?e:e+1})(),u=Oe(i.axis,n.displaceBy);return le({draggable:n,insideDestination:r,destination:i,viewport:a,displacedBy:u,last:X,index:c})})({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:o,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!d)return null;const f=ve({impact:d,draggable:r,droppable:l,draggables:o,afterCritical:s});return{clientSelection:we({pageBorderBoxCenter:f,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null}},Ie=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var Re=({state:e,type:t})=>{const r=((e,t)=>{const r=Ie(e);return r?t[r]:null})(e.impact,e.dimensions.droppables),n=Boolean(r),o=e.dimensions.droppables[e.critical.droppable.id],i=r||o,a=i.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!n)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return s?Ee({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Pe({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function Ae(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Me(e){const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function De({pageBorderBox:e,draggable:t,droppables:r}){const n=q(r).filter(t=>{if(!t.isEnabled)return!1;const r=t.subject.active;if(!r)return!1;if(o=r,!((n=e).left<o.right&&n.right>o.left&&n.top<o.bottom&&n.bottom>o.top))return!1;var n,o;if(Me(r)(e.center))return!0;const i=t.axis,a=r.center[i.crossAxisLine],s=e[i.crossAxisStart],l=e[i.crossAxisEnd],c=Z(r[i.crossAxisStart],r[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,o=r.map(t=>{const r=t.axis,o=I(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:R(n,o)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Ne=(e,t)=>(0,a.getRect)(D(e,t));function Le({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Be=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:o,viewport:i,afterCritical:a})=>{const s=Ne(t.page.borderBox,e),l=De({pageBorderBox:s,draggable:t,droppables:n});if(!l)return Q;const c=n[l],u=W(c.descriptor.id,r),d=((e,t)=>{const r=e.frame;return r?Ne(t,r.scroll.diff.value):t})(c,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:o,afterCritical:i})=>{if(!n.isCombineEnabled)return null;const a=n.axis,s=Oe(n.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],d=K(e,o).find(e=>{const t=e.descriptor.id,n=e.page.borderBox,o=n[a.size]/4,s=ce(t,i),d=Le({displaced:r.displaced,id:t});return s?d?u>n[a.start]+o&&u<n[a.end]-o:c>n[a.start]-l+o&&c<n[a.end]-l-o:d?u>n[a.start]+l+o&&u<n[a.end]+l-o:c>n[a.start]+o&&c<n[a.end]-o});return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:c,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:o,viewport:i,afterCritical:a})=>{const s=r.axis,l=Oe(r.axis,t.displaceBy),c=l.value,u=e[s.start],d=e[s.end],f=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:K(t,n).find(e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=ce(t,a),i=Le({displaced:o,id:t});return n?i?d<=r:u<r-c:i?d<=r+c:u<r})||null,inHomeList:Y(t,r)});return le({draggable:t,insideDestination:n,destination:r,viewport:i,last:o,displacedBy:l,index:f})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:o.displaced,viewport:i,afterCritical:a})},Fe=(e,t)=>({...e,[t.descriptor.id]:t});const ze=({previousImpact:e,impact:t,droppables:r})=>{const n=Ie(e),o=Ie(t);if(!n)return r;if(n===o)return r;const i=r[n];if(!i.subject.withPlaceholder)return r;const a=(e=>{const t=e.subject.withPlaceholder;t||m();const r=e.frame;if(!r){const t=B({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||m();const o=Ce(r,n),i=B({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return Fe(r,a)};var Ue=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:o,scrollJumpRequest:i})=>{const a=n||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=C(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:O(e.initial.client.borderBoxCenter,c)},d={selection:O(u.selection,a.scroll.current),borderBoxCenter:O(u.borderBoxCenter,a.scroll.current),offset:O(u.offset,a.scroll.diff.value)},f={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:f};const p=s.draggables[e.critical.draggable.id],h=o||Be({pageOffset:d.offset,draggable:p,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:o})=>{const i=ze({previousImpact:n,impact:o,droppables:r}),a=Ie(o);if(!a)return i;const s=r[a];if(Y(e,s))return i;if(s.subject.withPlaceholder)return i;const l=je(s,e,t);return Fe(i,l)})({draggable:p,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:m},impact:h,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}};var He=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map(e=>t[e])}(i.all,r),s=ae({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:s}},qe=({impact:e,draggable:t,droppable:r,draggables:n,viewport:o,afterCritical:i})=>{const a=ve({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i});return we({pageBorderBoxCenter:a,draggable:t,viewport:o})},Ve=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&m();const n=e.impact,o=r||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],c=Ie(n);c||m();const u=s[c],d=He({impact:n,viewport:o,destination:u,draggables:a}),f=qe({impact:d,draggable:l,droppable:u,draggables:a,viewport:o,afterCritical:e.afterCritical});return Ue({impact:d,clientSelection:f,state:e,dimensions:i,viewport:o})},We=({draggable:e,home:t,draggables:r,viewport:n})=>{const o=Oe(t.axis,e.displaceBy),i=W(t.descriptor.id,r),a=i.indexOf(e);-1===a&&m();const s=i.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:l};var u;return{impact:{displaced:ae({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const Ge=e=>{0},$e=e=>{0};var Ke=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||m(),t})(t[o]),s=i.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=(0,a.offset)(e.client,t),o=(0,a.withScroll)(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:o}})({draggable:e,offset:O(n,s),initialWindowScroll:r.scroll.initial});return l})};const Ye=e=>"SNAP"===e.movementMode,Je=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:Fe(e.droppables,t)}))(e.dimensions,t);return!Ye(e)||r?Ue({state:e,dimensions:n}):Ve({state:e,dimensions:n})};function Xe(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Qe={phase:"IDLE",completed:null,shouldFlush:!1};var Ze=(e=Qe,t)=>{if("FLUSH"===t.type)return{...Qe,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&m();const{critical:r,clientSelection:n,viewport:o,dimensions:i,movementMode:a}=t.payload,s=i.draggables[r.draggable.id],l=i.droppables[r.droppable.id],c={selection:n,borderBoxCenter:s.client.borderBox.center,offset:T},u={client:c,page:{selection:O(c.selection,o.scroll.initial),borderBoxCenter:O(c.selection,o.scroll.initial),offset:O(c.selection,o.scroll.diff.value)}},d=q(i.droppables).every(e=>!e.isFixedOnPage),{impact:f,afterCritical:p}=We({draggable:s,home:l,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&m();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&m(),(({state:e,published:t})=>{Ge();const r=t.modified.map(t=>{const r=e.dimensions.droppables[t.droppableId];return F(r,t.scroll)}),n={...e.dimensions.droppables,...U(r)},o=H(Ke({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(e=>{delete i[e]});const a={droppables:n,draggables:i},s=Ie(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=We({draggable:c,home:u,draggables:i,viewport:e.viewport}),p=l&&l.isCombineEnabled?e.impact:d,h=Be({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f});$e();const m={...e,phase:"DRAGGING",impact:h,onLiftImpact:d,dimensions:a,afterCritical:f,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ae(e)||m();const{client:r}=t.payload;return j(r,e.current.client.selection)?e:Ue({state:e,clientSelection:r,impact:Ye(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Xe(e);if("COLLECTING"===e.phase)return Xe(e);Ae(e)||m();const{id:r,newScroll:n}=t.payload,o=e.dimensions.droppables[r];if(!o)return e;const i=F(o,n);return Je(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ae(e)||m();const{id:r,isEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||m(),o.isEnabled===n&&m();const i={...o,isEnabled:n};return Je(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ae(e)||m();const{id:r,isCombineEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||m(),o.isCombineEnabled===n&&m();const i={...o,isCombineEnabled:n};return Je(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ae(e)||m(),e.isWindowScrollAllowed||m();const r=t.payload.newScroll;if(j(e.viewport.scroll.current,r))return Xe(e);const n=be(e.viewport,r);return Ye(e)?Ve({state:e,viewport:n}):Ue({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ae(e))return e;const r=t.payload.maxScroll;if(j(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&m();const r=Re({state:e,type:t.type});return r?Ue({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const r=t.payload.reason;"COLLECTING"!==e.phase&&m();return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){const{completed:r,dropDuration:n,newHomeClientOffset:o}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&m();return{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function et(e,t){return e instanceof Object&&"type"in e&&e.type===t}const tt=e=>({type:"LIFT",payload:e}),rt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),nt=()=>({type:"COLLECTION_STARTING",payload:null}),ot=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),it=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),at=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),st=e=>({type:"MOVE",payload:e}),lt=()=>({type:"MOVE_UP",payload:null}),ct=()=>({type:"MOVE_DOWN",payload:null}),ut=()=>({type:"MOVE_RIGHT",payload:null}),dt=()=>({type:"MOVE_LEFT",payload:null}),ft=()=>({type:"FLUSH",payload:null}),pt=e=>({type:"DROP_COMPLETE",payload:e}),ht=e=>({type:"DROP",payload:e}),mt=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const gt="cubic-bezier(.2,1,.1,1)",yt={drop:0,combining:.7},vt={drop:.75},bt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},_t=`${bt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,wt={fluid:`opacity ${_t}`,snap:`transform ${_t}, opacity ${_t}`,drop:e=>{const t=`${e}s ${gt}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${_t}`,placeholder:`height ${_t}, width ${_t}, margin ${_t}`},St=e=>j(e,T)?void 0:`translate(${e.x}px, ${e.y}px)`,Et=St,kt=(e,t)=>{const r=St(e);if(r)return t?`${r} scale(${vt.drop})`:r},{minDropTime:xt,maxDropTime:Tt}=bt,Ot=Tt-xt;const Ct=({getState:e,dispatch:t})=>r=>n=>{if(!et(n,"DROP"))return void r(n);const o=e(),i=n.payload.reason;if("COLLECTING"===o.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:i}));if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&m(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&m();const a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:u}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:o,onLiftImpact:i})=>{if(!r.at||"DROP"!==t)return{impact:He({draggables:e,impact:i,destination:n,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:X},didDropInsideDroppable:!0}})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u?G(c):null,f=u?$(c):null,p={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:l.descriptor.id,type:l.descriptor.type,source:p,reason:i,mode:o.movementMode,destination:d,combine:f},g=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:o})=>{const{draggables:i,droppables:a}=r,s=Ie(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=qe({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:l||c,viewport:n});return C(u,t.client.borderBox.center)})({impact:c,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!(!j(o.current.client.offset,g)||Boolean(h.combine)))return void t(pt({completed:y}));const v=(({current:e,destination:t,reason:r})=>{const n=R(e,t);if(n<=0)return xt;if(n>=1500)return Tt;const o=xt+Ot*(n/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:g,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:v,completed:y}))};var jt=()=>({x:window.pageXOffset,y:window.pageYOffset});function Pt({onWindowScroll:e}){const t=(0,s.default)(function(){e(jt())}),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=u;function o(){return n!==u}return{start:function(){o()&&m(),n=d(window,[r])},stop:function(){o()||m(),t.cancel(),n(),n=u},isActive:o}}const It=e=>{const t=Pt({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{!t.isActive()&&et(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(r)&&t.stop(),e(r)}};var Rt=()=>{const e=[];return{add:t=>{const r=setTimeout(()=>(t=>{const r=e.findIndex(e=>e.timerId===t);-1===r&&m();const[n]=e.splice(r,1);n.callback()})(r)),n={timerId:r,callback:t};e.push(n)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const At=(e,t)=>{Ge(),t(),$e()},Mt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Dt(e,t,r,n){if(!e)return void r(n(t));const o=(e=>{let t=!1,r=!1;const n=setTimeout(()=>{r=!0}),o=o=>{t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=()=>t,o})(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}var Nt=(e,t)=>{const r=((e,t)=>{const r=Rt();let n=null;const o=r=>{n||m(),n=null,At(0,()=>Dt(e().onDragEnd,r,t,w.onDragEnd))};return{beforeCapture:(t,r)=>{n&&m(),At(0,()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&m(),At(0,()=>{const n=e().onBeforeDragStart;n&&n(Mt(t,r))})},start:(o,i)=>{n&&m();const a=Mt(o,i);n={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},r.add(()=>{At(0,()=>Dt(e().onDragStart,a,t,w.onDragStart))})},update:(o,i)=>{const a=G(i),s=$(i);n||m();const l=!((e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n})(o,n.lastCritical);l&&(n.lastCritical=o);const c=(d=a,!(null==(u=n.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(n.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(f&&(n.lastCombine=s),!l&&!c&&!f)return;const p={...Mt(o,n.mode),combine:s,destination:a};r.add(()=>{At(0,()=>Dt(e().onDragUpdate,p,t,w.onDragUpdate))})},flush:()=>{n||m(),r.flush()},drop:o,abort:()=>{if(!n)return;const e={...Mt(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>n=>{if(et(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(et(n,"INITIAL_PUBLISH")){const e=n.payload.critical;return r.beforeStart(e,n.payload.movementMode),t(n),void r.start(e,n.payload.movementMode)}if(et(n,"DROP_COMPLETE")){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),et(n,"FLUSH"))return void r.abort();const o=e.getState();"DRAGGING"===o.phase&&r.update(o.critical,o.impact)}};const Lt=e=>t=>r=>{if(!et(r,"DROP_ANIMATION_FINISHED"))return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&m(),e.dispatch(pt({completed:n.completed}))},Bt=e=>{let t=null,r=null;return n=>o=>{if((et(o,"FLUSH")||et(o,"DROP_COMPLETE")||et(o,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),!et(o,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame(()=>{r=null,t=d(window,[i])})}};var Ft=e=>t=>r=>n=>{if((e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(n))return e.stop(),void r(n);if(et(n,"INITIAL_PUBLISH")){r(n);const o=t.getState();return"DRAGGING"!==o.phase&&m(),void e.start(o)}r(n),e.scroll(t.getState())};const zt=e=>t=>r=>{if(t(r),!et(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(ht({reason:n.reason})))},Ut=o.compose;var Ht=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:i,autoScroller:a})=>{return(0,o.createStore)(Ze,Ut((0,o.applyMiddleware)((s=r,()=>e=>t=>{et(t,"INITIAL_PUBLISH")&&s.dragging(),et(t,"DROP_ANIMATE")&&s.dropping(t.payload.completed.result.reason),(et(t,"FLUSH")||et(t,"DROP_COMPLETE"))&&s.resting(),e(t)}),(e=>()=>t=>r=>{(et(r,"DROP_COMPLETE")||et(r,"FLUSH")||et(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>o=>{if(!et(o,"LIFT"))return void n(o);const{id:i,clientSelection:a,movementMode:s}=o.payload,l=t();"DROP_ANIMATING"===l.phase&&r(pt({completed:l.completed})),"IDLE"!==t().phase&&m(),r(ft()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});const c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(c);r({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:s,viewport:f}})})(e),Ct,Lt,Bt,zt,Ft(a),It,(e=>{let t=!1;return()=>r=>n=>{if(et(n,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if(et(n,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(et(n,"DROP_COMPLETE")){t=!1;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Nt(n,i))));var s};var qt=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const o=C({x:t,y:e},{x:n,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Vt=()=>{const e=document.documentElement;return e||m(),e},Wt=()=>{const e=Vt();return qt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Gt=({critical:e,scrollOptions:t,registry:r})=>{Ge();const n=(()=>{const e=jt(),t=Wt(),r=e.y,n=e.x,o=Vt(),i=n+o.clientWidth,s=r+o.clientHeight;return{frame:(0,a.getRect)({top:r,left:n,right:i,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:T,displacement:T}}}})(),o=n.scroll.current,i=e.droppable,s=r.droppable.getAllByType(i.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,t)),l=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o)),c={draggables:H(l),droppables:U(s)};$e();return{dimensions:c,critical:e,viewport:n}};function $t(e,t,r){if(r.descriptor.id===t.id)return!1;if(r.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Kt=(e,t)=>{let r=null;const n=function({registry:e,callbacks:t}){let r={additions:{},removals:{},modified:{}},n=null;const o=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null,Ge();const{additions:o,removals:i,modified:a}=r,s=Object.keys(o).map(t=>e.draggable.getById(t).getDimension(T)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),c={additions:s,removals:Object.keys(i),modified:l};r={additions:{},removals:{},modified:{}},$e(),t.publish(c)}))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{r||m();const o=r.critical.draggable;"ADDITION"===t.type&&$t(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&$t(e,o,t.value)&&n.remove(t.value)},i={updateDroppableIsEnabled:(n,o)=>{e.droppable.exists(n)||m(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:(n,o)=>{r&&(e.droppable.exists(n)||m(),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,o)=>{r&&(e.droppable.exists(n)||m(),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:t=>{r&&m();const n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},s=e.subscribe(o);return r={critical:a,unsubscribe:s},Gt({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();const t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}};return i},Yt=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),Jt=e=>{window.scrollBy(e.x,e.y)};const Xt=z(e=>q(e).filter(e=>!!e.isEnabled&&!!e.frame));var Qt=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=Xt(t).find(t=>(t.frame||m(),Me(t.frame.pageMarginBox)(e)))||null;return r})(e,r);return n};const Zt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var er=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},tr=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{const i=((e,t,r=()=>Zt)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-er({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=n.maxPixelScroll*n.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:n?Math.max(((e,t,r)=>{const n=r(),o=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,a=t,s=i,l=Date.now()-a;if(l>=i)return e;if(l<o)return 1;const c=er({startOfRange:o,endOfRange:s,current:l}),u=e*n.ease(c);return Math.ceil(u)})(i,r,o),1):i},rr=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,r=()=>Zt)=>{const n=r();return{startScrollingFrom:e[t.size]*n.startFromPercentage,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}})(e,n,i);return t[n.end]<t[n.start]?tr({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*tr({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const nr=M(e=>0===e?0:e);var or=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},s=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:re,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),l=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:ne,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=nr({x:l,y:s});if(j(c,T))return null;const u=(({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,o=t.width>e.width;return o||n?o&&n?null:{x:o?0:r.x,y:n?0:r.y}:r})({container:t,subject:r,proposedScroll:c});return u?j(u,T)?null:u:null};const ir=M(e=>0===e?0:e>0?1:-1),ar=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{const o=O(t,n),i={x:e(o.x,r.x),y:e(o.y,r.y)};return j(i,T)?null:i}})(),sr=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=ir(r),i=ar({max:n,current:t,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},lr=(e,t)=>sr({current:e.scroll.current,max:e.scroll.max,change:t}),cr=(e,t)=>{const r=e.frame;return!!r&&sr({current:r.scroll.current,max:r.scroll.max,change:t})};var ur=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=or({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&lr(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(o)return void n(o)}const l=Qt({center:a,destination:Ie(e.impact),droppables:e.dimensions.droppables});if(!l)return;const c=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=or({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return s&&cr(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});c&&o(l.descriptor.id,c)},dr=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Zt})=>{const n=(0,s.default)(e),o=(0,s.default)(t);let i=null;const a=e=>{i||m();const{shouldUseTimeDampening:t,dragStartTime:a}=i;ur({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{Ge(),i&&m();const t=Date.now();let n=!1;const o=()=>{n=!0};ur({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},$e(),n&&a(e)},stop:()=>{i&&(n.cancel(),o.cancel(),i=null)},scroll:a}},fr=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!cr(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&cr(e,t)?ar({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const o=C(r,n);t(e.descriptor.id,o);return C(r,o)},o=(e,t,n)=>{if(!e)return n;if(!lr(t,n))return n;const o=((e,t)=>{if(!lr(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return ar({current:n,max:r,change:t})})(t,n);if(!o)return r(n),null;const i=C(n,o);r(i);return C(n,i)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const i=Ie(t.impact);i||m();const a=n(t.dimensions.droppables[i],r);if(!a)return;const s=t.viewport,l=o(t.isWindowScrollAllowed,s,a);l&&((t,r)=>{const n=O(t.current.client.selection,r);e({client:n})})(t,l)}},pr=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const o=dr({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),i=fr({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}};const hr="data-rfd",mr=(()=>{const e=`${hr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),gr=(()=>{const e=`${hr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),yr=(()=>{const e=`${hr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),vr={contextId:`${hr}-scroll-container-context-id`},br=(e,t)=>e.map(e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" ");var _r=e=>{const t=(r=e,e=>`[${e}="${r}"]`);var r;const n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(mr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),o=[(()=>{const e=`\n transition: ${wt.outOfTheWay};\n `;return{selector:t(gr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(yr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:br(o,"always"),resting:br(o,"resting"),dragging:br(o,"dragging"),dropAnimating:br(o,"dropAnimating"),userCancel:br(o,"userCancel")}};const wr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Sr=()=>{const e=document.querySelector("head");return e||m(),e},Er=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function kr(e,t){return Array.from(e.querySelectorAll(t))}var xr=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Tr(e){return e instanceof xr(e).HTMLElement}function Or(e,t){const r=`[${mr.contextId}="${e}"]`,n=kr(document,r);if(!n.length)return null;const o=n.find(e=>e.getAttribute(mr.draggableId)===t);return o&&Tr(o)?o:null}function Cr(){const e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach(t=>t(e))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{const n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){const t=n(e);return t||m(),t},findById:n,exists:e=>Boolean(n(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||m(),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var jr=n.default.createContext(null),Pr=()=>{const e=document.body;return e||m(),e};const Ir={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Rr=e=>`rfd-announcement-${e}`;const Ar={separator:"::"};function Mr(e,t=Ar){const r=n.default.useId();return k(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var Dr=n.default.createContext(null);function Nr(e){0}function Lr(e,t){Nr()}function Br(e){const t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function Fr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const zr=9,Ur=13,Hr=27,qr=32,Vr=33,Wr=34,Gr=35,$r=36,Kr=37,Yr=38,Jr=39,Xr=40,Qr={[Ur]:!0,[zr]:!0};var Zr=e=>{Qr[e.keyCode]&&e.preventDefault()};const en=(()=>{const e="visibilitychange";if("undefined"==typeof document)return e;return[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})(),tn=0,rn=5;const nn={type:"IDLE"};function on({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(t!==tn)return;const a={x:o,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&m();const l=s.point;if(c=l,u=a,!(Math.abs(u.x-c.x)>=rn||Math.abs(u.y-c.y)>=rn))return;var c,u;e.preventDefault();const d=s.actions.fluidLift(a);n({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:n=>{const o=r();"DRAGGING"===o.type?(n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==r().type)return t.keyCode===Hr?(t.preventDefault(),void e()):void Zr(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const n=r();"IDLE"===n.type&&m(),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:en,fn:e}]}function an(e){const t=(0,n.useRef)(nn),r=(0,n.useRef)(u),o=k(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==tn)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const o=e.tryGetLock(n,s,{sourceEvent:t});if(!o)return;t.preventDefault();const i={x:t.clientX,y:t.clientY};r.current(),f(o,i)}}),[e]),i=k(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}),[e]),a=x(function(){r.current=d(window,[i,o],{passive:!1,capture:!0})},[i,o]),s=x(()=>{"IDLE"!==t.current.type&&(t.current=nn,r.current(),a())},[a]),l=x(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=x(function(){const e=on({cancel:l,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=d(window,e,{capture:!0,passive:!1})},[l,s]),f=x(function(e,r){"IDLE"!==t.current.type&&m(),t.current={type:"PENDING",point:r,actions:e},c()},[c]);wr(function(){return a(),function(){r.current()}},[a])}function sn(){}const ln={[Wr]:!0,[Vr]:!0,[$r]:!0,[Gr]:!0};function cn(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===Hr?(n.preventDefault(),void r()):n.keyCode===qr?(n.preventDefault(),t(),void e.drop()):n.keyCode===Xr?(n.preventDefault(),void e.moveDown()):n.keyCode===Yr?(n.preventDefault(),void e.moveUp()):n.keyCode===Jr?(n.preventDefault(),void e.moveRight()):n.keyCode===Kr?(n.preventDefault(),void e.moveLeft()):void(ln[n.keyCode]?n.preventDefault():Zr(n))},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:en,fn:r}]}function un(e){const t=(0,n.useRef)(sn),r=k(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==qr)return;const n=e.findClosestDraggableId(r);if(!n)return;const i=e.tryGetLock(n,l,{sourceEvent:r});if(!i)return;r.preventDefault();let a=!0;const s=i.snapLift();function l(){a||m(),a=!1,t.current(),o()}t.current(),t.current=d(window,cn(s,l),{capture:!0,passive:!1})}}),[e]),o=x(function(){t.current=d(window,[r],{passive:!1,capture:!0})},[r]);wr(function(){return o(),function(){t.current()}},[o])}const dn={type:"IDLE"},fn=120,pn=.15;function hn(e){const t=(0,n.useRef)(dn),r=(0,n.useRef)(u),o=x(function(){return t.current},[]),i=x(function(e){t.current=e},[]),a=k(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const o=e.tryGetLock(n,l,{sourceEvent:t});if(!o)return;const i=t.touches[0],{clientX:a,clientY:s}=i,c={x:a,y:s};r.current(),h(o,c)}}),[e]),s=x(function(){r.current=d(window,[a],{capture:!0,passive:!1})},[a]),l=x(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(dn),r.current(),s())},[s,i]),c=x(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),f=x(function(){const e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},n=d(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:n=>{const o=r();"DRAGGING"===o.type?(n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===r().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const n=r();"IDLE"===n.type&&m();const o=t.touches[0];if(!o)return;if(!(o.force>=pn))return;const i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:en,fn:e}]}(t),e),i=d(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{"DRAGGING"===t().type?(r.keyCode===Hr&&r.preventDefault(),e()):e()}},{eventName:en,fn:e}]}(t),e);r.current=function(){n(),i()}},[c,o,l]),p=x(function(){const e=o();"PENDING"!==e.type&&m();const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})},[o,i]),h=x(function(e,t){"IDLE"!==o().type&&m();const r=setTimeout(p,fn);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),f()},[f,o,i,p]);wr(function(){return s(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(dn))}},[o,s,i]),wr(function(){return d(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const mn=["input","button","textarea","select","option","optgroup","video","audio"];function gn(e,t){if(null==t)return!1;if(mn.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&gn(e,t.parentElement)}function yn(e,t){const r=t.target;return!!Tr(r)&&gn(e,r)}var vn=e=>(0,a.getRect)(e.getBoundingClientRect()).center;const bn=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function _n(e,t){return null==e?null:e[bn](t)?e:_n(e.parentElement,t)}function wn(e,t){return e.closest?e.closest(t):_n(e,t)}function Sn(e,t){const r=t.target;if(!((n=r)instanceof xr(n).Element))return null;var n;const o=function(e){return`[${mr.contextId}="${e}"]`}(e),i=wn(r,o);return i&&Tr(i)?i:null}function En(e){e.preventDefault()}function kn({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function xn({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const o=r.draggable.findById(n);return!!o&&(!!o.options.isEnabled&&!!Yt(t.getState(),n))}function Tn({lockAPI:e,contextId:t,store:r,registry:n,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!xn({lockAPI:e,store:r,registry:n,draggableId:o}))return null;const l=n.draggable.getById(o),c=function(e,t){const r=`[${gr.contextId}="${e}"]`,n=kr(document,r).find(e=>e.getAttribute(gr.id)===t);return n&&Tr(n)?n:null}(t,l.descriptor.id);if(!c)return null;if(a&&!l.options.canDragInteractiveElements&&yn(c,a))return null;const f=e.claim(i||u);let p="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function g(){return e.isActive(f)}const y=function(e,t){kn({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function v(t){function n(){e.release(),p="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=d(window,[{eventName:"click",fn:En,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(ht({reason:e}))}return"PRE_DRAG"!==p&&(n(),m()),r.dispatch(tt(t.liftActionArgs)),p="DRAGGING",{isActive:()=>kn({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>kn({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:function(e){const t=(0,s.default)(e=>{y(()=>st({client:e}))});return{...v({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>y(lt),moveRight:()=>y(ut),moveDown:()=>y(ct),moveLeft:()=>y(dt)};return v({liftActionArgs:{id:o,clientSelection:vn(c),movementMode:"SNAP"},cleanup:u,actions:e})},abort:function(){kn({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&e.release()}}}const On=[an,un,hn];function Cn({contextId:e,store:t,registry:r,customSensors:o,enableDefaultSensors:i}){const a=[...i?On:[],...o||[]],s=(0,n.useState)(()=>function(){let e=null;function t(){e||m(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&m();const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],l=x(function(e,t){Fr(e)&&!Fr(t)&&s.tryAbandon()},[s]);wr(function(){let e=t.getState();return t.subscribe(()=>{const r=t.getState();l(e,r),e=r})},[s,t,l]),wr(()=>s.tryAbandon,[s.tryAbandon]);const c=x(e=>xn({lockAPI:s,registry:r,store:t,draggableId:e}),[s,r,t]),u=x((n,o,i)=>Tn({lockAPI:s,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,s,r,t]),d=x(t=>function(e,t){const r=Sn(e,t);return r?r.getAttribute(mr.draggableId):null}(e,t),[e]),f=x(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),p=x(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(ft()))},[s,t]),h=x(()=>s.isClaimed(),[s]),g=k(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[c,u,d,f,p,h]);Nr();for(let e=0;e<a.length;e++)a[e](g)}const jn=e=>({onBeforeCapture:t=>{(0,n.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),Pn=e=>({...Zt,...e.autoScrollerOptions,durationDampening:{...Zt.durationDampening,...e.autoScrollerOptions}});function In(e){return e.current||m(),e.current}function Rn(e){const{contextId:t,setCallbacks:r,sensors:a,nonce:s,dragHandleUsageInstructions:c}=e,u=(0,n.useRef)(null);Lr();const d=Br(e),f=x(()=>jn(d.current),[d]),p=x(()=>Pn(d.current),[d]),h=function(e){const t=k(()=>Rr(e),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){const e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,l.default)(e.style,Ir),Pr().appendChild(e),function(){setTimeout(function(){const t=Pr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),x(e=>{const t=r.current;t&&(t.textContent=e)},[])}(t),g=function({contextId:e,text:t}){const r=Mr("hidden-text",{separator:"-"}),o=k(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:r}),[r,e]);return(0,n.useEffect)(function(){const e=document.createElement("div");return e.id=o,e.textContent=t,e.style.display="none",Pr().appendChild(e),function(){const t=Pr();t.contains(e)&&t.removeChild(e)}},[o,t]),o}({contextId:t,text:c}),y=function(e,t){const r=k(()=>_r(e),[e]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=x(z(e=>{const t=i.current;t||m(),t.textContent=e}),[]),s=x(e=>{const t=o.current;t||m(),t.textContent=e},[]);wr(()=>{(o.current||i.current)&&m();const n=Er(t),l=Er(t);return o.current=n,i.current=l,n.setAttribute(`${hr}-always`,e),l.setAttribute(`${hr}-dynamic`,e),Sr().appendChild(n),Sr().appendChild(l),s(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||m(),Sr().removeChild(t),e.current=null};e(o),e(i)}},[t,s,a,r.always,r.resting,e]);const l=x(()=>a(r.dragging),[a,r.dragging]),c=x(e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)},[a,r.dropAnimating,r.userCancel]),u=x(()=>{i.current&&a(r.resting)},[a,r.resting]);return k(()=>({dragging:l,dropping:c,resting:u}),[l,c,u])}(t,s),v=x(e=>{In(u).dispatch(e)},[]),b=k(()=>(0,o.bindActionCreators)({publishWhileDragging:rt,updateDroppableScroll:ot,updateDroppableIsEnabled:it,updateDroppableIsCombineEnabled:at,collectionStarting:nt},v),[v]),_=function(){const e=k(Cr,[]);return(0,n.useEffect)(()=>function(){e.clean()},[e]),e}(),w=k(()=>Kt(_,b),[_,b]),S=k(()=>pr({scrollWindow:Jt,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:p,...(0,o.bindActionCreators)({move:st},v)}),[w.scrollDroppable,v,p]),E=function(e){const t=(0,n.useRef)({}),r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=x(function(e,r){const n={id:e,focus:r};return t.current[e]=n,function(){const r=t.current;r[e]!==n&&delete r[e]}},[]),s=x(function(t){const r=Or(e,t);r&&r!==document.activeElement&&r.focus()},[e]),l=x(function(e,t){r.current===e&&(r.current=t)},[]),c=x(function(){o.current||i.current&&(o.current=requestAnimationFrame(()=>{o.current=null;const e=r.current;e&&s(e)}))},[s]),u=x(function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(mr.draggableId)===e&&(r.current=e)},[]);return wr(()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)}),[]),k(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}),[a,u,c,l])}(t),T=k(()=>Ht({announce:h,autoScroller:S,dimensionMarshal:w,focusMarshal:E,getResponders:f,styleMarshal:y}),[h,S,w,E,f,y]);u.current=T;const O=x(()=>{const e=In(u);"IDLE"!==e.getState().phase&&e.dispatch(ft())},[]),C=x(()=>{const e=In(u).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r(k(()=>({isDragging:C,tryAbort:O}),[C,O]));const j=x(e=>Yt(In(u).getState(),e),[]),P=x(()=>Ae(In(u).getState()),[]),I=k(()=>({marshal:w,focus:E,contextId:t,canLift:j,isMovementAllowed:P,dragHandleUsageInstructionsId:g,registry:_}),[t,w,g,E,j,P,_]);return Cn({contextId:t,store:T,registry:_,customSensors:a||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>O,[O]),n.default.createElement(Dr.Provider,{value:I},n.default.createElement(i.Provider,{context:jr,store:T},e.children))}function An(e){const t=n.default.useId(),r=e.dragHandleUsageInstructions||w.dragHandleUsageInstructions;return n.default.createElement(g,null,o=>n.default.createElement(Rn,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Mn=5e3,Dn=4500,Nn=(e,t)=>t?wt.drop(t.duration):e?wt.snap:wt.fluid,Ln=(e,t)=>{if(e)return t?yt.drop:yt.combining};function Bn(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:r,combineWith:n,dropping:o}=e,i=Boolean(n),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(o),l=s?kt(r,i):Et(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Nn(a,o),transform:l,opacity:Ln(i,s),zIndex:s?Dn:Mn,pointerEvents:"none"}}(e):{transform:Et((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Fn(e){const t=Mr("draggable"),{descriptor:r,registry:o,getDraggableRef:i,canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}=e,u=k(()=>({canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}),[s,c,l]),d=x(e=>{const t=i();return t||m(),function(e,t,r=T){const n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=(0,a.calculateBox)(o,n),s=(0,a.withScroll)(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:s}}(r,t,e)},[r,i]),f=k(()=>({uniqueId:t,descriptor:r,options:u,getDimension:d}),[r,d,u,t]),p=(0,n.useRef)(f),h=(0,n.useRef)(!0);wr(()=>(o.draggable.register(p.current),()=>o.draggable.unregister(p.current)),[o.draggable]),wr(()=>{if(h.current)return void(h.current=!1);const e=p.current;p.current=f,o.draggable.update(f,e)},[f,o.draggable])}var zn=n.default.createContext(null);function Un(e){const t=(0,n.useContext)(e);return t||m(),t}function Hn(e){e.preventDefault()}var qn=(e,t)=>e===t,Vn=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function Wn(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Gn={mapped:{type:"SECONDARY",offset:T,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wn(null)}};const $n={dropAnimationFinished:mt},Kn=(0,i.connect)(()=>{const e=function(){const e=z((e,t)=>({x:e,y:t})),t=z((e,t,r=null,n=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),r=z((e,r,n,o,i=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,o,i,a,null)}}));return(n,o)=>{if(Fr(n)){if(n.critical.draggable.id!==o.draggableId)return null;const t=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],s=Ie(n.impact),l=(i=n.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,a,o.isClone,s,l,c)}var i;if("DROP_ANIMATING"===n.phase){const e=n.completed;if(e.result.draggableId!==o.draggableId)return null;const r=o.isClone,i=n.dimensions.draggables[o.draggableId],a=e.result,s=a.mode,l=Vn(a),c=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:n.dropDuration,curve:gt,moveTo:n.newHomeClientOffset,opacity:c?yt.drop:null,scale:c?vt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:u,draggingOver:l,combineWith:c,mode:s,forceShouldAnimate:null,snapshot:t(s,r,l,c,u)}}}return null}}(),t=function(){const e=z((e,t)=>({x:e,y:t})),t=z(Wn),r=z((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}})),n=e=>e?r(T,e,!0):null,o=(t,o,i,a)=>{const s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=$(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return n(u);if(i.displaced.invisible[t])return null;const o=P(a.displacedBy.point),s=e(o.x,o.y);return r(s,u,!0)}if(l)return n(u);const d=i.displacedBy.point,f=e(d.x,d.y);return r(f,u,s.shouldAnimate)};return(e,t)=>{if(Fr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const r=e.completed;return r.result.draggableId===t.draggableId?null:o(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||Gn},$n,null,{context:jr,areStatePropsEqual:qn})(e=>{const t=(0,n.useRef)(null),r=x((e=null)=>{t.current=e},[]),o=x(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:s}=Un(Dr),{type:l,droppableId:c}=Un(zn),u=k(()=>({id:e.draggableId,index:e.index,type:l,droppableId:c}),[e.draggableId,e.index,l,c]),{children:d,draggableId:f,isEnabled:p,shouldRespectForcePress:h,canDragInteractiveElements:m,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(Lr(),Nr(),!g){Fn(k(()=>({descriptor:u,registry:s,getDraggableRef:o,canDragInteractiveElements:m,shouldRespectForcePress:h,isEnabled:p}),[u,s,o,m,h,p]))}const b=k(()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Hn}:null,[i,a,f,p]),_=x(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(0,n.flushSync)(v)},[v,y]),w=k(()=>{const e=Bn(y),t="DRAGGING"===y.type&&y.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:b}},[i,b,f,y,_,r]),S=k(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return n.default.createElement(n.default.Fragment,null,d(w,y.snapshot,S))});function Yn(e){return Un(zn).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(Kn,e):null}function Jn(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return n.default.createElement(Yn,(0,l.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const Xn=e=>t=>e===t,Qn=Xn("scroll"),Zn=Xn("auto"),eo=(Xn("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),to=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return eo(r,Qn)||eo(r,Zn)})(e)?e:to(e.parentElement);var ro=e=>({x:e.scrollLeft,y:e.scrollTop});const no=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||no(e.parentElement)};var oo=({ref:e,descriptor:t,env:r,windowScroll:n,direction:o,isDropDisabled:i,isCombineEnabled:s,shouldClipSubject:l})=>{const c=r.closestScrollable,u=((e,t)=>{const r=(0,a.getBox)(e);if(!t)return r;if(e!==t)return r;const n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,s={top:n,right:o+t.scrollWidth,bottom:i,left:o},l=(0,a.expand)(s,r.border);return(0,a.createBox)({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})})(e,c),d=(0,a.withScroll)(u,n),f=(()=>{if(!c)return null;const e=(0,a.getBox)(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:(0,a.withScroll)(e,n),scroll:ro(c),scrollSize:t,shouldClipSubject:l}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:o,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,r=qt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:T,displacement:T}}}})(),c="vertical"===o?re:ne;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:c,isEnabled:t,client:i,page:a,frame:l,subject:B({page:a,withPlaceholder:null,axis:c,frame:l})}})({descriptor:t,isEnabled:!i,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p};const io={passive:!1},ao={passive:!0};var so=e=>e.shouldPublishImmediately?io:ao;const lo=e=>e&&e.env.closestScrollable||null;function co(e){const t=(0,n.useRef)(null),r=Un(Dr),o=Mr("droppable"),{registry:i,marshal:a}=r,l=Br(e),c=k(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=(0,n.useRef)(c),d=k(()=>z((e,r)=>{t.current||m();const n={x:e,y:r};a.updateDroppableScroll(c.id,n)}),[c.id,a]),f=x(()=>{const e=t.current;return e&&e.env.closestScrollable?ro(e.env.closestScrollable):T},[]),p=x(()=>{const e=f();d(e.x,e.y)},[f,d]),h=k(()=>(0,s.default)(p),[p]),g=x(()=>{const e=t.current,r=lo(e);e&&r||m();e.scrollOptions.shouldPublishImmediately?p():h()},[h,p]),y=x((e,n)=>{t.current&&m();const o=l.current,i=o.getDroppableRef();i||m();const a=(e=>({closestScrollable:to(e),isFixedOnPage:no(e)}))(i),s={ref:i,descriptor:c,env:a,scrollOptions:n};t.current=s;const u=oo({ref:i,descriptor:c,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(vr.contextId,r.contextId),d.addEventListener("scroll",g,so(s.scrollOptions))),u},[r.contextId,c,g,l]),v=x(()=>{const e=t.current,r=lo(e);return e&&r||m(),ro(r)},[]),b=x(()=>{const e=t.current;e||m();const r=lo(e);t.current=null,r&&(h.cancel(),r.removeAttribute(vr.contextId),r.removeEventListener("scroll",g,so(e.scrollOptions)))},[g,h]),_=x(e=>{const r=t.current;r||m();const n=lo(r);n||m(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),w=k(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:v,dragStopped:b,scroll:_}),[b,y,v,_]),S=k(()=>({uniqueId:o,descriptor:c,callbacks:w}),[w,c,o]);wr(()=>(u.current=S.descriptor,i.droppable.register(S),()=>{t.current&&b(),i.droppable.unregister(S)}),[w,c,b,S,a,i.droppable]),wr(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),wr(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function uo(){}const fo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},po=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?fo:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?wt.placeholder:null}};var ho=n.default.memo(e=>{const t=(0,n.useRef)(null),r=x(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:s}=e,[l,c]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>l?"open"!==o?(r(),c(!1),uo):t.current?uo:(t.current=setTimeout(()=>{t.current=null,c(!1)}),r):uo,[o,l,r]);const u=x(e=>{"height"===e.propertyName&&(i(),"close"===o&&a())},[o,a,i]),d=po({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":s,onTransitionEnd:u,ref:e.innerRef})});class mo extends n.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const go={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||m(),document.body}},yo=e=>{let t,r={...e};for(t in go)void 0===e[t]&&(r={...r,[t]:go[t]});return r},vo=(e,t)=>e===t.droppable.type,bo=(e,t)=>t.draggables[e.draggable.id],_o={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},wo=(0,i.connect)(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=z(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=z((n,o,i,a,s,l)=>{const c=s.descriptor.id;if(s.descriptor.droppableId===n){const e=l?{render:l,dragging:r(s.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const u={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(r,o)=>{const i=yo(o),a=i.droppableId,s=i.type,l=!i.isDropDisabled,c=i.renderClone;if(Fr(r)){const e=r.critical;if(!vo(s,e))return t;const o=bo(e,r.dimensions),i=Ie(r.impact)===a;return n(a,l,i,i,o,c)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!vo(s,e.critical))return t;const o=bo(e.critical,r.dimensions);return n(a,l,Vn(e.result)===a,Ie(e.impact)===a,o,c)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!vo(s,n.critical))return t;const o=Ie(n.impact)===a,i=Boolean(n.impact.at&&"COMBINE"===n.impact.at.type),l=n.critical.droppable.id===a;return o?i?e:t:l?e:t}return t}},_o,(e,t,r)=>({...yo(r),...e,...t}),{context:jr,areStatePropsEqual:qn})(e=>{const t=(0,n.useContext)(Dr);t||m();const{contextId:r,isMovementAllowed:o}=t,i=(0,n.useRef)(null),a=(0,n.useRef)(null),{children:s,droppableId:l,type:c,mode:u,direction:d,ignoreContainerClipping:f,isDropDisabled:p,isCombineEnabled:h,snapshot:g,useClone:y,updateViewportMaxScroll:v,getContainerForClone:b}=e,_=x(()=>i.current,[]),w=x((e=null)=>{i.current=e},[]),S=(x(()=>a.current,[]),x((e=null)=>{a.current=e},[]));Lr();const E=x(()=>{o()&&v({maxScroll:Wt()})},[o,v]);co({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:_});const T=k(()=>n.default.createElement(mo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:o})=>n.default.createElement(ho,{placeholder:t,onClose:e,innerRef:S,animate:o,contextId:r,onTransitionEnd:E})),[r,E,e.placeholder,e.shouldAnimatePlaceholder,S]),O=k(()=>({innerRef:w,placeholder:T,droppableProps:{"data-rfd-droppable-id":l,"data-rfd-droppable-context-id":r}}),[r,l,T,w]),C=y?y.dragging.draggableId:null,j=k(()=>({droppableId:l,type:c,isUsingCloneFor:C}),[l,C,c]);return n.default.createElement(zn.Provider,{value:j},s(O,g),function(){if(!y)return null;const{dragging:e,render:t}=y,r=n.default.createElement(Yn,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return n.default.createPortal(r,b())}())})},(e,t,r)=>{"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>a,applyMiddleware:()=>h,bindActionCreators:()=>f,combineReducers:()=>u,compose:()=>p,createStore:()=>l,isAction:()=>m,isPlainObject:()=>s,legacy_createStore:()=>c});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw new Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(n(1));return r(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function m(){if(p)throw new Error(n(3));return c}function g(e){if("function"!=typeof e)throw new Error(n(4));if(p)throw new Error(n(5));let t=!0;h();const r=f++;return d.set(r,e),function(){if(t){if(p)throw new Error(n(6));t=!1,h(),d.delete(r),u=null}}}function y(e){if(!s(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if("string"!=typeof e.type)throw new Error(n(17));if(p)throw new Error(n(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach(e=>{e()}),e}y({type:a.INIT});return{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(n(10));i=e,y({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(n(11));function r(){const e=t;e.next&&e.next(m())}r();return{unsubscribe:e(r)}},[o](){return this}}}}}function c(e,t,r){return l(e,t,r)}function u(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}const o=Object.keys(r);let i;try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:a.INIT}))throw new Error(n(12));if(void 0===r(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(n(13))})}(r)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=r[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(n(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function d(e,t){return function(...r){return t(e.apply(this,r))}}function f(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(n(16));const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=d(o,t))}return r}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function h(...e){return t=>(r,o)=>{const i=t(r,o);let a=()=>{throw new Error(n(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(s));return a=p(...l)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>te,ReactReduxContext:()=>J,batch:()=>de,connect:()=>ee,createDispatchHook:()=>ae,createSelectorHook:()=>ce,createStoreHook:()=>oe,shallowEqual:()=>M,useDispatch:()=>se,useSelector:()=>ue,useStore:()=>ie});var n=r(296),o=r(2905),i=n.version.startsWith("19"),a=Symbol.for(i?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=p,b=g;function _(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case y:case g:case d:return e;default:return t}}case s:return t}}}function w(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(n,l)),d=r(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(n,l)),d=r(c,u,l),d):m?function(){const t=e(s,l),n=!a(t,c);return c=t,n&&(d=r(c,u,l)),d}():d}return function(o,i){return f?p(o,i):(s=o,l=i,c=e(s,l),u=t(n,l),d=r(c,u,l),f=!0,d)}}function S(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=E(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=E(o),o=n(t,r)),o},n}}function x(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function T(e,t,r){return{...r,...e,...t}}function O(e){e()}var C={notify(){},get:()=>[]};function j(e,t){let r,n=C,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=C)}const c={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>n};return c}var P=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),I=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),R=(()=>P||I?n.useLayoutEffect:n.useEffect)();function A(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(A(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!A(e[r[n]],t[r[n]]))return!1;return!0}var D={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},N={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return _(e)===g?L:B[e.$$typeof]||D}var z=Object.defineProperty,U=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,V=Object.getPrototypeOf,W=Object.prototype;function G(e,t){if("string"!=typeof t){if(W){const r=V(t);r&&r!==W&&G(e,r)}let r=U(t);H&&(r=r.concat(H(t)));const n=F(e),o=F(t);for(let i=0;i<r.length;++i){const a=r[i];if(!(N[a]||o&&o[a]||n&&n[a])){const r=q(t,a);try{z(e,a,r)}catch(e){}}}}return e}var $=Symbol.for("react-redux-context"),K="undefined"!=typeof globalThis?globalThis:{};function Y(){if(!n.createContext)return{};const e=K[$]??=new Map;let t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}var J=Y(),X=[null,null];function Q(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function Z(e,t){return e===t}var ee=function(e,t,r,{pure:o,areStatesEqual:i=Z,areOwnPropsEqual:a=M,areStatePropsEqual:s=M,areMergedPropsEqual:l=M,forwardRef:c=!1,context:u=J}={}){const d=u,f=function(e){return e?"function"==typeof e?k(e):x(e,"mapStateToProps"):S(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?S(t=>function(e,t){const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=(...e)=>t(o(...e)))}return r}(e,t)):e?"function"==typeof e?k(e):x(e,"mapDispatchToProps"):S(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let o,i=!1;return function(t,r,a){const s=e(t,r,a);return i?n(s,o)||(o=s):(i=!0,o=s),o}}}(e):x(e,"mergeProps"):()=>T}(r),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[r,i,a]=n.useMemo(()=>{const{reactReduxForwardedRef:e,...r}=t;return[t.context,e,r]},[t]),s=n.useMemo(()=>d,[r,d]),l=n.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=n.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...o}){return w(t(e,o),r(e,o),n(e,o),e,o)}(f.dispatch,o),[f]),[g,y]=n.useMemo(()=>{if(!m)return X;const e=j(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,c,l]),v=n.useMemo(()=>c?l:{...l,subscription:g},[c,l,g]),b=n.useRef(void 0),_=n.useRef(a),S=n.useRef(void 0),E=n.useRef(!1),k=n.useRef(!1),x=n.useRef(void 0);R(()=>(k.current=!0,()=>{k.current=!1}),[]);const T=n.useMemo(()=>()=>S.current&&a===_.current?S.current:h(f.getState(),a),[f,a]),O=n.useMemo(()=>e=>g?function(e,t,r,n,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let r,p;try{r=n(e,o.current)}catch(e){p=e,f=e}p||(f=null),r===i.current?a.current||c():(i.current=r,l.current=r,a.current=!0,u())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}(m,f,g,h,_,b,E,k,S,y,e):()=>{},[g]);var C,P,I;let A;C=Q,P=[_,b,E,a,S,y],R(()=>C(...P),I);try{A=n.useSyncExternalStore(O,T,p?()=>h(p(),a):T)}catch(e){throw x.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${x.current.stack}\n\n`),e}R(()=>{x.current=void 0,S.current=void 0,b.current=A});const M=n.useMemo(()=>n.createElement(e,{...A,ref:i}),[i,e,A]);return n.useMemo(()=>m?n.createElement(s.Provider,{value:v},M):M,[s,M,v])}const g=n.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=r,c){const t=n.forwardRef(function(e,t){return n.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=r,t.WrappedComponent=e,G(t,e)}return G(g,e)}};var te=function(e){const{children:t,context:r,serverState:o,store:i}=e,a=n.useMemo(()=>{const e=j(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}},[i,o]),s=n.useMemo(()=>i.getState(),[i]);R(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=r||J;return n.createElement(l.Provider,{value:a},t)};function re(e=J){return function(){return n.useContext(e)}}var ne=re();function oe(e=J){const t=e===J?ne:re(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var ie=oe();function ae(e=J){const t=e===J?ie:oe(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var se=ae(),le=(e,t)=>e===t;function ce(e=J){const t=e===J?ne:re(e),r=(e,r={})=>{const{equalityFn:i=le}="function"==typeof r?{equalityFn:r}:r;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(n.useRef(!0),n.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,i);return n.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var ue=ce(),de=O},(e,t,r)=>{"use strict";e.exports=r(2906)},(e,t,r)=>{"use strict"; /** * @license React * use-sync-external-store-with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n=r(296);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=n(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var r=n(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,a=r)}var i,a,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,u]);var p=i(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calculateBox:()=>f,createBox:()=>l,expand:()=>i,getBox:()=>p,getRect:()=>o,offset:()=>u,shrink:()=>a,withScroll:()=>d});var n=r(2908),o=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},l=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,l=e.border,c=void 0===l?s:l,u=e.padding,d=void 0===u?s:u,f=o(i(t,n)),p=o(a(t,c)),h=o(a(p,d));return{marginBox:f,borderBox:o(t),paddingBox:p,contentBox:h,margin:n,border:c,padding:d}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.default)(!1),r},u=function(e,t){var r,n,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,c=(n=t,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return l({borderBox:c,border:i,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},f=function(e,t){var r={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},n={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},o={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return l({borderBox:e,margin:r,padding:n,border:o})},p=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return f(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=!0,o="Invariant failed";function i(e,t){if(!e){if(n)throw new Error(o);var r="function"==typeof t?t():t,i=r?"".concat(o,": ").concat(r):o;throw new Error(i)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>q.BrowserClient,OpenFeatureIntegrationHook:()=>ve.OpenFeatureIntegrationHook,SDK_VERSION:()=>U.SDK_VERSION,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_OP,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Scope:()=>p.Scope,WINDOW:()=>H.WINDOW,addBreadcrumb:()=>w.addBreadcrumb,addEventProcessor:()=>d.addEventProcessor,addIntegration:()=>y.addIntegration,breadcrumbsIntegration:()=>J.breadcrumbsIntegration,browserApiErrorsIntegration:()=>ee.browserApiErrorsIntegration,browserProfilingIntegration:()=>he.browserProfilingIntegration,browserSessionIntegration:()=>ge.browserSessionIntegration,browserTracingIntegration:()=>ue.browserTracingIntegration,buildLaunchDarklyFlagUsedHandler:()=>ye.buildLaunchDarklyFlagUsedHandler,captureConsoleIntegration:()=>x.captureConsoleIntegration,captureEvent:()=>d.captureEvent,captureException:()=>d.captureException,captureFeedback:()=>A.captureFeedback,captureMessage:()=>d.captureMessage,captureSession:()=>d.captureSession,chromeStackLineParser:()=>W.chromeStackLineParser,close:()=>d.close,consoleLoggingIntegration:()=>D.consoleLoggingIntegration,contextLinesIntegration:()=>oe.contextLinesIntegration,continueTrace:()=>s.continueTrace,createConsolaReporter:()=>L.createConsolaReporter,createTransport:()=>m.createTransport,createUserFeedbackEnvelope:()=>$.createUserFeedbackEnvelope,dedupeIntegration:()=>T.dedupeIntegration,defaultRequestInstrumentationOptions:()=>ce.defaultRequestInstrumentationOptions,defaultStackLineParsers:()=>W.defaultStackLineParsers,defaultStackParser:()=>W.defaultStackParser,diagnoseSdkConnectivity:()=>Se.diagnoseSdkConnectivity,endSession:()=>d.endSession,eventFiltersIntegration:()=>E.eventFiltersIntegration,eventFromException:()=>G.eventFromException,eventFromMessage:()=>G.eventFromMessage,exceptionFromError:()=>G.exceptionFromError,extraErrorDataIntegration:()=>O.extraErrorDataIntegration,featureFlagsIntegration:()=>R.featureFlagsIntegration,feedbackAsyncIntegration:()=>n.feedbackAsyncIntegration,feedbackIntegration:()=>o.feedbackSyncIntegration,feedbackSyncIntegration:()=>o.feedbackSyncIntegration,flush:()=>d.flush,forceLoad:()=>K.forceLoad,functionToStringIntegration:()=>S.functionToStringIntegration,geckoStackLineParser:()=>W.geckoStackLineParser,getActiveSpan:()=>b.getActiveSpan,getClient:()=>f.getClient,getCurrentScope:()=>f.getCurrentScope,getDefaultIntegrations:()=>K.getDefaultIntegrations,getFeedback:()=>le.getFeedback,getGlobalScope:()=>f.getGlobalScope,getIsolationScope:()=>f.getIsolationScope,getReplay:()=>ae.getReplay,getRootSpan:()=>b.getRootSpan,getSpanDescendants:()=>b.getSpanDescendants,getSpanStatusFromHttpCode:()=>a.getSpanStatusFromHttpCode,getTraceData:()=>_.getTraceData,globalHandlersIntegration:()=>X.globalHandlersIntegration,graphqlClientIntegration:()=>ie.graphqlClientIntegration,growthbookIntegration:()=>_e.growthbookIntegration,httpClientIntegration:()=>ne.httpClientIntegration,httpContextIntegration:()=>Q.httpContextIntegration,inboundFiltersIntegration:()=>E.inboundFiltersIntegration,init:()=>K.init,instrumentAnthropicAiClient:()=>F.instrumentAnthropicAiClient,instrumentGoogleGenAIClient:()=>z.instrumentGoogleGenAIClient,instrumentOpenAiClient:()=>B.instrumentOpenAiClient,instrumentOutgoingRequests:()=>ce.instrumentOutgoingRequests,instrumentSupabaseClient:()=>j.instrumentSupabaseClient,isEnabled:()=>d.isEnabled,isInitialized:()=>d.isInitialized,lastEventId:()=>d.lastEventId,launchDarklyIntegration:()=>ye.launchDarklyIntegration,lazyLoadIntegration:()=>te.lazyLoadIntegration,linkedErrorsIntegration:()=>Z.linkedErrorsIntegration,logger:()=>M,makeBrowserOfflineTransport:()=>pe.makeBrowserOfflineTransport,makeFetchTransport:()=>V.makeFetchTransport,makeMultiplexedTransport:()=>g.makeMultiplexedTransport,metrics:()=>N,moduleMetadataIntegration:()=>k.moduleMetadataIntegration,onLoad:()=>K.onLoad,openFeatureIntegration:()=>ve.openFeatureIntegration,opera10StackLineParser:()=>W.opera10StackLineParser,opera11StackLineParser:()=>W.opera11StackLineParser,parameterize:()=>v.parameterize,registerSpanErrorInstrumentation:()=>i.registerSpanErrorInstrumentation,registerWebWorker:()=>Ee.registerWebWorker,replayCanvasIntegration:()=>se.replayCanvasIntegration,replayIntegration:()=>ae.replayIntegration,reportPageLoaded:()=>de.reportPageLoaded,reportingObserverIntegration:()=>re.reportingObserverIntegration,rewriteFramesIntegration:()=>C.rewriteFramesIntegration,sendFeedback:()=>le.sendFeedback,setActiveSpanInBrowser:()=>fe.setActiveSpanInBrowser,setContext:()=>d.setContext,setCurrentClient:()=>h.setCurrentClient,setExtra:()=>d.setExtra,setExtras:()=>d.setExtras,setHttpStatus:()=>a.setHttpStatus,setMeasurement:()=>c.setMeasurement,setTag:()=>d.setTag,setTags:()=>d.setTags,setUser:()=>d.setUser,showReportDialog:()=>Y.showReportDialog,spanToBaggageHeader:()=>l.spanToBaggageHeader,spanToJSON:()=>b.spanToJSON,spanToTraceHeader:()=>b.spanToTraceHeader,spotlightBrowserIntegration:()=>me.spotlightBrowserIntegration,startBrowserTracingNavigationSpan:()=>ue.startBrowserTracingNavigationSpan,startBrowserTracingPageLoadSpan:()=>ue.startBrowserTracingPageLoadSpan,startInactiveSpan:()=>s.startInactiveSpan,startNewTrace:()=>s.startNewTrace,startSession:()=>d.startSession,startSpan:()=>s.startSpan,startSpanManual:()=>s.startSpanManual,statsigIntegration:()=>we.statsigIntegration,supabaseIntegration:()=>j.supabaseIntegration,suppressTracing:()=>s.suppressTracing,thirdPartyErrorFilterIntegration:()=>I.thirdPartyErrorFilterIntegration,unleashIntegration:()=>be.unleashIntegration,updateSpanName:()=>b.updateSpanName,webWorkerIntegration:()=>Ee.webWorkerIntegration,winjsStackLineParser:()=>W.winjsStackLineParser,withActiveSpan:()=>s.withActiveSpan,withIsolationScope:()=>f.withIsolationScope,withScope:()=>f.withScope,zodErrorsIntegration:()=>P.zodErrorsIntegration});var n=r(3066),o=r(3072),i=r(1377),a=r(332),s=r(1383),l=r(326),c=r(1382),u=r(327),d=r(300),f=r(301),p=r(308),h=r(1322),m=r(1370),g=r(3073),y=r(1323),v=r(3074),b=r(331),_=r(1418),w=r(525),S=r(1324),E=r(1325),k=r(3075),x=r(3077),T=r(1327),O=r(3078),C=r(3079),j=r(3081),P=r(3082),I=r(3083),R=r(3084),A=r(3068),M=r(3086),D=r(3087),N=r(3089),L=r(3090),B=r(3091),F=r(3098),z=r(3102),U=r(304),H=r(1346),q=r(1328),V=r(1369),W=r(1368),G=r(1345),$=r(3106),K=r(1321),Y=r(3107),J=r(1347),X=r(1362),Q=r(1365),Z=r(1366),ee=r(1360),te=r(3071),re=r(3108),ne=r(3109),oe=r(3111),ie=r(3112),ae=r(3113),se=r(3115),le=r(3067),ce=r(1417),ue=r(1376),de=r(3116),fe=r(3117),pe=r(3118),he=r(3120),me=r(3124),ge=r(1361),ye=r(3125),ve=r(3126),be=r(3127),_e=r(3128),we=r(3130),Se=r(3131),Ee=r(3132)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackAsyncIntegration:()=>i});var n=r(3067),o=r(3071);const i=(0,n.buildFeedbackIntegration)({lazyLoadIntegration:o.lazyLoadIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildFeedbackIntegration:()=>E,feedbackModalIntegration:()=>Ue,feedbackScreenshotIntegration:()=>Ke,getFeedback:()=>k,sendFeedback:()=>h});var n=r(301),o=r(1323),i=r(3068),a=r(313),s=r(305),l=r(3069),c=r(315);const u=s.GLOBAL_OBJ,d=u.document,f=u.navigator,p="Report a Bug",h=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const r=(0,n.getClient)();if(!r)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,n.getCurrentScope)().setTags(e.tags);const o=(0,i.captureFeedback)({source:"api",url:(0,a.getLocationHref)(),...e},t);return new Promise((e,t)=>{const n=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),i=r.on("afterSendEvent",(r,a)=>{if(r.event_id===o)return clearTimeout(n),i(),a?.statusCode&&a.statusCode>=200&&a.statusCode<300?e(o):t(403===a?.statusCode?"Unable to send feedback. This could be because this domain is not in your list of allowed domains.":"Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},m="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function g(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function y(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}function v({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){const o=d.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||p,o.appendChild(function(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=y(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),r=y(e("g"),{clipPath:"url(#clip0_57_80)"}),n=y(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(n);const o=e("defs"),i=y(e("clipPath"),{id:"clip0_57_80"}),a=y(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}()),e){const t=d.createElement("span");t.appendChild(d.createTextNode(e)),o.appendChild(t)}const i=function(e){const t=d.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(n);return{el:o,appendToDom(){r.appendChild(i),r.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const b="rgba(88, 74, 192, 1)",_={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:b,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},w={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:b,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function S(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}const E=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:i=!0,showBranding:a=!0,isEmailRequired:s=!1,isNameRequired:u=!1,showEmail:y=!0,showName:b=!0,enableScreenshot:E=!0,useSentryUser:k={email:"email",name:"username"},tags:x,styleNonce:T,scriptNonce:O,colorScheme:C="system",themeLight:j={},themeDark:P={},addScreenshotButtonLabel:I="Add a screenshot",cancelButtonLabel:R="Cancel",confirmButtonLabel:A="Confirm",emailLabel:M="Email",emailPlaceholder:D="your.email@example.org",formTitle:N="Report a Bug",isRequiredLabel:L="(required)",messageLabel:B="Description",messagePlaceholder:F="What's the bug? What did you expect?",nameLabel:z="Name",namePlaceholder:U="Your Name",removeScreenshotButtonLabel:H="Remove screenshot",submitButtonLabel:q="Send Bug Report",successMessageText:V="Thank you for your report!",triggerLabel:W=p,triggerAriaLabel:G="",highlightToolText:$="Highlight",hideToolText:K="Hide",removeHighlightText:Y="Remove",onFormOpen:J,onFormClose:X,onSubmitSuccess:Q,onSubmitError:Z,onFormSubmitted:ee}={})=>{const te={id:n,autoInject:i,showBranding:a,isEmailRequired:s,isNameRequired:u,showEmail:y,showName:b,enableScreenshot:E,useSentryUser:k,tags:x,styleNonce:T,scriptNonce:O,colorScheme:C,themeDark:P,themeLight:j,triggerLabel:W,triggerAriaLabel:G,cancelButtonLabel:R,submitButtonLabel:q,confirmButtonLabel:A,formTitle:N,emailLabel:M,emailPlaceholder:D,messageLabel:B,messagePlaceholder:F,nameLabel:z,namePlaceholder:U,successMessageText:V,isRequiredLabel:L,addScreenshotButtonLabel:I,removeScreenshotButtonLabel:H,highlightToolText:$,hideToolText:K,removeHighlightText:Y,onFormClose:X,onFormOpen:J,onSubmitError:Z,onSubmitSuccess:Q,onFormSubmitted:ee};let re=null,ne=[];const oe=e=>{if(!re){const t=d.createElement("div");t.id=String(e.id),d.body.appendChild(t),re=t.attachShadow({mode:"open"}),re.appendChild(function({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){const o=d.createElement("style");return o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?"color-scheme: only light;":""}\n\n ${S("dark"===e?{...w,...t}:{..._,...r})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${S({...w,...t})}\n }\n}`:""}\n}\n`,n&&o.setAttribute("nonce",n),o}(e))}return re},ie=async n=>{const i=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(f.userAgent)||/Macintosh/i.test(f.userAgent)&&f.maxTouchPoints&&f.maxTouchPoints>1||!isSecureContext);let a,s;try{a=(t?t():await e("feedbackModalIntegration",O))(),(0,o.addIntegration)(a)}catch{throw m&&c.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=i?r?r():await e("feedbackScreenshotIntegration",O):void 0;t&&(s=t(),(0,o.addIntegration)(s))}catch{m&&c.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const l=a.createDialog({options:{...n,onFormClose:()=>{l?.close(),n.onFormClose?.()},onFormSubmitted:()=>{l?.close(),n.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:h,shadow:oe(n)});return l},ae=(e,t={})=>{const r=g(te,t),n="string"==typeof e?d.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw m&&c.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const i=async()=>{o||(o=await ie({...r,onFormSubmitted:()=>{o?.removeFromDom(),r.onFormSubmitted?.()}})),o.appendToDom(),o.open()};n.addEventListener("click",i);const a=()=>{ne=ne.filter(e=>e!==a),o?.removeFromDom(),o=null,n.removeEventListener("click",i)};return ne.push(a),a},se=(e={})=>{const t=g(te,e),r=oe(t),n=v({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:T});return ae(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){(0,l.isBrowser)()&&te.autoInject&&("loading"===d.readyState?d.addEventListener("DOMContentLoaded",()=>se().appendToDom()):se().appendToDom())},attachTo:ae,createWidget(e={}){const t=se(g(te,e));return t.appendToDom(),t},createForm:async(e={})=>ie(g(te,e)),remove(){re&&(re.parentElement?.remove(),re=null),ne.forEach(e=>e()),ne=[]}}};function k(){const e=(0,n.getClient)();return e?.getIntegrationByName("Feedback")}var x,T,O,C,j,P,I,R={},A=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,D=Array.isArray;function N(e,t){for(var r in t)e[r]=t[r];return e}function L(e){var t=e.parentNode;t&&t.removeChild(e)}function B(e,t,r){var n,o,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?x.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return F(e,a,n,o,null)}function F(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++O:o,__i:-1,__u:0};return null==o&&null!=T.vnode&&T.vnode(i),i}function z(e){return e.children}function U(e,t){this.props=e,this.context=t}function H(e,t){if(null==t)return e.__?H(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?H(e):null}function q(e,t,r){var n,o=e.__v,i=o.__e,a=e.__P;if(a)return(n=N({},o)).__v=o.__v+1,T.vnode&&T.vnode(n),ee(a,n,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?H(o):i,!!(32&o.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=i&&V(n),n}function V(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return V(e)}}function W(e){(!e.__d&&(e.__d=!0)&&C.push(e)&&!G.__r++||j!==T.debounceRendering)&&((j=T.debounceRendering)||P)(G)}function G(){var e,t,r,n=[],o=[];for(C.sort(I);e=C.shift();)e.__d&&(r=C.length,t=q(e,n,o)||t,0===r||C.length>r?(te(n,t,o),o.length=n.length=0,t=void 0,C.sort(I)):t&&T.__c&&T.__c(t,A));t&&te(n,t,o),G.__r=0}function $(e,t,r,n,o,i,a,s,l,c,u){var d,f,p,h,m,g=n&&n.__k||A,y=t.length;for(r.__d=l,function(e,t,r){var n,o,i,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(o=e.__k[n]=null==(o=t[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?F(null,o,null,null,o):D(o)?F(z,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?F(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=Y(o,r,a=n+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==n+d&&(o.__u|=65536))):(i=r[n])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=H(i)),oe(i,i,!1),r[n]=null,u--);if(u)for(n=0;n<c;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=H(i)),oe(i,i))}(r,t,g),l=r.__d,d=0;d<y;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?R:g[p.__i]||R,p.__i=d,ee(e,p,f,o,i,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&ne(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=K(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=l,r.__e=m}function K(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=K(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Y(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&o==l.key&&i===l.type)return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function J(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||M.test(t)?r:r+"px"}function X(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||J(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||J(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,i?Z:Q,i)):e.removeEventListener(t,i?Z:Q,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function Q(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(T.event?T.event(e):e)}}function Z(e){if(this.l)return this.l[e.type+!0](T.event?T.event(e):e)}function ee(e,t,r,n,o,i,a,s,l,c){var u,d,f,p,h,m,g,y,v,b,_,w,S,E,k,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=T.__b)&&u(t);e:if("function"==typeof x)try{if(y=t.props,v=(u=x.contextType)&&n[u.__c],b=u?v?v.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(y,b):(t.__c=d=new U(y,b),d.constructor=x,d.render=ie),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=N({},d.__s)),N(d.__s,x.getDerivedStateFromProps(y,d.__s))),p=d.props,h=d.state,d.__v=t,f)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,h,m)})}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,w=T.__r,S=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(n=N(N({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,h)),$(e,D(k=null!=u&&u.type===z&&null==u.key?u.props.children:u)?k:[k],t,r,n,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),T.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=re(r.__e,t,r,n,o,i,a,l,c);(u=T.diffed)&&u(t)}function te(e,t,r){for(var n=0;n<r.length;n++)ne(r[n],r[++n],r[++n]);T.__c&&T.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){T.__e(e,t.__v)}})}function re(e,t,r,n,o,i,a,s,l){var c,u,d,f,p,h,m,g=r.props,y=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!v&&(v?p.localName===v:3===p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(i=i&&x.call(e.childNodes),g=r.props||R,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=p:"key"===c||c in y||X(e,c,null,p,o));for(c in y)p=y[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||X(e,c,p,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),$(e,D(f)?f:[f],t,r,n,o&&"foreignObject"!==v,i,a,i?i[0]:r.__k&&H(r,0),s,l),null!=i)for(c=i.length;c--;)null!=i[c]&&L(i[c]);s||(c="value",void 0!==h&&(h!==e[c]||"progress"===v&&!h||"option"===v&&h!==g[c])&&X(e,c,h,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&X(e,c,m,g[c],!1))}return e}function ne(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){T.__e(e,r)}}function oe(e,t,r){var n,o;if(T.unmount&&T.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ne(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){T.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&oe(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||L(e.__e),e.__=e.__e=e.__d=void 0}function ie(e,t,r){return this.constructor(e,r)}x=A.slice,T={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},O=0,U.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=N({},this.state),"function"==typeof e&&(e=e(N({},r),this.props)),e&&N(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),W(this))},U.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),W(this))},U.prototype.render=z,C=[],P="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I=function(e,t){return e.__v.__b-t.__v.__b},G.__r=0;var ae,se,le,ce,ue=0,de=[],fe=[],pe=T,he=pe.__b,me=pe.__r,ge=pe.diffed,ye=pe.__c,ve=pe.unmount,be=pe.__;function _e(e,t){pe.__h&&pe.__h(se,e,ue||t),ue=0;var r=se.__H||(se.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:fe}),r.__[e]}function we(e){return ue=1,Se(Re,e)}function Se(e,t,r){var n=_e(ae++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Re(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=se,!se.u)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var a=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&n.__c.props===e)&&(!i||i.call(this,e,t,r))};se.u=!0;var i=se.shouldComponentUpdate,a=se.componentWillUpdate;se.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}a&&a.call(this,e,t,r)},se.shouldComponentUpdate=o}return n.__N||n.__}function Ee(e,t){var r=_e(ae++,4);!pe.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,se.__h.push(r))}function ke(e,t){var r=_e(ae++,7);return Ie(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function xe(e,t){return ue=8,ke(function(){return e},t)}function Te(){for(var e;e=de.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(je),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(t){e.__H.__h=[],pe.__e(t,e.__v)}}pe.__b=function(e){se=null,he&&he(e)},pe.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),be&&be(e,t)},pe.__r=function(e){me&&me(e),ae=0;var t=(se=e.__c).__H;t&&(le===se?(t.__h=[],se.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=fe,e.__N=e.i=void 0})):(t.__h.forEach(je),t.__h.forEach(Pe),t.__h=[],ae=0)),le=se},pe.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==de.push(t)&&ce===pe.requestAnimationFrame||((ce=pe.requestAnimationFrame)||Ce)(Te)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==fe&&(e.__=e.__V),e.i=void 0,e.__V=fe})),le=se=null},pe.__c=function(e,t){t.some(function(e){try{e.__h.forEach(je),e.__h=e.__h.filter(function(e){return!e.__||Pe(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],pe.__e(r,e.__v)}}),ye&&ye(e,t)},pe.unmount=function(e){ve&&ve(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{je(e)}catch(e){t=e}}),r.__H=void 0,t&&pe.__e(t,r.__v))};var Oe="function"==typeof requestAnimationFrame;function Ce(e){var t,r=function(){clearTimeout(n),Oe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Oe&&(t=requestAnimationFrame(r))}function je(e){var t=se,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),se=t}function Pe(e){var t=se;e.__c=e.__(),se=t}function Ie(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function Re(e,t){return"function"==typeof t?t(e):t}const Ae=Object.defineProperty({__proto__:null,useCallback:xe,useContext:function(e){var t=se.context[e.__c],r=_e(ae++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(se)),t.props.value):e.__},useDebugValue:function(e,t){pe.useDebugValue&&pe.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=_e(ae++,3);!pe.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,se.__H.__h.push(r))},useErrorBoundary:function(e){var t=_e(ae++,10),r=we();return t.__=e,se.componentDidCatch||(se.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=_e(ae++,11);if(!e.__){for(var t=se.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){ue=6,Ee(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:Ee,useMemo:ke,useReducer:Se,useRef:function(e){return ue=5,ke(function(){return{current:e}},[])},useState:we},Symbol.toStringTag,{value:"Module"});function Me(){const e=e=>d.createElementNS("http://www.w3.org/2000/svg",e),t=y(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),r=y(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(r),t}function De({options:e}){const t=ke(()=>({__html:Me().outerHTML}),[]);return B("h2",{class:"dialog__header"},B("span",{class:"dialog__title"},e.formTitle),e.showBranding?B("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Ne(e,t){const r=e.get(t);return"string"==typeof r?r.trim():""}function Le({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail:s,showName:l,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:f,removeScreenshotButtonLabel:p,cancelButtonLabel:h,emailLabel:g,emailPlaceholder:y,isEmailRequired:v,isNameRequired:b,messageLabel:_,messagePlaceholder:w,nameLabel:S,namePlaceholder:E,submitButtonLabel:k,isRequiredLabel:x}=e,[T,O]=we(!1),[C,j]=we(null),[P,I]=we(!1),R=u?.input,[A,M]=we(null),D=xe(e=>{M(e),I(!1)},[]),N=xe(e=>{const t=function(e,t){const r=[];return t.isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r}(e,{emailLabel:g,isEmailRequired:v,isNameRequired:b,messageLabel:_,nameLabel:S});return t.length>0?j(`Please enter in the following required fields: ${t.join(", ")}`):j(null),0===t.length},[g,v,b,_,S]),L=xe(async e=>{O(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),r=await(u&&P?u.value():void 0),n={name:Ne(t,"name"),email:Ne(t,"email"),message:Ne(t,"message"),attachments:r?[r]:void 0};if(!N(n))return;try{const e=await o({name:n.name,email:n.email,message:n.message,source:"widget",tags:d},{attachments:n.attachments});i(n,e)}catch(e){m&&c.debug.error(e),j(e),a(e)}}finally{O(!1)}},[u&&P,i,a]);return B("form",{class:"form",onSubmit:L},R&&P?B(R,{onError:D}):null,B("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:T},B("div",{class:"form__top"},C?B("div",{class:"form__error-container"},C):null,l?B("label",{for:"name",class:"form__label"},B(Be,{label:S,isRequiredLabel:x,isRequired:b}),B("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:E,required:b,type:"text"})):B("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?B("label",{for:"email",class:"form__label"},B(Be,{label:g,isRequiredLabel:x,isRequired:v}),B("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:y,required:v,type:"email"})):B("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),B("label",{for:"message",class:"form__label"},B(Be,{label:_,isRequiredLabel:x,isRequired:!0}),B("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:w,required:!0,rows:5})),R?B("label",{for:"screenshot",class:"form__label"},B("button",{class:"btn btn--default",disabled:T,type:"button",onClick:()=>{M(null),I(e=>!e)}},P?p:f),A?B("div",{class:"form__error-container"},A.message):null):null),B("div",{class:"btn-group"},B("button",{class:"btn btn--primary",disabled:T,type:"submit"},k),B("button",{class:"btn btn--default",disabled:T,type:"button",onClick:n},h))))}function Be({label:e,isRequired:t,isRequiredLabel:r}){return B("span",{class:"form__label__text"},e,t&&B("span",{class:"form__label__text--required"},r))}function Fe(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=y(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=y(e("g"),{clipPath:"url(#clip0_57_156)"}),n=y(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=y(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(o,n);const i=e("defs"),a=y(e("clipPath"),{id:"clip0_57_156"}),s=y(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}function ze({open:e,onFormSubmitted:t,...r}){const n=r.options,o=ke(()=>({__html:Fe().outerHTML}),[]),[i,a]=we(null),s=xe(()=>{i&&(clearTimeout(i),a(null)),t()},[i]),l=xe((e,n)=>{r.onSubmitSuccess(e,n),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return B(z,null,i?B("div",{class:"success__position",onClick:s},B("div",{class:"success__content"},n.successMessageText,B("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):B("dialog",{class:"dialog",onClick:n.onFormClose,open:e},B("div",{class:"dialog__position"},B("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},B(De,{options:n}),B(Le,{...r,onSubmitSuccess:l})))))}const Ue=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:o})=>{const i=o,a=e.useSentryUser,s=function(){const e=(0,n.getCurrentScope)().getUser(),t=(0,n.getIsolationScope)().getUser(),r=(0,n.getGlobalScope)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:r}(),l=d.createElement("div"),c=function(e){const t=d.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let u="";const f={get el(){return l},appendToDom(){i.contains(c)||i.contains(l)||(i.appendChild(c),i.appendChild(l))},removeFromDom(){l.remove(),c.remove(),d.body.style.overflow=u},open(){h(!0),e.onFormOpen?.(),(0,n.getClient)()?.emit("openFeedbackWidget"),u=d.body.style.overflow,d.body.style.overflow="hidden"},close(){h(!1),d.body.style.overflow=u}},p=t?.createInput({h:B,hooks:Ae,dialog:f,options:e}),h=t=>{!function(e,t){var r,n,o;T.__&&T.__(e,t),r=t.__k,n=[],o=[],ee(t,e=t.__k=B(z,null,[e]),r||R,R,void 0!==t.ownerSVGElement,r?null:t.firstChild?x.call(t.childNodes):null,n,r?r.__e:t.firstChild,!1,o),e.__d=void 0,te(n,e,o)}(B(ze,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&s?.[a.name]||"",defaultEmail:a&&s?.[a.email]||"",onFormClose:()=>{h(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{h(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),l)};return f}});function He(e){const t=d.createElement("style"),r="#1A141F",n="#302735";return t.textContent=`\n.editor {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n}\n\n.editor__image-container {\n justify-items: center;\n padding: 15px;\n position: relative;\n height: 100%;\n border-radius: var(--menu-border-radius, 6px);\n\n background-color: ${r};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${r} 8px,\n ${r} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${n} 15px,\n ${n} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container > * {\n object-fit: contain;\n position: absolute;\n}\n\n.editor__tool-container {\n padding-top: 8px;\n display: flex;\n justify-content: center;\n}\n\n.editor__tool-bar {\n display: flex;\n gap: 8px;\n}\n\n.editor__tool {\n display: flex;\n padding: 8px 12px;\n justify-content: center;\n align-items: center;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n background: var(--button-background, var(--background));\n color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n background: var(--button-primary-background, var(--accent-background));\n color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n position: absolute;\n z-index: 2;\n}\n\n.editor__rect button {\n opacity: 0;\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n padding: 0;\n z-index: 3;\n border: none;\n background: none;\n}\n\n.editor__rect:hover button {\n opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function qe({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:o}){const i=function(){const[t,r]=e.useState(u.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{r(u.devicePixelRatio)},t=matchMedia(`(resolution: ${u.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await f.mediaDevices.getDisplayMedia({video:{width:u.innerWidth*i,height:u.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=d.createElement("video");await new Promise((t,n)=>{o.srcObject=e,o.onloadedmetadata=()=>{r(o,i),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(n)}),n()})().catch(o)},[])}}function Ve(e,t,r){if(!e)return;const n=e.getContext("2d",t);n&&r(e,n)}function We(e,t){Ve(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Ge(e,t,r){Ve(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{!function(e,t,r){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=r,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,n,t)})})}function $e({h:e,hooks:t,outputBuffer:r,dialog:n,options:o}){const i=qe({hooks:t}),a=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),s=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),l={__html:He(o.styleNonce).innerText},c=n.el.style,f=({screenshot:n})=>{const[i,c]=t.useState("highlight"),[f,p]=t.useState([]),h=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),[v,b]=t.useState(1),_=t.useMemo(()=>{const e=d.getElementById(o.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const e=()=>{const t=h.current;t&&(Ve(n.canvas,{alpha:!1},e=>{const r=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);b(r)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),u.addEventListener("resize",e),()=>{u.removeEventListener("resize",e)}},[n]);const w=t.useCallback((e,t)=>{Ve(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{w(m.current,n.dpi),We(m.current,n.canvas)},[n]),t.useEffect(()=>{w(g.current,n.dpi),Ve(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ge(g.current,_,f)},[f,_]),t.useEffect(()=>{w(r,n.dpi),We(r,n.canvas),Ve(d.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,Ge(e,_,f),We(r,e)})},[f,n,_]);const S=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),p(t=>{const r=[...t];return r.splice(e,1),r})},[]),E={width:n.canvas.width*v+"px",height:n.canvas.height*v+"px"},k=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:h},e("canvas",{ref:m,id:"background",style:E}),e("canvas",{ref:g,id:"foreground",style:E}),e("div",{ref:y,onMouseDown:e=>{if(!i||!y.current)return;const t=y.current.getBoundingClientRect(),r={type:i,x:e.offsetX/v,y:e.offsetY/v},n=(e,r)=>{const n=(r.clientX-t.x)/v,o=(r.clientY-t.y)/v;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,o),w:Math.abs(n-e.x),h:Math.abs(o-e.y)}},o=e=>{Ve(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ge(g.current,_,[...f,n(r,e)])},a=e=>{const t=n(r,e);t.w*v>=1&&t.h*v>=1&&p(e=>[...e,t]),d.removeEventListener("mousemove",o),d.removeEventListener("mouseup",a)};d.addEventListener("mousemove",o),d.addEventListener("mouseup",a)},style:E},f.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:t.y*v+"px",left:t.x*v+"px",width:t.w*v+"px",height:t.h*v+"px"}},e("button",{"aria-label":o.removeHighlightText,onClick:S(r),onMouseDown:k,onMouseUp:k,type:"button"},e(s,null))))))),e(a,{options:o,action:i,setAction:c}))};return function({onError:n}){const[o,a]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{c.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{Ve(d.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),a({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{c.display="block"},[]),onError:t.useCallback(e=>{c.display="block",n(e)},[])}),o?e(f,{screenshot:o}):e("div",null)}}const Ke=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{const o=d.createElement("canvas");return{input:$e({h:e,hooks:t,outputBuffer:o,dialog:r,options:n}),value:async()=>{const e=await new Promise(e=>{o.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureFeedback:()=>o});var n=r(301);function o(e,t={},r=(0,n.getCurrentScope)()){const{message:o,name:i,email:a,url:s,source:l,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:a,name:i,message:o,url:s,source:l,associated_event_id:c}},type:"feedback",level:"info",tags:u},f=r?.getClient()||(0,n.getClient)();f&&f.emit("beforeSendFeedback",d,t);return r.captureEvent(d,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>i});var n=r(3070),o=r(305);function i(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNodeEnv:()=>o,loadModule:()=>a});var n=r(1344);function o(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function a(e,t=module){let r;try{r=i(t,e)}catch{}if(!r)try{const{cwd:n}=i(t,"process");r=i(t,`${n()}/node_modules/${e}`)}catch{}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{lazyLoadIntegration:()=>l});var n=r(301),o=r(304),i=r(1346);const a={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},s=i.WINDOW;async function l(e,t){const r=a[e],l=s.Sentry=s.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${e}`);const c=l[e];if("function"==typeof c&&!("_isShim"in c))return c;const u=function(e){const t=(0,n.getClient)(),r=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${o.SDK_VERSION}/${e}.min.js`,r).toString()}(r),d=i.WINDOW.document.createElement("script");d.src=u,d.crossOrigin="anonymous",d.referrerPolicy="strict-origin",t&&d.setAttribute("nonce",t);const f=new Promise((e,t)=>{d.addEventListener("load",()=>e()),d.addEventListener("error",t)}),p=i.WINDOW.document.currentScript,h=i.WINDOW.document.body||i.WINDOW.document.head||p?.parentElement;if(!h)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);h.appendChild(d);try{await f}catch{throw new Error(`Error when loading integration: ${e}`)}const m=l[e];if("function"!=typeof m)throw new Error(`Could not load integration: ${e}`);return m}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackSyncIntegration:()=>o});var n=r(3067);const o=(0,n.buildFeedbackIntegration)({getModalIntegration:()=>n.feedbackModalIntegration,getScreenshotIntegration:()=>n.feedbackScreenshotIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromEnvelope:()=>a,makeMultiplexedTransport:()=>s});var n=r(1330),o=r(329),i=r(1332);function a(e,t){let r;return(0,i.forEachEnvelopeItem)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function s(e,t){return r=>{const s=e(r),l=new Map;function c(t,i){const s=i?`${t}:${i}`:t;let c=l.get(s);if(!c){const u=(0,o.dsnFromString)(t);if(!u)return;const d=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(u,r.tunnel);c=i?function(e,t){return r=>{const n=e(r);return{...n,send:async e=>{const r=a(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}}(e,i)({...r,url:d}):e({...r,url:d}),l.set(s,c)}return[t,c]}return{send:async function(e){const r=t({envelope:e,getEvent:function(t){return a(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?c(e,void 0):c(e.dsn,e.release)).filter(e=>!!e),n=r.length?r:[["",s]];return(await Promise.all(n.map(([t,r])=>r.send(function(e,t){return(0,i.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){const t=[...l.values(),s];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},(e,t,r)=>{"use strict";function n(e,...t){const r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}r.r(t),r.d(t,{fmt:()=>o,parameterize:()=>n});const o=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{moduleMetadataIntegration:()=>a});var n=r(1323),o=r(3076),i=r(1332);const a=(0,n.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,i.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,o.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,o.addMetadataToStackFrames)(r,t)})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addMetadataToStackFrames:()=>s,getMetadataForUrl:()=>a,stripMetadataFromStackFrames:()=>l});var n=r(305);const o=new Map,i=new Set;function a(e,t){return function(e){if(n.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){const r=n.GLOBAL_OBJ._sentryModuleMetadata[t];if(i.has(t))continue;i.add(t);const a=e(t);for(const e of a.reverse())if(e.filename){o.set(e.filename,r);break}}}(e),o.get(t)}function s(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const r=a(e,t.filename);r&&(t.module_metadata=r)})})}function l(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureConsoleIntegration:()=>f});var n=r(301),o=r(300),i=r(1349),a=r(1323),s=r(315),l=r(311),c=r(1353),u=r(316),d=r(305);const f=(0,a.defineIntegration)((e={})=>{const t=e.levels||s.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.GLOBAL_OBJ&&(0,i.addConsoleInstrumentationHandler)(({args:i,level:a})=>{(0,n.getClient)()===e&&t.includes(a)&&function(e,t,r){const i={level:(0,c.severityLevelFromString)(t),extra:{arguments:e}};(0,n.withScope)(n=>{if(n.addEventProcessor(e=>(e.logger="console",(0,l.addExceptionMechanism)(e,{handled:r,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,u.safeJoin)(e.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",e.slice(1)),(0,o.captureMessage)(t,i)}return}const a=e.find(e=>e instanceof Error);if(a)return void(0,o.captureException)(a,i);const s=(0,u.safeJoin)(e," ");(0,o.captureMessage)(s,i)})}(i,a,r)})}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extraErrorDataIntegration:()=>u});var n=r(309),o=r(1323),i=r(315),a=r(314),s=r(337),l=r(312),c=r(316);const u=(0,o.defineIntegration)((e={})=>{const{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},r,n,o){if(!t.originalException||!(0,a.isError)(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,c=d(t.originalException,n,o);if(c){const t={...e.contexts},n=(0,s.normalize)(c,r);return(0,a.isPlainObject)(n)&&((0,l.addNonEnumerableProperty)(n,"__sentry_skip_normalization__",!0),t[i]=n),{...e,contexts:t}}return e}(e,n,t,r,i)}}});function d(e,t,r){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const i=e[t];o[t]=(0,a.isError)(i)||"string"==typeof i?(0,c.truncate)(`${i}`,r):i}if(t&&void 0!==e.cause)if((0,a.isError)(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:d(e.cause,!1,r)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const r=t[e];o[e]=(0,a.isError)(r)?r.toString():r}}return o}catch(e){n.DEBUG_BUILD&&i.debug.error("Unable to extract extra data from the Error object:",e)}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateIteratee:()=>s,rewriteFramesIntegration:()=>a});var n=r(1323),o=r(3080),i=r(305);const a=(0,n.defineIntegration)((e={})=>{const t=e.root,r=e.prefix||"app:///",n="window"in i.GLOBAL_OBJ&&!!i.GLOBAL_OBJ.window,o=e.iteratee||s({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>o(e))})}};var t})}}}catch{return e}}(t)),t}}});function s({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;const i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){const e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||a){const e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?(0,o.relative)(t,e):(0,o.basename)(e);n.filename=`${r}${a}`}return n}}},(e,t,r)=>{"use strict";function n(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}r.r(t),r.d(t,{basename:()=>p,dirname:()=>f,isAbsolute:()=>u,join:()=>d,normalizePath:()=>c,relative:()=>l,resolve:()=>a});const o=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=o.exec(t);return r?r.slice(1):[]}function a(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const o=n>=0?e[n]:"/";o&&(t=`${o}/${t}`,r="/"===o.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function s(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function l(e,t){e=a(e).slice(1),t=a(t).slice(1);const r=s(e.split("/")),n=s(t.split("/")),o=Math.min(r.length,n.length);let i=o;for(let e=0;e<o;e++)if(r[e]!==n[e]){i=e;break}let l=[];for(let e=i;e<r.length;e++)l.push("..");return l=l.concat(n.slice(i)),l.join("/")}function c(e){const t=u(e),r="/"===e.slice(-1);let o=n(e.split("/").filter(e=>!!e),!t).join("/");return o||t||(o="."),o&&r&&(o+="/"),(t?"/":"")+o}function u(e){return"/"===e.charAt(0)}function d(...e){return c(e.join("/"))}function f(e){const t=i(e),r=t[0]||"";let n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."}function p(e,t){let r=i(e)[2]||"";return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DB_OPERATIONS_TO_INSTRUMENT:()=>g,FILTER_MAPPINGS:()=>m,extractOperation:()=>b,instrumentSupabaseClient:()=>k,supabaseIntegration:()=>x,translateFiltersIntoMethods:()=>_});var n=r(525),o=r(309),i=r(300),a=r(1323),s=r(327),l=r(315),c=r(311),u=r(314),d=r(332),f=r(1383);const p=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],h=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],m={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},g=["select","insert","upsert","update","delete"];function y(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function v(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function b(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function _(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[r,...n]=t.split(".");let o;return o=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&m[r]||"filter",`${o}(${e}, ${n.join(".")})`}function w(e,t=!1){return new Proxy(e,{apply:(r,n,o)=>(0,f.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:d.SPAN_STATUS_ERROR}),(0,i.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:d.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:d.SPAN_STATUS_ERROR}),e.end(),(0,i.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}function S(e){v(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,r){const n=Reflect.apply(e,t,r);return function(e){for(const t of g)v(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,r,n){const i=Reflect.apply(e,r,n),a=i.constructor;return o.DEBUG_BUILD&&l.debug.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),E(a),i}}),y(e.prototype[t]))}(n.constructor),n}}),y(e.prototype.from))}function E(e){v(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,r){const o=g,a=t,l=b(a.method,a.headers);if(!o.includes(l))return Reflect.apply(e,t,r);if(!a?.url?.pathname||"string"!=typeof a.url.pathname)return Reflect.apply(e,t,r);const p=a.url.pathname.split("/"),h=p.length>0?p[p.length-1]:"",m=[];for(const[e,t]of a.url.searchParams.entries())m.push(_(e,t));const y=Object.create(null);if((0,u.isPlainObject)(a.body))for(const[e,t]of Object.entries(a.body))y[e]=t;const v=`${"select"===l?"":`${l}${y?"(...) ":""}`}${m.join(" ")} from(${h})`,w={"db.table":h,"db.schema":a.schema,"db.url":a.url.origin,"db.sdk":a.headers["X-Client-Info"],"db.system":"postgresql","db.operation":l,[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return m.length&&(w["db.query"]=m),Object.keys(y).length&&(w["db.body"]=y),(0,f.startSpan)({name:v,attributes:w},o=>Reflect.apply(e,t,[]).then(e=>{if(o&&(e&&"object"==typeof e&&"status"in e&&(0,d.setHttpStatus)(o,e.status||500),o.end()),e.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const r={};m.length&&(r.query=m),Object.keys(y).length&&(r.body=y),(0,i.captureException)(t,e=>(e.addEventProcessor(e=>((0,c.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}const t={type:"supabase",category:`db.${l}`,message:v},r={};return m.length&&(r.query=m),Object.keys(y).length&&(r.body=y),Object.keys(r).length&&(t.data=r),(0,n.addBreadcrumb)(t),e},e=>{throw o&&((0,d.setHttpStatus)(o,500),o.end()),e}).then(...r))}}),y(e.prototype.then))}const k=e=>{if(!e)return void(o.DEBUG_BUILD&&l.debug.warn("Supabase integration was not installed because no Supabase client was provided."));S(e.constructor===Function?e:e.constructor),function(e){const t=e.auth;if(t&&!v(e.auth)){for(const r of p){const n=t[r];n&&"function"==typeof e.auth[r]&&(e.auth[r]=w(n))}for(const r of h){const n=t.admin[r];n&&"function"==typeof e.auth.admin[r]&&(e.auth.admin[r]=w(n,!0))}y(e.auth)}}(e)},x=(0,a.defineIntegration)(e=>{return t=e.supabaseClient,{setupOnce(){k(t)},name:"Supabase"};var t})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyZodErrorsToEvent:()=>c,flattenIssue:()=>a,flattenIssuePath:()=>s,formatIssueMessage:()=>l,zodErrorsIntegration:()=>u});var n=r(1323),o=r(314),i=r(316);function a(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function s(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function l(e){const t=new Set;for(const r of e.issues){const e=s(r.path);e.length>0&&t.add(e)}const r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){const r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,i.truncate)(r.join(", "),100)}`}function c(e,t=!1,r,n){if(!(r.exception?.values&&n.originalException&&(i=n.originalException,(0,o.isError)(i)&&"ZodError"===i.name&&Array.isArray(i.issues))&&0!==n.originalException.issues.length))return r;var i;try{const o=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(a);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:l(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const u=(0,n.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>c(t,e.saveZodIssuesAsAttachment,r,n)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{thirdPartyErrorFilterIntegration:()=>s});var n=r(1323),o=r(3076),i=r(1332),a=r(338);const s=(0,n.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,i.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,o.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,o.addMetadataToStackFrames)(r,t)})},processEvent(t){const r=function(e){const t=(0,a.getFramesFromEvent)(e);if(!t)return;return t.filter(e=>!!e.filename&&null!=(e.lineno??e.colno)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(l)).map(e=>e.slice(l.length)):[])}(t);if(r){if(r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));const l="_sentryBundlerPluginAppKey:"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{featureFlagsIntegration:()=>i});var n=r(1323),o=r(3085);const i=(0,n.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e),addFeatureFlag(e,t){(0,o._INTERNAL_insertFlagToScope)(e,t),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e,t)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_FLAG_BUFFER_SIZE:()=>s,_INTERNAL_MAX_FLAGS_PER_SPAN:()=>l,_INTERNAL_addFeatureFlagToActiveSpan:()=>p,_INTERNAL_copyFlagsFromScopeToEvent:()=>u,_INTERNAL_insertFlagToScope:()=>d,_INTERNAL_insertToFlagBuffer:()=>f});var n=r(301),o=r(309),i=r(315),a=r(331);const s=100,l=10,c="flag.evaluation.";function u(e){const t=(0,n.getCurrentScope)().getScopeData().contexts.flags,r=t?t.values:[];return r.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]},e):e}function d(e,t,r=s){const o=(0,n.getCurrentScope)().getScopeData().contexts;o.flags||(o.flags={values:[]});f(o.flags.values,e,t,r)}function f(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n)return void(o.DEBUG_BUILD&&i.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`));const a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}function p(e,t,r=l){if("boolean"!=typeof t)return;const n=(0,a.getActiveSpan)();if(!n)return;const o=(0,a.spanToJSON)(n).data;if(`${c}${e}`in o)return void n.setAttribute(`${c}${e}`,t);Object.keys(o).filter(e=>e.startsWith(c)).length<r&&n.setAttribute(`${c}${e}`,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{debug:()=>s,error:()=>u,fatal:()=>d,fmt:()=>o.fmt,info:()=>l,trace:()=>a,warn:()=>c});var n=r(1334),o=r(3074);function i(e,t,r,o,i){(0,n._INTERNAL_captureLog)({level:e,message:t,attributes:r,severityNumber:i},o)}function a(e,t,{scope:r}={}){i("trace",e,t,r)}function s(e,t,{scope:r}={}){i("debug",e,t,r)}function l(e,t,{scope:r}={}){i("info",e,t,r)}function c(e,t,{scope:r}={}){i("warn",e,t,r)}function u(e,t,{scope:r}={}){i("error",e,t,r)}function d(e,t,{scope:r}={}){i("fatal",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{consoleLoggingIntegration:()=>f});var n=r(301),o=r(309),i=r(1349),a=r(1323),s=r(327),l=r(315),c=r(1334),u=r(3088);const d={[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},f=(0,a.defineIntegration)((e={})=>{const t=e.levels||l.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){const{enableLogs:r,normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e.getOptions();r?(0,i.addConsoleInstrumentationHandler)(({args:r,level:o})=>{if((0,n.getClient)()!==e||!t.includes(o))return;const i=r[0],l=r.slice(1);if("assert"===o){if(!i){const e=l.length>0?`Assertion failed: ${(0,u.formatConsoleArgs)(l,a,s)}`:"Assertion failed";(0,c._INTERNAL_captureLog)({level:"error",message:e,attributes:d})}return}const f="log"===o,p=r.length>1&&"string"==typeof r[0]&&!(0,u.hasConsoleSubstitutions)(r[0]),h={...d,...p?(0,u.createConsoleTemplateAttributes)(i,l):{}};(0,c._INTERNAL_captureLog)({level:f?"info":o,message:(0,u.formatConsoleArgs)(r,a,s),severityNumber:f?10:void 0,attributes:h})}):o.DEBUG_BUILD&&l.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled")}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsoleTemplateAttributes:()=>c,formatConsoleArgs:()=>a,hasConsoleSubstitutions:()=>l,safeJoinConsoleArgs:()=>s});var n=r(314),o=r(337),i=r(305);function a(e,t,r){return"util"in i.GLOBAL_OBJ&&"function"==typeof i.GLOBAL_OBJ.util.format?i.GLOBAL_OBJ.util.format(...e):s(e,t,r)}function s(e,t,r){return e.map(e=>(0,n.isPrimitive)(e)?String(e):JSON.stringify((0,o.normalize)(e,t,r))).join(" ")}function l(e){return/%[sdifocO]/.test(e)}function c(e,t){const r={},n=new Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{count:()=>i,distribution:()=>s,gauge:()=>a});var n=r(1338);function o(e,t,r,o){(0,n._INTERNAL_captureMetric)({type:e,name:t,value:r,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function i(e,t=1,r){o("counter",e,t,r)}function a(e,t,r){o("gauge",e,t,r)}function s(e,t,r){o("distribution",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsolaReporter:()=>s});var n=r(301),o=r(1334),i=r(3088);const a=["trace","debug","info","warn","error","fatal"];function s(e={}){const t=new Set(e.levels??a),r=e.client;return{log(e){const{type:a,level:s,message:u,args:d,tag:f,date:p,...h}=e,m=r||(0,n.getClient)();if(!m)return;const g=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=l[e];if(t)return t}if("number"==typeof t){const e=c[t];if(e)return e}return"info"}(a,s);if(!t.has(g))return;const{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=m.getOptions(),b=[];u&&b.push(u),d&&d.length>0&&b.push((0,i.formatConsoleArgs)(d,y,v));const _=b.join(" ");h["sentry.origin"]="auto.log.consola",f&&(h["consola.tag"]=f),a&&(h["consola.type"]=a),null!=s&&"number"==typeof s&&(h["consola.level"]=s),(0,o._INTERNAL_captureLog)({level:g,message:_,attributes:h})}}}const l={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},c={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentOpenAiClient:()=>y});var n=r(301),o=r(300),i=r(327),a=r(332),s=r(1383),l=r(3092),c=r(3093),u=r(3095),d=r(3096),f=r(3097);function p(e,t,r){if(!t||"object"!=typeof t)return;const n=t;if((0,f.isChatCompletionResponse)(n)){if(function(e,t,r){if((0,f.setCommonResponseAttributes)(e,t.id,t.model,t.created),t.usage&&(0,f.setTokenUsageAttributes)(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const n=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(n.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(n)}),r){const r=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}}(e,n,r),r&&n.choices?.length){const t=n.choices.map(e=>e.message?.content||"");e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t)})}}else(0,f.isResponsesApiResponse)(n)&&(!function(e,t,r){if((0,f.setCommonResponseAttributes)(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[l.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify([t.status])}),t.usage&&(0,f.setTokenUsageAttributes)(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),r){const r=t;if(Array.isArray(r.output)&&r.output.length>0){const t=r.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);t.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(t)})}}}(e,n,r),r&&n.output_text&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.output_text}))}function h(e,t){if("messages"in t){const r=(0,c.getTruncatedJsonString)(t.messages);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}if("input"in t){const r=(0,c.getTruncatedJsonString)(t.input);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}}function m(e,t,r,c){return async function(...m){const g=c||function(){const e=(0,n.getCurrentScope)().getClient(),t=e?.getIntegrationByName(u.OPENAI_INTEGRATION_NAME),r=!!t&&Boolean(e?.getOptions().sendDefaultPii);return{recordInputs:t?.options?.recordInputs??r,recordOutputs:t?.options?.recordOutputs??r}}(),y=function(e,t){const r={[l.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:(0,f.getOperationName)(t),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],n=[...Array.isArray(t.tools)?t.tools:[],...t.web_search_options&&"object"==typeof t.web_search_options?[{type:"web_search_options",...t.web_search_options}]:[]];n.length>0&&(r[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n))}if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(r[l.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(r[l.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"frequency_penalty"in t&&(r[l.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=t.frequency_penalty),"presence_penalty"in t&&(r[l.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presence_penalty),"stream"in t&&(r[l.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream)}else r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return r}(m,t),v=y[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=(0,f.getOperationName)(t),_=m[0];return _&&"object"==typeof _&&!0===_.stream?(0,s.startSpanManual)({name:`${b} ${v} stream-response`,op:(0,f.getSpanOperation)(t),attributes:y},async n=>{try{g.recordInputs&&m[0]&&"object"==typeof m[0]&&h(n,m[0]);const t=await e.apply(r,m);return(0,d.instrumentStream)(t,n,g.recordOutputs??!1)}catch(e){throw n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),n.end(),e}}):(0,s.startSpan)({name:`${b} ${v}`,op:(0,f.getSpanOperation)(t),attributes:y},async n=>{try{g.recordInputs&&m[0]&&"object"==typeof m[0]&&h(n,m[0]);const t=await e.apply(r,m);return p(n,t,g.recordOutputs),t}catch(e){throw(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e}})}}function g(e,t="",r){return new Proxy(e,{get(e,n){const o=e[n],i=(0,f.buildMethodPath)(t,String(n));return"function"==typeof o&&(0,f.shouldInstrument)(i)?m(o,i,e,r):"function"==typeof o?o.bind(e):o&&"object"==typeof o?g(o,i,r):o}})}function y(e,t){return g(e,"",t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE:()=>N,GEN_AI_OPERATION_NAME_ATTRIBUTE:()=>_,GEN_AI_PROMPT_ATTRIBUTE:()=>n,GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE:()=>E,GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE:()=>c,GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE:()=>l,GEN_AI_REQUEST_MESSAGES_ATTRIBUTE:()=>w,GEN_AI_REQUEST_MODEL_ATTRIBUTE:()=>i,GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE:()=>u,GEN_AI_REQUEST_STREAM_ATTRIBUTE:()=>a,GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE:()=>s,GEN_AI_REQUEST_TOP_K_ATTRIBUTE:()=>f,GEN_AI_REQUEST_TOP_P_ATTRIBUTE:()=>d,GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE:()=>p,GEN_AI_RESPONSE_ID_ATTRIBUTE:()=>m,GEN_AI_RESPONSE_MODEL_ATTRIBUTE:()=>h,GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE:()=>g,GEN_AI_RESPONSE_STREAMING_ATTRIBUTE:()=>k,GEN_AI_RESPONSE_TEXT_ATTRIBUTE:()=>S,GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE:()=>x,GEN_AI_SYSTEM_ATTRIBUTE:()=>o,GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE:()=>T,GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE:()=>O,GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE:()=>y,GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE:()=>j,GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE:()=>C,GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE:()=>v,GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE:()=>b,OPENAI_OPERATIONS:()=>D,OPENAI_RESPONSE_ID_ATTRIBUTE:()=>P,OPENAI_RESPONSE_MODEL_ATTRIBUTE:()=>I,OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE:()=>R,OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE:()=>A,OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE:()=>M});const n="gen_ai.prompt",o="gen_ai.system",i="gen_ai.request.model",a="gen_ai.request.stream",s="gen_ai.request.temperature",l="gen_ai.request.max_tokens",c="gen_ai.request.frequency_penalty",u="gen_ai.request.presence_penalty",d="gen_ai.request.top_p",f="gen_ai.request.top_k",p="gen_ai.response.finish_reasons",h="gen_ai.response.model",m="gen_ai.response.id",g="gen_ai.response.stop_reason",y="gen_ai.usage.input_tokens",v="gen_ai.usage.output_tokens",b="gen_ai.usage.total_tokens",_="gen_ai.operation.name",w="gen_ai.request.messages",S="gen_ai.response.text",E="gen_ai.request.available_tools",k="gen_ai.response.streaming",x="gen_ai.response.tool_calls",T="gen_ai.usage.cache_creation_input_tokens",O="gen_ai.usage.cache_read_input_tokens",C="gen_ai.usage.input_tokens.cache_write",j="gen_ai.usage.input_tokens.cached",P="openai.response.id",I="openai.response.model",R="openai.response.timestamp",A="openai.usage.completion_tokens",M="openai.usage.prompt_tokens",D={CHAT:"chat",RESPONSES:"responses"},N="anthropic.response.timestamp"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildMethodPath:()=>s,getFinalOperationName:()=>i,getSpanOperation:()=>a,getTruncatedJsonString:()=>c,setTokenUsageAttributes:()=>l});var n=r(3092),o=r(3094);function i(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function a(e){return`gen_ai.${i(e)}`}function s(e,t){return e?`${e}.${t}`:t}function l(e,t,r,o,i){if(void 0!==t&&e.setAttributes({[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),void 0!==t||void 0!==r||void 0!==o||void 0!==i){const a=(t??0)+(r??0)+(o??0)+(i??0);e.setAttributes({[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:a})}}function c(e){if("string"==typeof e)return e;if(Array.isArray(e)){const t=(0,o.truncateGenAiMessages)(e);return JSON.stringify(t)}return JSON.stringify(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT:()=>n,truncateGenAiMessages:()=>d,truncateMessagesByBytes:()=>u});const n=2e4,o=e=>(new TextEncoder).encode(e).length,i=e=>o(JSON.stringify(e));function a(e,t){if(o(e)<=t)return e;let r=0,n=e.length,i="";for(;r<=n;){const a=Math.floor((r+n)/2),s=e.slice(0,a);o(s)<=t?(i=s,r=a+1):n=a-1}return i}function s(e){return"string"==typeof e?e:e.text}function l(e,t){return"string"==typeof e?t:{...e,text:t}}function c(e,t){return e&&"object"==typeof e?function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const r={...e,content:""},n=t-i(r);if(n<=0)return[];const o=a(e.content,n);return[{...e,content:o}]}(e,t):function(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}(e)?function(e,t){const{parts:r}=e,n=r.map(e=>l(e,""));let c=t-i({...e,parts:n});if(c<=0)return[];const u=[];for(const e of r){const t=s(e),r=o(t);if(!(r<=c)){if(0===u.length){const r=a(t,c);r&&u.push(l(e,r));break}break}u.push(e),c-=r}return u.length>0?[{...e,parts:u}]:[]}(e,t):[]:[]}function u(e,t){if(!Array.isArray(e)||0===e.length)return e;if(i(e)<=t)return e;const r=e.map(i);let n=0,o=e.length;for(let i=e.length-1;i>=0;i--){const e=r[i];if(e&&n+e>t)break;e&&(n+=e),o=i}if(o===e.length){return c(e[e.length-1],t)}return e.slice(o)}function d(e){return u(e,n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INSTRUMENTED_METHODS:()=>o,OPENAI_INTEGRATION_NAME:()=>n,RESPONSES_TOOL_CALL_EVENT_TYPES:()=>i,RESPONSE_EVENT_TYPES:()=>a});const n="OpenAI",o=["responses.create","chat.completions.create"],i=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],a=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...i]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>d});var n=r(300),o=r(332),i=r(3092),a=r(3095),s=r(3097);function l(e,t){for(const r of e){const e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){const n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}function c(e,t,r){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const n of e.choices??[])r&&(n.delta?.content&&t.responseTexts.push(n.delta.content),n.delta?.tool_calls&&l(n.delta.tool_calls,t)),n.finish_reason&&t.finishReasons.push(n.finish_reason)}function u(e,t,r,i){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");if(e instanceof Error)return i.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const s=e;if(a.RESPONSE_EVENT_TYPES.includes(s.type)){if(r&&("response.output_item.done"===s.type&&"item"in s&&t.responsesApiToolCalls.push(s.item),"response.output_text.delta"===s.type&&"delta"in s&&s.delta))t.responseTexts.push(s.delta);else if("response"in s){const{response:e}=s;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created_at??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),r&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(s.type)}async function*d(e,t,r){const n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)(0,s.isChatCompletionChunk)(o)?c(o,n,r):(0,s.isResponsesApiStreamEvent)(o)&&u(o,n,r,t),yield o}finally{(0,s.setCommonResponseAttributes)(t,n.responseId,n.responseModel,n.responseTimestamp),(0,s.setTokenUsageAttributes)(t,n.promptTokens,n.completionTokens,n.totalTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),n.finishReasons.length&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.responseTexts.join("")});const e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];e.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(e)}),t.end()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildMethodPath:()=>l,getOperationName:()=>i,getSpanOperation:()=>a,isChatCompletionChunk:()=>f,isChatCompletionResponse:()=>c,isResponsesApiResponse:()=>u,isResponsesApiStreamEvent:()=>d,setCommonResponseAttributes:()=>h,setTokenUsageAttributes:()=>p,shouldInstrument:()=>s});var n=r(3092),o=r(3095);function i(e){return e.includes("chat.completions")?n.OPENAI_OPERATIONS.CHAT:e.includes("responses")?n.OPENAI_OPERATIONS.RESPONSES:e.split(".").pop()||"unknown"}function a(e){return`gen_ai.${i(e)}`}function s(e){return o.INSTRUMENTED_METHODS.includes(e)}function l(e,t){return e?`${e}.${t}`:t}function c(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion"===e.object}function u(e){return null!==e&&"object"==typeof e&&"object"in e&&"response"===e.object}function d(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function f(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function p(e,t,r,o){void 0!==t&&e.setAttributes({[n.OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE]:t,[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[n.OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE]:r,[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),void 0!==o&&e.setAttributes({[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o})}function h(e,t,r,o){e.setAttributes({[n.OPENAI_RESPONSE_ID_ATTRIBUTE]:t,[n.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t}),e.setAttributes({[n.OPENAI_RESPONSE_MODEL_ATTRIBUTE]:r,[n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:r}),e.setAttributes({[n.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*o).toISOString()})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentAnthropicAiClient:()=>v});var n=r(301),o=r(300),i=r(327),a=r(332),s=r(1383),l=r(3092),c=r(3093),u=r(1384),d=r(3099),f=r(3100);function p(e,t){if("messages"in t){const r=(0,c.getTruncatedJsonString)(t.messages);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}if("input"in t){const r=(0,c.getTruncatedJsonString)(t.input);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:r})}"prompt"in t&&e.setAttributes({[l.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function h(e,t,r){t&&"object"==typeof t&&("type"in t&&"error"===t.type?(0,f.handleResponseError)(e,t):(r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const r=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||r.push(e);r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[l.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[l.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[l.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[l.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&(0,c.setTokenUsageAttributes)(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function m(e,t,r){throw(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function g(e,t,r,n){return new Proxy(e,{apply(a,f,g){const y=function(e,t){const r={[l.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:(0,c.getFinalOperationName)(t),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(r[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(r[l.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(r[l.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(r[l.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(r[l.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(r[l.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(r[l.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return r}(g,t),v=y[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",b=(0,c.getFinalOperationName)(t),_="object"==typeof g[0]?g[0]:void 0,w=Boolean(_?.stream),S="messages.stream"===t;return w||S?function(e,t,r,n,o,i,a,u,f,h,g){const y={name:`${i} ${o[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"} stream-response`,op:(0,c.getSpanOperation)(a),attributes:o};return h&&!g?(0,s.startSpanManual)(y,async t=>{try{f.recordInputs&&u&&p(t,u);const o=await e.apply(r,n);return(0,d.instrumentAsyncIterableStream)(o,t,f.recordOutputs??!1)}catch(e){return m(e,t,a)}}):(0,s.startSpanManual)(y,e=>{try{f.recordInputs&&u&&p(e,u);const o=t.apply(r,n);return(0,d.instrumentMessageStream)(o,e,f.recordOutputs??!1)}catch(t){return m(t,e,a)}})}(e,a,r,g,y,b,t,_,n,w,S):(0,s.startSpan)({name:`${b} ${v}`,op:(0,c.getSpanOperation)(t),attributes:y},e=>(n.recordInputs&&_&&p(e,_),(0,u.handleCallbackErrors)(()=>a.apply(r,g),e=>{(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},t=>h(e,t,n.recordOutputs))))}})}function y(e,t="",r){return new Proxy(e,{get(e,n){const o=e[n],i=(0,c.buildMethodPath)(t,String(n));return"function"==typeof o&&(0,f.shouldInstrument)(i)?g(o,i,e,r):"function"==typeof o?o.bind(e):o&&"object"==typeof o?y(o,i,r):o}})}function v(e,t){const r=Boolean((0,n.getClient)()?.getOptions().sendDefaultPii);return y(e,"",{recordInputs:r,recordOutputs:r,...t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentAsyncIterableStream:()=>l,instrumentMessageStream:()=>c});var n=r(300),o=r(332),i=r(3092),a=r(3093);function s(e,t,r,i){if(!e||"object"!=typeof e)return;const a=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error?.type??"unknown_error"}),(0,n.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,i);a||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,r){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,r),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const r=t.activeToolBlocks[e.index];if(!r)return;const n=r.inputJsonParts.join("");let o;try{o=n?JSON.parse(n):{}}catch{o={__unparsed:n}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}async function*l(e,t,r){const n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)s(o,n,r,t),yield o}finally{n.responseId&&t.setAttributes({[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.responseId}),n.responseModel&&t.setAttributes({[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.responseModel}),(0,a.setTokenUsageAttributes)(t,n.promptTokens,n.completionTokens,n.cacheCreationInputTokens,n.cacheReadInputTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),n.finishReasons.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.responseTexts.join("")}),r&&n.toolCalls.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n.toolCalls)}),t.end()}}function c(e,t,r){const l={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{s(e,l,r,t)}),e.on("message",()=>{!function(e,t,r){t.isRecording()&&(e.responseId&&t.setAttributes({[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]:e.responseId}),e.responseModel&&t.setAttributes({[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:e.responseModel}),(0,a.setTokenUsageAttributes)(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),e.finishReasons.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(e.finishReasons)}),r&&e.responseTexts.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:e.responseTexts.join("")}),r&&e.toolCalls.length>0&&t.setAttributes({[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(e.toolCalls)}),t.end())}(l,t,r)}),e.on("error",e=>{(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"stream_error"}),t.end())}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleResponseError:()=>s,shouldInstrument:()=>a});var n=r(300),o=r(332),i=r(3101);function a(e){return i.ANTHROPIC_AI_INSTRUMENTED_METHODS.includes(e)}function s(e,t){t.error&&(e.setStatus({code:o.SPAN_STATUS_ERROR,message:t.error.type||"unknown_error"}),(0,n.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANTHROPIC_AI_INSTRUMENTED_METHODS:()=>o,ANTHROPIC_AI_INTEGRATION_NAME:()=>n});const n="Anthropic_AI",o=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractModel:()=>h,instrumentGoogleGenAIClient:()=>b});var n=r(301),o=r(300),i=r(327),a=r(332),s=r(1383),l=r(3092),c=r(3093),u=r(1384),d=r(3103),f=r(3104),p=r(3105);function h(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function m(e,t,r){const n={[l.GEN_AI_SYSTEM_ATTRIBUTE]:d.GOOGLE_GENAI_SYSTEM_NAME,[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:(0,c.getFinalOperationName)(e),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(n[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=h(t,r),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(n,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[l.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[l.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[l.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[l.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[l.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[l.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.map(e=>e.functionDeclarations);n[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else n[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=h({},r);return n}function g(e,t){if("contents"in t){const r=t.contents,n=(0,c.getTruncatedJsonString)(r);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}if("message"in t){const r=t.message,n=(0,c.getTruncatedJsonString)(r);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}if("history"in t){const r=t.history,n=(0,c.getTruncatedJsonString)(r);e.setAttributes({[l.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE]:n})}}function y(e,t,r,n){const i=t===d.CHATS_CREATE_METHOD;return new Proxy(e,{apply(e,d,h){const y=h[0],v=m(t,y,r),b=v[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",_=(0,c.getFinalOperationName)(t);return(0,p.isStreamingMethod)(t)?(0,s.startSpanManual)({name:`${_} ${b} stream-response`,op:(0,c.getSpanOperation)(t),attributes:v},async i=>{try{n.recordInputs&&y&&g(i,y);const t=await e.apply(r,h);return(0,f.instrumentStream)(t,i,Boolean(n.recordOutputs))}catch(e){throw i.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),i.end(),e}}):(0,s.startSpan)({name:i?`${_} ${b} create`:`${_} ${b}`,op:(0,c.getSpanOperation)(t),attributes:v},a=>(n.recordInputs&&y&&g(a,y),(0,u.handleCallbackErrors)(()=>e.apply(r,h),e=>{(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{i||function(e,t,r){if(t&&"object"==typeof t){if(t.usageMetadata&&"object"==typeof t.usageMetadata){const r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.join("")})}if(r&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}}(a,e,n.recordOutputs)})))}})}function v(e,t="",r){return new Proxy(e,{get:(e,n,o)=>{const i=Reflect.get(e,n,o),a=(0,c.buildMethodPath)(t,String(n));if("function"==typeof i&&(0,p.shouldInstrument)(a)){if(a===d.CHATS_CREATE_METHOD){const t=y(i,a,e,r);return function(...e){const n=t(...e);return n&&"object"==typeof n?v(n,d.CHAT_PATH,r):n}}return y(i,a,e,r)}return"function"==typeof i?i.bind(e):i&&"object"==typeof i?v(i,a,r):i}})}function b(e,t){const r=Boolean((0,n.getClient)()?.getOptions().sendDefaultPii);return v(e,"",{recordInputs:r,recordOutputs:r,...t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CHATS_CREATE_METHOD:()=>a,CHAT_PATH:()=>s,GOOGLE_GENAI_INSTRUMENTED_METHODS:()=>o,GOOGLE_GENAI_INTEGRATION_NAME:()=>n,GOOGLE_GENAI_SYSTEM_NAME:()=>i});const n="Google_GenAI",o=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],i="google_genai",a="chats.create",s="chat"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>s});var n=r(300),o=r(332),i=r(3092);function a(e,t,r,i){e&&!function(e,t){const r=e?.promptFeedback;if(r?.blockReason){const e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:o.SPAN_STATUS_ERROR,message:`Content blocked: ${e}`}),(0,n.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,i)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const r=e.usageMetadata;r&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount))}(e,t),function(e,t,r){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const n of e.candidates??[]){n?.finishReason&&!t.finishReasons.includes(n.finishReason)&&t.finishReasons.push(n.finishReason);for(const e of n?.content?.parts??[])r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,r))}async function*s(e,t,r){const n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)a(o,n,r,t),yield o}finally{const e={[i.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(e[i.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(e[i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(e[i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(e[i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens&&(e[i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens),n.finishReasons.length&&(e[i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),r&&n.responseTexts.length&&(e[i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),r&&n.toolCalls.length&&(e[i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(e),t.end()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isStreamingMethod:()=>i,shouldInstrument:()=>o});var n=r(3103);function o(e){if(n.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(e))return!0;const t=e.split(".").pop();return n.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(t)}function i(e){return e.includes("Stream")||e.endsWith("generateContentStream")||e.endsWith("sendMessageStream")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createUserFeedbackEnvelope:()=>i});var n=r(329),o=r(1332);function i(e,{metadata:t,tunnel:r,dsn:i}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!i&&{dsn:(0,n.dsnToString)(i)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,o.createEnvelope)(a,[s])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{showReportDialog:()=>c});var n=r(300),o=r(301),i=r(1330),a=r(315),s=r(1359),l=r(1346);function c(e={}){const t=l.WINDOW.document,r=t?.head||t?.body;if(!r)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] Global document not defined"));const c=(0,o.getCurrentScope)(),u=(0,o.getClient)(),d=u?.getDsn();if(!d)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] DSN not configured"));const f={...e,user:{...c.getUser(),...e.user},eventId:e.eventId||(0,n.lastEventId)()},p=l.WINDOW.document.createElement("script");p.async=!0,p.crossOrigin="anonymous",p.src=(0,i.getReportDialogEndpoint)(d,f);const{onLoad:h,onClose:m}=f;if(h&&(p.onload=h),m){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{l.WINDOW.removeEventListener("message",e)}};l.WINDOW.addEventListener("message",e)}r.appendChild(p)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportingObserverIntegration:()=>u});var n=r(300),o=r(301),i=r(1323),a=r(305),s=r(1352);const l=a.GLOBAL_OBJ,c=new WeakMap,u=(0,i.defineIntegration)((e={})=>{const t=e.types||["crash","deprecation","intervention"];function r(e){if(c.has((0,o.getClient)()))for(const t of e)(0,o.withScope)(e=>{e.setExtra("url",t.url);const r=`ReportingObserver [${t.type}]`;let o="No details available";if(t.body){const r={};for(const e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){const e=t.body;o=[e.crashId||"",e.reason||""].join(" ").trim()||o}else{o=t.body.message||o}}(0,n.captureMessage)(`${r}: ${o}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,s.supportsReportingObserver)())return;new l.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){c.set(e,!0)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpClientIntegration:()=>h});var n=r(300),o=r(301),i=r(1323),a=r(3110),s=r(305),l=r(1351),c=r(315),u=r(311),d=r(1352),f=r(1358),p=r(1359);const h=(0,i.defineIntegration)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,d.supportsNativeFetch)())return;(0,l.addFetchInstrumentationHandler)(r=>{if((0,o.getClient)()!==e)return;const{response:i,args:a,error:s,virtualError:l}=r,[c,u]=a;i&&function(e,t,r,o,i){if(v(e,r.status,r.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,o);let a,s,l,c;_()&&([a,l]=m("Cookie",e),[s,c]=m("Set-Cookie",r));const u=b({url:e.url,method:e.method,status:r.status,requestHeaders:a,responseHeaders:s,requestCookies:l,responseCookies:c,error:i,type:"fetch"});(0,n.captureEvent)(u)}}(t,c,i,u,s||l)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in s.GLOBAL_OBJ))return;(0,f.addXhrInstrumentationHandler)(r=>{if((0,o.getClient)()!==e)return;const{error:i,virtualError:a}=r,s=r.xhr,l=s[f.SENTRY_XHR_DATA_KEY];if(!l)return;const{method:u,request_headers:d}=l;try{!function(e,t,r,o,i){if(v(e,t.status,t.responseURL)){let e,a,s;if(_()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=y(e))}catch{}try{s=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{})}(t)}catch{}e=o}const l=b({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:a,error:i,type:"xhr"});(0,n.captureEvent)(l)}}(t,s,u,d,i||a)}catch(e){p.DEBUG_BUILD&&c.debug.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function m(e,t){const r=function(e){const t={};return e.forEach((e,r)=>{t[r]=e}),t}(t.headers);let n;try{const t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=y(t))}catch{}return[r,n]}function g(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function y(e){return e.split("; ").reduce((e,t)=>{const[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function v(e,t,r){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(n=e.failedRequestTargets,i=r,n.some(e=>"string"==typeof e?i.includes(e):e.test(i)))&&!(0,a.isSentryRequestUrl)(r,(0,o.getClient)());var n,i}function b(e){const t=(0,o.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:g(e.responseHeaders)}}};return(0,u.addExceptionMechanism)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function _(){const e=(0,o.getClient)();return!!e&&Boolean(e.getOptions().sendDefaultPii)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isSentryRequestUrl:()=>o});var n=r(1354);function o(e,t){const r=t?.getDsn(),o=t?.getOptions().tunnel;return function(e,t){const r=(0,n.parseStringToURLObject)(e);if(!r||(0,n.isURLObjectRelative)(r))return!1;return!!t&&(r.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(r.search))}(e,r)||function(e,t){if(!t)return!1;return i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySourceContextToFrame:()=>c,contextLinesIntegration:()=>l});var n=r(1323),o=r(305),i=r(311),a=r(1354);const s=o.GLOBAL_OBJ,l=(0,n.defineIntegration)((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const r=s.document,n=s.location&&(0,a.stripUrlQueryAndFragment)(s.location.href);if(!r||!n)return e;const o=e.exception?.values;if(!o?.length)return e;const i=r.documentElement.innerHTML;if(!i)return e;const l=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach(e=>{const r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>c(e,l,n,t)))}),e}(e,t)}});function c(e,t,r,n){return e.filename===r&&e.lineno&&t.length?((0,i.addContextToFrame)(t,e,n),e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGraphQLRequestPayload:()=>p,getRequestPayloadXhrOrFetch:()=>d,graphqlClientIntegration:()=>h,parseGraphQLQuery:()=>f});var n=r(327),o=r(1323),i=r(331),a=r(314),s=r(316),l=r(1358),c=r(1420);function u(e){const{query:t,operationName:r}=e,{operationName:n=r,operationType:o}=f(t);return n?`${o} ${n}`:`${o}`}function d(e){let t;if("xhr"in e){const r=e.xhr[l.SENTRY_XHR_DATA_KEY];t=r&&(0,c.getBodyString)(r.body)[0]}else{const r=(0,c.getFetchRequestArgBody)(e.input);t=(0,c.getBodyString)(r)[0]}return t}function f(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function p(e){let t;try{const r=JSON.parse(e);!!r.query&&(t=r)}finally{return t}}const h=(0,o.defineIntegration)(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,r)=>{const o=(0,i.spanToJSON)(e).data||{};if(!("http.client"===o[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const l=o[n.SEMANTIC_ATTRIBUTE_URL_FULL]||o["http.url"],c=o[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||o["http.method"];if(!(0,a.isString)(l)||!(0,a.isString)(c))return;const{endpoints:f}=t,h=(0,s.stringMatchesSomePattern)(l,f),m=d(r);if(h&&m){const t=p(m);if(t){const r=u(t);e.updateName(`${c} ${l} (${r})`),e.setAttribute("graphql.document",m)}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,r)=>{const{category:n,type:o,data:i}=e;if("http"===o&&("fetch"===n||"xhr"===n)){const e=i?.url,{endpoints:n}=t,o=(0,s.stringMatchesSomePattern)(e,n),a=d(r);if(o&&i&&a){const e=p(a);if(!i.graphql&&e){const t=u(e);i["graphql.document"]=e.query,i["graphql.operation"]=t}}}})}(t,e)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>Nn,replayIntegration:()=>An});var n=r(326),o=r(327),i=r(300),a=r(301),s=r(321),l=r(3110),c=r(331),u=r(335),d=r(3114),f=r(525),p=r(313),h=r(305),m=r(3069),g=r(315),y=r(311),v=r(337),b=r(312),_=r(1353),w=r(316),S=r(317),E=r(1332),k=r(1372),x=r(1388),T=r(1355),O=r(1357),C=r(1373),j=r(1358),P=r(1420);const I=h.GLOBAL_OBJ,R="sentryReplaySession",A="Unable to send Replay",M=15e4,D=5e3,N=2e7,L=36e5;var B=Object.defineProperty,F=(e,t,r)=>((e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),z=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(z||{});function U(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function H(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,V).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function V(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=q(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){const n=e.style,o=n[r],i=n.getPropertyPriority(o);t+=`${o}:${n.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),r||n)return t}return t||e.cssText}class W{constructor(){F(this,"idNodeMap",new Map),F(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function G({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function $({isMasked:e,element:t,value:r,maskInputFn:n}){let o=r||"";return e?(n&&(o=n(o,t)),"*".repeat(o.length)):o}function K(e){return e.toLowerCase()}function Y(e){return e.toUpperCase()}const J="__rrweb_original__";function X(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function Q(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function Z(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}const ee={};function te(e){const t=ee[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return ee[e]=n.bind(window)}function re(...e){return te("setTimeout")(...e)}function ne(...e){return te("clearTimeout")(...e)}function oe(e){try{return e.contentDocument}catch(e){}}let ie=1;const ae=new RegExp("[^a-z0-9-_:]");function se(){return ie++}let le,ce;const ue=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,de=/^(?:[a-z+]+:)?\/\//i,fe=/^www\..*/i,pe=/^(data:)([^,]*),(.*)/i;function he(e,t){return(e||"").replace(ue,(e,r,n,o,i,a)=>{const s=n||i||a,l=r||o||"";if(!s)return e;if(de.test(s)||fe.test(s))return`url(${l}${s}${l})`;if(pe.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}const me=/^[^ \t\n\r\u000c]+/,ge=/^[, \t\n\r\u000c]+/;const ye=new WeakMap;function ve(e,t){return t&&""!==t.trim()?_e(e,t):t}function be(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function _e(e,t){let r=ye.get(e);if(r||(r=e.createElement("a"),ye.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function we(e,t,r,n,o,i){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ve(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(ge),!(r>=t.length);){let i=n(me);if(","===i.slice(-1))i=ve(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=ve(e,i);let a=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,o.push((i+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?he(n,_e(e)):"object"===t&&"data"===r?ve(e,n):"function"==typeof i?i(r,n,o):n:ve(e,n):n}function Se(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ee(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Ee(e.parentNode,t,r,n+1):-1}function ke(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}function xe(e,t,r,n,o,i){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if(l=Ee(a,ke(n,o)),l<0)return!0;s=Ee(a,ke(t,r),l>=0?l:1/0)}else{if(s=Ee(a,ke(t,r)),s<0)return!1;l=Ee(a,ke(n,o),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function Te(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,S=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:z.Document,childNodes:[],compatMode:e.compatMode}:{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,unblockSelector:i,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=t,_=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,o,i),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=K(e.tagName);return ae.test(t)?"div":t}(e);let S={};const E=e.attributes.length;for(let t=0;t<E;t++){const n=e.attributes[t];n.name&&!Se(w,n.name,n.value)&&(S[n.name]=we(r,w,K(n.name),n.value,e,l))}if("link"===w&&a){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=q(t)),n&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=he(n,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=q(e.sheet);t&&(S._cssText=he(t,_e(r)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,r=X(t),n=Q(t,Y(w),r),o=t.checked;if("submit"!==r&&"button"!==r&&n){const e=xe(t,g,v,y,b,G({type:r,tagName:Y(w),maskInputOptions:s}));S.value=$({isMasked:e,element:t,value:n,maskInputFn:c})}o&&(S.checked=o)}"option"===w&&(e.selected&&!s.select?S.selected=!0:delete S.selected);if("canvas"===w&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const o=t.getImageData,i=J in o?o[J]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(S.rr_dataURL=t)}if("img"===w&&d){le||(le=r.createElement("canvas"),ce=le.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{le.width=t.naturalWidth,le.height=t.naturalHeight,ce.drawImage(t,0,0),S.rr_dataURL=le.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?S.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==w&&"video"!==w||(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(_){const{width:t,height:r}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||p(S.src)||(_||oe(e)||(S.rr_src=S.src),delete S.src);let k;try{customElements.get(w)&&(k=!0)}catch(e){}return{type:z.Element,tagName:w,attributes:S,childNodes:[],isSVG:be(e)||void 0,needBlock:_,rootId:m,isCustom:k}}(e,{doc:r,blockClass:o,blockSelector:i,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:S,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=q(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=he(f,_e(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=xe(e,n,i,o,a,r);p||h||m||!f||!g||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*"));m&&f&&(l.textarea||g)&&(f=c?c(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){f=$({isMasked:xe(e,n,i,o,a,G({type:null,tagName:d,maskInputOptions:l})),element:e,value:f,maskInputFn:c})}return{type:z.Text,textContent:f||"",isStyle:p,rootId:u}}(e,{doc:r,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:z.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Oe(e){return null==e?"":e.toLowerCase()}function Ce(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k=5e3,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:j=!1}=t;let{preserveWhiteSpace:P=!0}=t;const I=Te(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:j});if(!I)return console.warn(e,"not serialized"),null;let R;R=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Oe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Oe(e.attributes.name)||"icon"===Oe(e.attributes.rel)||"apple-touch-icon"===Oe(e.attributes.rel)||"shortcut icon"===Oe(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Oe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Oe(e.attributes.property).match(/^(og|twitter|fb):/)||Oe(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Oe(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Oe(e.attributes.name)||"googlebot"===Oe(e.attributes.name)||"bingbot"===Oe(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Oe(e.attributes.name)||"generator"===Oe(e.attributes.name)||"framework"===Oe(e.attributes.name)||"publisher"===Oe(e.attributes.name)||"progid"===Oe(e.attributes.name)||Oe(e.attributes.property).match(/^article:/)||Oe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Oe(e.attributes.name)||"yandex-verification"===Oe(e.attributes.name)||"csrf-token"===Oe(e.attributes.name)||"p:domain_verify"===Oe(e.attributes.name)||"verify-v1"===Oe(e.attributes.name)||"verification"===Oe(e.attributes.name)||"shopify-checkout-api-token"===Oe(e.attributes.name)))return!0}}return!1}(I,v)&&(P||I.type!==z.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?se():-2;const A=Object.assign(I,{id:R});if(n.add(e,A),-2===R)return null;S&&S(e);let M=!f;if(A.type===z.Element){M=M&&!A.needBlock;const t=e.shadowRoot;t&&H(t)&&(A.isShadowHost=!0)}if((A.type===z.Document||A.type===z.Element)&&M){v.headWhitespace&&A.type===z.Element&&"head"===A.tagName&&(P=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:C},j=e.childNodes?Array.from(e.childNodes):[];for(const e of j){const r=Ce(e,t);r&&A.childNodes.push(r)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Ce(r,t);n&&(H(e.shadowRoot)&&(n.isShadow=!0),A.childNodes.push(n))}}if(e.parentNode&&U(e.parentNode)&&H(e.parentNode)&&(A.isShadow=!0),A.type!==z.Element||"iframe"!==A.tagName||A.needBlock||function(e,t,r){const n=e.contentWindow;if(!n)return;let o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"!==o){const n=re(()=>{i||(t(),i=!0)},r);return void e.addEventListener("load",()=>{ne(n),i=!0,t()})}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return re(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=oe(e);if(t&&E){const r=Ce(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:C});r&&E(e,r)}},k),A.type===z.Element&&"img"===A.tagName&&!e.complete&&A.needBlock){const t=e,r=()=>{if(t.isConnected&&!t.complete&&x)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&x(t,A,e)}catch(e){}t.removeEventListener("load",r)};t.isConnected&&t.addEventListener("load",r)}return A.type===z.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===Z(A.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;const i=re(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{ne(i),o=!0,t()})}(e,()=>{if(T){const t=Ce(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:P,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:O,keepIframeSrcFn:C});t&&T(e,t)}},O),A.type===z.Element&&delete A.needBlock,A}function je(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Pe="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Ie={map:{},getId:()=>(console.error(Pe),-1),getNode:()=>(console.error(Pe),null),removeNodeFromMap(){console.error(Pe)},has:()=>(console.error(Pe),!1),reset(){console.error(Pe)}};function Re(e,t,r={}){let n=null,o=0;return function(...i){const a=Date.now();o||!1!==r.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(n&&(!function(...e){Qe("clearTimeout")(...e)}(n),n=null),o=a,e.apply(l,i)):n||!1===r.trailing||(n=Ze(()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},s))}}function Ae(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){Ze(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>Ae(e,t,i||{},!0)}function Me(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ie=new Proxy(Ie,{get:(e,t,r)=>("map"===t&&console.error(Pe),Reflect.get(e,t,r))}));let De=Date.now;function Ne(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Le(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Be(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Fe(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ze(e,t,r,n,o){if(!e)return!1;const i=Fe(e);if(!i)return!1;const a=ke(t,r);if(!o){const e=n&&i.matches(n);return a(i)&&!e}const s=Ee(i,a);let l=-1;return!(s<0)&&(n&&(l=Ee(i,ke(null,n))),s>-1&&l<0||s<l)}function Ue(e,t){return-2===t.getId(e)}function He(e,t){if(U(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||He(e.parentNode,t))}function qe(e){return Boolean(e.changedTouches)}function Ve(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function We(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ge(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(De=()=>(new Date).getTime());class $e{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ke(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ye(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Ke(r);)r=t;return r}(e);return t.contains(r)}function Je(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ye(e))}const Xe={};function Qe(e){const t=Xe[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return Xe[e]=n.bind(window)}function Ze(...e){return Qe("setTimeout")(...e)}var et=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(et||{}),tt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(tt||{}),rt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(rt||{}),nt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(nt||{}),ot=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ot||{});function it(e){try{return e.contentDocument}catch(e){}}function at(e){return"__ln"in e}class st{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&at(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&at(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const lt=(e,t)=>`${e}@${t}`;class ct{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new st,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Je(o))return;const i=U(o.parentNode)?this.mirror.getId(Ke(o)):this.mirror.getId(o.parentNode),a=n(o);if(-1===i||-1===a)return r.addNode(o);const s=Ce(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ve(e,this.mirror)&&!ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),We(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ge(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})}});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)dt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)ft(this.droppedSet,e)||dt(this.removes,e,this.mirror)?ft(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}const a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!Ue(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:xe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Fe(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const r=X(t),o=t.tagName;n=Q(t,o,r);const i=G({maskInputOptions:this.maskInputOptions,tagName:o,type:r});n=$({isMasked:xe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(it(t))return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Se(t.tagName,r)&&(o.attributes[r]=we(this.doc,K(t.tagName),K(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?n:[n,i]:o._unchangedStyles[e]=[n,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),n=U(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ue(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(ut(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[lt(r,n)]?ut(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!U(e.target)||!H(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ue(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[lt(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),Ge(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ut(e,t){e.delete(t),t.childNodes?.forEach(t=>ut(e,t))}function dt(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){const t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function ft(e,t){return 0!==e.size&&pt(e,t)}function pt(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||pt(e,r))}let ht;const mt=e=>{if(!ht)return e;return(...t)=>{try{return e(...t)}catch(e){if(ht&&!0===ht(e))return()=>{};throw e}}},gt=[];function yt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function vt(e,t){const r=new ct;gt.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(n=window[o]);const i=new n(mt(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function bt({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[];let c=null;return Object.keys(rt).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(a=>{let s=K(a);const u=(t=>a=>{const s=yt(a);if(ze(s,n,o,i,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=nt.Mouse;break;case"touch":l=nt.Touch;break;case"pen":l=nt.Pen}l===nt.Touch?rt[t]===rt.MouseDown?u="TouchStart":rt[t]===rt.MouseUp&&(u="TouchEnd"):nt.Pen}else qe(a)&&(l=nt.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===nt.Touch||u.startsWith("Mouse")&&l===nt.Mouse)&&(l=null)):rt[t]===rt.Click&&(l=c,c=null);const d=qe(a)?a.changedTouches[0]:a;if(!d)return;const f=r.getId(s),{clientX:p,clientY:h}=d;mt(e)({type:rt[u],id:f,x:p,y:h,...null!==l&&{pointerType:l}})})(a);if(window.PointerEvent)switch(rt[a]){case rt.MouseDown:case rt.MouseUp:s=s.replace("mouse","pointer");break;case rt.TouchStart:case rt.TouchEnd:return}l.push(je(s,u,t))}),mt(()=>{l.forEach(e=>e())})}function _t({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:a}){return je("scroll",mt(Re(mt(a=>{const s=yt(a);if(!s||ze(s,n,o,i,!0))return;const l=r.getId(s);if(s===t&&t.defaultView){const r=Ne(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}const wt=["INPUT","TEXTAREA","SELECT"],St=new WeakMap;function Et({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=yt(e);const u=e.isTrusted,g=r&&Y(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||wt.indexOf(g)<0||ze(r,n,o,i,!0))return;const v=r;if(v.classList.contains(a)||s&&v.matches(s))return;const b=X(r);let _=Q(v,g,b),w=!1;const S=G({maskInputOptions:l,tagName:g,type:b}),E=xe(r,f,h,p,m,S);"radio"!==b&&"checkbox"!==b||(w=r.checked),_=$({isMasked:E,element:r,value:_,maskInputFn:c}),y(r,d?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const k=r.name;"radio"===b&&k&&w&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==r){const t=$({isMasked:E,element:e,value:Q(e,g,b),maskInputFn:c});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function y(t,n){const o=St.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){St.set(t,n);const o=r.getId(t);mt(e)({...n,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map(e=>je(e,mt(g),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map(e=>Ae(e[0],e[1],{set(){mt(g)({target:this,isTrusted:!1})}},!1,b))),mt(()=>{v.forEach(e=>e())})}function kt(e){return function(e,t){if(Ct("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ct("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ct("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ct("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function xt(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Tt({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const o="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&o&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),mt(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function Ot(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=vt(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Re(mt(t=>{const r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),i),c=mt(Re(mt(e=>{const t=yt(e),{clientX:r,clientY:o}=qe(e)?e.changedTouches[0]:e;a||(a=De()),s.push({x:r,y:o,id:n.getId(t),timeOffset:De()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?tt.Drag:e instanceof MouseEvent?tt.MouseMove:tt.TouchMove)}),o,{trailing:!1})),u=[je("mousemove",c,r),je("touchmove",c,r),je("drag",c,r)];return mt(()=>{u.forEach(e=>e())})}(e),i=bt(e),a=_t(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return je("resize",mt(Re(mt(()=>{const t=Le(),o=Be();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)}),200)),t)}(e,{win:r}),l=Et(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:o,sampling:i,doc:a}){const s=mt(a=>Re(mt(i=>{const s=yt(i);if(!s||ze(s,t,r,n,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),i.media||500)),l=[je("play",s(ot.Play),a),je("pause",s(ot.Pause),a),je("seeked",s(ot.Seeked),a),je("volumechange",s(ot.VolumeChange),a),je("ratechange",s(ot.RateChange),a)];return mt(()=>{l.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:mt((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=xt(o,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),n.apply(o,i)})});const i=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:mt((n,o,i)=>{const[a]=i,{id:s,styleId:l}=xt(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(o,i)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:mt((n,o,i)=>{const[a]=i,{id:s,styleId:l}=xt(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(o,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:mt((n,o,i)=>{const[a]=i,{id:s,styleId:l}=xt(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(o,i)})}));const l={};jt("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(jt("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),jt("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),jt("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([n,o])=>{c[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[n].insertRule,{apply:mt((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=xt(o.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...kt(o),s||0]}]}),n.apply(o,i)})}),o.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:mt((n,o,i)=>{const[a]=i,{id:s,styleId:l}=xt(o.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...kt(o),a]}]}),n.apply(o,i)})})}),mt(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=Tt(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:mt((o,a,s)=>{const[l,c,u]=s;if(r.has(l))return i.apply(a,[l,c,u]);const{id:d,styleId:f}=xt(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:l,value:c,priority:u},index:kt(a.parentRule)}),o.apply(a,s)})});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:mt((o,i,s)=>{const[l]=s;if(r.has(l))return a.apply(i,[l]);const{id:c,styleId:u}=xt(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:kt(i.parentRule)}),o.apply(i,s)})}),mt(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=Me(t.fonts,"add",function(t){return function(r){return Ze(mt(()=>{const t=o.get(r);t&&(e(t),o.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(a),mt(()=>{n.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,selectionCb:a}=e;let s=!0;const l=mt(()=>{const e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:u,endOffset:d}=a;ze(s,n,o,i,!0)||ze(u,n,o,i,!0)||l.push({start:r.getId(s),startOffset:c,end:r.getId(u),endOffset:d})}a({ranges:l})});return l(),je("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Me(r.customElements,"define",function(e){return function(r,n,o){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,o])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return mt(()=>{gt.forEach(e=>e.reset()),n?.disconnect(),o(),i(),a(),s(),l(),c(),u(),d(),f(),p(),h(),m(),g.forEach(e=>e())})}function Ct(e){return void 0!==window[e]}function jt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Pt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=n.get(t);return o||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class It{constructor(){this.crossOriginIframeMirror=new Pt(se),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Rt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Pt(se),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=it(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case et.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:et.IncrementalSnapshot,data:{source:tt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case et.Meta:case et.Load:case et.DomContentLoaded:return!1;case et.Plugin:return t;case et.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case et.IncrementalSnapshot:switch(t.data.source){case tt.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case tt.Drag:case tt.TouchMove:case tt.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case tt.ViewportResize:return!1;case tt.MediaInteraction:case tt.MouseInteraction:case tt.Scroll:case tt.CanvasMutation:case tt.Input:return this.replaceIds(t.data,e,["id"]),t;case tt.StyleSheetRule:case tt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tt.Font:return t;case tt.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case tt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===z.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class At{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Mt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!H(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=vt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(_t({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ze(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Tt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=it(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Me(e.prototype,"attachShadow",function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Je(this)&&r.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Lt=0;Lt<64;Lt++)Nt[Dt.charCodeAt(Lt)]=Lt;class Bt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ft{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new $e,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:V(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class zt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Qe("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Ut,Ht;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const qt=new W;function Vt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:S,sampling:E={},dataURLOptions:k={},mousemoveWait:x,recordDOM:T=!0,recordCanvas:O=!1,recordCrossOriginIframes:C=!1,recordAfter:j=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:P=!1,collectFonts:I=!1,inlineImages:R=!1,plugins:A,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:B}=e;ht=N;const F=!C||window.parent===window;let z=!1;if(!F)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!z)return()=>{};void 0!==x&&void 0===E.mousemove&&(E.mousemove=x),qt.reset();const U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},H=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let q;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const G=e=>{for(const t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!z&&(e=S(e)),e};Ut=(e,o)=>{const i=e;if(i.timestamp=De(),!gt[0]?.isFrozen()||i.type===et.FullSnapshot||i.type===et.IncrementalSnapshot&&i.data.source===tt.Mutation||gt.forEach(e=>e.unfreeze()),F)t?.(G(i),o);else if(z){const e={type:"rrweb",event:G(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===et.FullSnapshot)q=i,V=0;else if(i.type===et.IncrementalSnapshot){if(i.data.source===tt.Mutation&&i.data.isAttachIframe)return;V++;const e=n&&V>=n,t=r&&q&&i.timestamp-q.timestamp>r;(e||t)&&te(!0)}};const $=e=>{Ut({type:et.IncrementalSnapshot,data:{source:tt.Mutation,...e}})},K=e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.Scroll,...e}}),Y=e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.CanvasMutation,...e}}),J=new Ft({mutationCb:$,adoptedStyleSheetCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new It:new Rt({mirror:qt,mutationCb:$,stylesheetManager:J,recordCrossOriginIframes:C,wrappedEmit:Ut});for(const e of A||[])e.getMirror&&e.getMirror({nodeMirror:qt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new zt,Z=function(e,t){try{return e?e(t):new Bt}catch{return console.warn("Unable to initialize CanvasManager"),new Bt}}(B,{mirror:qt,win:window,mutationCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.CanvasMutation,...e}}),recordCanvas:O,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:k,errorHandler:N}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new At:new Mt({mutationCb:$,scrollCb:K,bypassOptions:{onMutation:L,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:U,dataURLOptions:k,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:O,inlineImages:R,sampling:E,slimDOMOptions:H,iframeManager:X,stylesheetManager:J,canvasManager:Z,keepIframeSrcFn:M,processedNodeManager:Q},mirror:qt}),te=(e=!1)=>{if(!T)return;Ut({type:et.Meta,data:{href:window.location.href,width:Be(),height:Le()}},e),J.reset(),ee.init(),gt.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new W,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:O=()=>!1}=t||{};return Ce(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:O,newlyAddedElement:!1})}(document,{mirror:qt,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:U,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:H,dataURLOptions:k,recordCanvas:O,inlineImages:R,onSerialize:e=>{Ve(e,qt)&&X.addIframe(e),We(e,qt)&&J.trackLinkElement(e),Ge(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{$({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");Ut({type:et.FullSnapshot,data:{node:t,initialOffset:Ne(window)}}),gt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,qt.getId(document))};Ht=te;try{const e=[],t=e=>mt(Ot)({onMutation:L,mutationCb:$,mousemoveCb:(e,t)=>Ut({type:et.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.ViewportResize,...e}}),inputCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.Input,...e}}),mediaInteractionCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Ut({type:et.IncrementalSnapshot,data:{source:tt.Font,...e}}),selectionCb:e=>{Ut({type:et.IncrementalSnapshot,data:{source:tt.Selection,...e}})},customElementCb:e=>{Ut({type:et.IncrementalSnapshot,data:{source:tt.CustomElement,...e}})},blockClass:o,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:U,inlineStylesheet:h,sampling:E,recordDOM:T,recordCanvas:O,inlineImages:R,userTriggeredOnInput:P,collectFonts:I,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:M,blockSelector:i,unblockSelector:a,slimDOMOptions:H,dataURLOptions:k,mirror:qt,iframeManager:X,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:D,plugins:A?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Ut({type:et.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});X.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});const r=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(je("DOMContentLoaded",()=>{Ut({type:et.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&r()})),e.push(je("load",()=>{Ut({type:et.Load,data:{}}),"load"===j&&r()},window))),()=>{e.forEach(e=>e()),Q.destroy(),Ht=void 0,ht=void 0}}catch(e){console.warn(e)}}var Wt,Gt;Vt.mirror=qt,Vt.takeFullSnapshot=function(e){if(!Ht)throw new Error("please take full snapshot after start recording");Ht(e)},(Gt=Wt||(Wt={}))[Gt.NotStarted=0]="NotStarted",Gt[Gt.Running=1]="Running",Gt[Gt.Stopped=2]="Stopped";function $t(e){return e>9999999999?e:1e3*e}function Kt(e){return e>9999999999?e/1e3:e}function Yt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:et.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,v.normalize)(t,10,1e3)}}),"console"===t.category)))}function Jt(e){return e.closest("button,a")||e}function Xt(e){const t=Qt(e);return t&&t instanceof Element?Jt(t):t}function Qt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Zt;function er(e){return Zt||(Zt=[],(0,b.fill)(I,"open",function(e){return function(...t){if(Zt)try{Zt.forEach(e=>e())}catch{}return e.apply(I,t)}})),Zt.push(e),()=>{const t=Zt?Zt.indexOf(e):-1;t>-1&&Zt.splice(t,1)}}const tr=new Set([tt.Mutation,tt.StyleSheetRule,tt.StyleDeclaration,tt.AdoptedStyleSheet,tt.CanvasMutation,tt.Selection,tt.MediaInteraction]);class rr{constructor(e,t,r=Yt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=er(()=>{this._lastMutation=or()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!nr.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:Kt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1)||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Kt(e)}registerScroll(e=Date.now()){this._lastScroll=Kt(e)}registerClick(e){const t=Jt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=or();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!n,{clickCount:i,clickBreadcrumb:a}=e;if(o){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:I.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};return void this._addBreadcrumbEvent(t,o)}if(i>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:I.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,C.setTimeout)(()=>this._checkClicks(),1e3)}}const nr=["A","BUTTON","INPUT"];function or(){return Date.now()/1e3}function ir(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(tr.has(r)&&e.registerMutation(t.timestamp),r===tt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===tt.MouseInteraction}(t)){const{type:r,id:n}=t.data,o=Vt.mirror.getNode(n);o instanceof HTMLElement&&r===rt.Click&&e.registerClick(o)}}catch{}}function ar(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var sr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(sr||{});const lr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function cr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(lr.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const ur=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?Xt(e.event):Qt(e.event),r=(0,p.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}(e);return ar({category:`ui.${e.name}`,...dr(t,r)})}(t);if(!r)return;const n="click"===t.name,o=n?t.event:void 0;var i,a,s;!(n&&e.clickDetector&&o?.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,a=r,s=Xt(t.event),i.handleClick(a,s)),Yt(e,r)};function dr(e,t){const r=Vt.mirror.getId(e),n=r&&Vt.mirror.getNode(r),o=n&&Vt.mirror.getMeta(n),i=o&&function(e){return e.type===sr.Element}(o)?o:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===sr.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:cr(i.attributes)}}:{}}}function fr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const s=t||n||o,l=1===i.length;if(!s&&l)return null;const c=(0,p.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",u=dr(a,c);return ar({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i}})}(t);r&&Yt(e,r)}const pr={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:o,startTime:i,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:gr(i),end:gr(o),name:n,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:o}=e,i=gr(o);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:o,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:gr(p),end:gr(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:a,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function hr(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function mr(e){const t=pr[e.entryType];return t?t(e):null}function gr(e){return(((0,S.browserPerformanceTimeOrigin)()||I.performance.timeOrigin)+e)/1e3}function yr(e){const t=e.entries[e.entries.length-1];return wr(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function vr(e){return void 0!==e.sources}function br(e){const t=[],r=[];for(const n of e.entries)if(vr(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=Vt.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return wr(e,"cumulative-layout-shift",r,t)}function _r(e){const t=e.entries[e.entries.length-1];return wr(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function wr(e,t,r,n){const o=e.value,i=e.rating,a=gr(o);return{type:"web-vital",name:t,start:a,end:a,data:{value:o,size:o,rating:i,nodeIds:r?r.map(e=>Vt.mirror.getId(e)):void 0,attributions:n}}}const Sr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Er=["log","warn","error"],kr="[Replay] ";function xr(e,t="info"){(0,f.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${kr}${e}`},{level:t})}const Tr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Sr?(Er.forEach(e=>{r[e]=(...r)=>{g.debug[e](kr,...r),t&&xr(r.join(""),(0,_.severityLevelFromString)(e))}}),r.exception=(n,...o)=>{o.length&&r.error&&r.error(...o),g.debug.error(kr,n),e?(0,i.captureException)(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&xr(n,"error")},r.infoTick=(...e)=>{g.debug.log(kr,...e),t&&setTimeout(()=>xr(e[0]),0)}):Er.forEach(e=>{r[e]=()=>{}}),r}();class Or extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Cr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>N)throw new Or;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?$t(e):null}}class jr{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){Sr&&Tr.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise((n,o)=>{const i=({data:t})=>{const a=t;if(a.method===e&&a.id===r){if(this._worker.removeEventListener("message",i),!a.success)return Sr&&Tr.error("Error in compression worker: ",a.response),void o(new Error("Error in compression worker"));n(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class Pr{constructor(e){this._worker=new jr(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=$t(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>N?Promise.reject(new Or):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Sr&&Tr.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Ir{constructor(e){this._fallback=new Cr,this._compression=new Pr(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Sr&&Tr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){Sr&&Tr.exception(e,"Failed to add events when switching buffers.")}}}function Rr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Sr&&Tr.log("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Ir(r)}catch(e){Sr&&Tr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Sr&&Tr.log("Using simple buffer"),new Cr}function Ar(){try{return"sessionStorage"in I&&!!I.sessionStorage}catch{return!1}}function Mr(e){!function(){if(!Ar())return;try{I.sessionStorage.removeItem(R)}catch{}}(),e.session=void 0}function Dr(e){return void 0!==e&&Math.random()<e}function Nr(e){if(Ar())try{I.sessionStorage.setItem(R,JSON.stringify(e))}catch{}}function Lr(e){const t=Date.now();return{id:e.id||(0,y.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Br({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const o=function(e,t){return Dr(e)?"session":!!t&&"buffer"}(e,t),i=Lr({sampled:o,previousSessionId:n});return r&&Nr(i),i}function Fr(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function zr(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Fr(e.started,t,n)||Fr(e.lastActivity,r,n)}function Ur(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!zr(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Hr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const o=n.stickySession&&function(){if(!Ar())return null;try{const e=I.sessionStorage.getItem(R);if(!e)return null;const t=JSON.parse(e);return Sr&&Tr.infoTick("Loading existing session"),Lr(t)}catch{return null}}();return o?Ur(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Sr&&Tr.infoTick("Session in sessionStorage is expired, creating new one..."),Br(n,{previousSessionId:o.id})):o:(Sr&&Tr.infoTick("Creating new session"),Br(n,{previousSessionId:r}))}function qr(e,t,r){return!!Wr(e,t)&&(Vr(e,t,r),!0)}async function Vr(e,t,r){const{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;const o="buffer"===e.recordingMode;try{r&&o&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===et.Custom}(e))return t(e)}catch(e){return Sr&&Tr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await n.addEvent(i)}catch(t){const r=t&&t instanceof Or,i=r?"addEventSizeExceeded":"addEvent",s=(0,a.getClient)();if(s){const e=r?"buffer_overflow":"internal_sdk_error";s.recordDroppedEvent(e,"replay")}if(r&&o)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i})}}function Wr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=$t(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Sr&&Tr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Gr(e){return!e.type}function $r(e){return"transaction"===e.type}function Kr(e){return"feedback"===e.type}function Yr(e){return(t,r)=>{if(!e.isEnabled()||!Gr(t)&&!$r(t))return;const n=r.statusCode;!n||n<200||n>=300||($r(t)?function(e,t){const r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;(0,C.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function Jr(e){return t=>{e.isEnabled()&&Gr(t)&&function(e,t){const r=t.exception?.values?.[0]?.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Yt(e,ar({category:"replay.hydrate-error",data:{url:(0,p.getLocationHref)()}}))}}(e,t)}}function Xr(e){const t=(0,a.getClient)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!Qr(t))return;const r=function(e){if(!Qr(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return ar(e);let r=!1;const n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>D?(r=!0,`${e.slice(0,D)}…`):e;if("object"==typeof e)try{const t=(0,v.normalize)(e,7);return JSON.stringify(t).length>D?(r=!0,`${JSON.stringify(t,null,2).slice(0,D)}…`):t}catch{}return e});return ar({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return ar(e)}(t);r&&Yt(e,r)}(e,t))}function Qr(e){return!!e.category}function Zr(){const e=(0,a.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,c.getActiveSpan)();if(t){delete(0,n.getDynamicSamplingContextFromSpan)(t).replay_id}}function en(e){return Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Gr(t)&&!$r(t)&&!Kr(t))return t;if(!e.checkAndHandleExpiredSession())return Zr(),t;if(Kr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:et.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Sr&&Tr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==A&&!(!t.exception||t.type)&&Dr(e.getOptions().errorSampleRate)}(e,t);return(n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"})}function tn(e,t){return t.map(({type:t,start:r,end:n,name:o,data:i})=>{const a=e.throttledAddEvent({type:et.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof a?Promise.resolve(null):a})}function rn(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(tn(e,[r]),!1)))}}function nn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Sr||!e.getOptions()._experiments.traceInternals)&&(0,l.isSentryRequestUrl)(t,(0,a.getClient)())}(e,t.name)||e.addUpdate(()=>(tn(e,[t]),!0)))}function on(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=(0,P.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function an(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function sn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function ln(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:o,method:i,statusCode:a,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:o,data:{method:i,statusCode:a,request:s,response:l}}}function cn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function un(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>M,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,M);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=o,i?.length&&(n._meta={warnings:i}),n}function dn(e,t){return Object.entries(e).reduce((r,[n,o])=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=o),r},{})}function fn(e,t){const r=function(e,t=I.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(I.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,w.stringMatchesSomePattern)(r,t)}async function pn(e,t,r){try{const n=await async function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=fn(a,r.networkDetailAllowUrls)&&!fn(a,r.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const o=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return mn(e[0],t);if(2===e.length)return mn(e[1],t);return{}}(r,t):{};if(!e)return un(o,n,void 0);const i=(0,P.getFetchRequestArgBody)(r),[a,s]=(0,P.getBodyString)(i,Tr),l=un(o,n,a);if(s)return sn(l,s);return l}(r,t.input,c):cn(c),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,o){if(!e&&void 0!==o)return cn(o);const i=n?hn(n.headers,r):{};if(!n||!t&&void 0!==o)return un(i,o,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Sr&&Tr.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,r)=>{const n=(0,C.setTimeout)(()=>r(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>r(e)).finally(()=>clearTimeout(n))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Sr&&Tr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Sr&&Tr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:o}){try{const i=e?.length&&void 0===r?on(e):r;return n?un(o,i,t?e:void 0):cn(i)}catch(e){return Sr&&Tr.exception(e,"Failed to serialize response body"),un(o,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(s)return sn(l,s);return l}(d,r,t.response,u);return{startTimestamp:o,endTimestamp:i,url:a,method:s,statusCode:l,request:f,response:p}}(e,t,r),o=ln("resource.fetch",n);nn(r.replay,o)}catch(e){Sr&&Tr.exception(e,"Failed to capture fetch breadcrumb")}}function hn(e,t){const r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function mn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?hn(r,t):Array.isArray(r)?{}:dn(r,t):{}}async function gn(e,t,r){try{const n=function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!s||!fn(l,r.networkDetailAllowUrls)||fn(l,r.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:cn(d),response:cn(f)}}const p=s[j.SENTRY_XHR_DATA_KEY],h=p?dn(p.request_headers,r.networkRequestHeaders):{},m=dn((0,P.parseXhrResponseHeaders)(s),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?(0,P.getBodyString)(a,Tr):[void 0],[v,b]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Sr&&Tr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Sr&&Tr.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Sr&&Tr.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],_=un(h,d,g),w=un(m,f,v);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:y?sn(_,y):_,response:b?sn(w,b):w}}(e,t,r),o=ln("resource.xhr",n);nn(r.replay,o)}catch(e){Sr&&Tr.exception(e,"Failed to capture xhr breadcrumb")}}function yn(e,t){const{xhr:r,input:n}=t;if(!r)return;const o=on(n),i=r.getResponseHeader("content-length")?an(r.getResponseHeader("content-length")):function(e,t){try{return on("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(r.response,r.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function vn(e){const t=(0,a.getClient)();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(r)&&(yn(t,r),gn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(r)&&(!function(e,t){const{input:r,response:n}=t,o=on(r?(0,P.getFetchRequestArgBody)(r):void 0),i=n?an(n.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,r),pn(t,r,e))}catch(e){Sr&&Tr.exception(e,"Error when enriching network breadcrumb")}}(s,e,t))}catch{}}function bn(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}const _n=h.GLOBAL_OBJ.navigator;function wn(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(Sr&&Tr.warn("Received replay event after session expired."));const o=n||!t;t=!0,e.clickDetector&&ir(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!qr(e,r,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;qr(e,function(e){const t=e.getOptions();return{type:et.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const r=e.eventBuffer.getEarliestTimestamp();r&&(Sr&&Tr.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&Nr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function Sn({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:o,session:i}){const l=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:f}=n,p=(0,a.getClient)(),h=(0,a.getCurrentScope)(),m=p?.getTransport(),g=p?.getDsn();if(!(p&&m&&g&&i.sampled))return Promise.resolve({});const y={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:i.sampled},v=await async function({client:e,scope:t,replayId:r,event:n}){const o={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,o);const i=await(0,s.prepareEvent)(e.getOptions(),n,o,t,e,(0,a.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:u,settings:d}=l?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},i}({scope:h,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay"),Sr&&Tr.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const b=function(e,t,r,n){return(0,E.createEnvelope)((0,E.createEventEnvelopeHeaders)(e,(0,E.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,l,g,p.getOptions().tunnel);let _;try{_=await m.send(b)}catch(e){const t=new Error(A);try{t.cause=e}catch{}throw t}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new En(_.statusCode);const w=(0,k.updateRateLimits)({},_);if((0,k.isRateLimited)(w,"replay"))throw new kn(w);return _}class En extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class kn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function xn(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await Sn(e),!0}catch(r){if(r instanceof En||r instanceof kn)throw r;if((0,i.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${A} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,C.setTimeout)(async()=>{try{await xn(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}const Tn="__THROTTLED";function On(e,t,r){const n=new Map;let o=!1;return(...i)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach((e,r)=>{r<t&&n.delete(r)})})(a),[...n.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":Tn}o=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...i)}}class Cn{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return(0,d.debounce)(e,t,{...r,setTimeoutImpl:C.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=On((e,t)=>function(e,t,r){return Wr(e,t)?Vr(e,t,r):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),o=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(o&&(this.clickDetector=new rr(this,o)),Sr){const t=e._experiments;Tr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===I.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=ar({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=ar({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{fr(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Sr&&Tr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Sr&&Tr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Sr&&Tr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Sr&&Tr.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Sr&&Tr.log("Buffering is in progress, call `flush()` to save the replay"));Sr&&Tr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Hr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Sr&&Tr.log("Buffering is in progress, call `flush()` to save the replay"));Sr&&Tr.infoTick("Starting replay in buffer mode");const e=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Vt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:wn(this),.../iPhone|iPad|iPod/i.test(_n?.userAgent??"")||/Macintosh/i.test(_n?.userAgent??"")&&_n?.maxTouchPoints&&_n?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{Sr&&Tr.log("Stopping Replay"+(t?` triggered by ${t}`:"")),Zr(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Mr(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Sr&&Tr.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Sr&&Tr.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Sr&&Tr.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Fr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${I.location.pathname}${I.location.hash}${I.location.search}`,t=`${I.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===Tn){const e=ar({category:"replay.throttled"});this.addUpdate(()=>!qr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,c.getActiveSpan)(),t=e&&(0,c.getRootSpan)(e),r=(t&&(0,c.spanToJSON)(t).data||{})[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,c.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Rr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Ur(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{I.document.addEventListener("visibilitychange",this._handleVisibilityChange),I.addEventListener("blur",this._handleWindowBlur),I.addEventListener("focus",this._handleWindowFocus),I.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,a.getClient)();(0,T.addClickKeypressInstrumentationHandler)(ur(e)),(0,O.addHistoryInstrumentationHandler)(rn(e)),Xr(e),vn(e);const r=en(e);(0,i.addEventProcessor)(r),t&&(t.on("beforeSendEvent",Jr(e)),t.on("afterSendEvent",Yr(e)),t.on("createDsc",t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{const n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,x.addPerformanceInstrumentationHandler)(e,r))}),n.push((0,x.addLcpInstrumentationHandler)(hr(yr,e)),(0,x.addClsInstrumentationHandler)(hr(br,e)),(0,x.addInpInstrumentationHandler)(hr(_r,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{I.document.removeEventListener("visibilitychange",this._handleVisibilityChange),I.removeEventListener("blur",this._handleWindowBlur),I.removeEventListener("focus",this._handleWindowFocus),I.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;zr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Sr&&Tr.log("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:et.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(mr).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(tn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(tn(e,[bn(I.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await xn({replayId:e,recordingData:o,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=(0,a.getClient)();if(t){const r=e instanceof kn?"ratelimit_backoff":"send_error";t.recordDroppedEvent(r,"replay")}}}else Sr&&Tr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Sr&&Tr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(n||o)return Sr&&Tr.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Sr&&Tr.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Nr(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;const r=e.length,n=this._options.mutationLimit,o=n&&r>n;if(r>this._options.mutationBreadcrumbLimit||o){const e=ar({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function jn(e,t){return[...e,...t].join(",")}const Pn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',In=["content-length","content-type","accept"];let Rn=!1;const An=e=>new Mn(e);class Mn{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:_=[],mask:w=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:k=[],unblock:x=[],ignore:T=[],maskFn:O,beforeAddRecordingEvent:C,beforeErrorSampling:j,onError:P}={}){this.name="Replay";const I=function({mask:e,unmask:t,block:r,unblock:n,ignore:o}){return{maskTextSelector:jn(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:jn(t,[]),blockSelector:jn(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:jn(n,[]),ignoreSelector:jn(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:E,block:k,unblock:x,ignore:T});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:o,value:i}){return n?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:l,privacyOptions:I,key:e,value:t,el:r}),...I,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(s.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,L),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:Dn(b),networkResponseHeaders:Dn(_),beforeAddRecordingEvent:C,beforeErrorSampling:j,onError:P,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Pn}`:Pn),this._isInitialized&&(0,m.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Rn}set _isInitialized(e){Rn=e}afterAllSetup(e){(0,m.isBrowser)()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},o=(0,u.parseSampleRate)(r.replaysSessionSampleRate),i=(0,u.parseSampleRate)(r.replaysOnErrorSampleRate);null==o&&null==i&&(0,g.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=o&&(n.sessionSampleRate=o);null!=i&&(n.errorSampleRate=i);return n}(this._initialOptions,e);this._replay=new Cn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Dn(e){return[...In,...e.map(e=>e.toLowerCase())]}function Nn(){const e=(0,a.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";function n(e,t,r){let n,o,i;const a=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e(),n}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=s(l,t),a&&void 0===i&&(i=s(l,a)),n}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?l():n},u}r.r(t),r.d(t,{debounce:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{replayCanvasIntegration:()=>N});var n=r(1323),o=Object.defineProperty,i=(e,t,r)=>((e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class a{constructor(){i(this,"idNodeMap",new Map),i(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function s(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:s(e.parentNode,t,r,n+1):-1}function l(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}const c="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let u={map:{},getId:()=>(console.error(c),-1),getNode:()=>(console.error(c),null),removeNodeFromMap(){console.error(c)},has:()=>(console.error(c),!1),reset(){console.error(c)}};function d(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){y(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>d(e,t,i||{},!0)}function f(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}function p(e,t,r,n,o){if(!e)return!1;const i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const a=l(t,r);if(!o){const e=n&&i.matches(n);return a(i)&&!e}const c=s(i,a);let u=-1;return!(c<0)&&(n&&(u=s(i,l(null,n))),c>-1&&u<0||c<u)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,r)=>("map"===t&&console.error(c),Reflect.get(e,t,r))})),Date.now().toString();const h={};function m(e){const t=h[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return h[e]=n.bind(window)}function g(...e){return m("requestAnimationFrame")(...e)}function y(...e){return m("setTimeout")(...e)}var v=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(v||{});let b;const _=e=>{if(!b)return e;return(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}};for(var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),E=0;E<64;E++)S[w.charCodeAt(E)]=E;const k=new Map;const x=(e,t,r)=>{if(!e||!C(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=k.get(e);return r||(r=new Map,k.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o};function T(e,t,r){if(e instanceof Array)return e.map(e=>T(e,t,r));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=w[r[t]>>2],o+=w[(3&r[t])<<4|r[t+1]>>4],o+=w[(15&r[t+1])<<2|r[t+2]>>6],o+=w[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[T(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[T(e.data,t,r),e.width,e.height]}}if(C(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:x(e,t,r)}}return e}const O=(e,t,r)=>e.map(e=>T(e,t,r)),C=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function j(e,t,r,n,o){const i=[];try{const a=f(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){if(!p(this,t,r,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...a])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function P(e,t,r,n,o,i,a,s){const l=[],c=Object.getOwnPropertyNames(e);for(const a of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;const c=f(e,a,function(e){return function(...l){const c=e.apply(this,l);if(x(c,s,this),"tagName"in this.canvas&&!p(this.canvas,n,o,i,!0)){const e=O(l,s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return c}});l.push(c)}catch{const n=d(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(n)}return l}class I{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:o,errorHandler:i}=e;e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(b=i),(o&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t||_(()=>{o&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));_(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,r,n,o),i&&"number"==typeof t){const t=j(e,r,n,o,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):g(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;const{base64:n,type:o,width:i,height:a}=t;this.mutationCb({id:r,type:v["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0,i,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=r=>{this.takeSnapshot(r,!1),e=g(t)};e=g(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){const o=j(e,t,r,n,!1),i=function(e,t,r,n,o){const i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=f(t.CanvasRenderingContext2D.prototype,s,function(i){return function(...a){return p(this.canvas,r,n,o,!0)||y(()=>{const r=O(a,t,this);e(this.canvas,{type:v["2D"],property:s,args:r})},0),i.apply(this,a)}});i.push(a)}catch{const r=d(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:v["2D"],property:s,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,o){const i=[];return i.push(...P(t.WebGLRenderingContext.prototype,v.WebGL,e,r,n,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...P(t.WebGL2RenderingContext.prototype,v.WebGL2,e,r,n,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}getCanvasElements(e,t,r){const n=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{p(o,e,t,r,!0)||n.push(o)})};for(const e of this.windows){const t=e.deref();let r;try{r=t&&t.document}catch{}r&&o(r)}for(const e of this.shadowDoms){const t=e.deref();t&&o(t)}return n}takeSnapshot(e,t,r){const{sampling:n,blockClass:o,blockSelector:i,unblockSelector:a,dataURLOptions:s,maxCanvasSize:l}=this.options,c=1e3/("all"===n?2:n||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<c)return!1;this.lastSnapshotTime=e;return(r?[r]:this.getCanvasElements(o,i,a)).forEach(e=>{const r=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(r)){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{_(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0}startPendingCanvasMutationFlusher(){g(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,g(e)};g(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),g(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var R,A;new a,(A=R||(R={}))[A.NotStarted=0]="NotStarted",A[A.Running=1]="Running",A[A.Stopped=2]="Stopped";const M={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},D=1280,N=(0,n.defineIntegration)((e={})=>{const[t,r]=e.maxCanvasSize||[],n={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,D):D,r?Math.min(r,D):D]};let o;const i=new Promise(e=>o=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:r}=n;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const n=new I({...e,enableManualSnapshot:t,maxCanvasSize:r,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o(n),n},...M[e]||M.medium}},async snapshot(e,t){(await i).snapshot(e,t)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportPageLoaded:()=>o});var n=r(301);function o(e=(0,n.getClient)()){e?.emit("endPageloadSpan")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setActiveSpanInBrowser:()=>a});var n=r(301),o=r(331),i=r(320);function a(e){const t=(0,o.getActiveSpan)();if(t===e)return;const r=(0,n.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,n,o)=>((0,i._setSpanForScope)(r,t),Reflect.apply(e,n,o))}),(0,i._setSpanForScope)(r,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStore:()=>l,makeBrowserOfflineTransport:()=>h,push:()=>u,shift:()=>f,unshift:()=>d});var n=r(3119),o=r(1332),i=r(1346),a=r(1369);function s(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function l(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const n=s(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}function c(e){return s(e.getAllKeys())}function u(e,t,r){return e(e=>c(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),s(e.transaction)}))}function d(e,t,r){return e(e=>c(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.min(...n,0)-1),s(e.transaction)}))}function f(e){return e(e=>c(e).then(t=>{const r=t[0];if(null!=r)return s(e.get(r)).then(t=>(e.delete(r),s(e.transaction).then(()=>t)))}))}function p(e){let t;function r(){return null==t&&(t=l(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const n=await(0,o.serializeEnvelope)(t);await u(r(),n,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const n=await(0,o.serializeEnvelope)(t);await d(r(),n,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await f(r());if(e)return(0,o.parseEnvelope)(e)}catch{}}}}function h(e=a.makeFetchTransport){return function(e){return t=>{const r=e({...t,createStore:p});return i.WINDOW.addEventListener("online",async e=>{await r.flush()}),r}}((0,n.makeOfflineTransport)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MIN_DELAY:()=>s,START_DELAY:()=>l,makeOfflineTransport:()=>u});var n=r(309),o=r(315),i=r(1332),a=r(1372);const s=100,l=5e3,c=36e5;function u(e){function t(...e){n.DEBUG_BUILD&&o.debug.log("[Offline]:",...e)}return r=>{const n=e(r);if(!r.createStore)throw new Error("No `createStore` function was provided");const o=r.createStore(r);let u,d=l;function f(e){u&&clearTimeout(u),u=setTimeout(async()=>{u=void 0;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),h(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e),"number"!=typeof u&&u.unref&&u.unref()}function p(){u||(f(d),d=Math.min(2*d,c))}async function h(e,c=!1){if(!c&&(0,i.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await o.push(e),f(s),{};try{if(r.shouldSend&&!1===await r.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await n.send(e);let o=s;if(t)if(t.headers?.["retry-after"])o=(0,a.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return f(o),d=l,t}catch(n){if(await function(e,t,n){return!(0,i.envelopeContainsItemType)(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,t,n))}(e,n,d))return c?await o.unshift(e):await o.push(e),p(),t("Error sending. Event queued.",n),{};throw n}}return r.flushAtStartup&&p(),{send:h,flush:e=>(void 0===e&&(d=l,f(s)),n.flush(e))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserProfilingIntegration:()=>f});var n=r(1323),o=r(330),i=r(331),a=r(315),s=r(1359),l=r(1346),c=r(3121),u=r(3123),d=r(3122);const f=(0,n.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions();if((0,d.hasLegacyProfiling)(t)||t.profileLifecycle||(t.profileLifecycle="manual"),(0,d.hasLegacyProfiling)(t)&&!t.profilesSampleRate)return void(s.DEBUG_BUILD&&a.debug.log("[Profiling] Profiling disabled, no profiling options found."));const r=(0,i.getActiveSpan)(),n=r&&(0,i.getRootSpan)(r);if((0,d.hasLegacyProfiling)(t)&&void 0!==t.profileSessionSampleRate&&s.DEBUG_BUILD&&a.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),(0,d.hasLegacyProfiling)(t))n&&(0,d.isAutomatedPageLoadSpan)(n)&&(0,d.shouldProfileSpanLegacy)(n)&&(0,u.startProfileForSpan)(n),e.on("spanStart",e=>{e===(0,i.getRootSpan)(e)&&(0,d.shouldProfileSpanLegacy)(e)&&(0,u.startProfileForSpan)(e)}),e.on("beforeEnvelope",e=>{if(!(0,d.getActiveProfilesCount)())return;const t=(0,d.findProfiledTransactionsFromEnvelope)(e);if(!t.length)return;const r=[];for(const e of t){const t=e?.contexts,n=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const i=(0,d.takeProfileFromGlobalCache)(n);if(!i){s.DEBUG_BUILD&&a.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}const l=(0,d.createProfilingEvent)(n,o,i,e);l&&r.push(l)}(0,d.addProfilesToEnvelope)(e,r)});else{const r=(0,d.shouldProfileSession)(t);r||s.DEBUG_BUILD&&a.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization.");if("trace"===t.profileLifecycle){if(!(0,o.hasSpansEnabled)(t))return void(s.DEBUG_BUILD&&a.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));const u=new c.BrowserTraceLifecycleProfiler;u.initialize(e,r),n&&u.notifyRootSpanActive(n),l.WINDOW.setTimeout(()=>{const e=(0,i.getActiveSpan)(),t=e&&(0,i.getRootSpan)(e);t&&u.notifyRootSpanActive(t)},0)}}},processEvent:e=>(0,d.attachProfiledThreadToEvent)(e)}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserTraceLifecycleProfiler:()=>d});var n=r(301),o=r(331),i=r(329),a=r(315),s=r(311),l=r(1332),c=r(1359),u=r(3122);class d{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1}initialize(e,t){this._profilerId=(0,s.uuid4)(),c.DEBUG_BUILD&&a.debug.log("[Profiling] Initializing profiler (lifecycle='trace')."),this._client=e,this._sessionSampled=t,e.on("spanStart",e=>{if(!this._sessionSampled)return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Session not sampled because of negative sampling decision."));if(e!==(0,o.getRootSpan)(e))return;if(!e.isRecording())return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding profile because root span was not sampled."));(0,n.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId});const t=e.spanContext().spanId;if(!t)return;if(this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.add(t);const r=this._activeRootSpanIds.size,i=setTimeout(()=>{this._onRootSpanTimeout(t)},3e5);this._rootSpanTimeouts.set(t,i),1===r&&(c.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span with ID ${t} started. Will continue profiling for as long as there are active root spans (currently: ${r}).`),this.start())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const r=this._activeRootSpanIds.size;c.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on `spanEnd`:",e)}),this.stop())})}notifyRootSpanActive(e){if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.add(t);const r=this._activeRootSpanIds.size;1===r&&(c.DEBUG_BUILD&&a.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this.start())}start(){if(!this._isRunning){if(this._isRunning=!0,c.DEBUG_BUILD&&a.debug.log("[Profiling] Started profiling with profile ID:",this._profilerId),this._startProfilerInstance(),!this._profiler)return c.DEBUG_BUILD&&a.debug.log("[Profiling] Stopping trace lifecycle profiling."),void this._resetProfilerInfo();this._startPeriodicChunking()}}stop(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}))}_resetProfilerInfo(){this._isRunning=!1,(0,n.getGlobalScope)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=(0,u.startJSSelfProfile)();e?this._profiler=e:c.DEBUG_BUILD&&a.debug.log("[Profiling] Failed to start JS Profiler in trace lifecycle.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){if(!this._rootSpanTimeouts.has(e))return;if(this._rootSpanTimeouts.delete(e),!this._activeRootSpanIds.has(e))return;c.DEBUG_BUILD&&a.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e);0===this._activeRootSpanIds.size&&this.stop()}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=await e.stop(),r=(0,u.createProfileChunkPayload)(t,this._client,this._profilerId),n=(0,u.validateProfileChunk)(r);if("reason"in n)return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(r),c.DEBUG_BUILD&&a.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){c.DEBUG_BUILD&&a.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,r=(0,l.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),n=t.getDsn(),o=t.getOptions().tunnel,u=(0,l.createEnvelope)({event_id:(0,s.uuid4)(),sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!o&&n&&{dsn:(0,i.dsnToString)(n)}},[[{type:"profile_chunk"},e]]);t.sendEnvelope(u).then(null,e=>{c.DEBUG_BUILD&&a.debug.error("Error while sending profile chunk envelope:",e)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_PROFILE_DURATION_MS:()=>B,PROFILER_THREAD_ID_STRING:()=>g,PROFILER_THREAD_NAME:()=>y,addProfileToGlobalCache:()=>$,addProfilesToEnvelope:()=>A,applyDebugMetadata:()=>D,attachProfiledThreadToEvent:()=>K,convertJSSelfProfileToSampledFormat:()=>R,createProfileChunkPayload:()=>j,createProfilePayload:()=>C,createProfilingEvent:()=>q,enrichWithThreadInformation:()=>O,findProfiledTransactionsFromEnvelope:()=>M,getActiveProfilesCount:()=>W,hasLegacyProfiling:()=>H,isAutomatedPageLoadSpan:()=>I,isValidSampleRate:()=>N,shouldProfileSession:()=>U,shouldProfileSpanLegacy:()=>z,startJSSelfProfile:()=>F,takeProfileFromGlobalCache:()=>G,validateProfileChunk:()=>P});var n=r(301),o=r(331),i=r(322),a=r(305),s=r(315),l=r(311),c=r(317),u=r(1332),d=r(336),f=r(1359),p=r(1346);const h=1e6,m="window"in a.GLOBAL_OBJ&&a.GLOBAL_OBJ.window===a.GLOBAL_OBJ&&"undefined"==typeof importScripts,g=String(0),y=m?"main":"worker",v=p.WINDOW.navigator;let b="",_="",w="",S=v?.userAgent||"",E="";const k=v?.language||v?.languages?.[0]||"";const x=v?.userAgentData;var T;function O(e){return function(e){return!("thread_metadata"in e)}(e)?R(e):e}function C(e,t,r,n){if("transaction"!==n.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const o=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&f.DEBUG_BUILD&&s.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(n),a=O(r),u=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,c.timestampInSeconds)()),d="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,c.timestampInSeconds)();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||i.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:p.WINDOW.navigator.userAgent},os:{name:b,version:_,build_number:S},device:{locale:k,model:E,manufacturer:S,architecture:w,is_emulator:!1},debug_meta:{images:D(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||(0,l.uuid4)(),trace_id:o,active_thread_id:g,relative_start_ns:"0",relative_end_ns:(1e6*(d-u)).toFixed(0)}]}}function j(e,t,r){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const n=function(e){const t=[];for(let r=0;r<e.frames.length;r++){const n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}const r=[];for(let t=0;t<e.stacks.length;t++){const n=e.stacks[t];if(!n)continue;const o=[];let i=n;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];r[t]=o}const n=(0,c.browserPerformanceTimeOrigin)(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,i=o-(n||o),a=[];for(let t=0;t<e.samples.length;t++){const r=e.samples[t];if(!r)continue;const n=(o+(r.timestamp-i))/1e3;a[t]={stack_id:r.stackId??0,thread_id:g,timestamp:n}}return{frames:t,stacks:r,samples:a,thread_metadata:{[g]:{name:y}}}}(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,l.uuid4)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:r||(0,l.uuid4)(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:D(e.resources)},profile:n}}function P(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const r=e.profile;return r?Array.isArray(r.frames)&&r.frames.length?Array.isArray(r.stacks)&&r.stacks.length?Array.isArray(r.samples)&&r.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}function I(e){return"pageload"===(0,o.spanToJSON)(e).op}function R(e){let t,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[g]:{name:y}}},o=e.samples[0];if(!o)return n;const i=o.timestamp,a=(0,c.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=s-(a||s);return e.samples.forEach((o,a)=>{if(void 0===o.stackId)return void 0===t&&(t=r,n.stacks[t]=[],r++),void(n.samples[a]={elapsed_since_start_ns:((o.timestamp+l-i)*h).toFixed(0),stack_id:t,thread_id:g});let s=e.stacks[o.stackId];const c=[];for(;s;){c.push(s.frameId);const t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}const u={elapsed_since_start_ns:((o.timestamp+l-i)*h).toFixed(0),stack_id:r,thread_id:g};n.stacks[r]=c,n.samples[a]=u,r++}),n}function A(e,t){if(!t.length)return e;for(const r of t)e[1].push([{type:"profile"},r]);return e}function M(e){const t=[];return(0,u.forEachEnvelopeItem)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){const n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t}function D(e){const t=(0,n.getClient)(),r=t?.getOptions(),o=r?.stackParser;return o?(0,d.getDebugImagesForResources)(o,e):[]}function N(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(f.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(f.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(T=x)&&null!==T&&"getHighEntropyValues"in T&&x.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(b=e.platform||"",w=e.architecture||"",E=e.model||"",_=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];S=`${t.brand} ${t.version}`}}).catch(e=>{});let L=!1;const B=3e4;function F(){const e=p.WINDOW.Profiler;if("function"!=typeof e)return void(f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(B/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){f.DEBUG_BUILD&&(s.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.debug.log("[Profiling] Disabling profiling for current user session.")),L=!0}}function z(e){if(L)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=(0,n.getClient)(),r=t?.getOptions();if(!r)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling disabled, no options found."),!1;const o=r.profilesSampleRate;if(!N(o))return f.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!o)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===o||Math.random()<o)||(f.DEBUG_BUILD&&s.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(o)})`),!1)}function U(e){if(L)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if("trace"!==e.profileLifecycle)return!1;const t=e.profileSessionSampleRate;return N(t)?t?Math.random()<=t:(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(f.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function H(e){return void 0!==e.profilesSampleRate}function q(e,t,r,n){return function(e){return e.samples.length<2?(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(r)?C(e,t,r,n):null}const V=new Map;function W(){return V.size}function G(e){const t=V.get(e);return t&&V.delete(e),t}function $(e,t){if(V.set(e,t),V.size>30){const e=V.keys().next().value;void 0!==e&&V.delete(e)}}function K(e){return e?.contexts?.profile&&e.contexts?(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":g,"thread.name":y}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":g,"thread.name":y}}),e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{startProfileForSpan:()=>d});var n=r(301),o=r(331),i=r(315),a=r(311),s=r(317),l=r(1359),c=r(1346),u=r(3122);function d(e){let t;(0,u.isAutomatedPageLoadSpan)(e)&&(t=1e3*(0,s.timestampInSeconds)());const r=(0,u.startJSSelfProfile)();if(!r)return;l.DEBUG_BUILD&&i.debug.log(`[Profiling] started profiling span: ${(0,o.spanToJSON)(e).description}`);const d=(0,a.uuid4)();let f=null;async function p(){if(e&&r){if(!f)return r.stop().then(t=>{h&&(c.WINDOW.clearTimeout(h),h=void 0),l.DEBUG_BUILD&&i.debug.log(`[Profiling] stopped profiling of span: ${(0,o.spanToJSON)(e).description}`),t?(f=t,(0,u.addProfileToGlobalCache)(d,t)):l.DEBUG_BUILD&&i.debug.log(`[Profiling] profiler returned null profile for: ${(0,o.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{l.DEBUG_BUILD&&i.debug.log("[Profiling] error while stopping profiler:",e)});l.DEBUG_BUILD&&i.debug.log("[Profiling] profile for:",(0,o.spanToJSON)(e).description,"already exists, returning early")}}(0,n.getCurrentScope)().setContext("profile",{profile_id:d,start_timestamp:t});let h=c.WINDOW.setTimeout(()=>{l.DEBUG_BUILD&&i.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,o.spanToJSON)(e).description),p()},u.MAX_PROFILE_DURATION_MS);const m=e.end.bind(e);e.end=function(){return e?(p().then(()=>{m()},()=>{m()}),e):m()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>l,isSpotlightInteraction:()=>u,spotlightBrowserIntegration:()=>c});var n=r(1323),o=r(315),i=r(1332),a=r(1373),s=r(1359);const l="SpotlightBrowser";const c=(0,n.defineIntegration)((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:l,setup:()=>{s.DEBUG_BUILD&&o.debug.log("Using Sidecar URL",t)},processEvent:e=>u(e)?null:e,afterAllSetup:e=>{!function(e,t){const r=(0,a.getNativeImplementation)("fetch");let n=0;e.on("beforeEnvelope",e=>{n>3?o.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",n):r(t,{method:"POST",body:(0,i.serializeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(n=0)},e=>{n++,o.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});function u(e){return Boolean("transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight")))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildLaunchDarklyFlagUsedHandler:()=>a,launchDarklyIntegration:()=>i});var n=r(1323),o=r(3085);const i=(0,n.defineIntegration)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function a(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{(0,o._INTERNAL_insertFlagToScope)(e,t.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e,t.value)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpenFeatureIntegrationHook:()=>a,openFeatureIntegration:()=>i});var n=r(1323),o=r(3085);const i=(0,n.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));class a{after(e,t){(0,o._INTERNAL_insertFlagToScope)(t.flagKey,t.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(t.flagKey,t.value)}error(e,t,r){(0,o._INTERNAL_insertFlagToScope)(e.flagKey,e.defaultValue),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e.flagKey,e.defaultValue)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{unleashIntegration:()=>l});var n=r(1323),o=r(3085),i=r(315),a=r(312),s=r(1359);const l=(0,n.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,a.fill)(t,"isEnabled",c)},processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function c(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?((0,o._INTERNAL_insertFlagToScope)(r,n),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(r,n)):s.DEBUG_BUILD&&i.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>o});var n=r(3129);const o=({growthbookClass:e})=>(0,n.growthbookIntegration)({growthbookClass:e})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>a});var n=r(1323),o=r(3085),i=r(312);const a=(0,n.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&(0,i.fill)(t,"isOn",s),"function"==typeof t.getFeatureValue&&(0,i.fill)(t,"getFeatureValue",s)},processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function s(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&((0,o._INTERNAL_insertFlagToScope)(r,n),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(r,n)),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{statsigIntegration:()=>i});var n=r(1323),o=r(3085);const i=(0,n.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{(0,o._INTERNAL_insertFlagToScope)(e.gate.name,e.gate.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{diagnoseSdkConnectivity:()=>i});var n=r(1383),o=r(301);async function i(){const e=(0,o.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await(0,n.suppressTracing)(()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>l,registerWebWorker:()=>d,webWorkerIntegration:()=>c});var n=r(1323),o=r(314),i=r(315),a=r(1359),s=r(1346);const l="WebWorker",c=(0,n.defineIntegration)(({worker:e})=>({name:l,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>u(e))},addWorker:e=>u(e)}));function u(e){e.addEventListener("message",e=>{var t;t=e.data,(0,o.isPlainObject)(t)&&!0===t._sentryMessage&&"_sentryDebugIds"in t&&((0,o.isPlainObject)(t._sentryDebugIds)||void 0===t._sentryDebugIds)&&(e.stopImmediatePropagation(),a.DEBUG_BUILD&&i.debug.log("Sentry debugId web worker message received",e.data),s.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...s.WINDOW._sentryDebugIds})})}function d({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}},(e,t,r)=>{var n;self,n=e=>(()=>{"use strict";var t={616:(e,t,r)=>{r.d(t,{A:()=>g});var n=r(772),o=r.n(n),i=r(333),a=r.n(i),s=r(504),l=r.n(s),c=new URL(r(523),r.b),u=new URL(r(789),r.b),d=new URL(r(65),r.b),f=a()(o()),p=l()(c),h=l()(u),m=l()(d);f.push([e.id,`.jodit-ui-group{display:inline-flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;max-width:100%}.jodit-ui-group_line_true{display:flex;justify-content:stretch}.jodit-ui-group_separated_true:not(:last-child):not(.jodit-ui-group_before-spacer_true):after{border-left:0;border-right:1px solid var(--jd-color-border);content:"";cursor:default;margin:2px;padding:0}.jodit-ui-group:last-child{border-bottom:0}.jodit-ui-list{display:flex;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-ui-list_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-ui-list_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-ui-separator{border-left:0;border-right:1px solid var(--jd-color-border);cursor:default;margin:2px;padding:0}.jodit-ui-break{border-top:1px solid var(--jd-color-border);flex-basis:100%;height:0!important;width:0}.jodit-ui-spacer{flex:1}.jodit-ui-button-icon-text__icon{display:none}.jodit-ui-button-icon-text__icon:not(:empty){display:inline-flex}.jodit-ui-button-icon-text__text{display:none}.jodit-ui-button-icon-text__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button-icon-text__icon:not(:empty)+.jodit-ui-button-icon-text__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button-icon-text__icon:empty+.jodit-ui-button-icon-text__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button-clear,.jodit-ui-button_clear{appearance:none;background:0 0;border:0;box-shadow:none;box-sizing:border-box;font-style:normal;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button-sizes{height:34px;min-width:34px}.jodit-ui-button-sizes .jodit-icon{height:14px;width:14px}.jodit-ui-button-sizes button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button-sizes_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_tiny{height:16px;min-width:16px}.jodit-ui-button-sizes_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button-sizes_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button-sizes_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_xsmall{height:22px;min-width:22px}.jodit-ui-button-sizes_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button-sizes_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button-sizes_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_small{height:28px;min-width:28px}.jodit-ui-button-sizes_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button-sizes_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button-sizes_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_large{height:40px;min-width:40px}.jodit-ui-button-sizes_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button-sizes_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button-sizes_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-variants_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button-variants_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button-variants_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default [disabled]{opacity:.7}.jodit-ui-button-variants_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button-variants_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button-variants_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button-variants_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button-variants_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button-variants_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success [disabled]{opacity:.7}.jodit-ui-button-variants_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button-variants_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button-variants_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button-variants_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger [disabled]{opacity:.7}.jodit-ui-button-variants_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button-variants_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-style{border-radius:var(--jd-border-radius-default);padding:0 var(--jd-padding-default)}.jodit-ui-button,.jodit-ui-button-style{align-items:center;color:var(--jd-color-text-icons);display:inline-flex;justify-content:center}.jodit-ui-button{appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;cursor:pointer;font-style:normal;height:34px;min-width:34px;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button:focus-visible:not([disabled]),.jodit-ui-button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-ui-button:active:not([disabled]),.jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-ui-button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-ui-button[disabled]{opacity:.3;pointer-events:none}.jodit-ui-button .jodit-icon{height:14px;width:14px}.jodit-ui-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_tiny{height:16px;min-width:16px}.jodit-ui-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_xsmall{height:22px;min-width:22px}.jodit-ui-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_small{height:28px;min-width:28px}.jodit-ui-button_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_large{height:40px;min-width:40px}.jodit-ui-button_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button__icon{display:none}.jodit-ui-button__icon:not(:empty){display:inline-flex}.jodit-ui-button__text{display:none}.jodit-ui-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button_context_menu .jodit-ui-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button_context_menu .jodit-ui-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button__icon:not(:empty)+.jodit-ui-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button__icon:empty+.jodit-ui-button__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-ui-button_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default [disabled]{opacity:.7}.jodit-ui-button_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary [disabled]{opacity:.7}.jodit-ui-button_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary [disabled]{opacity:.7}.jodit-ui-button_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success [disabled]{opacity:.7}.jodit-ui-button_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger [disabled]{opacity:.7}.jodit-ui-button_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-group{margin-bottom:var(--jd-padding-default)}.jodit-ui-button-group__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-button-group__options{display:flex;justify-content:flex-start}.jodit-ui-button-group .jodit-ui-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.jodit-ui-button-group .jodit-ui-button+.jodit-ui-button{border-bottom-left-radius:0;border-left:1px solid var(--jd-color-button-background-hover-opacity40);border-top-left-radius:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover);border-left:0;box-shadow:inset 0 0 3px 0 var(--jd-color-dark);color:var(--jd-color-dark);outline:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled])+.jodit-ui-button{border:0}:root{--jd-tooltip-color:#fff;--jd-tooltip-background-color:rgba(0,0,0,.7);--jd-tooltip-sfx-shadow:rgba(0,0,0,.15);--jd-tooltip-border-width:0;--jd-tooltip-border-color:#e5e5e5}.jodit-ui-tooltip{animation-fill-mode:forwards;animation-timing-function:ease-out;background-clip:padding-box;background-color:var(--jd-tooltip-background-color);border-radius:4px;box-shadow:0 0 0 var(--jd-tooltip-border-width) var(--jd-tooltip-border-color),0 8px 20px var(--jd-tooltip-border-width) var(--jd-tooltip-sfx-shadow);color:var(--jd-tooltip-color);font-family:var(--jd-font-default);font-size:var(--jd-font-size-small);line-height:1.4;max-width:120px;opacity:0;outline:none;pointer-events:none;position:fixed;text-rendering:optimizelegibility;transform:translate(-50%,calc(var(--jd-padding-default)/2));transition:opacity .2s ease 0s;user-select:none;white-space:normal;width:auto;z-index:var(--jd-z-index-tooltip)}@media (max-width:768px){.jodit-ui-tooltip{display:none}}.jodit-ui-tooltip__content{padding:calc(var(--jd-padding-default)/2) calc(var(--jd-padding-default)*1.5)}.jodit-ui-tooltip.jodit-ui-tooltip_visible_true{opacity:1}.jodit-ui-block{align-items:center;display:flex;justify-content:stretch;margin-bottom:var(--jd-padding-default)}.jodit-ui-block_width_full{width:100%}.jodit-ui-block_align_full{justify-content:space-between}.jodit-ui-block_align_right{justify-content:flex-end}.jodit-ui-block_padding_true{padding:var(--jd-padding-default)}.jodit-ui-label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-input__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-input__input:focus{outline:0}.jodit-ui-input_theme_dark .jodit-ui-input__input{background-color:var(--jd-color-gray)}.jodit-ui-input_has-error_true .jodit-ui-input__input{border-color:var(--jd-color-red)}.jodit-ui-input__error,.jodit-ui-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input__error,.jodit-ui-input_has-error_true .jodit-ui-input__label{color:var(--jd-color-error)}.jodit-ui-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-input__wrapper{min-width:140px}}.jodit-ui-input_theme_dark .jodit-ui-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-input_focused_true .jodit-ui-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-input__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-input__icon:not(:empty)+.jodit-ui-input__input{padding-left:0}.jodit-ui-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-input__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-input_theme_dark .jodit-ui-input__clear svg,.jodit-ui-input_theme_dark .jodit-ui-input__icon svg{fill:var(--jd-color-dark)}.jodit-ui-block .jodit-ui-input{margin-bottom:0}.jodit-ui-select{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-select__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-select__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-select__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-select__input:focus{outline:0}.jodit-ui-select_theme_dark .jodit-ui-select__input{background-color:var(--jd-color-gray)}.jodit-ui-select_has-error_true .jodit-ui-select__input{border-color:var(--jd-color-red)}.jodit-ui-select__error,.jodit-ui-select__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-select__error,.jodit-ui-select_has-error_true .jodit-ui-select__label{color:var(--jd-color-error)}.jodit-ui-select__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-select__wrapper{min-width:140px}}.jodit-ui-select_theme_dark .jodit-ui-select__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-select_focused_true .jodit-ui-select__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-select__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-select__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-select__icon:not(:empty)+.jodit-ui-select__input{padding-left:0}.jodit-ui-select__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-select__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-select__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-select_theme_dark .jodit-ui-select__clear svg,.jodit-ui-select_theme_dark .jodit-ui-select__icon svg{fill:var(--jd-color-dark)}.jodit-ui-select__input[multiple]{height:auto;padding:0}.jodit-ui-select__input[multiple] option{padding:calc(var(--jd-padding-default)*.5) var(--jd-padding-default)}.jodit-ui-select__input:not([multiple]){background-image:url(${p});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-ui-select_size_tiny{margin-bottom:0}.jodit-ui-select_size_tiny .jodit-ui-select__input{--jd-height:calc(var(--jd-input-height)/1.8);height:var(--jd-height);line-height:var(--jd-height)}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper{border:0}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper select{outline:0}.jodit-ui-select_width_auto{width:auto}.jodit-ui-select_width_auto .jodit-ui-select__wrapper{min-width:auto}.jodit-ui-text-area{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default);width:100%}.jodit-ui-text-area__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-text-area__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-text-area__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-text-area__input:focus{outline:0}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__input{background-color:var(--jd-color-gray)}.jodit-ui-text-area_has-error_true .jodit-ui-text-area__input{border-color:var(--jd-color-red)}.jodit-ui-text-area__error,.jodit-ui-text-area__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-text-area__error,.jodit-ui-text-area_has-error_true .jodit-ui-text-area__label{color:var(--jd-color-error)}.jodit-ui-text-area__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-text-area__wrapper{min-width:140px}}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-text-area_focused_true .jodit-ui-text-area__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-text-area__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-text-area__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-text-area__icon:not(:empty)+.jodit-ui-text-area__input{padding-left:0}.jodit-ui-text-area__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-text-area__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-text-area__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__clear svg,.jodit-ui-text-area_theme_dark .jodit-ui-text-area__icon svg{fill:var(--jd-color-dark)}.jodit-ui-text-area__wrapper{flex:1}.jodit-ui-text-area__input{height:100%;min-height:60px;padding:var(--jd-padding-default)}.jodit-ui-checkbox{align-items:center;display:flex;flex-direction:row-reverse;justify-content:flex-end;margin-bottom:var(--jd-padding-default)}.jodit-ui-checkbox__input{margin-right:var(--jd-padding-default)}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper{display:inline-block;height:34px;margin-right:var(--jd-padding-default);position:relative;width:60px}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper input{height:0;opacity:0;width:0}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider{background-color:#ccc;border-radius:34px;cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:26px;left:4px;position:absolute;transition:.4s;width:26px}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider{background-color:#2196f3}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider:before{transform:translateX(26px)}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_focused_true .jodit-ui-checkbox__switch-slider{box-shadow:0 0 1px #2196f3}.jodit-ui-block .jodit-ui-checkbox{margin-bottom:0}.jodit-ui-file-input{overflow:hidden;position:relative}.jodit-ui-file-input__input{bottom:0;cursor:pointer;font-size:400px;margin:0 calc(var(--jd-padding-default)*-1) 0 0;opacity:0;padding:0;position:absolute;right:0;top:0}:root{--jd-popup-box-shadow:0 4px 1px -2px rgba(76,76,76,.2),0 3px 3px 0 rgba(76,76,76,.15),0 1px 4px 0 rgba(76,76,76,.13);--jd-popup-max-height:max(50vh,350px)}.jodit-popup{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup)}.jodit-popup__content{background:var(--jd-color-background-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-popup_padding_false .jodit-popup__content{padding:0}.jodit-popup_max-height_false .jodit-popup__content{max-height:fit-content}@keyframes a{30%{opacity:.6}60%{opacity:0}to{opacity:.6}}.jodit-progress-bar{border-radius:1px;height:2px;left:0;opacity:.7;position:absolute;top:0;z-index:2147483647}.jodit-progress-bar div{background:var(--jd-color-background-progress);height:2px;position:relative;transition:width .5s ease-out,opacity .5s linear;will-change:width,opacity}.jodit-progress-bar div:after,.jodit-progress-bar div:before{animation:a 2s ease-out 0s infinite;border-radius:100%;box-shadow:var(--jd-color-background-progress) 1px 0 6px 1px;content:"";display:inline-block;height:2px;opacity:.6;position:absolute;top:0}.jodit-progress-bar div:before{right:-80px;width:180px;clip:rect(-6px,90px,14px,-6px)}.jodit-progress-bar div:after{right:0;width:20px;clip:rect(-6px,22px,14px,var(--jd-padding-default))}:root{--jd-em-color-border:#b6d4fe;--jd-em-color-bg:#cfe2ff;--jd-em-color-color:#084298;--jd-em-border-radius:0.375rem;--jd-em-padding:0.5rem 1rem;--jd-em-font-size:1rem}.jodit-ui-messages{bottom:0;height:0;overflow:visible;position:absolute;right:0;width:0;z-index:3}.jodit-ui-message{background:var(--jd-em-color-bg);border:1px solid var(--jd-em-color-border);border-radius:var(--jd-em-border-radius);bottom:0;color:var(--jd-em-color-color);cursor:pointer;display:block;font-size:var(--jd-em-font-size);opacity:0;padding:var(--jd-em-padding);position:absolute;right:calc(var(--jd-padding-default)/2);transition:opacity .1s linear,bottom .3s linear,transform .1s ease-out;white-space:pre}.jodit-ui-message_active_true{opacity:1}.jodit-ui-message:active{transform:scale(.76)}.jodit-ui-message_variant_secondary{--jd-em-color-border:#d3d6d8;--jd-em-color-bg:#e2e3e5;--jd-em-color-color:#41464b}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error,.jodit-ui-message_variant_secondary{background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error{--jd-em-color-border:#f5c2c7;--jd-em-color-bg:#f8d7da;--jd-em-color-color:#842029}.jodit-ui-message_variant_success{--jd-em-color-border:#badbcc;--jd-em-color-bg:#d1e7dd;--jd-em-color-color:#0f5132;background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-toolbar-collection,.jodit-toolbar-editor-collection{display:flex;flex-direction:column}.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size));position:relative}.jodit-toolbar-collection_mode_horizontal:after,.jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-background-default);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;width:100%}.jodit-toolbar-collection_size_tiny,.jodit-toolbar-editor-collection_size_tiny{--jd-button-icon-size:8px}.jodit-toolbar-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 19px,var(--jd-color-border) 20px)}.jodit-toolbar-collection_size_xsmall,.jodit-toolbar-editor-collection_size_xsmall{--jd-button-icon-size:10px}.jodit-toolbar-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 25px,var(--jd-color-border) 26px)}.jodit-toolbar-collection_size_small,.jodit-toolbar-editor-collection_size_small{--jd-button-icon-size:12px}.jodit-toolbar-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 31px,var(--jd-color-border) 32px)}.jodit-toolbar-collection_size_middle,.jodit-toolbar-editor-collection_size_middle{--jd-button-icon-size:14px}.jodit-toolbar-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 37px,var(--jd-color-border) 38px)}.jodit-toolbar-collection_size_large,.jodit-toolbar-editor-collection_size_large{--jd-button-icon-size:16px}.jodit-toolbar-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 43px,var(--jd-color-border) 44px)}.jodit-toolbar-collection_mode_vertical .jodit-ui-group,.jodit-toolbar-editor-collection_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__text:not(:empty),.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-toolbar-collection .jodit-toolbar-button,.jodit-toolbar-collection .jodit-toolbar-content,.jodit-toolbar-collection .jodit-toolbar-select,.jodit-toolbar-editor-collection .jodit-toolbar-button,.jodit-toolbar-editor-collection .jodit-toolbar-content,.jodit-toolbar-editor-collection .jodit-toolbar-select{margin:var(--jd-margin-v) 1px;padding:0}.jodit-dialog .jodit-toolbar-collection_mode_horizontal,.jodit-dialog .jodit-toolbar-editor-collection_mode_horizontal{background-image:none}:root{--jd-button-trigger-size:14px}.jodit-toolbar-button{align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);display:flex;height:34px;justify-content:center;min-width:34px;overflow:hidden}.jodit-toolbar-button__icon{display:none}.jodit-toolbar-button__icon:not(:empty){display:inline-flex}.jodit-toolbar-button__text{display:none}.jodit-toolbar-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-button__icon:not(:empty)+.jodit-toolbar-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-button__icon:empty+.jodit-toolbar-button__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-button .jodit-icon{height:14px;width:14px}.jodit-toolbar-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_tiny{height:16px;min-width:16px}.jodit-toolbar-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_small{height:28px;min-width:28px}.jodit-toolbar-button_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_large{height:40px;min-width:40px}.jodit-toolbar-button_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-button__button:focus-visible:not([disabled]),.jodit-toolbar-button__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__button:active:not([disabled]),.jodit-toolbar-button__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-button__trigger:focus-visible:not([disabled]),.jodit-toolbar-button__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__trigger:active:not([disabled]),.jodit-toolbar-button__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-button_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-button_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-button_stroke_false svg{stroke:none}.jodit-toolbar-content{align-items:center;appearance:none;background:0 0;border:1px solid transparent;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;height:34px;justify-content:center;min-width:34px;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-content:focus-visible:not([disabled]),.jodit-toolbar-content:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-content:active:not([disabled]),.jodit-toolbar-content[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-content[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-content[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-content .jodit-icon{height:14px;width:14px}.jodit-toolbar-content button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-content_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_tiny{height:16px;min-width:16px}.jodit-toolbar-content_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-content_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-content_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-content_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-content_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-content_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_small{height:28px;min-width:28px}.jodit-toolbar-content_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-content_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-content_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_large{height:40px;min-width:40px}.jodit-toolbar-content_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-content_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-content_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content__icon{display:none}.jodit-toolbar-content__icon:not(:empty){display:inline-flex}.jodit-toolbar-content__text{display:none}.jodit-toolbar-content__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-content__icon:not(:empty)+.jodit-toolbar-content__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-content__icon:empty+.jodit-toolbar-content__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-toolbar-content:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-toolbar-content_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-content_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-content_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default [disabled]{opacity:.7}.jodit-toolbar-content_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-content_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary [disabled]{opacity:.7}.jodit-toolbar-content_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-content_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-content_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-content_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-content_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-content_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success [disabled]{opacity:.7}.jodit-toolbar-content_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-content_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-content_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-content_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger [disabled]{opacity:.7}.jodit-toolbar-content_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-content_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-toolbar-content:hover:not([disabled]){background-color:transparent;opacity:1;outline:0}.jodit-toolbar-select{--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.2);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.1);align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);cursor:pointer;display:flex;height:34px;justify-content:center;justify-content:space-between;min-width:34px;min-width:100px;overflow:hidden}.jodit-toolbar-select__icon{display:none}.jodit-toolbar-select__icon:not(:empty){display:inline-flex}.jodit-toolbar-select__text{display:none}.jodit-toolbar-select__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-select__icon:not(:empty)+.jodit-toolbar-select__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-select__icon:empty+.jodit-toolbar-select__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-select .jodit-icon{height:14px;width:14px}.jodit-toolbar-select button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-select_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_tiny{height:16px;min-width:16px}.jodit-toolbar-select_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-select_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-select_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-select_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-select_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-select_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_small{height:28px;min-width:28px}.jodit-toolbar-select_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-select_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-select_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_large{height:40px;min-width:40px}.jodit-toolbar-select_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-select_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-select_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-select__button:focus-visible:not([disabled]),.jodit-toolbar-select__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__button:active:not([disabled]),.jodit-toolbar-select__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-select__trigger:focus-visible:not([disabled]),.jodit-toolbar-select__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__trigger:active:not([disabled]),.jodit-toolbar-select__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-select_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-select_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-select_stroke_false svg{stroke:none}.jodit-toolbar-select:focus-visible:not([disabled]),.jodit-toolbar-select:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select:active:not([disabled]),.jodit-toolbar-select[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__text:not(:empty){justify-content:left}.jodit-toolbar-select__button{flex:1}.jodit-toolbar__box:not(:empty){--jd-color-background-default:var(--jd-color-panel);background-color:var(--jd-color-background-default);border-bottom:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default) var(--jd-border-radius-default) 0 0;overflow:hidden}.jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-panel)}.jodit-dialog{border:0;box-sizing:border-box;display:none;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:0;position:absolute;width:0;will-change:left,top,width,height}.jodit-dialog_moved_true{user-select:none}.jodit-dialog *{box-sizing:border-box}.jodit-dialog .jodit_elfinder,.jodit-dialog .jodit_elfinder *{box-sizing:initial}.jodit-dialog__overlay{background-color:rgba(0,0,0,.5);display:none;height:100%;left:0;overflow:auto;position:fixed;text-align:center;top:0;white-space:nowrap;width:100%;z-index:var(--jd-z-index-dialog-overlay)}.jodit-dialog_static_true .jodit-dialog__overlay{display:none}.jodit-dialog_active_true,.jodit-dialog_modal_true .jodit-dialog__overlay{display:block}.jodit-dialog__panel{background-color:#fff;display:flex;flex-flow:column nowrap;left:0;max-height:100%;max-width:100%;min-height:100px;min-width:200px;position:fixed;top:0;z-index:var(--jd-z-index-dialog);--jd-box-shadow-blur:calc(var(--jd-padding-default)*2);--jd-box-shadow-1:0 var(--jd-padding-default) var(--jd-box-shadow-blur) rgba(0,0,0,.19);box-shadow:var(--jd-box-shadow-1),0 6px 6px rgba(0,0,0,.23);text-align:left;white-space:normal}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__panel{height:100%!important;left:0!important;max-width:100%;top:0!important;width:100%!important}}.jodit-dialog_static_true{box-sizing:border-box;display:block;height:auto;position:relative;width:auto;z-index:inherit}.jodit-dialog_static_true .jodit-dialog__panel{border:1px solid var(--jd-color-border);box-shadow:none;left:auto!important;position:relative;top:auto!important;width:100%!important;z-index:inherit}.jodit-dialog_theme_dark,.jodit-dialog_theme_dark .jodit-dialog__panel{background-color:var(--jd-dark-background-darknes);color:var(--jd-dark-text-color)}.jodit-dialog__header{border-bottom:1px solid var(--jd-color-border);cursor:move;display:flex;justify-content:space-between;min-height:50px;text-align:left}.jodit-dialog__header-title,.jodit-dialog__header-toolbar{align-items:center;display:flex;flex-shrink:3;font-size:18px;font-weight:400;line-height:48px;margin:0;padding:0 var(--jd-padding-default);vertical-align:top}@media (max-width:480px){.jodit-dialog__header-toolbar{padding-left:0}}.jodit-dialog__header-button{color:#222;flex-basis:48px;font-size:28px;height:48px;line-height:48px;text-align:center;text-decoration:none;transition:background-color .2s ease 0s}.jodit-dialog__header-button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-dialog__header .jodit_toolbar{background:transparent;border:0;box-shadow:none}.jodit-dialog__header .jodit_toolbar>li.jodit-toolbar-button .jodit-input{padding-left:var(--jd-padding-default);width:auto}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__header{flex-direction:column}}.jodit-dialog_slim_true .jodit-dialog__header{min-height:10px}.jodit-dialog_slim_true .jodit-dialog__header-title,.jodit-dialog_slim_true .jodit-dialog__header-toolbar{padding:0 calc(var(--jd-padding-default)/4)}.jodit-dialog_theme_dark .jodit-dialog__header{border-color:var(--jd-color-dark)}.jodit-dialog_fullsize_true .jodit-dialog__header{cursor:default}.jodit-dialog__content{flex:1;min-height:100px;overflow:auto}.jodit-dialog__content .jodit-form__group{margin-bottom:calc(var(--jd-padding-default)*1.5);padding:0 var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group:first-child{margin-top:var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group .jodit-input_group{border-collapse:separate;display:table;width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group>*{display:table-cell;height:34px;vertical-align:middle}.jodit-dialog__content .jodit-form__group .jodit-input_group>input{margin:0!important}.jodit-dialog__content .jodit-form__group .jodit-input_group>input:not([class*=col-]){width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons{font-size:0;vertical-align:middle;white-space:nowrap;width:1%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons>.jodit-button{border:1px solid var(--jd-color-border);border-radius:0;height:34px;line-height:34px;margin-left:-1px}.jodit-dialog__footer{display:none;flex-wrap:nowrap;justify-content:space-between;padding:var(--jd-padding-default)}.jodit-dialog__footer button{margin-right:calc(var(--jd-padding-default)/2)}.jodit-dialog__footer button:last-child{margin-right:0}.jodit-dialog__column{display:flex}.jodit-dialog__resizer{display:none;position:relative}.jodit-dialog__resizer svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-dialog_resizable_true .jodit-dialog__resizer{display:block}@media (max-width:480px){.jodit-dialog__resizer{display:none}}.jodit-dialog_prompt{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_prompt label{display:block;margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-dialog_alert{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_footer_true .jodit-dialog__footer{display:flex}.jodit_fullsize .jodit-dialog__panel{height:100%!important;inset:0!important;width:100%!important}.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer{display:none}.jodit-dialog .jodit-ui-messages{z-index:var(--jd-z-index-dialog)}.jodit-context-menu{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup);z-index:var(--jd-z-index-context-menu)}.jodit-context-menu,.jodit-context-menu__content{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-context-menu__content{background:var(--jd-color-background-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-context-menu_padding_false .jodit-context-menu__content{padding:0}.jodit-context-menu_max-height_false .jodit-context-menu__content{max-height:fit-content}.jodit-context-menu .jodit-ui-button{display:flex}.jodit-context-menu button{width:100%}.jodit-context-menu_theme_dark{background-color:var(--jd-dark-background-color)}:root{--jd-image-editor-resizer-border-color:#05ff00;--jd-image-editor-resizer-target-size:padding-default;--jd-image-editor-resizer-target-border-color:#383838;--jd-image-editor-resizer-target-bg-color:#8c7878}.jodit-image-editor{height:100%;overflow:hidden;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-image-editor{height:auto}}.jodit-image-editor>div,.jodit-image-editor>div>div{height:100%}@media (max-width:768px){.jodit-image-editor>div,.jodit-image-editor>div>div{height:auto;min-height:200px}}.jodit-image-editor *{box-sizing:border-box}.jodit-image-editor .jodit-image-editor__slider-title{background-color:#f9f9f9;border-bottom:1px solid hsla(0,0%,62%,.31);color:#333;cursor:pointer;font-weight:700;line-height:1em;padding:.8em 1em;text-overflow:ellipsis;text-shadow:#f3f3f3 0 1px 0;user-select:none;white-space:nowrap}.jodit-image-editor .jodit-image-editor__slider-title svg{display:inline-block;margin-right:var(--jd-padding-default);vertical-align:middle;width:16px}.jodit-image-editor .jodit-image-editor__slider-content{display:none}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title{background-color:#5d5d5d;color:#fff;text-shadow:#000 0 1px 0}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg{fill:#fff}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content{display:block}.jodit-image-editor__area{background-color:#eee;background-image:linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border)),linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border));background-position:0 0,15px 15px;background-size:30px 30px;display:none;height:100%;overflow:hidden;position:relative;user-select:none;width:100%}.jodit-image-editor__area.jodit-image-editor_active{display:block}.jodit-image-editor__area .jodit-image-editor__box{height:100%;overflow:hidden;pointer-events:none;position:relative;z-index:1}.jodit-image-editor__area .jodit-image-editor__box img{max-height:100%;max-width:100%;user-select:none}.jodit-image-editor__area .jodit-image-editor__croper,.jodit-image-editor__area .jodit-image-editor__resizer{background-repeat:no-repeat;border:1px solid #fff;box-shadow:0 0 11px #000;height:100px;left:20px;pointer-events:none;position:absolute;top:var(--jd-padding-default);width:100px;z-index:2}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright{background-color:var(--jd-image-editor-resizer-target-bg-color);border:1px solid var(--jd-image-editor-resizer-target-border-color);border-radius:50%;bottom:calc(var(--jd-padding-default)*-1);box-shadow:0 0 11px #000;cursor:se-resize;display:inline-block;height:20px;pointer-events:all;position:absolute;right:calc(var(--jd-padding-default)*-1);width:20px;z-index:4}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright:active,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright:active{border:1px solid #ff0}.jodit-image-editor__area.jodit-image-editor__area_crop{background:#eee;height:100%;line-height:100%;position:relative;text-align:center}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box{height:100%;line-height:100%;overflow:visible;pointer-events:all;text-align:left}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box img{height:100%;max-height:100%;max-width:100%;width:100%}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box:after{background:hsla(0,0%,100%,.3);content:"";inset:0;margin:auto;position:absolute;z-index:1}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper{cursor:move;pointer-events:all}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper i.jodit-image-editor__sizes{background:rgba(0,0,0,.2);border-radius:.4em;bottom:-30px;color:#fff;display:block;font-size:12px;left:100%;padding:9px 6px;position:absolute;text-align:center;text-shadow:none;white-space:pre}.jodit-image-editor__area.jodit-image-editor__area_crop.jodit-image-editor_active{align-items:center;display:flex;justify-content:center}.jodit-file-browser-files{display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-files .jodit-button{border-radius:0}.jodit-file-browser-files_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-files_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-files::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-files::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-files::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-files_active_true{align-content:flex-start;display:flex;flex-wrap:wrap;overflow-y:auto;padding:calc(var(--jd-padding-default)/2);width:100%}.jodit-file-browser-files__item{align-items:center;border:1px solid var(--jd-color-border);display:flex;font-size:0;height:var(--jd-col-size);justify-content:center;margin:calc(var(--jd-padding-default)/2);overflow:hidden;position:relative;text-align:center;transition:border .1s linear,bottom .1s linear;width:var(--jd-col-size)}@media (max-width:480px){.jodit-file-browser-files__item{width:calc(50% - var(--jd-padding-default))}}.jodit-file-browser-files__item img{max-width:100%}.jodit-file-browser-files__item:hover{border-color:#433b5c}.jodit-file-browser-files__item_active_true{background-color:var(--jd-color-border-active);border-color:var(--jd-color-border-selected)}.jodit-file-browser-files__item_active_true .jodit-file-browser-files__item-info{background-color:var(--jd-color-border-active);color:#fff;text-shadow:none}.jodit-file-browser-files__item-info{background-color:var(--jd-info-background);bottom:0;color:#333;font-size:14px;left:0;line-height:16px;opacity:.85;overflow:visible;padding:.3em .6em;position:absolute;right:0;text-align:left;text-shadow:#eee 0 1px 0;transition:opacity .4s ease;white-space:normal}.jodit-file-browser-files__item-info>span{display:block;font-size:.75em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jodit-file-browser-files__item-info>span.jodit-file-browser-files__item-info-filename{font-size:.9em;font-weight:700}.jodit-file-browser-files__item:hover:not(.jodit-file-browser-files__item_active_true) .jodit-file-browser-files__item-info{bottom:-100px}.jodit-file-browser-files_view_list{scroll-behavior:smooth}.jodit-file-browser-files_view_list a{border-width:0 0 1px;display:block;height:26px;line-height:26px;margin:0;text-align:left;white-space:nowrap;width:100%}.jodit-file-browser-files_view_list a img{display:inline-block;margin-left:4px;max-width:16px;min-width:16px;vertical-align:middle}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info{background-color:transparent;display:inline-block;font-size:0;height:100%;line-height:inherit;margin-left:4px;padding:0;position:static;vertical-align:middle;width:calc(100% - 20px)}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info>span{display:inline-block;font-size:12px;height:100%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filename{width:50%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filechanged,.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filesize{width:25%}.jodit-file-browser-files_view_list a:hover{background-color:#433b5c}.jodit-file-browser-files_view_list a:hover .jodit-file-browser-files__item-info{color:#fff;text-shadow:none}.jodit-file-browser-files_view_list a:before{content:"";display:inline-block;height:100%;vertical-align:middle}:root{--jd-color-folder-title:#b1b1b1}.jodit-file-browser-tree{--jd-color-background-filebrowser-folders:#3f3f3f;display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-tree .jodit-button{border-radius:0}.jodit-file-browser-tree_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-tree_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-tree::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-tree_active_true{background-color:var(--jd-color-background-filebrowser-folders);display:flex;flex-direction:column;max-width:290px;min-width:200px;overflow-y:auto;width:var(--jd-first-column);z-index:2}@media (max-width:480px){.jodit-file-browser-tree_active_true{height:100px;max-width:100%;width:auto}}.jodit-file-browser-tree_active_true::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-thumb{background-color:hsla(0,0%,50%,.5);outline:1px solid #708090}.jodit-file-browser-tree__item{align-items:center;border-bottom:1px solid #474747;color:var(--jd-color-folder-title);display:flex;justify-content:space-between;min-height:38px;padding:calc(var(--jd-padding-default)/2) var(--jd-padding-default);position:relative;text-decoration:none;transition:background-color .2s ease 0s;word-break:break-all}.jodit-file-browser-tree__item-title{color:var(--jd-color-folder-title);flex:1}.jodit-file-browser-tree__item .jodit-icon_folder{align-items:center;display:flex;height:calc(var(--jd-icon-size) + 4px);justify-content:center;margin-left:calc(var(--jd-padding-default)/2);opacity:.3;width:calc(var(--jd-icon-size) + 4px)}.jodit-file-browser-tree__item .jodit-icon_folder svg{height:var(--jd-icon-size);width:var(--jd-icon-size);fill:var(--jd-color-folder-title)!important;stroke:var(--jd-color-folder-title)!important}.jodit-file-browser-tree__item .jodit-icon_folder:hover{background:#696969}.jodit-file-browser-tree__item:hover{background-color:var(--jd-color-background-button-hover)}.jodit-file-browser-tree__item:hover-title{color:var(--jd-color-text)}.jodit-file-browser-tree__item:hover i.jodit-icon_folder{opacity:.6}.jodit-file-browser-tree__source-title{background:#5a5a5a;border-bottom:1px solid #484848;color:#969696;display:block;font-size:12px;padding:2px 4px;position:relative;user-select:none;word-break:break-all}a+.jodit-file-browser-tree__source-title{margin-top:var(--jd-padding-default)}:root{--jd-first-column:31%;--jd-cols:4;--jd-info-background:#e9e9e9;--jd-icon-size:12px;--jd-col-size:150px}.jodit-file-browser{display:flex;font-family:var(--jd-font-default);height:100%}.jodit-file-browser_no-files_true{padding:var(--jd-padding-default)}@media (max-width:480px){.jodit-file-browser{flex-flow:column-reverse}}.jodit-dialog .jodit-dialog__header-title.jodit-file-browser__title-box{align-items:center;display:flex;padding-left:var(--jd-padding-default)}.jodit-file-browser-preview{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;max-height:100%;max-width:min(100%,1000px);min-height:min(100%,500px);min-width:400px;position:relative;text-align:center}@media (max-width:768px){.jodit-file-browser-preview{height:100%;max-height:100%;max-width:100%;min-height:auto;min-width:auto}}.jodit-file-browser-preview__box{align-items:center;display:flex;flex-grow:1;justify-content:center}.jodit-file-browser-preview__navigation{cursor:pointer;height:100%;left:0;position:absolute;top:0}.jodit-file-browser-preview__navigation_arrow_next{left:auto;right:0}.jodit-file-browser-preview__navigation svg{height:45px;position:relative;top:50%;width:45px;fill:#9e9ba7;transform:translateY(-50%);transition:fill .3s linear}.jodit-file-browser-preview__navigation:hover svg{fill:#000}.jodit-file-browser-preview img{max-height:100%;max-width:100%}.jodit-status-bar{align-items:center;background-color:var(--jd-color-panel);border-radius:0 0 var(--jd-border-radius-default) var(--jd-border-radius-default);color:var(--jd-color-text-icons);display:flex;font-size:var(--jd-font-size-small);height:20px;justify-content:flex-start;overflow:hidden;padding:0 calc(var(--jd-padding-default)/2);text-transform:uppercase}.jodit-status-bar_resize-handle_true{padding-right:14px}.jodit-status-bar:before{content:"";flex:auto;order:1}.jodit-status-bar .jodit-status-bar__item{line-height:1.5714em;margin:0 var(--jd-padding-default) 0 0;order:0;padding:0}.jodit-status-bar .jodit-status-bar__item,.jodit-status-bar .jodit-status-bar__item>span{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);font-size:var(--jd-font-size-small)}.jodit-status-bar .jodit-status-bar__item.jodit-status-bar__item-right{margin:0 0 0 var(--jd-padding-default);order:2}.jodit-status-bar .jodit-status-bar__item a{border-radius:3px;cursor:default;text-decoration:none}.jodit-status-bar .jodit-status-bar__item a:hover{background-color:var(--jd-color-background-gray);text-decoration:none}.jodit-status-bar a.jodit-status-bar-link{cursor:pointer}.jodit-status-bar a.jodit-status-bar-link,.jodit-status-bar a.jodit-status-bar-link:hover,.jodit-status-bar a.jodit-status-bar-link:visited{background-color:transparent;color:var(--jd-color-text-icons)}.jodit-status-bar a.jodit-status-bar-link:hover{text-decoration:underline}.jodit-workplace+.jodit-status-bar:not(:empty){border-top:1px solid var(--jd-color-border)}.jodit_disabled .jodit-status-bar{opacity:.4}.jodit-drag-and-drop__file-box,.jodit_uploadfile_button{border:1px dashed var(--jd-color-gray);margin:var(--jd-padding-default) 0;overflow:hidden;padding:25px 0;position:relative;text-align:center;width:100%}.jodit-drag-and-drop__file-box:hover,.jodit_uploadfile_button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-drag-and-drop__file-box input,.jodit_uploadfile_button input{cursor:pointer;font-size:400px;inset:0;margin:0;opacity:0;padding:0;position:absolute}@media (max-width:768px){.jodit-drag-and-drop__file-box{max-width:100%;min-width:var(--jd-width-input-min);width:auto}}.jodit-about{padding:20px}.jodit-about a{color:#459ce7;text-decoration:none}.jodit-about a:focus,.jodit-about a:hover{color:#23527c;outline:0;text-decoration:underline}.jodit-about div{margin-bottom:calc(var(--jd-padding-default)/2)}:root{--jd-anl-color-new-line:var(--jd-color-border);--jd-anl-handle-size:20px;--jd-anl-handle-offset:calc(100% - var(--jd-anl-handle-size))}.jodit-add-new-line{display:block;height:1px;outline:none;position:fixed;top:0;z-index:1}.jodit-add-new-line,.jodit-add-new-line *{box-sizing:border-box}.jodit-add-new-line:after{background-color:var(--jd-anl-color-new-line);content:"";display:block;height:1px;width:100%}.jodit-add-new-line span{align-items:center;background:var(--jd-color-background-button-hover-opacity30);border:1px solid var(--jd-anl-color-new-line);cursor:pointer;display:flex;height:var(--jd-anl-handle-size);justify-content:center;left:var(--jd-anl-handle-offset);position:absolute;top:0;transform:translateY(-50%);width:var(--jd-anl-handle-size)}.jodit-add-new-line span:hover{background:var(--jd-color-background-button-hover)}.jodit-add-new-line svg{width:calc(var(--jd-anl-handle-size)/2);fill:var(--jd-anl-color-new-line)}.jodit-source__mode .jodit-add-new-line{display:none!important}:root{--jd-color-picker-cell-size:24px}.jodit-color-picker{margin:0;text-align:left;user-select:none}.jodit-color-picker__group{display:flex;flex-wrap:wrap;margin-bottom:calc(var(--jd-padding-default)/2);max-width:calc(var(--jd-color-picker-cell-size)*10);white-space:normal}.jodit-color-picker__color-item{border:1px solid transparent;display:block;height:var(--jd-color-picker-cell-size);text-align:center;text-decoration:none;vertical-align:middle;width:var(--jd-color-picker-cell-size)}.jodit-color-picker__color-item:hover{border-color:#000}.jodit-color-picker__color-item:active,.jodit-color-picker__color-item_active_true{border:2px solid var(--jd-color-border-selected)}.jodit-color-picker__native svg{display:inline-block;height:16px;margin-right:4px;width:16px}.jodit-color-picker__native input{appearance:none;border:none;height:18px;padding:0;width:18px}.jodit-color-picker__native input[type=color]::-webkit-color-swatch-wrapper{padding:0}.jodit-color-picker__native input input[type=color]::-webkit-color-swatch{border:none}.jodit-tabs{--jd-box-shadow-tabs:0 0 #0000,0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-color-background-light-gray);border-radius:var(--jd-border-radius-default);display:flex;justify-content:center;margin-bottom:var(--jd-padding-default);margin-top:calc(var(--jd-padding-default)/2);padding:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button{color:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button svg{fill:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]){box-shadow:var(--jd-box-shadow-tabs);color:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{background-color:var(--jd-color-background-default)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons>*{cursor:pointer;margin-left:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons>:only-of-type{width:100%}.jodit-tabs .jodit-tabs__buttons>:first-child{margin-left:0}@media (max-width:480px){.jodit-tabs .jodit-tabs__buttons{display:block}.jodit-tabs .jodit-tabs__buttons>*{margin-left:0;width:100%}}.jodit-tabs__button{max-width:210px;min-width:80px}.jodit-tabs__button .jodit-ui-button__text{flex:1;justify-content:space-around;white-space:nowrap}.jodit-tabs__button_columns_3{width:33.33333%}.jodit-tabs__button_columns_2{width:50%}.jodit-tabs .jodit-tabs__wrapper .jodit-tab{display:none}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_active{display:block}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_empty{min-height:100px;min-width:220px}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-dark-background-color);border-radius:var(--jd-border-radius-default)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{color:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit_fullsize-box_true{overflow:visible!important;position:static!important;z-index:var(--jd-z-index-full-size)!important}body.jodit_fullsize-box_true,html.jodit_fullsize-box_true{height:0!important;overflow:hidden!important;width:0!important}html.jodit_fullsize-box_true{position:fixed!important}.jodit_fullsize{inset:0;max-width:none!important;position:absolute;z-index:var(--jd-z-index-full-size)}.jodit_fullsize .toolbar{width:100%!important}.jodit_fullsize .jodit__area,.jodit_fullsize .jodit_editor{height:100%}.jodit-ui-image-position-tab__lockMargin>svg,.jodit-ui-image-position-tab__lockSize>svg,.jodit-ui-image-properties-form__lockMargin>svg,.jodit-ui-image-properties-form__lockSize>svg{display:inline-block;height:var(--jd-icon-middle-size);overflow:hidden;width:var(--jd-icon-middle-size);fill:var(--jd-color-dark);line-height:var(--jd-icon-middle-size);transform-origin:0 0!important;vertical-align:middle}.jodit-ui-image-position-tab__view-box,.jodit-ui-image-properties-form__view-box{padding:var(--jd-padding-default)}.jodit-ui-image-position-tab__imageView,.jodit-ui-image-properties-form__imageView{align-items:center;background-color:var(--jd-color-background-light-gray);display:flex;height:var(--jd-width-default);justify-content:center;margin:0 0 var(--jd-padding-default);padding:0}.jodit-ui-image-position-tab__imageView img,.jodit-ui-image-properties-form__imageView img{max-height:100%;max-width:100%}.jodit-ui-image-position-tab__imageSizes.jodit-form__group,.jodit-ui-image-properties-form__imageSizes.jodit-form__group{align-items:center;flex-direction:row;margin:0;min-width:auto;padding:0}.jodit-ui-image-position-tab__imageSizes.jodit-form__group a,.jodit-ui-image-properties-form__imageSizes.jodit-form__group a{cursor:pointer;display:inline-block}.jodit-ui-image-position-tab .jodit-form__group,.jodit-ui-image-properties-form .jodit-form__group{padding:0}.jodit-ui-image-position-tab__tabsBox,.jodit-ui-image-properties-form__tabsBox{padding:0 var(--jd-padding-default)}.jodit-dialog_theme_dark .jodit-ui-image-properties-form__imageView,.jodit_theme_dark .jodit-ui-image-properties-form__imageView{background-color:var(--jd-dark-background-color)}.jodit-ui-image-properties-form_lock_true:before{background-color:var(--jd-color-button-background-hover-opacity60);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.jodit-ui-image-properties-form_lock_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;background-size:var(--jd-icon-loader-size);content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-popup-inline__container{min-width:700px;z-index:1300}.jodit-paste-storage{max-width:600px;padding:var(--jd-padding-default)}@media (max-width:768px){.jodit-paste-storage{max-width:100%}}.jodit-paste-storage>div{border:1px solid var(--jd-color-border);max-height:300px;max-width:100%}.jodit-paste-storage>div:first-child{margin-bottom:var(--jd-padding-default)}.jodit-paste-storage>div:first-child a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-default);display:block;margin:0;max-width:100%;outline:none;overflow:hidden;padding:calc(var(--jd-padding-default)/2);text-decoration:none;text-overflow:ellipsis;white-space:pre}.jodit-paste-storage>div:first-child a.jodit_active{background-color:var(--jd-dark-background-color);color:var(--jd-color-white)}.jodit-paste-storage>div:first-child a:focus{outline:none}.jodit-paste-storage>div:last-child{overflow:auto;padding:var(--jd-padding-default)}.jodit-paste-storage>div:last-child li,.jodit-paste-storage>div:last-child ul{margin:0}.jodit-placeholder{color:var(--jd-color-placeholder);display:block;left:0;padding:var(--jd-padding-default);pointer-events:none;position:absolute;top:0;user-select:none!important;width:100%;z-index:1}.jodit__preview-box table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit__preview-box table tr{user-select:none}.jodit__preview-box table tr td,.jodit__preview-box table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-table-resizer{cursor:col-resize;margin-left:calc(var(--jd-padding-default)/-2);padding-left:calc(var(--jd-padding-default)/2);padding-right:calc(var(--jd-padding-default)/2);position:absolute;z-index:3}.jodit-table-resizer:after{border:0;content:"";display:block;height:100%;width:0}.jodit-table-resizer_moved{background-color:var(--jd-color-background-selection);z-index:2}.jodit-table-resizer_moved:after{border-right:1px solid moved}[data-jodit_iframe_wrapper]{display:block;position:relative;user-select:none}[data-jodit_iframe_wrapper] iframe{position:relative}[data-jodit_iframe_wrapper]:after{background:transparent;content:"";cursor:pointer;display:block;inset:0;position:absolute;z-index:1}[data-jodit_iframe_wrapper][data-jodit-wrapper_active=true] iframe{z-index:2}.jodit_lock [data-jodit-wrapper_active=true] iframe{z-index:1}:root{--jd-viewer-width:70px;--jd-viewer-height:24px;--jd-resizer-handle-size:10px;--jd-resizer-border-color:#98c1f1;--jd-resizer-handle-color:#5ba4f3;--jd-resizer-handle-hover-color:#537ebb}.jodit-resizer{font-size:0;height:100px;left:0;outline:3px solid var(--jd-resizer-border-color);pointer-events:none;position:absolute;top:0;width:100px}.jodit-resizer,.jodit-resizer *{box-sizing:border-box}.jodit-resizer>span{background-color:var(--jd-color-placeholder);color:var(--jd-color-white);display:inline-block;font-size:12px;height:var(--jd-viewer-height);left:50%;line-height:var(--jd-viewer-height);margin-left:calc(var(--jd-viewer-width)/-2);margin-top:calc(var(--jd-viewer-height)/-2);opacity:0;overflow:visible;position:absolute;text-align:center;top:50%;transition:opacity .2s linear;width:var(--jd-viewer-width)}.jodit-resizer>div{background-color:var(--jd-resizer-handle-color);display:inline-block;height:var(--jd-resizer-handle-size);pointer-events:all;position:absolute;width:var(--jd-resizer-handle-size);z-index:4}.jodit-resizer>div:hover{background-color:var(--jd-resizer-handle-hover-color)}.jodit-resizer>div:first-child{cursor:nwse-resize;left:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(2){cursor:nesw-resize;right:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(3){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nwse-resize;right:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(4){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nesw-resize;left:calc(var(--jd-resizer-handle-size)/-2)}@media (max-width:768px){.jodit-resizer>div :root{--jd-resizer-handle-size:calc(var(--jd-resizer-handle-size)*2)}}:root{--jd-height-search:30px;--jd-width-search:320px;--jd-width-search-input-box:60%;--jd-width-search-count-box:15%;--jd-transform-button-active:0.95;--jd-timeout-button-active:0.1s}.jodit-ui-search{height:0;position:absolute;right:0;top:0;width:0}.jodit-ui-search_sticky_true{position:fixed}.jodit-ui-search__box{background-color:var(--jd-color-panel);border:solid var(--jd-color-border);border-width:0 0 1px 1px;display:flex;max-width:100vw;padding:calc(var(--jd-padding-default)/2);position:absolute;right:0;width:var(--jd-width-search)}.jodit-ui-search__box input{background-color:transparent;border:0;height:100%;margin:0;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-search__box input[data-ref=replace]{display:none}.jodit-ui-search__box input:not(:focus)+input:not(:focus){border-top:1px solid var(--jd-color-border)}.jodit-ui-search__buttons,.jodit-ui-search__counts,.jodit-ui-search__inputs{height:var(--jd-height-search)}.jodit-ui-search__inputs{padding-right:calc(var(--jd-padding-default)/2);width:var(--jd-width-search-input-box)}.jodit-ui-search__counts{border-left:1px solid var(--jd-color-border);color:var(--jd-color-border);width:var(--jd-width-search-count-box)}.jodit-ui-search__buttons,.jodit-ui-search__counts{align-items:center;display:flex;justify-content:center}.jodit-ui-search__buttons{flex:1;padding-left:0}.jodit-ui-search__buttons button{background-color:transparent;border:1px solid transparent;height:100%;margin-right:1%;width:32%}.jodit-ui-search__buttons button[data-ref=replace-btn]{border:1px solid var(--jd-color-border);display:none;margin-top:2px;width:100%}.jodit-ui-search__buttons button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-ui-search__buttons button:focus{border:1px solid var(--jd-color-background-selection-opacity50)}.jodit-ui-search__buttons button:active{border:1px solid var(--jd-color-background-selection);transform:scale(var(--jd-transform-button-active))}.jodit-ui-search_empty-query_true [data-ref=next],.jodit-ui-search_empty-query_true [data-ref=prev]{opacity:.5}.jodit-ui-search_replace_true .jodit-ui-search__counts,.jodit-ui-search_replace_true .jodit-ui-search__inputs{height:calc(var(--jd-height-search)*2)}.jodit-ui-search_replace_true .jodit-ui-search__counts input,.jodit-ui-search_replace_true .jodit-ui-search__inputs input{height:50%;transition:background-color var(--jd-timeout-button-active) linear}.jodit-ui-search_replace_true .jodit-ui-search__counts input:focus,.jodit-ui-search_replace_true .jodit-ui-search__inputs input:focus{box-shadow:inset 0 0 3px 0 var(--jd-color-border)}.jodit-ui-search_replace_true .jodit-ui-search__counts input[data-ref=replace],.jodit-ui-search_replace_true .jodit-ui-search__inputs input[data-ref=replace]{display:block}.jodit-ui-search_replace_true .jodit-ui-search__buttons{flex-wrap:wrap}.jodit-ui-search_replace_true .jodit-ui-search__buttons button[data-ref=replace-btn]{display:block}::highlight(jodit-search-result),[jd-tmp-selection]{background-color:var(--jd-color-background-selection);color:var(--jd-color-text-selection)}.jodit-container:not(.jodit_inline){min-height:100px}.jodit-container:not(.jodit_inline) .jodit-workplace{display:flex;flex-direction:column;height:auto;min-height:50px;overflow:hidden}.jodit-container:not(.jodit_inline) .jodit-editor__resize{position:relative}.jodit-container:not(.jodit_inline) .jodit-editor__resize svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-source{background-color:var(--jd-color-source-area);display:none;flex:auto;overflow:auto;position:relative}.jodit-source,.jodit-source .jodit-source__mirror-fake{min-height:100%}.jodit-source *{font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace}.jodit-container.jodit-source__mode .jodit-wysiwyg,.jodit-container.jodit-source__mode .jodit-wysiwyg_iframe{display:none!important}.jodit-container.jodit-source__mode .jodit-source{display:block!important}.jodit-container.jodit_split_mode .jodit-workplace{flex-flow:row nowrap}.jodit-container.jodit_split_mode .jodit-source,.jodit-container.jodit_split_mode .jodit-wysiwyg,.jodit-container.jodit_split_mode .jodit-wysiwyg_iframe{display:block!important;flex:1;width:50%}.jodit-source__mirror{background:var(--jd-color-source-area);border:0;box-shadow:none;box-sizing:border-box;color:#f0f0f0;height:100%;line-height:1.5;font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;margin:0;min-height:100%;outline:none;overflow:auto;padding:var(--jd-padding-default);resize:none;tab-size:2em;white-space:pre-wrap;width:100%;z-index:2}.jodit-source__mirror::selection{background:var(--jd-color-selection-area)}.jodit_sticky-dummy_toolbar{display:none}.jodit_sticky>.jodit-toolbar__box{border-bottom:1px solid var(--jd-color-border);left:auto;position:fixed;position:sticky;top:0;z-index:3}.jodit_sticky .jodit_sticky-dummy_toolbar{display:block}.jodit-symbols{padding:var(--jd-padding-default);width:460px}.jodit-symbols__container{display:flex}.jodit-symbols__container_table{width:88%}.jodit-symbols__container_preview{width:12%}.jodit-symbols__preview{border:1px solid var(--jd-color-border);font-size:34px;padding:20px 0;text-align:center}.jodit-symbols__table{border:0;border-spacing:0;table-layout:fixed}.jodit-symbols__table td{padding:0}.jodit-symbols__table td a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-text);cursor:pointer;display:inline-block;font-size:16px;height:calc(var(--jd-height-element-default)*1.2);line-height:calc(var(--jd-height-element-default)*1.2);text-align:center;text-decoration:none;vertical-align:top;width:calc(var(--jd-width-element-default)*1.2)}.jodit-symbols__table td a:focus,.jodit-symbols__table td a:hover{outline:2px solid var(--jd-color-border)}.jodit-ui-ai-assistant{min-width:460px;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-ui-ai-assistant{min-width:100%}}.jodit-ui-ai-assistant__body{margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row{align-items:flex-start;display:flex;margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row-label{margin-right:10px}.jodit-ui-ai-assistant__prompt-row-input{flex:1;margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-icon_ai_assistant{cursor:pointer;height:22px;width:22px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button{margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button_ai_assistant{margin-right:0;margin-top:20px}.jodit-ui-ai-assistant__results{border-color:var(--jd-color-label);border-style:solid;border-width:1px;height:300px;line-height:1.5;max-width:460px;min-height:300px;min-width:100%;overflow:auto;padding:var(--jd-padding-default);position:relative}.jodit-ui-ai-assistant__results p{margin:0 0 10px}.jodit-ui-ai-assistant__close{cursor:pointer;padding:10px;position:absolute;right:0;top:0}.jodit-ui-ai-assistant_hide_true{display:none}.jodit-ui-ai-assistant__spinner:before{animation:b .6s linear infinite;border:1px solid #ccc;border-radius:50%;border-top-color:#8817c3;box-sizing:border-box;content:"";height:30px;left:50%;margin-left:-15px;margin-top:-15px;position:absolute;top:50%;width:30px}.jodit-ui-ai-assistant__error{color:var(--jd-color-error)}.jodit-context table,.jodit-wysiwyg table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit-context table tr,.jodit-wysiwyg table tr{user-select:none}.jodit-context table tr td,.jodit-context table tr th,.jodit-wysiwyg table tr td,.jodit-wysiwyg table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-form__inserter{--jd-color-table-cell-background-hover:var(--jd-color-button-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box{display:flex}@media (max-width:768px){.jodit-form__inserter .jodit-form__table-creator-box{flex-direction:column}}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container{font-size:0;margin:0;min-width:180px;padding:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span{border:1px solid var(--jd-color-border);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--jd-height-element-default);margin-bottom:2px;margin-left:2px;vertical-align:top;width:var(--jd-width-element-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span:first-child{margin-left:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span.jodit_hovered{background:var(--jd-color-table-cell-background-hover);border-color:var(--jd-color-table-cell-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options{font-size:var(--jd-font-size-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label{padding-top:0;text-align:left}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label input{margin-right:var(--jd-padding-default)}.jodit-form__inserter label{font-size:14px;margin:0;padding:8px;text-align:center}.jodit-xpath{align-items:center;display:flex;margin-left:calc(var(--jd-padding-default)/-2)}.jodit-xpath__item{display:flex;height:var(--jd-font-size-small);line-height:calc(var(--jd-font-size-small) - 1px)}.jodit-xpath__item a{color:var(--jd-color-default);font-size:var(--jd-font-size-small);margin-left:2px;outline:0;padding:0 3px}:root{--jd-color-white:#fff;--jd-color-gray:#dadada;--jd-color-gray-dark:#a5a5a5;--jd-color-dark:#4c4c4c;--jd-color-blue:#b5d6fd;--jd-color-light-blue:rgba(181,214,253,.5);--jd-color-red:#ff3b3b;--jd-color-light-red:rgba(255,59,59,.4);--jd-color-default:var(--jd-color-dark);--jd-color-text:#222;--jd-color-label:var(--jd-color-gray-dark);--jd-color-error:var(--jd-color-red);--jd-color-border:var(--jd-color-gray);--jd-color-border-dark:var(--jd-color-dark);--jd-color-border-selected:#1e88e5;--jd-color-border-active:#b5b5b5;--jd-color-selection:var(--jd-color-dark);--jd-color-selection-area:#bdbdbd;--jd-color-separator:var(--jd-color-border);--jd-color-placeholder:var(--jd-color-gray-dark);--jd-color-panel:#f9f9f9;--jd-color-resizer:#c8c8c8;--jd-color-background-default:var(--jd-color-white);--jd-color-background-light-gray:#f5f5f6;--jd-color-background-gray:var(--jd-color-gray);--jd-color-background-gray-hover:#f8f8f8;--jd-color-background-button-hover:#ecebe9;--jd-color-background-button-hover-opacity30:hsla(40,7%,92%,.3);--jd-color-background-progress:#b91f1f;--jd-color-background-active:#2196f3;--jd-color-background-selection:#b5d6fd;--jd-color-text-selection:var(--jd-color-white);--jd-color-background-selection-opacity50:rgba(181,214,253,.995);--jd-color-source-area:#323232;--jd-color-button-background-hover:#dcdcdc;--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.4);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.6);--jd-font-default:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;--jd-font-size-default:14px;--jd-font-size-small:11px;--jd-color-text-icons:rgba(0,0,0,.75);--jd-color-icon:var(--jd-color-dark);--jd-padding-default:8px;--jd-border-radius-default:3px;--jd-icon-tiny-size:8px;--jd-icon-xsmall-size:10px;--jd-icon-small-size:12px;--jd-icon-middle-size:14px;--jd-icon-large-size:16px;--jd-z-index-full-size:100000;--jd-z-index-popup:10000001;--jd-z-index-dialog-overlay:20000003;--jd-z-index-dialog:20000004;--jd-z-index-context-menu:30000005;--jd-z-index-tooltip:30000006;--jd-icon-loader-size:48px;--jd-width-element-default:18px;--jd-height-element-default:18px;--jd-dark-background-color:#575757;--jd-dark-background-ligher:silver;--jd-dark-background-darknes:#353535;--jd-dark-border-color:#444;--jd-dark-text-color:#d1cccc;--jd-dark-text-color-opacity80:hsla(0,5%,81%,.8);--jd-dark-text-color-opacity50:hsla(0,5%,81%,.5);--jd-dark-icon-color:silver;--jd-dark-toolbar-color:#5f5c5c;--jd-dark-toolbar-seperator-color1:rgba(81,81,81,.41);--jd-dark-toolbar-seperator-color2:#686767;--jd-dark-toolbar-seperator-color-opacity80:hsla(0,0%,41%,.8);--jd-dark-toolbar-seperator-color3:hsla(0,0%,41%,.75);--jd-dark-color-border-selected:#152f5f;--jd-width-default:180px;--jd-width-input-min:var(--jd-width-default);--jd-input-height:32px;--jd-button-icon-size:14px;--jd-margin-v:2px;--jd-button-df-size:calc((var(--jd-button-icon-size) - 4px)*2);--jd-button-size:calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v)*2);--jd-focus-input-box-shadow:0 0 0 0.05rem rgba(0,123,255,.25)}.jodit-wysiwyg{outline:0}.jodit-wysiwyg ::selection,.jodit-wysiwyg::selection{background:#b5d6fd;color:#4c4c4c}.jodit-container:not(.jodit_inline) .jodit-wysiwyg{margin:0;outline:0;overflow-x:auto;padding:8px;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg img{max-width:100%;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media{position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media *{position:relative;z-index:0}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media:before{content:"";inset:0;position:absolute;z-index:1}:root{--jd-switche-width:60px;--jd-switche-height:32px;--jd-switche-slider-margin:4px;--jd-switche-slider-size:calc(var(--jd-switche-height) - var(--jd-switche-slider-margin)*2)}.jodit-form{color:var(--jd-color-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-form.jodit_error{border-color:var(--jd-color-error);box-shadow:inset 0 0 3px 0 hsla(0,0%,74%,.3)}@media (max-width:768px){.jodit-form{min-width:150px}}.jodit-form button{background:#d6d6d6;border:none;color:var(--jd-color-dark);cursor:pointer;font-size:16px;height:36px;line-height:1;margin-bottom:var(--jd-padding-default);margin-top:var(--jd-padding-default);outline:none;padding:var(--jd-padding-default);text-decoration:none;transition:background .2s ease 0s}.jodit-form button:hover{background-color:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form button:active{background:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form label{align-items:center;display:flex;margin-bottom:var(--jd-padding-default);text-align:left;white-space:nowrap}.jodit-form label:last-child{margin-bottom:0}.jodit-form .jodit-form__center{justify-content:center}.jodit .jodit-input,.jodit .jodit-select,.jodit .jodit-textarea{appearance:none;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit .jodit-input[disabled],.jodit .jodit-select[disabled],.jodit .jodit-textarea[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit .jodit-input_has-error_true,.jodit .jodit-select_has-error_true,.jodit .jodit-textarea_has-error_true{border-color:var(--jd-color-red)}.jodit .jodit-input:focus{border-color:#66afe9;outline:0}.jodit-checkbox{border:0;cursor:pointer;height:16px;margin:0 calc(var(--jd-padding-default)/2) 0 0;outline:none;padding:0;position:relative;width:16px;z-index:2}.jodit-select{background-image:url(${m});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-textarea{height:auto}.jodit-form__group,.jodit-textarea{min-width:var(--jd-width-input-min)}.jodit-form__group{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-form__group label{margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-button{align-items:center;background-color:var(--jd-color-background-gray);border:0;border-radius:.25rem;color:var(--jd-color-default);cursor:pointer;display:inline-flex;height:calc(var(--jd-padding-default)*4);justify-content:center;line-height:1;margin:0;padding:0 var(--jd-padding-default);position:relative;text-decoration:none;user-select:none;width:auto}.jodit-button svg{display:inline-block;height:24px;width:24px}.jodit-button svg+span{margin-left:calc(var(--jd-padding-default)/2)}.jodit-button:active,.jodit-button:focus{outline:0}.jodit-button.disabled{opacity:.7}.jodit-buttons{display:flex;flex-wrap:nowrap;justify-content:space-between;margin-bottom:var(--jd-padding-default)}.jodit-button .jodit_icon,.jodit-button svg,.jodit-dialog__header .jodit_icon,.jodit-dialog__header svg{display:inline-block;height:16px;vertical-align:middle;width:16px}.jodit-switcher-wrapper{align-items:center;display:flex}.jodit-switcher-wrapper .jodit-switcher+span{margin-left:var(--jd-padding-default)}.jodit-switcher{display:inline-block;height:var(--jd-switche-height);position:relative;width:var(--jd-switche-width)}.jodit-switcher input{height:0;opacity:0;width:0}.jodit-switcher .jodit-switcher__slider{background-color:var(--jd-color-gray);border-radius:var(--jd-switche-height);cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-switcher .jodit-switcher__slider:before{background-color:#fff;border-radius:50%;bottom:var(--jd-switche-slider-margin);content:"";height:var(--jd-switche-slider-size);left:var(--jd-switche-slider-margin);position:absolute;transition:.4s;width:var(--jd-switche-slider-size)}input:checked+.jodit-switcher__slider{background-color:var(--jd-color-background-active)}input:checked+.jodit-switcher__slider:before{transform:translateX(calc(var(--jd-switche-width) - var(--jd-switche-slider-margin)*2 - var(--jd-switche-slider-size)))}input:focus+.jodit-switcher__slider{box-shadow:0 0 1px var(--jd-color-background-active)}.jodit-button-group{display:flex}.jodit-button-group input{display:none}.jodit-button-group button{display:flex;flex:1;justify-content:center;text-align:center}.jodit-button-group button+button{margin-left:-1px}.jodit-button-group button:first-child,.jodit-button-group input:first-child+button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.jodit-button-group button:last-child,.jodit-button-group input:last-child+button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.jodit-button-group input[type=checkbox]:checked+button,.jodit-button-group input[type=checkbox]:not(:checked)+button+button{background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.05)}.jodit_text_icons .jodit_icon{font-size:var(--jd-font-size-default);width:auto}.jodit_text_icons .jodit_icon:first-letter{text-transform:uppercase}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a{font-family:var(--jd-font-default);width:auto}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a i{width:auto}.jodit_text_icons.jodit-dialog .jodit-button,.jodit_text_icons.jodit-dialog .jodit-dialog__header a{color:var(--jd-color-text-icons);font-family:var(--jd-font-default);padding:var(--jd-padding-default);width:auto}.jodit_text_icons.jodit-dialog .jodit-button .jodit_icon,.jodit_text_icons.jodit-dialog .jodit-dialog__header a .jodit_icon{width:auto}.jodit-grid{display:flex;width:100%}.jodit-grid.jodit-grid_column{flex-direction:column}@media (max-width:480px){.jodit-grid.jodit-grid_xs-column{flex-direction:column}}.jodit-grid [class*=jodit_col-]{flex:1 1 auto}.jodit-grid .jodit_col-lg-5-5{width:100%}.jodit-grid .jodit_col-lg-4-5{width:80%}.jodit-grid .jodit_col-lg-3-5{width:60%}.jodit-grid .jodit_col-lg-2-5{width:40%}.jodit-grid .jodit_col-lg-1-5{width:20%}.jodit-grid .jodit_col-lg-4-4{width:100%}.jodit-grid .jodit_col-lg-3-4{width:75%}.jodit-grid .jodit_col-lg-2-4{width:50%}.jodit-grid .jodit_col-lg-1-4{width:25%}@media (max-width:992px){.jodit-grid .jodit_col-md-5-5{width:100%}.jodit-grid .jodit_col-md-4-5{width:80%}.jodit-grid .jodit_col-md-3-5{width:60%}.jodit-grid .jodit_col-md-2-5{width:40%}.jodit-grid .jodit_col-md-1-5{width:20%}.jodit-grid .jodit_col-md-4-4{width:100%}.jodit-grid .jodit_col-md-3-4{width:75%}.jodit-grid .jodit_col-md-2-4{width:50%}.jodit-grid .jodit_col-md-1-4{width:25%}}@media (max-width:768px){.jodit-grid .jodit_col-sm-5-5{width:100%}.jodit-grid .jodit_col-sm-4-5{width:80%}.jodit-grid .jodit_col-sm-3-5{width:60%}.jodit-grid .jodit_col-sm-2-5{width:40%}.jodit-grid .jodit_col-sm-1-5{width:20%}.jodit-grid .jodit_col-sm-4-4{width:100%}.jodit-grid .jodit_col-sm-3-4{width:75%}.jodit-grid .jodit_col-sm-2-4{width:50%}.jodit-grid .jodit_col-sm-1-4{width:25%}}@media (max-width:480px){.jodit-grid .jodit_col-xs-5-5{width:100%}.jodit-grid .jodit_col-xs-4-5{width:80%}.jodit-grid .jodit_col-xs-3-5{width:60%}.jodit-grid .jodit_col-xs-2-5{width:40%}.jodit-grid .jodit_col-xs-1-5{width:20%}.jodit-grid .jodit_col-xs-4-4{width:100%}.jodit-grid .jodit_col-xs-3-4{width:75%}.jodit-grid .jodit_col-xs-2-4{width:50%}.jodit-grid .jodit_col-xs-1-4{width:25%}}@keyframes b{to{transform:rotate(1turn)}}.jodit-icon_loader{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;display:inline-block;height:var(--jd-icon-loader-size);vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-icon{background:50% no-repeat;background-size:contain;height:14px;overflow:visible;width:14px;fill:var(--jd-color-icon);transform-origin:0 0!important}.jodit-icon,.jodit-icon_close{stroke:var(--jd-color-icon)}svg.jodit-icon{height:auto;isolation:isolate}.jodit-icon_text{font-size:14px}.jodit,.jodit *,.jodit-container,.jodit-container *{box-sizing:border-box}.jodit .jodit-workplace,.jodit-container .jodit-workplace{overflow:auto;position:relative}.jodit .jodit-workplace .jodit-wysiwyg,.jodit .jodit-workplace .jodit-wysiwyg_iframe,.jodit-container .jodit-workplace .jodit-wysiwyg,.jodit-container .jodit-workplace .jodit-wysiwyg_iframe{height:100%;width:100%}.jodit-wysiwyg [contenteditable=false]{cursor:default}.jodit-container:not(.jodit_inline){background-color:var(--jd-color-background-light-gray);border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default)}.jodit-container:not(.jodit_inline) .jodit-workplace{background-color:var(--jd-color-background-default);border:0 solid var(--jd-color-border);max-height:100%}.jodit-container:not(.jodit_inline).jodit_disabled{background:var(--jd-color-background-gray)}.jodit-container:not(.jodit_inline).jodit_disabled .jodit-workplace{opacity:.4}.jodit_disabled,.jodit_lock{user-select:none!important}.jodit_hidden{display:none!important}.jodit_vertical_middle{align-items:center;display:flex}.jodit-box{background:0 0;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.jodit-dialog_theme_dark,.jodit_theme_dark{--jd-color-border:#6b6b6b;--jd-color-text:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size))}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){border-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after,.jodit_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after,.jodit_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after{border-right-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container,.jodit_theme_dark.jodit-container{background-color:var(--jd-dark-background-color);border-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container.jodit_disabled,.jodit_theme_dark.jodit-container.jodit_disabled{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace,.jodit_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace{border-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-popup__content,.jodit_theme_dark .jodit-popup__content{background:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-toolbar-button,.jodit-dialog_theme_dark .jodit-toolbar-select,.jodit-dialog_theme_dark .jodit-ui-button,.jodit_theme_dark .jodit-toolbar-button,.jodit_theme_dark .jodit-toolbar-select,.jodit_theme_dark .jodit-ui-button{--jd-color-icon:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-toolbar-button__text,.jodit-dialog_theme_dark .jodit-toolbar-select__text,.jodit-dialog_theme_dark .jodit-ui-button__text,.jodit_theme_dark .jodit-toolbar-button__text,.jodit_theme_dark .jodit-toolbar-select__text,.jodit_theme_dark .jodit-ui-button__text{color:var(--jd-color-text)}.jodit-dialog_theme_dark .jodit-toolbar-button .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-button svg,.jodit-dialog_theme_dark .jodit-toolbar-button__trigger,.jodit-dialog_theme_dark .jodit-toolbar-select .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-select svg,.jodit-dialog_theme_dark .jodit-toolbar-select__trigger,.jodit-dialog_theme_dark .jodit-ui-button .jodit-icon,.jodit-dialog_theme_dark .jodit-ui-button svg,.jodit-dialog_theme_dark .jodit-ui-button__trigger,.jodit_theme_dark .jodit-toolbar-button .jodit-icon,.jodit_theme_dark .jodit-toolbar-button svg,.jodit_theme_dark .jodit-toolbar-button__trigger,.jodit_theme_dark .jodit-toolbar-select .jodit-icon,.jodit_theme_dark .jodit-toolbar-select svg,.jodit_theme_dark .jodit-toolbar-select__trigger,.jodit_theme_dark .jodit-ui-button .jodit-icon,.jodit_theme_dark .jodit-ui-button svg,.jodit_theme_dark .jodit-ui-button__trigger{fill:var(--jd-color-icon);stroke:var(--jd-color-icon)}.jodit-dialog_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__trigger:hover:not([disabled]){--jd-color-text:var(--jd-dark-background-color);--jd-color-icon:var(--jd-dark-background-color);background-color:var(--jd-dark-background-ligher);color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty){background-color:var(--jd-dark-toolbar-color);border-color:var(--jd-color-border);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){background:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-icon-close,.jodit_theme_dark .jodit-icon-close{stroke:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-wysiwyg,.jodit-dialog_theme_dark .jodit-wysiwyg_iframe,.jodit_theme_dark .jodit-wysiwyg,.jodit_theme_dark .jodit-wysiwyg_iframe{background-color:var(--jd-dark-background-color);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form input[type=text],.jodit-dialog_theme_dark .jodit-form input[type=url],.jodit-dialog_theme_dark .jodit-form textarea,.jodit_theme_dark .jodit-form input[type=text],.jodit_theme_dark .jodit-form input[type=url],.jodit_theme_dark .jodit-form textarea{background-color:var(--jd-dark-toolbar-seperator-color1);border-color:var(--jd-dark-toolbar-seperator-color2);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form button,.jodit_theme_dark .jodit-form button{background-color:var(--jd-dark-toolbar-seperator-color3);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-placeholder,.jodit_theme_dark .jodit-placeholder{color:var(--jd-dark-text-color-opacity80)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box,.jodit-dialog_theme_dark .jodit_uploadfile_button,.jodit_theme_dark .jodit-drag-and-drop__file-box,.jodit_theme_dark .jodit_uploadfile_button{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit-dialog_theme_dark .jodit_uploadfile_button:hover,.jodit_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit_theme_dark .jodit_uploadfile_button:hover{background-color:var(--jd-dark-toolbar-seperator-color3)}.jodit-dialog_theme_dark .jodit-add-new-line:before,.jodit_theme_dark .jodit-add-new-line:before{border-top-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span,.jodit_theme_dark .jodit-add-new-line span{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span svg,.jodit_theme_dark .jodit-add-new-line span svg{fill:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-resizer>i,.jodit_theme_dark .jodit-resizer>i{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-input,.jodit-dialog_theme_dark .jodit-select,.jodit_theme_dark .jodit-input,.jodit_theme_dark .jodit-select{background-color:var(--jd-dark-background-ligher);border-color:var(--jd-dark-border-color);color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog,.jodit_theme_dark.jodit-dialog{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-dialog__header,.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item,.jodit_theme_dark.jodit-dialog .jodit-dialog__header,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item{border-color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info{background-color:var(--jd-dark-text-color)}`,""]);const g=f},72:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=n.base?l[0]+n.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=r(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=r(i[a]);t[s].references--}for(var l=n(e,o),c=0;c<i.length;c++){var u=r(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},659:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},333:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},504:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},772:e=>{e.exports=function(e){return e[1]}},789:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAABRsSURBVHja7F1/aJfVGn/33RgUg8FiNfK2WCykyS7GLoYyUbwYipZMumgLo+iPS9HlXhSHkRXdislESxMz0mapuaFo2myjkfnNlTQ2FJdTu8NvLVcrdbpcfGvxrfs823m/vXt3fjznvOedzr0PPJzzPe+7d+97Ps95nuc851fGAw884CD98ccfI1Jqmc3UpEyQz4FkMqRTgYshn8fymZ57SyGbzf5mENIOz9+ngE9Atg/SLkhPQHoWeEDn3SmpSZlJnvf7ypUrTpb7IyMjY+gGN6WWmaY84l2T3c+u58D1csjOgvwsyBdBvsDRo2zgMl/ZNM59vcAJ4Dj8nzikLa5QmBLv28YCfPd3li7gPHBMwKdcEwhCJgN6FoLOWJtUgiWovALG04FXsbI44xbgw8AplbaU/Q+ZQNgGf0gA/JWhC1aQyle1eN91rPRKKKuEsjzZvSph0m2RiutpIYRrfZC8B+l7kB6jgq0CnQIy9X39v2NYQW5FeUFQlQVN/aALyiYBPw/5M5B+Dvw02vMggqcDukEl57F3xHf9H747+4bA5oD6dzqaYEgAqIDbBl9RhvZ4H/B5yL+IDp3oXhmwNkm3lTLn80VIz+O3QFqm2/rHwgeI6QDOa006LZ3Q4lHNNwK3AVeYAD4WgmHQUivYNzWyb7xufICYaavXVbuKZ6MXfwRVJ+TnXW+Am/oMnNaO3/Y5pPitcyh/a6LqtXwAt+J01LVFEzAJ0jpIj7JunJYd1wHchnBQHUSC3Uan8WPgPVgHlBiBCcAkH4Da2i2DjwGZlcy5W0K17zLwVb9NgaY4iJpawJs+BCnWwUo3SKXT4oOAP8IHCFsIfMCguj8JaQ2kOaaA227d10ALuIR1gHVxErjctPtHBd8btSR3A4MIgSePAZxqVPeQlthq7ZRuZVABCVkLuGkJpGgKsY4ybfUEVO84qhsoAzSgrUfHZ1UQVe99B6o2oMYdwg7latAq5iROGoueQExW6UE0gCe/ANIh9SZ6jqkWsN3STZ0rHWEgpkNmEvILxqQbSAXaAPxqSBswQkbpbpo6fGPR0m3GBYjBIIwqNjCTEAr4wkBQUA0AjKNrdZCu0okAqgQhTKCDhFxV91BNgsDuYx3WQZptG3xtDUCJEDKvthGuLVEJlq4gUMyAylfQERadPrhKOHTmB3Ces4RFEXNsgW8UClbZcEhxqPQIpHOord2k1ZsAH4YvYNJXN3EgWX4Ocw4LbIEvDQSJfADJtULWxSuj+BBUP4DaC6D0DkyFg6JKTVo/5brvXqzbo2zSi3af3/9bGgrW1Ar5kH4MXEzVHEHVf5CuYZC4fti9AoI/gXX8Eda5Tp9f9I4xWWsnOoc5zNMv1okjmKp/vzay3epNJ4+YmALdoWBPWTHksc5zTU1AekqYt7LcWTruTYTZQdmQHoB0GuXv/de8L8e7xrsuA8kPNtx3AZIOxp3APc7wvD6kvi+//DLh3nvPPfegWs1jf4dBGGxpOA+hlOXzgw7VBjEBnDKcs4jzDOZDOmjqD2SJQFGBx9JaSOcQ7xVO2RIJhf86AfB+Z3huHs7Ra2pra+ugtubTp0+jMLgC0e6/ftddd6EgzMO5iGwSaq4NITCdLczy6GzXAj8KnDIxAaM0AKeViwCtgbRSNgGUJwQyDaACngO4w6S/CXgb8KEvvvgiFUaw59y5c64mWXvnnXdmsijdYxjpdP6cXh6oS0g1Bb48zpFEzValA3663pcuXaoleSzFltBIlWhRmWx+v6yMcQJ4PU7A/Oyzz/qca0R33HEHrjlAEJa73rns24JqA0keTUGTjglIJpNOxsMPP6wLfiGkx53hxRbcewwXc1BAx0u4gGMNcP2nn36acq4juv322ytZ5K7UlhBo5LER3AvcTXU60wKgYbsyWTCi3LTV6wLvKesGrvrkk0/qneucCgoKHoJkHbxvYRAhMMij/zMbVzZRTMAvv/wycj4AoRv4Mk7oII4HkLp+vC6drwxt/FrgKeMBfKTe3t69UMFTgPG9B3WcQdMeBsvjhJJqnYGqjMrKSmr/tZxNWAi87o9i+1l5O6SPNjc3dzrjlPLz83HyC/aWpqk0gWZUUHZtJvxuUZmAtAYgtHycr/a6qIXz2DQI5OH1UDRjPIOPdOHChU6o+JmQXW+68JYS4vUB/bozvN5RGAImdwPZA3AC51RKrMAfyBHFGCRBnz4oe7ypqemgc4PQxYsX0YytuOWWW3BRaa3DWd0U1A/w/Z4KvBx4jcoExAitE6dzPStr3RR/QKQ5fOUJ4PsaGxtvGPC9dOnSJfyu+7ALa9MJFPx+lkU05YNBBDVdg0uwKc4eAWCZ83cC8jM+/PDDLucGpr6+Pvy+GWz/ASs9AMFvd7ax1ATEFOBjmLdSBraN3gBwHHhmQ0NDrzMB6PLly73MUYubOs3EiB/GJebyTEB6QogCnGrV6KAFR7AVeP4HH3ww4EwgunLlCn7vfACi1UQDqMb5PWUvm5qAB3HESXNomKz2GaOHv/DAgQNJZwJSf38/fvdC3J5G1iPQnf3jK5sGvx80MQHP69hxHWZ/2wN8//vvv3/BmcD0008/XWCaoEcUJ6C0eoUWeFbXBOBCzTKKJ2/YExgEXrRv374eJyLn6tWrWA+LAJRBy+o/rQUQUx0TsFwzRKzLK/bu3dseQf8nDQwMYH2sCOL0ibx9Vr6cagIKmf0nxe8pguC7vn/Pnj2bIshH088//4z1st+m+veUI6ZFFBOwLGj/XqIh0O4/HkEtJgDmcZ4/EED9e69VKk0ACoDN1u/jqrq6uv4IZjElk0msnypbwPs0wTKVCUBnYbLuMC5REA7v3r37vQhikhBgPTWrTAEFeB9NZt3C0SbAr/6DdPM4jF7/PyNotUzBU26vgAo8x+7zri3jmgAgnOJdKYrVB9QEb+zcubMrgpVOv/76K9bXGzrACwTJfw1D+9k8EzAXOE8GviEPAK+JIDXSAlhvA7yWTWztvMfiXM65PBNQrgLfUBi2v/vuu70RnPo0ODjYC0BtN3D2VNfLR5gAz04eRn17yb0p4A0RlIEI6y+la/MV1xf4fYACSEtDiP031dbWRrY/AP32229dAGCTrs1XrHHEaesFXh+gXCfooyEM2yIIrdC2ADZ/1D1eM+CagHLJ5ExTxrl9hyLsrDiDWI99EjApgPvLRwhAmQh4HV/Axwe3bt06GMEXnFKpFK4tOBgQcH95WdoEAE01nc8Xi8VEArA3gs4q7VWpfsHaCpEg4GrnoeXhOEKUw3u4yZYqbGo4Lk2KR5hZpcOsXjO9GIm0AYFycTErmoDJVLWu0Tto3bJly0CEmT36/fffkzh/UKfVE3yLkix3Xx+v5FjYaaslgiwUZxDrdbrm38guF6EAFFKAF5kEwcFPrRFcoVCrIdAiKsSlYUWqFi/zBwTXOiKsQqGOIKe1cQRmSAPkmYIv0ADY9Yuif+GYgC5Wv9kB1L6X8lAA8k3BFwhB94YNG1IRXPYJutwpINwBpNjSI/O5AhDQGUxEUIVKCRMBEGiFIQG4yX+Daf+fPacvwihUM2Czfm/KcgMLtjZZhudEY//hks2VVJlZ7tJvi5SMMApVA9gMsOVkXYvDFiO6fggFACUqJ6qKcaMBbD5uAH2AlE0fIKJxRSnUAGizcykePtWzjOo1VA2gpa0V2CVRALBbURDwQV4qiGAKVQDyLZ571JfFum0lFqTJvScvgilUytPxAxSY9boawMbD3OtFEUahaoAinQap0gA4JSzhPswSFz733HOZEVT2KZlMYr0WesGV7KpOoQRqgG6DVi4rx5EqjFWfjSCz3vqLHd9IoGyYnoBjNwpAwhBoWXlpJAChCECpv66p5ycJBCSBcwI7daZ7E83FtAiuUGgaT/WLACaYhk4MBCVk0UDKWb2c3+URVqFogOm8OqccqMW5d+Dmm29OuGsDOyw7gmUvvfRSFBCySFevXsX6LBO1cIoG8NEQ5u7KoFbLi0Kz3fODI7JGeHbwTSJADcxCq1cAWnR39yYIQUWEmVX1X2G6SYTgnhavABwL0uoF91dUV1dnR9AFp/7+fjysq0IGvIEGODYkAOwa7t/XYXl3kDzgBRF8Vgg3eczT2SqGYP97vBoA83ELrd6/WPSJCDsr6v8Jw91BRdfS6za9ewQ1qVo9RQv47plXU1NTHEFoTpcvX8aTwueJgKdoAI4wpE8Y9e4SdtgdGLK4S1gm8L8jGAO1fqy/TNmiUE1hQIwPj9AADOQk7ugRdJ9ADj+2bt26aI6AAV26dAnr7THqnsFEYTgEnBRtFl0fwk6hOcCrIjiNaBXOAKIcuq3hG4w4fTXma+lNOEHEZFs4hcA8+eqrr0a+gAZdvHgRbf+TsrMDDMxBr2v/eT7A0L5+8HN7AKdPFhncHMGqZftfB84Wga0yBwKtsN1hk4B5PsCIrd0C2HwRz924cWNlBK2afvzxx0rX89c5Qo4gCNv85bwDI7r8XUKqynfL/KmHazZt2pQbQSymH374AffuqeEB7gWXCrzHFCCmXf5niE4NWxPkJFAJ41GmtRHMUtWP9TNJdYScgQZYo3NoFEYF21WmgAq8776KzZs3Px1BPZq+//57rJcKXhg3oClo90b/qCeHvqLjA2j6B+u2bNlSFkH+J3333XdlAMo6ntq3cJroK6K4gOzgyP2oBaj2nqIdPGXYKzjw5ptvToqgd5yenh5U+Qcgmy07UdxQA7QD7xfFClSnh68Oelag6H5n+Fj6j9566638iQz++fPn8wGMRq/dV4EviwVwrq0W9QpUJsAdINof5LRQxfNLgBu2bt06IaePffvttzjDp8EZ3r6dDL7sQEkfyAdVW82rjo9H/hdkB2y2ft89eEB149tvvz2hlqh/8803OazlTzMFX6ENcKLvU7LgEMUEuIc9vqLb+inBJE8ezyo+un379gkxaPT111/jdx4FEGbJwOd1A2VdQ9896Pj1qIJDMSJI6yHpNGnpGlHFqVgp77zzzg29tjCRSBQx8KfKWrmJBvDkO4HXU3oI7pQwFUDpc/8s9ABk14uB23bs2HFDTiU7d+7cAqj4NrbESxtojeAQYjWoOnyaqwF4AsFSnDm81lT1y2YZ+cpwLmHDzp07a3bt2nVDTCrt6urKBq5hDl8eBXCTHgGjtWxTaVK8IEYFjKWrvVPIdU8VE2kMgUCsBD6ye/fukvEM/ldffVUCFX4EsitVtl3UYjU0wDHg1dQIodQJFJShKXgE0j5dLaACn6MJkKcDH6+rq6uur68fV72EM2fO5Jw9e7YasseBp5u0cKoQsDxO9Vrqqn6R2hdGAjWEoBvSR03B9wPNA95HGDVcBXxqz549D40H8E+fPo3vecoZntGTreqzmwgBRyDw2Plu3TBxxmuvvcYFUQYwy+OQ5UoV6DITQzEJnGsdbLSyfvHixdfVptSnTp2qZMJaqtsVVtWbAiP0zap498ryt956q5OxYcMGyj/gpbhbxS5IlwSJBQQYYsZVzWtREBYtWnTN9ic+efIkOq1LmM9SZDKplioQgrJ6ZpZTVODd32kBIEoZL0UvvdFdCBoUfGo8gXM0/UHgHTireeHChaFrhePHj+N0dzxqdxnwg2xwS0vD6YIvwAOnd89nvhkZeJduu+02J2Pjxo0UKZO9GM7w+cjdFMIgCmiqAXj39bO5DPFYLNY8b948ayeXtLW1lbIT1mcxzjVZUGtqCjh44Bj/34H7ZXjJhCItAAHAd1Mc0fvcPYAqCPhBhIHDF5jP0MF2QkmwE02HTMjs2bPTpqOlpSXPVeHABSwoVcLsOebzTWZH2fADOClO7ZqB3yfDTWUSUACyiHZG9UJY0SiNH7PKIjsiqt6BooegIhTMOYxHUTweN3q26EAN/wkr3t+qvEaKczbvxzoXPcf7brL/a9oNFKXYPZzpnUpGlX6dbqHIDIRNlIWXsuibbjdQkGLdzoQ0YfJ/uJFAamsndllw19HZzDlxVGFmkcqilFnSEFotnnKNOlZPGQX0lWOdzoa01xR47nCwDtBEpwbHoedj94wy0KSKCOoIQhgaQrXZgkoYdMCXPAvrcr57WITuXEHlcLCu00cQGjza7BEcRjbRAFSNQAXXVAh0zuY1BV/Q2r3pekixnz+oGRomvVtMV9Vr3I/98RXAC73LzoM4grIWb1sIxgp8iSnAOlsIKdZhynB8QG8wiKIBDPyCQ5C9F0cRKY6gDFwZ2DaFIEzwCS3e3b/nXlzKras1dFr/KA2go/5FLVRwfzdzDtfodgupZoFqGohbqIYGPsH+Yx3NxF6V7D2omkXlmMZM1T8PDMXfoUl4BruKkHaaaANbtj2MnoEJ+L6/72RdvGe8Kt9kjqBOj4SsAUyvce7BCSV/Ba6C/EBYXcSg5oIKtqkj5ikbgLSKqfwWaheRWqZ6j1gIAFPuQW2AI3lTIN0b1CSonMSwYgCU6wqQ8NunsOHcQcozVKZIVwhiKjVuMEihY0YwevgPSDG0eUy3ezjWYOsEhRRAHWPf/A93Egc1MKTj+FGEIGZhIEgJiMzPYPlmHNxgjmLTtRSCsOw+o2YWzcNvbTYIBVsVgrQGsAW+6cCSJx9nUcS/QbrfVAjCDgQZ/P1+yOM33Q9pPMizqCaAKgSxsMCntk6B2sdVyYsh/QvwC7hriY4QhCkUGi0e3/kF/AYow29pJ8YArJkAihDEwgRfVyNw8rif7X+B74Y8qs03nOGNDq0IgQ3Afff0sXecAfm72bv3UFoxpdWbtH7V32cFcfgoLcyCEKQdJ9zVHNL/AM9ijOP808MYD/CP7UvuO8ZGP+OMB3nP4T1PNfYvey/KXAPKd2XpevA27iWYANk9g8yZamblOa5A4FQtZ/jEsjybWsBTaX1sQkbcA/iACAQd0E2EQgU8RUiyKC02qGnQjS6qwPP9LQJwiLFLuUwQcBuaIiYQuBjTPc8wk/32VtYJFq104xQnmLlJMPuNNr3fUEuQQtDUVm8DeNcc/F+AAQBKd8HaIWdjwQAAAABJRU5ErkJggg=="},523:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJMYXllcl8xIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NH08L3N0eWxlPjwvZGVmcz48dGl0bGU+YXJyb3dzPC90aXRsZT48cGF0aCBkPSJNMCAwaDQuOTV2MTBIMHoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJtMS40MSA0LjY3IDEuMDctMS40OSAxLjA2IDEuNDl6TTMuNTQgNS4zMyAyLjQ4IDYuODIgMS40MSA1LjMzeiIgY2xhc3M9ImNscy0yIi8+PC9zdmc+"},65:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 id=%27Layer_1%27 data-name=%27Layer 1%27 viewBox=%270 0 4.95 10%27%3E%3Cdefs%3E%3Cstyle%3E.cls-2{fill:%23444}%3C/style%3E%3C/defs%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d=%27M0 0h4.95v10H0z%27 style=%27fill:%23fff%27/%3E%3Cpath d=%27m1.41 4.67 1.07-1.49 1.06 1.49zM3.54 5.33 2.48 6.82 1.41 5.33z%27 class=%27cls-2%27/%3E%3C/svg%3E"},442:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};n.r(o),n.d(o,{Jodit:()=>uT,default:()=>fT});var i={};n.r(i),n.d(i,{ACCURACY:()=>Kt,APP_VERSION:()=>lt,BASE_PATH:()=>vr,BASE_PATH_IS_MIN:()=>br,BR:()=>Jt,CLIPBOARD_ID:()=>Sr,COMMAND_KEYS:()=>Yt,EMULATE_DBLCLICK_TIMEOUT:()=>ar,ES:()=>ct,FAT_MODE:()=>ht,HOMEPAGE:()=>mt,INSEPARABLE_TAGS:()=>Rt,INSERT_AS_HTML:()=>sr,INSERT_AS_TEXT:()=>cr,INSERT_CLEAR_HTML:()=>lr,INSERT_ONLY_TEXT:()=>ur,INVISIBLE_SPACE:()=>vt,INVISIBLE_SPACE_REG_EXP:()=>_t,INVISIBLE_SPACE_REG_EXP_END:()=>wt,INVISIBLE_SPACE_REG_EXP_START:()=>St,IS_BLOCK:()=>Ct,IS_ES_MODERN:()=>ut,IS_ES_NEXT:()=>dt,IS_IE:()=>tr,IS_INLINE:()=>jt,IS_MAC:()=>fr,IS_PROD:()=>ft,IS_TEST:()=>pt,KEY_ALIASES:()=>pr,KEY_ALT:()=>Ft,KEY_BACKSPACE:()=>Dt,KEY_DELETE:()=>Wt,KEY_DOWN:()=>qt,KEY_ENTER:()=>Lt,KEY_ESC:()=>Bt,KEY_F3:()=>Gt,KEY_LEFT:()=>zt,KEY_META:()=>Mt,KEY_RIGHT:()=>Ht,KEY_SPACE:()=>Vt,KEY_TAB:()=>Nt,KEY_UP:()=>Ut,LIST_TAGS:()=>Pt,MARKER_CLASS:()=>ir,MODE_SOURCE:()=>Zt,MODE_SPLIT:()=>er,MODE_WYSIWYG:()=>Qt,NBSP_SPACE:()=>bt,NEARBY:()=>$t,NO_EMPTY_TAGS:()=>At,PARAGRAPH:()=>Xt,PASSIVE_EVENTS:()=>kr,SAFE_COUNT_CHANGE_CALL:()=>dr,SET_TEST:()=>gt,SOURCE_CONSUMER:()=>Er,SPACE_REG_EXP:()=>Et,SPACE_REG_EXP_END:()=>xt,SPACE_REG_EXP_START:()=>kt,TEMP_ATTR:()=>_r,TEXT_HTML:()=>nr,TEXT_PLAIN:()=>rr,TEXT_RTF:()=>or,TOKENS:()=>yt,globalDocument:()=>Ot,globalWindow:()=>Tt,lang:()=>wr});var a={};n.r(a),n.d(a,{$$:()=>Yo,CamelCaseToKebabCase:()=>On,ConfigDeepFlatten:()=>bo,ConfigFlatten:()=>vo,ConfigProto:()=>yo,ConnectionError:()=>Io,LimitedStack:()=>oi,NUMBER_FIELDS_REG:()=>Cn,OptionsError:()=>Lo,abort:()=>ko,alignElement:()=>Nn,alreadyLoadedList:()=>Bn,appendScriptAsync:()=>zn,appendStyleAsync:()=>Un,applyStyles:()=>Ci,asArray:()=>xi,assert:()=>Jn,attr:()=>Xn,browser:()=>Qn,buildQuery:()=>Zn,call:()=>so,callPromise:()=>co,camelCase:()=>In,cleanFromWord:()=>ji,clearAlign:()=>Dn,clearCenterAlign:()=>An,clearTimeout:()=>_i,cns:()=>Wo,colorToHex:()=>xn,completeUrl:()=>Ln,connection:()=>Fo,convertMediaUrlToVideoEmbed:()=>wo,css:()=>Rn,cssPath:()=>Qo,ctrlKey:()=>So,dataBind:()=>io,defaultLanguage:()=>Eo,error:()=>Bo,fastClone:()=>no,fuzzySearchIndex:()=>Xi,get:()=>Lr,getClassName:()=>Ho,getContentWidth:()=>Wi,getDataTransfer:()=>ho,getScrollParent:()=>Gi,getXPathByElement:()=>Jo,hAlignElement:()=>Mn,hasBrowserColorPicker:()=>Ur,hasContainer:()=>Qr,htmlspecialchars:()=>Pi,humanSizeToBytes:()=>qo,i18n:()=>ea,inView:()=>ti,innerWidth:()=>$i,isAbort:()=>xo,isAbortError:()=>Hr,isArray:()=>Ar,isAtom:()=>to,isBoolean:()=>qr,isDestructable:()=>Xr,isEqual:()=>Gr,isFastEqual:()=>$r,isFunction:()=>Rr,isHTML:()=>Kr,isHtmlFromWord:()=>Yr,isInitable:()=>Jr,isInt:()=>en,isJoditObject:()=>rn,isLicense:()=>nn,isMarker:()=>on,isNativeFunction:()=>Ir,isNumber:()=>an,isNumeric:()=>Zr,isPlainObject:()=>ln,isPromise:()=>cn,isSet:()=>un,isString:()=>Mr,isStringArray:()=>Dr,isURL:()=>dn,isValidName:()=>fn,isViewObject:()=>pn,isVoid:()=>Nr,isWindow:()=>sn,kebabCase:()=>Tn,keepNames:()=>Uo,keys:()=>fo,loadImage:()=>uo,loadNext:()=>Hn,loadNextStyle:()=>qn,markAsAtomic:()=>ro,markDeprecated:()=>Go,markOwner:()=>lo,memorizeExec:()=>po,nl2br:()=>Ii,normalizeColor:()=>Bi,normalizeCssNumericValue:()=>jn,normalizeCssValue:()=>Pn,normalizeKeyAliases:()=>Fi,normalizeLicense:()=>zi,normalizePath:()=>Ui,normalizeRelativePath:()=>Hi,normalizeSize:()=>qi,normalizeUrl:()=>Vi,offset:()=>Yi,options:()=>zo,parseQuery:()=>_o,position:()=>Ji,previewBox:()=>ei,refs:()=>Xo,reset:()=>Fr,resolveElement:()=>Zo,safeHTML:()=>Ri,sanitizeHTMLElement:()=>Ai,scrollIntoViewIfNeeded:()=>ri,set:()=>ni,setTimeout:()=>bi,size:()=>Ki,splitArray:()=>Ti,sprintf:()=>Zi,stringify:()=>Wr,stripTags:()=>Li,toArray:()=>zr,trim:()=>hn,trimChars:()=>mn,trimInv:()=>gn,ucfirst:()=>Qi});var s={};n.r(s),n.d(s,{autobind:()=>jr,cache:()=>ui,cacheHTML:()=>di,cached:()=>ci,component:()=>gi,debounce:()=>qa,derive:()=>$a,getPropertyDescriptor:()=>ya,hook:()=>Ka,idle:()=>Ja,nonenumerable:()=>Xa,persistent:()=>Qa,throttle:()=>Va,wait:()=>es,watch:()=>va});var l={};n.r(l),n.d(l,{required:()=>Il,url:()=>Rl});var c={};n.r(c),n.d(c,{Ajax:()=>ls,Alert:()=>Ed,Async:()=>ki,Button:()=>cl,CommitStyle:()=>kh,Component:()=>Na,Confirm:()=>kd,ContextMenu:()=>Ad,Create:()=>Kc,Dialog:()=>Sd,Dom:()=>li,EventEmitter:()=>fa,EventHandlersStore:()=>ca,Eventify:()=>vn,FileBrowser:()=>zf,Helpers:()=>a,History:()=>sp,Icon:()=>ds,ImageEditor:()=>pf,LazyWalker:()=>kn,Plugin:()=>$f,PluginSystem:()=>sa,Popup:()=>Uc,ProgressBar:()=>$c,Prompt:()=>xd,Response:()=>os,STATUSES:()=>Pr,Selection:()=>jh,Snapshot:()=>ep,StatusBar:()=>pp,Table:()=>wp,ToolbarButton:()=>Bu,ToolbarCollection:()=>Tu,ToolbarContent:()=>Vu,ToolbarEditorCollection:()=>rd,ToolbarSelect:()=>Ju,UIBlock:()=>Pl,UIButton:()=>ll,UIButtonGroup:()=>ml,UIButtonState:()=>sl,UICheckbox:()=>Sc,UIElement:()=>bs,UIFileInput:()=>jc,UIForm:()=>nc,UIGroup:()=>js,UIInput:()=>Hl,UIList:()=>el,UIMessages:()=>cu,UISelect:()=>Xl,UISeparator:()=>Ms,UISpacer:()=>Fs,UITextArea:()=>fc,UITooltip:()=>xl,Uploader:()=>Np,View:()=>vu,ViewComponent:()=>Ha,ViewWithToolbar:()=>pd,defaultNameSpace:()=>la,observable:()=>Ea});var u={};n.r(u),n.d(u,{angle_down:()=>Gh,angle_left:()=>$h,angle_right:()=>Kh,angle_up:()=>Yh,bin:()=>Jh,cancel:()=>Xh,center:()=>Qh,check:()=>Zh,chevron:()=>em,dots:()=>tm,eye:()=>rm,file:()=>nm,folder:()=>om,info_circle:()=>im,left:()=>am,lock:()=>sm,ok:()=>lm,pencil:()=>cm,plus:()=>um,resize_handler:()=>dm,right:()=>fm,save:()=>pm,settings:()=>hm,unlock:()=>mm,update:()=>gm,upload:()=>ym,valign:()=>vm});var d={};n.r(d),n.d(d,{removeExtraBr:()=>Cy});var f={};n.r(f),n.d(f,{checkBlockNesting:()=>jy});var p={};n.r(p),n.d(p,{allowAttributes:()=>vv,fillEmptyParagraph:()=>_v,removeEmptyTextNode:()=>wv,removeInvTextNodes:()=>Sv,replaceOldTags:()=>Ev,sanitizeAttributes:()=>kv,tryRemoveNode:()=>xv});var h={};n.r(h),n.d(h,{ar:()=>Lv,cs_cz:()=>Bv,de:()=>Fv,es:()=>zv,fa:()=>Uv,fi:()=>Hv,fr:()=>qv,he:()=>Vv,hu:()=>Wv,id:()=>Gv,it:()=>$v,ja:()=>Kv,ko:()=>Yv,mn:()=>Jv,nl:()=>Xv,pl:()=>Qv,pt_br:()=>Zv,ru:()=>eb,tr:()=>tb,zh_cn:()=>rb,zh_tw:()=>nb});var m={};n.r(m),n.d(m,{default:()=>U_});var g={};n.r(g),n.d(g,{default:()=>H_});var y={};n.r(y),n.d(y,{default:()=>q_});var v={};n.r(v),n.d(v,{default:()=>V_});var b={};n.r(b),n.d(b,{default:()=>W_});var _={};n.r(_),n.d(_,{default:()=>G_});var w={};n.r(w),n.d(w,{default:()=>$_});var S={};n.r(S),n.d(S,{default:()=>K_});var E={};n.r(E),n.d(E,{default:()=>Y_});var k={};n.r(k),n.d(k,{default:()=>J_});var x={};n.r(x),n.d(x,{default:()=>X_});var T={};n.r(T),n.d(T,{default:()=>Q_});var O={};n.r(O),n.d(O,{default:()=>Z_});var C={};n.r(C),n.d(C,{default:()=>ew});var j={};n.r(j),n.d(j,{default:()=>tw});var P={};n.r(P),n.d(P,{default:()=>rw});var I={};n.r(I),n.d(I,{default:()=>nw});var R={};n.r(R),n.d(R,{default:()=>ow});var A={};n.r(A),n.d(A,{default:()=>iw});var M={};n.r(M),n.d(M,{default:()=>aw});var D={};n.r(D),n.d(D,{default:()=>sw});var N={};n.r(N),n.d(N,{default:()=>lw});var L={};n.r(L),n.d(L,{ar:()=>m,cs_cz:()=>g,de:()=>y,es:()=>v,fa:()=>b,fi:()=>_,fr:()=>w,he:()=>S,hu:()=>E,id:()=>k,it:()=>x,ja:()=>T,ko:()=>O,mn:()=>C,nl:()=>j,pl:()=>P,pt_br:()=>I,ru:()=>R,tr:()=>A,ua:()=>M,zh_cn:()=>D,zh_tw:()=>N});var B={};n.r(B),n.d(B,{default:()=>IE});var F={};n.r(F),n.d(F,{default:()=>RE});var z={};n.r(z),n.d(z,{default:()=>AE});var U={};n.r(U),n.d(U,{default:()=>ME});var H={};n.r(H),n.d(H,{default:()=>DE});var q={};n.r(q),n.d(q,{default:()=>NE});var V={};n.r(V),n.d(V,{default:()=>LE});var W={};n.r(W),n.d(W,{default:()=>BE});var G={};n.r(G),n.d(G,{default:()=>FE});var $={};n.r($),n.d($,{default:()=>zE});var K={};n.r(K),n.d(K,{default:()=>UE});var Y={};n.r(Y),n.d(Y,{default:()=>HE});var J={};n.r(J),n.d(J,{default:()=>qE});var X={};n.r(X),n.d(X,{default:()=>VE});var Q={};n.r(Q),n.d(Q,{default:()=>WE});var Z={};n.r(Z),n.d(Z,{default:()=>GE});var ee={};n.r(ee),n.d(ee,{default:()=>$E});var te={};n.r(te),n.d(te,{default:()=>KE});var re={};n.r(re),n.d(re,{default:()=>YE});var ne={};n.r(ne),n.d(ne,{default:()=>JE});var oe={};n.r(oe),n.d(oe,{default:()=>XE});var ie={};n.r(ie),n.d(ie,{default:()=>QE});var ae={};n.r(ae),n.d(ae,{default:()=>ZE});var se={};n.r(se),n.d(se,{ar:()=>B,cs_cz:()=>F,de:()=>z,es:()=>U,fa:()=>H,fi:()=>q,fr:()=>V,he:()=>W,hu:()=>G,id:()=>$,it:()=>K,ja:()=>Y,ko:()=>J,mn:()=>X,nl:()=>Q,no:()=>Z,pl:()=>ee,pt_br:()=>te,ru:()=>re,tr:()=>ne,ua:()=>oe,zh_cn:()=>ie,zh_tw:()=>ae});var le={};n.r(le),n.d(le,{default:()=>mk});var ce={};n.r(ce),n.d(ce,{default:()=>gk});var ue={};n.r(ue),n.d(ue,{default:()=>yk});var de={};n.r(de),n.d(de,{default:()=>vk});var fe={};n.r(fe),n.d(fe,{default:()=>bk});var pe={};n.r(pe),n.d(pe,{default:()=>_k});var he={};n.r(he),n.d(he,{default:()=>wk});var me={};n.r(me),n.d(me,{default:()=>Sk});var ge={};n.r(ge),n.d(ge,{default:()=>Ek});var ye={};n.r(ye),n.d(ye,{default:()=>kk});var ve={};n.r(ve),n.d(ve,{default:()=>xk});var be={};n.r(be),n.d(be,{default:()=>Tk});var _e={};n.r(_e),n.d(_e,{default:()=>Ok});var we={};n.r(we),n.d(we,{default:()=>Ck});var Se={};n.r(Se),n.d(Se,{default:()=>jk});var Ee={};n.r(Ee),n.d(Ee,{default:()=>Pk});var ke={};n.r(ke),n.d(ke,{default:()=>Ik});var xe={};n.r(xe),n.d(xe,{default:()=>Rk});var Te={};n.r(Te),n.d(Te,{default:()=>Ak});var Oe={};n.r(Oe),n.d(Oe,{default:()=>Mk});var Ce={};n.r(Ce),n.d(Ce,{default:()=>Dk});var je={};n.r(je),n.d(je,{default:()=>Nk});var Pe={};n.r(Pe),n.d(Pe,{ar:()=>le,cs_cz:()=>ce,de:()=>ue,es:()=>de,fa:()=>fe,fi:()=>pe,fr:()=>he,he:()=>me,hu:()=>ge,id:()=>ye,it:()=>ve,ja:()=>be,ko:()=>_e,mn:()=>we,nl:()=>Se,pl:()=>Ee,pt_br:()=>ke,ru:()=>xe,tr:()=>Te,ua:()=>Oe,zh_cn:()=>Ce,zh_tw:()=>je});var Ie={};n.r(Ie),n.d(Ie,{default:()=>Yk});var Re={};n.r(Re),n.d(Re,{default:()=>Jk});var Ae={};n.r(Ae),n.d(Ae,{en:()=>Ie,es:()=>Re});var Me={};n.r(Me),n.d(Me,{default:()=>Ax});var De={};n.r(De),n.d(De,{default:()=>Mx});var Ne={};n.r(Ne),n.d(Ne,{default:()=>Dx});var Le={};n.r(Le),n.d(Le,{default:()=>Nx});var Be={};n.r(Be),n.d(Be,{default:()=>Lx});var Fe={};n.r(Fe),n.d(Fe,{default:()=>Bx});var ze={};n.r(ze),n.d(ze,{default:()=>Fx});var Ue={};n.r(Ue),n.d(Ue,{default:()=>zx});var He={};n.r(He),n.d(He,{default:()=>Ux});var qe={};n.r(qe),n.d(qe,{default:()=>Hx});var Ve={};n.r(Ve),n.d(Ve,{default:()=>qx});var We={};n.r(We),n.d(We,{default:()=>Vx});var Ge={};n.r(Ge),n.d(Ge,{default:()=>Wx});var $e={};n.r($e),n.d($e,{default:()=>Gx});var Ke={};n.r(Ke),n.d(Ke,{default:()=>$x});var Ye={};n.r(Ye),n.d(Ye,{default:()=>Kx});var Je={};n.r(Je),n.d(Je,{default:()=>Yx});var Xe={};n.r(Xe),n.d(Xe,{default:()=>Jx});var Qe={};n.r(Qe),n.d(Qe,{default:()=>Xx});var Ze={};n.r(Ze),n.d(Ze,{default:()=>Qx});var et={};n.r(et),n.d(et,{default:()=>Zx});var tt={};n.r(tt),n.d(tt,{default:()=>eT});var rt={};n.r(rt),n.d(rt,{default:()=>tT});var nt={};n.r(nt),n.d(nt,{ar:()=>Me,cs_cz:()=>De,de:()=>Ne,es:()=>Le,fa:()=>Be,fi:()=>Fe,fr:()=>ze,he:()=>Ue,hu:()=>He,id:()=>qe,it:()=>Ve,ja:()=>We,ko:()=>Ge,mn:()=>$e,nl:()=>Ke,no:()=>Ye,pl:()=>Je,pt_br:()=>Xe,ru:()=>Qe,tr:()=>Ze,ua:()=>et,zh_cn:()=>tt,zh_tw:()=>rt});var ot=n(442),it=n.n(ot);function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var st,lt="4.6.19",ct="es2020",ut=!0,dt=!0,ft=!0,pt=!1,ht=!0,mt="https://xdsoft.net/jodit/",gt=function(){return pt=!0},yt={},vt="\ufeff",bt=" ",_t=function(){return/[\uFEFF]/g},wt=function(){return/[\uFEFF]+$/g},St=function(){return/^[\uFEFF]+/g},Et=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},kt=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},xt=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},Tt="undefined"!=typeof window?window:void 0,Ot="undefined"!=typeof document?document:void 0,Ct=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,jt=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,Pt=new Set(["ul","ol"]),It=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],Rt=new Set((st=It,function(e){if(Array.isArray(e))return at(e)}(st)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(st)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?at(e,t):void 0}}(st)||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.")}()).concat(["br","hr"])),At=new Set(It),Mt="Meta",Dt="Backspace",Nt="Tab",Lt="Enter",Bt="Escape",Ft="Alt",zt="ArrowLeft",Ut="ArrowUp",Ht="ArrowRight",qt="ArrowDown",Vt="Space",Wt="Delete",Gt="F3",$t=5,Kt=10,Yt=[Mt,Dt,Wt,Ut,qt,Ht,zt,Lt,Bt,Gt,Nt],Jt="br",Xt="p",Qt=1,Zt=2,er=3,tr="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),rr=tr?"text":"text/plain",nr=tr?"html":"text/html",or=tr?"rtf":"text/rtf",ir="jodit-selection_marker",ar=300,sr="insert_as_html",lr="insert_clear_html",cr="insert_as_text",ur="insert_only_text",dr=10,fr=void 0!==Tt&&/Mac|iPod|iPhone|iPad/.test(Tt.navigator.platform),pr={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:fr?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},hr=function(e){var t=e.split("/"),r=!1;return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:r}:{basePath:e,isMin:r}},mr=function(){if("undefined"==typeof document)return{basePath:"",isMin:Boolean(!1)};var e=Ot.currentScript;if(e)return hr(e.src);var t=Ot.querySelectorAll("script[src]");return t&&t.length?hr(t[t.length-1].src):hr(Tt.location.href)}(),gr=mr.basePath,yr=mr.isMin,vr=gr,br=yr,_r="data-jodit-temp",wr={},Sr="clipboard",Er="source-consumer",kr=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);function xr(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Tr(e){return Tr="function"==typeof Symbol&&"symbol"===xr(Symbol.iterator)?function(e){return void 0===e?"undefined":xr(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":xr(e)},Tr(e)}function Or(e,t,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(Tr(n)));var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof n)return n;var r=n.bind(this);return o=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){n=e,delete this[t]}}),o=!1,r},set:function(e){n=e}}}function Cr(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach(function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,Or(e,t,r))}}),e}function jr(){return 1===arguments.length?Cr.apply(void 0,arguments):Or.apply(void 0,arguments)}var Pr={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};function Ir(e){return Boolean(e)&&"function"===(void 0===e?"undefined":(t=e,t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)));var t}function Rr(e){return"function"==typeof e}function Ar(e){return Array.isArray(e)}function Mr(e){return"string"==typeof e}function Dr(e){return Ar(e)&&Mr(e[0])}function Nr(e){return null==e}function Lr(e,t){if(!Mr(e)||!e.length)return null;var r=e.split("."),n=t;try{var o=!0,i=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;if(Nr(n[c]))return null;n=n[c]}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}catch(e){return null}return Nr(n)?null:n}var Br={};function Fr(e){var t,r;if(!(e in Br)){var n=Ot.createElement("iframe");try{if(n.src="about:blank",Ot.body.appendChild(n),!n.contentWindow)return null;var o=Lr(e,n.contentWindow),i=Lr(e.split(".").slice(0,-1).join("."),n.contentWindow);Rr(o)&&(Br[e]=o.bind(i))}catch(e){if(!ft)throw e}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}}return null!==(r=Br[e])&&void 0!==r?r:null}var zr=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;return(Ir(Array.from)?Array.from:null!==(n=Fr("Array.from"))&&void 0!==n?n:Array.from).apply(Array,t)};function Ur(){var e=!0;try{var t=Ot.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}function Hr(e){return Boolean(e)&&(t=e,null!=(r=DOMException)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)&&"AbortError"===e.name;var t,r}function qr(e){return"boolean"==typeof e}function Vr(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==(void 0===e?"undefined":Vr(e)))return String(e);var r=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,function(e,t){if(!r.has(e)){if("object"===(void 0===t?"undefined":Vr(t))&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}},t.prettify)}function Gr(e,t){return e===t||Wr(e)===Wr(t)}function $r(e,t){return e===t}var Kr=function(e){return Mr(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))};function Yr(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}function Jr(e){return!Nr(e)&&Rr(e.init)}function Xr(e){return!Nr(e)&&Rr(e.destruct)}function Qr(e){return!Nr(e)&&li.isElement(e.container)}function Zr(e){if(Mr(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function en(e){return Mr(e)&&Zr(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}function tn(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function rn(e){return Boolean(e&&tn(e,Object)&&Rr(e.constructor)&&("undefined"!=typeof Jodit&&tn(e,Jodit)||e.isJodit))}var nn=function(e){return Mr(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)};function on(e){return li.isNode(e)&&li.isTag(e,"span")&&e.hasAttribute("data-"+ir)}function an(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function sn(e){return null!=e&&e===e.window}function ln(e){return!(!e||"object"!==(void 0===e?"undefined":function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(e))||e.nodeType||sn(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}function cn(e){return e&&"function"==typeof e.then}function un(e){return Boolean(e)&&Rr(e.has)&&Rr(e.add)&&Rr(e.delete)}function dn(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{var t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}var r=Ot.createElement("a");return r.href=e,Boolean(r.hostname)}function fn(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}function pn(e){return Boolean(e&&(t=e,null!=(r=Object)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)&&Rr(e.constructor)&&e.isView);var t,r}function hn(e){return e.replace(xt(),"").replace(kt(),"")}function mn(e,t){return e.replace(RegExp("[".concat(t,"]+$")),"").replace(RegExp("^[".concat(t,"]+")),"")}function gn(e){return e.replace(wt(),"").replace(St(),"")}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__map=new Map}var t;return t=[{key:"on",value:function(e,t){var r;return this.__map.has(e)||this.__map.set(e,new Set),null===(r=this.__map.get(e))||void 0===r||r.add(t),this}},{key:"off",value:function(e,t){var r;return this.__map.has(e)&&(null===(r=this.__map.get(e))||void 0===r||r.delete(t)),this}},{key:"destruct",value:function(){this.__map.clear()}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o,i;return this.__map.has(e)&&(null===(o=this.__map.get(e))||void 0===o||o.forEach(function(e){i=e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return yn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(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.")}()}(r))})),i}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function bn(e,t,r){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_n(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},bn(e,t,r||e)}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}function wn(e,t){return wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wn(e,t)}function Sn(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(En=function(){return!!e})()}var kn=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=_n(t),function(e,t){return!t||"object"!==Sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,En()?Reflect.construct(t,[],_n(e).constructor):t.apply(e,r))}(this,t)).async=e,r.options=n,r.workNodes=null,r.hadAffect=!1,r.isWorked=!1,r.isFinished=!1,r.idleId=0,r.__schedulerController=null,r}var r;return function(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}}),t&&wn(e,t)}(t,e),(r=[{key:"setWork",value:function(e){return this.isWorked&&this.break(),this.workNodes=li.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}},{key:"_requestStarting",value:function(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(function(){return null})}},{key:"break",value:function(e){this.isWorked&&(this.stop(),this.emit("break",e))}},{key:"end",value:function(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}},{key:"stop",value:function(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}},{key:"destruct",value:function(){bn(_n(t.prototype),"destruct",this).call(this),this.stop()}},{key:"__workPerform",value:function(){var e;if(this.workNodes){this.isWorked=!0;for(var t=0,r=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;!this.isFinished&&t<=r;){var n=this.workNodes.next();if(t+=1,this.visitNode(n.value)&&(this.hadAffect=!0),n.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}},{key:"visitNode",value:function(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(vn);!function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Sn(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)}([jr],kn.prototype,"__workPerform",null);var xn=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";for(var r=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|r<<16).toString(16).toUpperCase();o.length<6;)o="0"+o;return t[1]+"#"+o},Tn=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},On=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Cn=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function jn(e,t){return!Nr(t)&&Cn.test(e)&&Zr(t.toString())?parseInt(t.toString(),10)+"px":t}function Pn(e,t){if("font-weight"===Tn(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return Zr(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&xn(t.toString())||t}var In=function(e){return e.replace(/([-_])(.)/g,function(e,t,r){return r.toUpperCase()})};function Rn(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(qr(r)&&(n=r,r=void 0),ln(t)||void 0!==r){var o=function(e,t,r){void 0===(r=jn(t,r))||null!=r&&Rn(e,t,!0)===Pn(t,r)||(e.style[t]=r)};if(ln(t))for(var i=Object.keys(t),a=0;a<i.length;a+=1)o(e,In(i[a]),t[i[a]]);else o(e,In(t),r);return""}var s=Tn(t),l=e.ownerDocument||document,c=!!l&&(l.defaultView||l.parentWindow),u=e.style[t],d="";return void 0!==u&&""!==u?d=u:c&&!n&&(d=c.getComputedStyle(e).getPropertyValue(s)),Cn.test(t)&&/^[-+]?[0-9.]+px$/.test(d.toString())&&(d=parseInt(d.toString(),10)),Pn(t,d)}var An=function(e){"block"===Rn(e,"display")&&Rn(e,"display","");var t=e.style;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")};function Mn(e,t){t&&"normal"!==t?"center"!==t?(Rn(e,"float",t),An(e)):Rn(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(Rn(e,"float")&&-1!==["right","left"].indexOf(Rn(e,"float").toString().toLowerCase())&&Rn(e,"float",""),An(e))}function Dn(e){li.each(e,function(e){li.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function Nn(e,t){if(li.isNode(t)&&li.isElement(t))switch(Dn(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}var Ln=function(e){return"file:"===Tt.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e},Bn=new Map,Fn=function(e){return function(t,r){if(Bn.has(r))return Bn.get(r);var n=e(t,r);return Bn.set(r,n),n}},zn=Fn(function(e,t){return e.async.promise(function(r,n){if(e.isInDestruct)return n();var o=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:Ln(t)});e.e.one(o,"error",n).one(o,"load",r),e.od.body.appendChild(o)})}),Un=Fn(function(e,t){return e.async.promise(function(r,n){if(e.isInDestruct)return n();var o=e.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!e.isInDestruct&&e.e.on(o,"load",function(){return r(o)}).on(o,"error",n),o.href=Ln(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(o):e.od.body.appendChild(o)})});function Hn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Mr(t[r])?zn(e,t[r]).then(function(){return Hn(e,t,r+1)}):Promise.resolve()}function qn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Mr(t[r])?Un(e,t[r]).then(function(){return qn(e,t,r+1)}):Promise.resolve()}function Vn(e,t,r){return Vn=Kn()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Gn(o,r.prototype),o},Vn.apply(null,arguments)}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wn(e)}function Gn(e,t){return Gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gn(e,t)}function $n(e){var t="function"==typeof Map?new Map:void 0;return $n=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Vn(e,arguments,Wn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Gn(n,e)},$n(e)}function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kn=function(){return!!e})()}var Yn=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Wn(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Kn()?Reflect.construct(t,r||[],Wn(e).constructor):t.apply(e,r))}(this,t,[e])).name="AssertionError",r}return function(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}}),t&&Gn(e,t)}(t,e),t}($n(Error));function Jn(e,t){if(!e)throw new Yn("Assertion failed: ".concat(t))}function Xn(e,t,r){if(!e||!Rr(e.getAttribute))return null;if(!Mr(t))return Object.keys(t).forEach(function(r){var n=t[r];ln(n)&&"style"===r?Rn(e,n):("className"===r&&(r="class"),Xn(e,r,n))}),null;var n=On(t);if(/^-/.test(n)){var o=Xn(e,"data".concat(n));if(o)return o;n=n.substr(1)}if(void 0!==r){if(null!=r){var i=r.toString();return"IMG"!==e.nodeName||"width"!==n&&"height"!==n||(i=i.replace("px","")),e.setAttribute(n,i),i}e.hasAttribute(n)&&e.removeAttribute(n)}return e.getAttribute(n)}var Qn=function(e){var t=navigator.userAgent.toLowerCase(),r=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||t.indexOf("compatible")<0||[];return"version"===e?r[2]:"webkit"===e?"chrome"===r[1]||"webkit"===r[1]:"ff"===e?"firefox"===r[1]:"msie"===e?"trident"===r[1]||"msie"===r[1]:r[1]===e},Zn=function(e,t){var r=[],n=encodeURIComponent;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=t?t+"["+o+"]":o,a=e[o];r.push(ln(a)?Zn(a,i):n(i)+"="+n(a))}return r.join("&")},eo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=Ot,this.ownerWindow=Tt,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=sr,this.enter=Xt,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:Xt,this.defaultMode=Qt,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0}var t;return(t=[{key:"defaultOptions",get:function(){return e.__defaultOptions||(e.__defaultOptions=new e),e.__defaultOptions}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,t),e}();function to(e){return e&&e.isAtom}function ro(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function no(e){return JSON.parse(Wr(e))}eo.prototype.controls={};var oo=new WeakMap,io=function(e,t,r){var n=oo.get(e);if(!n){n={},oo.set(e,n);var o=null;pn(e.j)&&(o=e.j.e),pn(e)&&(o=e.e),o&&o.on("beforeDestruct",function(){oo.delete(e)})}return void 0===r?n[t]:(n[t]=r,r)};function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function so(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return ao(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ao(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ao(e,t):void 0}}(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.")}()}(r))}function lo(e,t){Xn(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function co(e,t){return cn(e)?e.then(function(e){return e},function(){return null}).finally(t):null==t?void 0:t()}var uo=function(e,t){return t.async.promise(function(r,n){var o=new Image,i=function(){t.e.off(o),null==n||n()},a=function(){t.e.off(o),r(o)};t.e.one(o,"load",a).one(o,"error",i).one(o,"abort",i),o.src=e,o.complete&&a()})},fo=function(e){if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},po=function(e,t,r,n){var o,i=r.control,a="button".concat(i.command),s=null!==(o=i.args&&i.args[0])&&void 0!==o?o:io(e,a);if(Nr(s))return!1;io(e,a,s),n&&(s=n(s)),e.execCommand(i.command,!1,null!=s?s:void 0)},ho=function(e){if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function go(e){return function(e){if(Array.isArray(e))return mo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return mo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mo(e,t):void 0}}(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 yo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(Object.getPrototypeOf(e)!==Object.prototype)return e;var n=eo.defaultOptions;if(Mr(e.preset)){if(void 0!==n.presets[e.preset]){var o=n.presets[e.preset];Object.keys(o).forEach(function(t){Nr(e[t])&&(e[t]=o[t])})}delete e.preset}var i={};return Object.keys(e).forEach(function(n){var o=e[n],a=t?t[n]:null;ln(o)&&ln(a)&&!to(o)?i[n]=yo(o,a,r+1):0!==r&&Ar(o)&&!to(o)&&Ar(a)?i[n]=go(o).concat(go(a.slice(o.length))):i[n]=o}),Object.setPrototypeOf(i,t),i}function vo(e){return fo(e,!1).reduce(function(t,r){return t[r]=e[r],t},{})}function bo(e){return fo(e,!1).reduce(function(t,r){return t[r]=ln(e[r])?bo(e[r]):e[r],t},{})}var _o=function(e){for(var t={},r=e.substring(1).split("&"),n=0;n<r.length;n+=1){var o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t},wo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,n=void 0===r?400:r,o=t.height,i=void 0===o?345:o;if(!dn(e))return e;var a=Ot.createElement("a"),s=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=e,n||(n=400),i||(i=345);var l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return s.test(e)?e.replace(s,'<iframe width="'+n+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var c=a.search?_o(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(c.v)&&(c.v=c.v.substring(6)),c.v?'<iframe width="'+n+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+c.v+'" frameborder="0" allowfullscreen></iframe>':e}return e},So=function(e){if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1},Eo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return"auto"!==e&&Mr(e)?e:Ot.documentElement&&Ot.documentElement.lang?Ot.documentElement.lang:navigator.language?navigator.language.substring(0,2):t};function ko(){return new DOMException(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Aborted","AbortError")}var xo=Hr;function To(e,t,r){return To=Po()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Co(o,r.prototype),o},To.apply(null,arguments)}function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oo(e)}function Co(e,t){return Co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Co(e,t)}function jo(e){var t="function"==typeof Map?new Map:void 0;return jo=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return To(e,arguments,Oo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Co(n,e)},jo(e)}function Po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Po=function(){return!!e})()}var Io=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=Oo(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Po()?Reflect.construct(t,r||[],Oo(e).constructor):t.apply(e,r))}(this,t,[e]),Object.setPrototypeOf(r,t.prototype),r}return function(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}}),t&&Co(e,t)}(t,e),t}(jo(Error));function Ro(e,t,r){return Ro=No()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Mo(o,r.prototype),o},Ro.apply(null,arguments)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function Mo(e,t){return Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mo(e,t)}function Do(e){var t="function"==typeof Map?new Map:void 0;return Do=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ro(e,arguments,Ao(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Mo(n,e)},Do(e)}function No(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(No=function(){return!!e})()}var Lo=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=Ao(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,No()?Reflect.construct(t,r||[],Ao(e).constructor):t.apply(e,r))}(this,t,[e]),Object.setPrototypeOf(r,t.prototype),r}return function(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}}),t&&Mo(e,t)}(t,e),t}(Do(TypeError));function Bo(e){return new TypeError(e)}function Fo(e){return new Io(e)}function zo(e){return new Lo(e)}var Uo=new Map,Ho=function(e){var t;if(Rr(e.className))return e.className();var r=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(Uo.has(r))return Uo.get(r);if(r.name)return r.name;var n=new RegExp(/^\s*function\s*(\S*)\s*\(/),o=r.toString().match(n);return o?o[1]:""},qo=function(e){if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);var t=e.substr(-2,2).toUpperCase(),r=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return-1!==r.indexOf(t)?n*Math.pow(1024,r.indexOf(t)+1):parseInt(e,10)};function Vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wo=console;function Go(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a;return Wo.warn('Method "'.concat(t[0],'" deprecated.')+(t[1]?' Use "'.concat(t[1],'" instead'):"")),(a=e).call.apply(a,[r].concat(function(e){return function(e){if(Array.isArray(e))return Vo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vo(e,t):void 0}}(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.")}()}(o)))}}var $o=1,Ko=function(){return++$o};function Yo(e,t){var r;if(dt||!/:scope/.test(e)||!tr||t&&t.nodeType===Node.DOCUMENT_NODE)r=t.querySelectorAll(e);else{var n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+Ko();e=e.replace(/:scope/g,"#"+o),!n&&t.setAttribute("id",o),r=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}return[].slice.call(r)}var Jo=function(e,t){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";var r=[].filter.call(e.parentNode.childNodes,function(t){return t.nodeName===e.nodeName});return Jo(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(r.length>1?"["+(zr(r).indexOf(e)+1)+"]":"")},Xo=function(e){return"container"in e&&(e=e.container),Yo("[ref],[data-ref]",e).reduce(function(e,t){var r=Xn(t,"-ref");return r&&Mr(r)&&(e[In(r)]=t,e[r]=t),e},{})},Qo=function(e){if(!li.isElement(e))return null;for(var t=[],r=e;r&&r.nodeType===Node.ELEMENT_NODE;){var n=r.nodeName.toLowerCase();if(r.id){n+="#"+r.id,t.unshift(n);break}var o=r,i=1;do{(o=o.previousElementSibling)&&o.nodeName.toLowerCase()===n&&i++}while(o);n+=":nth-of-type("+i+")",t.unshift(n),r=r.parentNode}return t.join(" > ")};function Zo(e,t){var r,n=e;if(Mr(e))try{n=t.querySelector(e)}catch(t){throw Bo('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=(void 0===n?"undefined":(r=n)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||!li.isElement(n)||!n.cloneNode)throw Bo('Element "'+e+'" should be string or HTMLElement instance');return n}function ei(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=[],i=function(e,t){var r=[];try{Yo("img",e.editor).forEach(function(n){var o=[Xn(n,"width"),Xn(n,"height"),n.src];Xn(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});var i=e.createInside.a();e.ed.body.appendChild(i),i.href=n.src,n.src=i.href,li.safeRemove(i),r.push(function(){var e;n.src=null!==(e=o[2])&&void 0!==e?e:"",Xn(n,{width:o[0]||null,height:o[1]||null})})})}catch(e){throw r.forEach(function(e){return e()}),r.length=0,e}return r}(e,r);try{var a=e.e.fire("beforePreviewBox",t,r);if(null!=a)return a;var s=e.c.div("jodit__preview-box jodit-context");n&&n.appendChild(s),Rn(s,{position:"relative",padding:16});var l=e.value||"<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(e.i18n("Empty"),"</div>");if(e.iframe){var c=e.create.element("iframe");Rn(c,{minWidth:800,minHeight:600,border:0}),s.appendChild(c);var u=c.contentWindow;if(u&&(e.e.fire("generateDocumentStructure.iframe",u.document,e),s=u.document.body,"function"==typeof ResizeObserver)){var d=!1,f=u.document.body,p=new ResizeObserver(e.async.debounce(function(){p.unobserve(f),c.style.height="".concat(f.offsetHeight+20,"px"),e.async.requestAnimationFrame(function(){!d&&p.observe(f)})},100)),h=function(){d=!0,p.unobserve(f),p.disconnect(),e.e.off("beforeDestruct",h)};o.push(h),e.e.on("beforeDestruct",h)}}else Rn(s,{minWidth:1024,minHeight:600,border:0});var m=function(t,r){var n=Mr(r)?e.c.div():r;Mr(r)&&(n.innerHTML=r);for(var o=0;o<n.childNodes.length;o+=1){var i=n.childNodes[o];if(li.isElement(i)){for(var a=t.ownerDocument.createElement(i.nodeName),s=0;s<i.attributes.length;s+=1)Xn(a,i.attributes[s].nodeName,i.attributes[s].nodeValue);0===i.childNodes.length||li.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(a.textContent=i.textContent):i.innerHTML&&(a.innerHTML=i.innerHTML):m(a,i);try{t.appendChild(a)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return m(s,l),e.e.fire("afterPreviewBox",s),[s,function(){o.forEach(function(e){return e()})}]}finally{i.forEach(function(e){return e()})}}function ti(e,t,r){for(var n=e.getBoundingClientRect(),o=e,i=n.top,a=n.height;o&&o!==t&&o.parentNode;){if(!(i<=(n=(o=o.parentNode).getBoundingClientRect()).bottom))return!1;if(i+a<=n.top)return!1}return i<=(r.documentElement&&r.documentElement.clientHeight||0)}function ri(e,t,r){li.isHTMLElement(e)&&!ti(e,t,r)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),ti(e,t,r)||e.scrollIntoView())}function ni(e,t,r){if(Mr(e)&&e.length){for(var n=e.split("."),o=r,i=n[0],a=0;a<n.length-1;a+=1)Ar(o[i=n[a]])||ln(o[i])||(o[i]=Zr(n[a+1])?[]:{}),o=o[i];o&&(o[n[n.length-1]]=t)}}var oi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.limit=t,this.stack=[]}var t;return(t=[{key:"push",value:function(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}},{key:"pop",value:function(){return this.stack.pop()}},{key:"find",value:function(e){return this.stack.find(e)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function ii(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ai(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function si(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var li=function(){function e(){throw function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("Dom is static module")}var t;return t=[{key:"detach",value:function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}},{key:"wrapNextInline",value:function(t,r,n){var o,i=t,a=t;n.s.save();var s=!1;do{s=!1,!(o=a.nextSibling)||e.isBlock(o)||e.isTag(o,"br")||(s=!0,a=o)}while(s);return e.__wrapElements(r,n,i,a)}},{key:"__wrapElements",value:function(e,t,r,n){var o=Mr(e)?t.createInside.element(e):e;r.parentNode&&r.parentNode.insertBefore(o,r);for(var i=r;i&&(i=r.nextSibling,o.appendChild(r),r!==n&&i);)r=i;return t.s.restore(),o}},{key:"wrapInline",value:function(t,r,n){var o,i=t,a=t;n.s.save();var s=!1;do{s=!1,(o=i.previousSibling)&&!e.isBlock(o)&&(s=!0,i=o)}while(s);do{s=!1,(o=a.nextSibling)&&!e.isBlock(o)&&(s=!0,a=o)}while(s);return e.__wrapElements(r,n,i,a)}},{key:"wrap",value:function(t,r,n){var o=Mr(r)?n.element(r):r;if(e.isNode(t)){if(!t.parentNode)throw Bo("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{var i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}},{key:"unwrap",value:function(t){var r=t.parentNode;if(r){for(;t.firstChild;)r.insertBefore(t.firstChild,t);e.safeRemove(t)}}},{key:"between",value:function(e,t,r){for(var n=e;n&&n!==t&&(e===n||!r(n));){var o=n.firstChild||n.nextSibling;if(!o){for(;n&&!n.nextSibling;)n=n.parentNode;o=null==n?void 0:n.nextSibling}n=o}}},{key:"replace",value:function(t,r,n){var o,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Kr(r)&&(Jn(n,"Need create instance for new tag"),r=n.fromHTML(r)),Mr(r)?(Jn(n,"Need create instance for new tag"),o=n.element(r)):o=r,!a)for(;t.firstChild;)o.appendChild(t.firstChild);return i&&e.isElement(t)&&e.isElement(o)&&zr(t.attributes).forEach(function(e){o.setAttribute(e.name,e.value)}),t.parentNode&&t.parentNode.replaceChild(o,t),o}},{key:"isEmptyTextNode",value:function(t){return e.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(_t(),"").trim().length)}},{key:"isEmptyContent",value:function(t){return e.each(t,function(t){return e.isEmptyTextNode(t)})}},{key:"isContentEditable",value:function(t,r){return e.isNode(t)&&!e.closest(t,function(t){return e.isElement(t)&&"false"===t.getAttribute("contenteditable")},r)}},{key:"isEmpty",value:function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:At;if(!t)return!0;r=Rr(n)?n:function(e){return n.has(e.nodeName.toLowerCase())};var o=function(e){return null==e.nodeValue||0===hn(e.nodeValue).length};return e.isText(t)?o(t):!(e.isElement(t)&&r(t))&&e.each(t,function(t){if(e.isText(t)&&!o(t)||e.isElement(t)&&r(t))return!1})}},{key:"isNode",value:function(e){return Boolean(e&&Mr(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&Rr(e.appendChild))}},{key:"isCell",value:function(t){return e.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}},{key:"isList",value:function(t){return e.isTag(t,Pt)}},{key:"isLeaf",value:function(t){return e.isTag(t,"li")}},{key:"isImage",value:function(t){return e.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}},{key:"isBlock",value:function(t){return!Nr(t)&&"object"==(void 0===t?"undefined":(r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&e.isNode(t)&&Ct.test(t.nodeName);var r}},{key:"isText",value:function(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)}},{key:"isComment",value:function(e){return Boolean(e&&e.nodeType===Node.COMMENT_NODE)}},{key:"isElement",value:function(t){var r;if(!e.isNode(t))return!1;var n=null===(r=t.ownerDocument)||void 0===r?void 0:r.defaultView;return Boolean(n&&t.nodeType===Node.ELEMENT_NODE)}},{key:"isFragment",value:function(t){var r;if(!e.isNode(t))return!1;var n=null===(r=t.ownerDocument)||void 0===r?void 0:r.defaultView;return Boolean(n&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}},{key:"isHTMLElement",value:function(t){var r;if(!e.isNode(t))return!1;var n=null===(r=t.ownerDocument)||void 0===r?void 0:r.defaultView;return Boolean(n&&ii(t,n.HTMLElement))}},{key:"isInlineBlock",value:function(t){return e.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(Rn(t,"display").toString())}},{key:"canSplitBlock",value:function(t){return!Nr(t)&&e.isHTMLElement(t)&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}},{key:"last",value:function(e,t){var r=null==e?void 0:e.lastChild;if(!r)return null;do{if(t(r))return r;var n=r.lastChild;if(n||(n=r.previousSibling),!n&&r.parentNode!==e){do{r=r.parentNode}while(r&&!(null==r?void 0:r.previousSibling)&&r.parentNode!==e);n=null==r?void 0:r.previousSibling}r=n}while(r);return null}},{key:"prev",value:function(t,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,r,n,!1,o)}},{key:"next",value:function(t,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,r,n,!0,o)}},{key:"prevWithClass",value:function(t,r){return e.prev(t,function(t){return e.isElement(t)&&t.classList.contains(r)},t.parentNode)}},{key:"nextWithClass",value:function(t,r){return e.next(t,function(t){return e.isElement(t)&&t.classList.contains(r)},t.parentNode)}},{key:"find",value:function(e,t,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=this.nextGen(e,r,n,o),a=i.next();!a.done;){if(t(a.value))return a.value;a=i.next()}return null}},{key:"nextGen",value:function(e,t){var r,n,o,i,a,s=arguments;return ai(this,function(l){switch(l.label){case 0:r=!(s.length>2&&void 0!==s[2])||s[2],n=!(s.length>3&&void 0!==s[3])||s[3],o=[],i=e,l.label=1;case 1:for(a=r?i.nextSibling:i.previousSibling;a;)o.unshift(a),a=r?a.nextSibling:a.previousSibling;return[5,si(this.runInStack(e,o,r,n))];case 2:l.sent(),i=i.parentNode,l.label=3;case 3:if(i&&i!==t)return[3,1];l.label=4;case 4:return[2,null]}})}},{key:"each",value:function(e,t){for(var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.eachGen(e,r),o=n.next();!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}},{key:"eachGen",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.runInStack(e,[e],t)}},{key:"runInStack",value:function(e,t,r){var n,o,i,a=arguments;return ai(this,function(s){switch(s.label){case 0:n=!(a.length>3&&void 0!==a[3])||a[3],s.label=1;case 1:if(!t.length)return[3,4];if(o=t.pop(),n)for(i=r?o.lastChild:o.firstChild;i;)t.push(i),i=r?i.previousSibling:i.nextSibling;return e===o?[3,3]:[4,o];case 2:s.sent(),s.label=3;case 3:return[3,1];case 4:return[2]}})}},{key:"findWithCurrent",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nextSibling",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"firstChild",a=t;do{if(r(a))return a||null;if(i&&a&&a[i]){var s=e.findWithCurrent(a[i],r,a,o,i);if(s)return s}for(;a&&!a[o]&&a!==n;)a=a.parentNode;a&&a[o]&&a!==n&&(a=a[o])}while(a&&a!==n);return null}},{key:"findSibling",value:function(t){for(var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!e.isEmptyTextNode(t)},o=e.sibling(t,r);o&&!n(o);)o=e.sibling(o,r);return o&&n(o)?o:null}},{key:"findNotEmptySibling",value:function(t,r){return e.findSibling(t,r,function(t){var r;return!e.isEmptyTextNode(t)&&Boolean(!e.isText(t)||(null===(r=t.nodeValue)||void 0===r?void 0:r.length)&&hn(t.nodeValue))})}},{key:"findNotEmptyNeighbor",value:function(t,r,n){return so(r?e.prev:e.next,t,function(t){return Boolean(t&&(!(e.isText(t)||e.isComment(t))||hn((null==t?void 0:t.nodeValue)||"").length))},n)}},{key:"sibling",value:function(e,t){return t?e.previousSibling:e.nextSibling}},{key:"up",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e;if(!o)return null;do{if(t(o))return o;if(o===r||!o.parentNode)break;o=o.parentNode}while(o&&o!==r);return o===r&&n&&t(o)?o:null}},{key:"closest",value:function(t,r,n){var o,i=function(e){return e.toLowerCase()};if(Rr(r))o=r;else if(Ar(r)||un(r)){var a=un(r)?r:new Set(r.map(i));o=function(e){return Boolean(e&&a.has(i(e.nodeName)))}}else o=function(e){return Boolean(e&&i(r)===i(e.nodeName))};return e.up(t,o,n)}},{key:"furthest",value:function(e,t,r){for(var n=null,o=null==e?void 0:e.parentElement;o&&o!==r;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}},{key:"appendChildFirst",value:function(e,t){var r=e.firstChild;r?r!==t&&e.insertBefore(t,r):e.appendChild(t)}},{key:"after",value:function(e,t){var r=e.parentNode;r&&(r.lastChild===e?r.appendChild(t):r.insertBefore(t,e.nextSibling))}},{key:"before",value:function(e,t){var r=e.parentNode;r&&r.insertBefore(t,e)}},{key:"prepend",value:function(e,t){e.insertBefore(t,e.firstChild)}},{key:"append",value:function(e,t){var r=this;Ar(t)?t.forEach(function(t){r.append(e,t)}):e.appendChild(t)}},{key:"moveContent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=(t.ownerDocument||Ot).createDocumentFragment();zr(t.childNodes).filter(function(t){return!!o(t)||(e.safeRemove(t),!1)}).forEach(function(e){i.appendChild(e)}),n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)}},{key:"isOrContains",value:function(e,t){return e===t?!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]):Boolean(t&&e&&this.up(t,function(t){return t===e},e,!0))}},{key:"safeRemove",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(t){return e.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)})}},{key:"safeInsertNode",value:function(t,r){t.collapsed||t.deleteContents();var n=e.isFragment(r)?r.lastChild:r;t.startContainer===t.endContainer&&t.collapsed&&e.isTag(t.startContainer,Rt)?e.after(t.startContainer,r):(t.insertNode(r),n&&t.setStartBefore(n)),t.collapse(!0),[r.nextSibling,r.previousSibling].forEach(function(t){return e.isText(t)&&!t.nodeValue&&e.safeRemove(t)})}},{key:"hide",value:function(e){e&&(io(e,"__old_display",e.style.display),e.style.display="none")}},{key:"show",value:function(e){if(e){var t=io(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}}},{key:"isTag",value:function(e,t){if(!this.isElement(e))return!1;var r=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(ii(t,Set))return t.has(r)||t.has(n);if(Array.isArray(t))throw new TypeError("Dom.isTag does not support array");return r===t||n===t}},{key:"markTemporary",value:function(e,t){return t&&Xn(e,t),Xn(e,_r,!0),e}},{key:"isTemporary",value:function(t){return!!e.isElement(t)&&(on(t)||"true"===Xn(t,_r))}},{key:"replaceTemporaryFromString",value:function(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}},{key:"temporaryList",value:function(e){return Yo("[".concat(_r,"]"),e)}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,t),e}();function ci(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!r||Rr(r.get)?null:r.value}function ui(e,t,r){var n=r.get;if(!n)throw Bo("Getter property descriptor expected");r.get=function(){ft||this.isInDestruct&&console.error("Trying to access property in destructed component");var e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:r.configurable,enumerable:r.enumerable,writable:!1,value:e}),e}}function di(e,t,r){var n=r.value;if(!Rr(n))throw Bo("Handler must be a Function");var o=!0,i=new WeakMap;r.value=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a;if(o&&i.has(this.constructor))return null===(a=i.get(this.constructor))||void 0===a?void 0:a.cloneNode(!0);var s=n.apply(this,t);return o&&li.isElement(s)&&i.set(this.constructor,s),o?s.cloneNode(!0):s},e.hookStatus(Pr.ready,function(e){var t=pn(e)?e:e.jodit;o=Boolean(t.options.cache)})}function fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}function hi(e,t){return hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hi(e,t)}function mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(mi=function(){return!!e})()}function gi(e){var t=function(e){function t(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=pi(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,mi()?Reflect.construct(t,r||[],pi(e).constructor):t.apply(e,r))}(this,t,function(e){return function(e){if(Array.isArray(e))return fi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fi(e,t):void 0}}(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.")}()}(r))).constructor===t&&(i=o,(null!=(a=t)&&"undefined"!=typeof Symbol&&a[Symbol.hasInstance]?a[Symbol.hasInstance](i):i instanceof a)||Object.setPrototypeOf(o,t.prototype),o.setStatus("ready")),o}return function(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}}),t&&hi(e,t)}(t,e),t}(e);return t}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vi(e){return function(e){if(Array.isArray(e))return yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yi(e,t):void 0}}(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 bi(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i,a;return t?(i=Tt).setTimeout.apply(i,[e,t].concat(vi(n))):((a=e).call.apply(a,[null].concat(vi(n))),0)}function _i(e){Tt.clearTimeout(e)}function wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ei(e){return function(e){if(Array.isArray(e))return wi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return wi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wi(e,t):void 0}}(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.")}()}var ki=function(){function e(){var t,r,n,o,i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(t=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==t?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!==(n=null===(r=window.requestIdleCallback)||void 0===r?void 0:r.bind(window))&&void 0!==n?n:function(e,t){var r,n=Date.now();return a.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})},null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:1)},this.__cancelIdleCallbackNative=null!==(i=null===(o=window.cancelIdleCallback)||void 0===o?void 0:o.bind(window))&&void 0!==i?i:function(e){a.clearTimeout(e)},this.isDestructed=!1}var t;return t=[{key:"delay",value:function(e){var t=this;return this.promise(function(r){return t.setTimeout(r,e)})}},{key:"setTimeout",value:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(this.isDestructed)return 0;var i={};Nr(t)&&(t=0),an(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);var a=bi.apply(void 0,[e,t].concat(Ei(n))),s=i.label||a;return this.timers.set(s,a),this.__callbacks.set(s,e),a}},{key:"updateTimeout",value:function(e,t){if(Jn(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;var r=this.__callbacks.get(e);return Jn(Rr(r),"Callback is not a function"),this.setTimeout(r,{label:e,timeout:t})}},{key:"clearLabel",value:function(e){e&&this.timers.has(e)&&(_i(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}},{key:"clearTimeout",value:function(e){if(Mr(e))return this.clearLabel(e);_i(e),this.timers.delete(e),this.__callbacks.delete(e)}},{key:"debounce",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this,o=0,i=!1,a=[],s=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!i){o=0;var s=e.apply(void 0,Ei(r));if(i=!0,a.length){var l=function(){a.forEach(function(e){return e()}),a.length=0};cn(s)?s.finally(l):l()}}},l=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];i=!1,t?(!o&&r&&s.apply(void 0,Ei(l)),_i(o),o=n.setTimeout(function(){return s.apply(void 0,Ei(l))},Rr(t)?t():t),n.timers.set(e,o)):s.apply(void 0,Ei(l))};return ln(t)&&t.promisify?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=n.promise(function(e){a.push(e)}).catch(function(e){if(Hr(e))return null;throw e});return l.apply(void 0,Ei(t)),o}:l}},{key:"microDebounce",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,o=!1,i=!0;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];t=s,o?i=!0:(i=!0,r&&(i=!1,e.apply(void 0,Ei(t))),o=!0,n.__queueMicrotaskNative(function(){o=!1,n.isDestructed||i&&e.apply(void 0,Ei(t))}))}}},{key:"throttle",value:function(e,t){var r,n,o,i=this,a=null;return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];r=!0,o=l,t?a||(n=function(){r?(e.apply(void 0,Ei(o)),r=!1,a=i.setTimeout(n,Rr(t)?t():t),i.timers.set(n,a)):a=null})():e.apply(void 0,Ei(o))}}},{key:"promise",value:function(e){var t=this,r=function(){},n=new Promise(function(n,o){r=function(){return o(ko("Abort async"))},t.promisesRejections.add(r),e(n,o)});return n.finally||"undefined"==typeof process||dt||(n.finally=function(e){return n.then(e).catch(e),n}),n.finally(function(){t.promisesRejections.delete(r)}).catch(function(){return null}),n.rejectCallback=r,n}},{key:"promiseState",value:function(e){var t=this;if(e.status)return e.status;if(!Promise.race)return new Promise(function(r){e.then(function(e){return r("fulfilled"),e},function(e){throw r("rejected"),e}),t.setTimeout(function(){r("pending")},100)});var r={};return Promise.race([e,r]).then(function(e){return e===r?"pending":"fulfilled"},function(){return"rejected"})}},{key:"requestIdleCallback",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:100},r=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(r),r}},{key:"requestIdlePromise",value:function(e){var t=this;return this.promise(function(r){var n=t.requestIdleCallback(function(){return r(n)},e)})}},{key:"schedulerPostTask",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0,priority:"user-visible"},n=new AbortController;if(r.signal&&r.signal.addEventListener("abort",function(){return n.abort()}),this.__controllers.add(n),void 0!==globalThis.scheduler){var o=globalThis.scheduler.postTask(e,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Si(e,t,r[t])})}return e}({},r),{signal:n.signal}));return o.finally(function(){t.__controllers.delete(n)}).catch(function(){return null}),o}return this.promise(function(o,i){var a=t.setTimeout(function(){try{o(e())}catch(e){i(e)}t.__controllers.delete(n)},r.delay||1);n.signal.addEventListener("abort",function(){t.clearTimeout(a),t.__controllers.delete(n),i(ko())})})}},{key:"schedulerYield",value:function(){return this.schedulerPostTask(function(){},{priority:"user-visible"})}},{key:"cancelIdleCallback",value:function(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}},{key:"requestAnimationFrame",value:function(e){var t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}},{key:"cancelAnimationFrame",value:function(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}},{key:"clear",value:function(){var e=this;this.__requestsIdle.forEach(function(t){return e.cancelIdleCallback(t)}),this.__requestsRaf.forEach(function(t){return e.cancelAnimationFrame(t)}),this.__controllers.forEach(function(e){return e.abort()}),this.timers.forEach(function(t){return _i(e.timers.get(t))}),this.timers.clear(),this.promisesRejections.forEach(function(e){return e()}),this.promisesRejections.clear()}},{key:"destruct",value:function(){this.clear(),this.isDestructed=!0}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),xi=function(e){return Ar(e)?e:[e]};function Ti(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}function Oi(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,function(e,t,r){switch(r.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function Ci(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);var t=Ot.createElement("iframe");t.style.display="none",Ot.body.appendChild(t);var r="";try{var n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close();try{for(var o=function(e){for(var t=function(e){if(""===r[e].selectorText)return"continue";Yo(r[e].selectorText,n.body).forEach(function(t){t.style.cssText=Oi(r[e].style.cssText+";"+t.style.cssText)})},r=n.styleSheets[e].cssRules,o=0;o<r.length;o+=1)t(o)},i=0;i<n.styleSheets.length;i+=1)o(i)}catch(e){if(!ft)throw e}li.each(n.body,function(e){if(li.isElement(e)){var t=e,r=t.getAttribute("style");r&&(t.style.cssText=Oi(r)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),r=n.firstChild?hn(n.body.innerHTML):""}}catch(e){}finally{li.safeRemove(t)}return r&&(e=r),hn(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function ji(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));var t="";try{var r=Ot.createElement("div");r.innerHTML=e;var n=[];r.firstChild&&li.each(r,function(e){if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":n.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":li.unwrap(e);break;default:zr(e.attributes).forEach(function(t){-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:n.push(e)}}),li.safeRemove.apply(null,n),t=r.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(hn).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function Pi(e){var t=Ot.createElement("div");return t.textContent=e,t.innerHTML}function Ii(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}function Ri(e,t){(li.isElement(e)||li.isFragment(e))&&(t.removeOnError&&(Ai(e),Yo("[onerror]",e).forEach(function(e){return Ai(e,t)})),t.safeJavaScriptLink&&(Ai(e),Yo('a[href^="javascript"]',e).forEach(function(e){return Ai(e,t)})))}function Ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{safeJavaScriptLink:!0,removeOnError:!0},r=t.safeJavaScriptLink,n=t.removeOnError;if(!li.isElement(e))return!1;var o=!1;n&&e.hasAttribute("onerror")&&(Xn(e,"onerror",null),o=!0);var i=e.getAttribute("href");return r&&i&&0===i.trim().indexOf("javascript")&&(Xn(e,"href",location.protocol+"//"+i),o=!0),o}var Mi=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),Di=new Set(["script","style"]),Ni=new Set(["br","hr","input"]);function Li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t.createElement("div");return Mr(e)?n.innerHTML=e:n.appendChild(e),Yo("*",n).forEach(function(e){var n=e.parentNode;if(n){if(r&&li.isTag(e,r)){var o=e.nodeName.toLowerCase(),i=li.isTag(e,Ni)?"%%%jodit-single-".concat(o,"%%%"):"%%%jodit-".concat(o,"%%%").concat(Li(e.innerHTML,t,r),"%%%/jodit-").concat(o,"%%%");return li.before(e,t.createTextNode(i)),void li.safeRemove(e)}if(li.isTag(e,Di))li.safeRemove(e);else if(li.isTag(e,Mi)){var a=e.nextSibling;li.isText(a)&&/^\s/.test(a.nodeValue||"")||a&&n.insertBefore(t.createTextNode(" "),a)}}}),hn(n.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,function(e,t,r,n){return"<".concat(t?"/":"").concat(n,">")})}var Bi=function(e){var t=["#"],r=xn(e);if(!r)return!1;if(3===(r=(r=hn(r.toUpperCase())).substring(1)).length){for(var n=0;n<3;n+=1)t.push(r[n]),t.push(r[n]);return t.join("")}return r.length>6&&(r=r.slice(0,6)),"#"+r};function Fi(e){var t={},r={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(function(e){return hn(e.toLowerCase())}).map(function(e){return pr[e]||e}).sort(function(e,t){return r[e]&&!r[t]?-1:!r[e]&&r[t]?1:r[e]&&r[t]?r[e]-r[t]:e>t?1:-1}).filter(function(e){return!t[e]&&""!==e&&(t[e]=!0)}).join("+")}var zi=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,r=[];e.length;)r.push(e.substr(0,t)),e=e.substr(t);return r[1]=r[1].replace(/./g,"*"),r[2]=r[2].replace(/./g,"*"),r.join("-")},Ui=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return hn(e).length}).map(function(e,r){return e=e.replace(/([^:])[\\/]+/g,"$1/"),r&&(e=e.replace(/^\//,"")),r!==t.length-1&&(e=e.replace(/\/$/,"")),e}).join("/")},Hi=function(e){return e.split("/").reduce(function(e,t){switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},qi=function(e,t){return/^[0-9]+$/.test(e.toString())?e+t:e.toString()},Vi=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e.length}).map(function(e){return e.replace(/\/$/,"")}).join("/").replace(/([^:])[\\/]+/g,"$1/")},Wi=function(e,t){var r=function(e){return parseInt(e,10)},n=t.getComputedStyle(e);return e.offsetWidth-r(n.getPropertyValue("padding-left")||"0")-r(n.getPropertyValue("padding-right")||"0")};function Gi(e){if(!e)return null;var t=li.isHTMLElement(e),r=t&&Rn(e,"overflowY");return t&&"visible"!==r&&"hidden"!==r&&e.scrollHeight>=e.clientHeight?e:Gi(e.parentNode)||Ot.scrollingElement||Ot.body}var $i=function(e,t){var r=t.getComputedStyle(e);return e.clientWidth-(parseFloat(r.paddingLeft||"0")+parseFloat(r.paddingRight||"0"))};function Ki(e){return Mr(e)||Ar(e)?e.length:ln(e)?Object.keys(e).length:0}var Yi=function(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{n=e.getBoundingClientRect()}catch(e){n={top:0,bottom:0,left:0,right:0,width:0,height:0}}var i,a,s=r.body,l=r.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=r.defaultView||r.parentWindow,u=c.pageYOffset||l.scrollTop||s.scrollTop,d=c.pageXOffset||l.scrollLeft||s.scrollLeft,f=l.clientTop||s.clientTop||0,p=l.clientLeft||s.clientLeft||0,h=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&h){var m=Yi(h,t,t.od,!0),g=m.top,y=m.left;i=n.top+g,a=n.left+y}else i=n.top+u-f,a=n.left+d-p;return{top:Math.round(i),left:Math.round(a),width:n.width,height:n.height}};function Ji(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getBoundingClientRect(),a=i.left,s=i.top;if(rn(t)&&t.iframe&&t.ed.body.contains(e)&&!o){var l=Ji(t.iframe,t,!0);a+=l.left,s+=l.top}return{left:Math.round(a),top:Math.round(s),width:Math.round(null!==(r=e.offsetWidth)&&void 0!==r?r:i.width),height:Math.round(null!==(n=e.offsetHeight)&&void 0!==n?n:i.height)}}function Xi(e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0,o=0,i=-1,a=0,s=0;for(o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<e.length&&o<t.length;)e[n].toLowerCase()===t[o].toLowerCase()?(n++,a++,s=0,-1===i&&(i=o)):n>0&&(s>=r&&t[o]!==vt?(n=0,i=-1,a=0,s=0,o--):(s++,a++)),o++;return n===e.length?[i,a]:[-1,0]}function Qi(e){return e.length?e[0].toUpperCase()+e.substring(1):""}var Zi=function(e,t){if(!t||!t.length)return e;for(var r=/%([sd])/g,n=r.exec(e),o=e,i=0;n&&void 0!==t[i];)o=o.replace(n[0],t[i].toString()),i+=1,n=r.exec(e);return o};function ea(e,t,r){if(!Mr(e))throw Bo("i18n: Need string in first argument");if(!e.length)return e;var n=Boolean(null==r?void 0:r.debugLanguage),o={},i=function(e){return t&&t.length?Zi(e,t):e},a=Eo(eo.defaultOptions.language,eo.defaultOptions.language),s=Eo(null==r?void 0:r.language,a),l=function(t){if(t){if(Mr(t[e]))return i(t[e]);var r=e.toLowerCase();if(Mr(t[r]))return i(t[r]);var n=Qi(e);return Mr(t[n])?i(t[n]):void 0}};void 0!==wr[s]?o=wr[s]:n||(o=void 0!==wr[a]?wr[a]:wr.en);var c=null==r?void 0:r.i18n;if(c&&c[s]){var u=l(c[s]);if(u)return u}return l(o)||(!n&&wr.en&&Mr(wr.en[e])&&wr.en[e]?i(wr.en[e]):n?"{"+e+"}":(ft||"en"===s||console.warn('i18n need "'.concat(e,'" in "').concat(s,'"')),i(e)))}function ta(e){return Tn(e).toLowerCase()}function ra(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}var na=new Set;function oa(){var e;return e=function(e,t){var r;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(n){return r=ia(e,t,!1),na.has(r)?[2]:(na.add(r),[2,Un(e,r)])})},oa=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ra(i,n,o,a,s,"next",e)}function s(e){ra(i,n,o,a,s,"throw",e)}a(void 0)})},oa.apply(this,arguments)}function ia(e,t,r){t=Tn(t);var n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(r?"js":"css")}function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__items=new Map}var t;return t=[{key:"size",get:function(){return this.__items.size}},{key:"add",value:function(e,t){this.__items.set(ta(e),t),Aa.fire("plugin:".concat(e,":ready"))}},{key:"get",value:function(e){return this.__items.get(ta(e))}},{key:"remove",value:function(e){this.__items.delete(ta(e))}},{key:"__getFullPluginsList",value:function(e){var t=[];return this.__items.forEach(function(r,n){e&&!e.has(n)||t.push([n,r])}),t}},{key:"__init",value:function(e){var t=this,r=function(e){return{extraList:e.o.extraPlugins.map(function(e){return Mr(e)?{name:e}:e}),disableList:new Set(Ti(e.o.disablePlugins).map(ta)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null}}(e),n=r.extraList,o=r.disableList,i=r.filter,a=new Map,s={},l=new Set;e.__plugins=s;var c=function(){if(!e.isInDestruct){var r=!1;t.__getFullPluginsList(i).forEach(function(t){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return aa(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?aa(e,2):void 0}}(e)||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.")}()}(t),i=n[0],c=n[1];if(!o.has(i)&&!a.has(i)){var u=null==c?void 0:c.requires;if(u&&Ar(u)&&u.length){if(u.some(function(e){return o.has(e)}))return;if(!u.every(function(e){return a.has(e)}))return void l.add(i)}r=!0;var d=function(e,t){try{try{return Rr(t)?new t(e):t}catch(r){if(Rr(t)&&!t.prototype)return t(e)}}catch(e){if(console.error(e),!ft)throw e}return null}(e,c);if(!d)return a.set(i,null),void l.delete(i);(function(e,t,r,n,o,i){if(Jr(n))try{n.init(e)}catch(e){if(console.error(e),!ft)throw e}o.set(t,n),i.delete(t),n.hasStyle&&function(e,t){return oa.apply(this,arguments)}(e,t).catch(function(e){!ft&&console.error(e)}),n.styles&&(Ia(e,t,"style").innerHTML=n.styles)})(e,i,0,d,a,l),s[i]=d}}),r&&(e.e.fire("updatePlugins"),c())}};n&&n.length&&function(e,t,r,n){try{var o=r.filter(function(t){return!e.has(ta(t.name))});o.length&&function(e,t,r){t.map(function(t){var n=t.url||ia(e,t.name,!0);return zn(e,n).then(r).catch(function(){return null})})}(t,o,n)}catch(e){if(!ft)throw e}}(this.__items,e,n,c),c(),function(e,t){e.e.on("beforeDestruct",function(){Object.keys(t).forEach(function(r){var n=t[r];Xr(n)&&n.destruct(e),delete t[r]}),delete e.__plugins})}(e,s),!ft&&l.size&&console.warn("After init plugin waiting list is not clean:",l)}},{key:"wait",value:function(e){var t=this;return new Promise(function(r){if(t.get(e))return r();var n=function(){r(),Aa.off("plugin:".concat(e,":ready"),n)};Aa.on("plugin:".concat(e,":ready"),n)})}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),la="JoditEventDefaultNamespace",ca=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__store=new Map}var t;return t=[{key:"get",value:function(e,t){if(this.__store.has(t)){var r=this.__store.get(t);return Jn(r,"-"),r[e]}}},{key:"indexOf",value:function(e,t,r){var n=this.get(e,t);if(n)for(var o=0;o<n.length;o+=1)if(n[o].originalCallback===r)return o;return!1}},{key:"namespaces",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=zr(this.__store.keys());return e?t.filter(function(e){return e!==la}):t}},{key:"events",value:function(e){var t=this.__store.get(e);return t?Object.keys(t):[]}},{key:"set",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(r):o[e].push(r)}},{key:"clear",value:function(){this.__store.clear()}},{key:"clearEvents",value:function(e,t){var r=this.__store.get(e);r&&r[t]&&(delete r[t],Object.keys(r).length||this.__store.delete(e))}},{key:"isEmpty",value:function(){return 0===this.__store.size}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function da(e){return function(e){if(Array.isArray(e))return ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ua(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ua(e,t):void 0}}(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.")}()}var fa=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=Ot,this.__prepareEvent=function(e){e.cancelBubble||(e.composed&&Rr(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(function(t){Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&r.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:function(){return r.__doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}var t;return t=[{key:"mute",value:function(e){return this.__mutedEvents.add(null!=e?e:"*"),this}},{key:"isMuted",value:function(e){return!(!e||!this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}},{key:"unmute",value:function(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}},{key:"__eachEvent",value:function(e,t){var r=this;Ti(e).map(function(e){return e.trim()}).forEach(function(e){var n=e.split("."),o=n[1]||la;t.call(r,n[0],o)})}},{key:"__getStore",value:function(e){if(!e)throw Bo("Need subject");if(void 0===e[this.__key]){var t=new ca;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}},{key:"__removeStoreFromSubject",value:function(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}},{key:"__triggerNativeEvent",value:function(e,t){var r=this.__doc.createEvent("HTMLEvents");Mr(t)?r.initEvent(t,!0,!0):(r.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(function(e){Object.defineProperty(r,e,{value:t[e],enumerable:!0})}),Object.defineProperty(r,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(r)}},{key:"current",get:function(){return this.currents[this.currents.length-1]}},{key:"on",value:function(e,t,r,n){var o,i,a,s,l=this;if(Mr(e)||Dr(e)?(o=this,i=e,a=t,s=r):(o=e,i=t,a=r,s=n),!Mr(i)&&!Dr(i)||0===i.length)throw Bo("Need events names");if(!Rr(a))throw Bo("Need event handler");if(Ar(o))return o.forEach(function(e){l.on(e,i,a,s)}),this;var c=o,u=this.__getStore(c),d=this,f=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o;if(!d.isMuted(e))return a&&(o=a).call.apply(o,[this].concat(da(r)))};return pa(c)&&(f=function(e){if(!d.isMuted(e.type))return d.__prepareEvent(e),a&&!1===a.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(i,function(e,t){var r,n;if(0===e.length)throw Bo("Need event name");if(!1===u.indexOf(e,t,a)){var o={event:e,originalCallback:a,syntheticCallback:f};if(u.set(e,t,o,null==s?void 0:s.top),pa(c)){var i=kr.has(e)?{passive:!0,capture:null!==(r=null==s?void 0:s.capture)&&void 0!==r&&r}:null!==(n=null==s?void 0:s.capture)&&void 0!==n&&n;f.options=i,c.addEventListener(e,f,i),l.__memoryDOMSubjectToHandler(c,f)}}}),this}},{key:"__memoryDOMSubjectToHandler",value:function(e,t){var r=this.__domEventsMap.get(e)||new Set;r.add(t),this.__domEventsMap.set(e,r)}},{key:"__unmemoryDOMSubjectToHandler",value:function(e,t){var r=this.__domEventsMap,n=r.get(e)||new Set;n.delete(t),n.size?r.set(e,n):r.delete(e)}},{key:"one",value:function(e,t,r,n){var o,i,a,s,l=this;Mr(e)||Dr(e)?(o=this,i=e,a=t,s=r):(o=e,i=t,a=r,s=n);var c=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.off(o,i,c),a.apply(void 0,da(t))};return this.on(o,i,c,s),this}},{key:"off",value:function(e,t,r){var n,o,i,a=this;if(Mr(e)||Dr(e)?(n=this,o=e,i=t):(n=e,o=t,i=r),Ar(n))return n.forEach(function(e){a.off(e,o,i)}),this;var s=n,l=this.__getStore(s);if(!Mr(o)&&!Dr(o)||0===o.length)return l.namespaces().forEach(function(e){a.off(s,"."+e)}),this.__removeStoreFromSubject(s),this;var c=function(e){var t;pa(s)&&(s.removeEventListener(e.event,e.syntheticCallback,null!==(t=e.syntheticCallback.options)&&void 0!==t&&t),a.__unmemoryDOMSubjectToHandler(s,e.syntheticCallback))},u=function(e,t){if(""!==e){var r=l.get(e,t);if(r&&r.length)if(Rr(i)){var n=l.indexOf(e,t,i);!1!==n&&(c(r[n]),r.splice(n,1),r.length||l.clearEvents(t,e))}else r.forEach(c),r.length=0,l.clearEvents(t,e)}else l.events(t).forEach(function(e){""!==e&&u(e,t)})};return this.__eachEvent(o,function(e,t){t===la?l.namespaces().forEach(function(t){u(e,t)}):u(e,t)}),l.isEmpty()&&this.__removeStoreFromSubject(s),this}},{key:"stopPropagation",value:function(e,t){var r=this,n=Mr(e)?this:e,o=Mr(e)?e:t;if("string"!=typeof o)throw Bo("Need event names");var i=this.__getStore(n);this.__eachEvent(o,function(e,t){var o=i.get(e,t);o&&r.__stopped.push(o),t===la&&i.namespaces(!0).forEach(function(t){return r.stopPropagation(n,e+"."+t)})})}},{key:"__removeStop",value:function(e){if(e){var t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}},{key:"__isStopped",value:function(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}},{key:"fire",value:function(e,t){for(var r,n,o=this,i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];var l=Mr(e)?this:e,c=Mr(e)?e:t,u=Mr(e)?[t].concat(da(a)):a;if(!pa(l)&&!Mr(c))throw Bo("Need events names");var d=this.__getStore(l);return!Mr(c)&&pa(l)?this.__triggerNativeEvent(l,t):this.__eachEvent(c,function(e,t){if(pa(l))o.__triggerNativeEvent(l,e);else{var i=d.get(e,t);if(i)try{da(i).every(function(t){var a;return!o.__isStopped(i)&&(o.currents.push(e),n=(a=t.syntheticCallback).call.apply(a,[l,e].concat(da(u))),o.currents.pop(),void 0!==n&&(r=n),!0)})}finally{o.__removeStop(i)}t!==la||pa(l)||d.namespaces().filter(function(e){return e!==t}).forEach(function(t){var n=o.fire.apply(o,[l,e+"."+t].concat(da(u)));void 0!==n&&(r=n)})}}),r}},{key:"destruct",value:function(){var e=this;this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(function(t,r){e.off(r)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function pa(e){return Rr(e.addEventListener)}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||ga(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 ga(e,t){if(e){if("string"==typeof e)return ha(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ha(e,t):void 0}}function ya(e,t){var r;do{r=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!r&&e);return r}function va(e,t){return function(r,n){var o;if(!Rr(r[n]))throw Bo("Handler must be a Function");var i=null===(o=null==t?void 0:t.immediately)||void 0===o||o,a=null==t?void 0:t.context,s=function(t){var o=pn(t)?t:t.jodit,s=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a;if(!t.isInDestruct)return(a=t)[n].apply(a,[e].concat(function(e){return function(e){if(Array.isArray(e))return ha(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ga(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.")}()}(o)))};i||(s=t.async.microDebounce(s,!0)),Ti(e).forEach(function(e){if(/:/.test(e)){var n=ma(e.split(":"),2),i=n[0],l=n[1],c=a;return i.length&&(c=t.get(i)),Rr(c)&&(c=c(t)),o.events.on(c||t,l,s),c||o.events.on(l,s),void t.hookStatus("beforeDestruct",function(){o.events.off(c||t,l,s).off(l,s)})}var u=e.split("."),d=ma(u,1)[0],f=u.slice(1),p=t[d];ln(p)&&Ea(p).on("change.".concat(f.join(".")),s);var h=ya(r,d);Object.defineProperty(t,d,{configurable:!0,set:function(e){var r=p;r!==e&&(p=e,h&&h.set&&h.set.call(t,e),ln(p)&&(p=Ea(p)).on("change.".concat(f.join(".")),s),s(d,r,p))},get:function(){return h&&h.get?h.get.call(t):p}})})};Rr(r.hookStatus)?r.hookStatus(Pr.ready,s):s(r)}}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _a(e){return function(e){if(Array.isArray(e))return ba(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ba(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ba(e,t):void 0}}(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.")}()}var wa=Symbol("observable-object");function Sa(e){return void 0!==e[wa]}function Ea(e){if(Sa(e))return e;var t={},r={},n=function(t,o){return Ar(t)?(t.map(function(e){return n(e,o)}),e):(r[t]||(r[t]=[]),r[t].push(o),e)},o=function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(Ar(n))n.map(function(e){return o.apply(void 0,[e].concat(_a(a)))});else try{var l;!t[n]&&r[n]&&(t[n]=!0,r[n].forEach(function(t){return(l=t).call.apply(l,[e].concat(_a(a)))}))}finally{t[n]=!1}},i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a={};Sa(t)||(Object.defineProperty(t,wa,{enumerable:!1,value:!0}),Object.keys(t).forEach(function(n){var s=n,l=r.concat(s).filter(function(e){return e.length});a[s]=t[s];var c=ya(t,s);Object.defineProperty(t,s,{set:function(t){var r=a[s];if(!$r(a[s],t)){o(["beforeChange","beforeChange.".concat(l.join("."))],s,t),ln(t)&&i(t,l),c&&c.set?c.set.call(e,t):a[s]=t;var n=[];o(["change"].concat(_a(l.reduce(function(e,t){return n.push(t),e.push("change.".concat(n.join("."))),e},[]))),l.join("."),r,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:function(){return c&&c.get?c.get.call(e):a[s]},enumerable:!0,configurable:!0}),ln(a[s])&&i(a[s],l)}),Object.defineProperty(e,"on",{value:n}))};return i(e),e}var ka={},xa=1,Ta=new Set,Oa=new sa,Ca={},ja=function(e){Object.keys(e).forEach(function(t){wr[t]?Object.assign(wr[t],e[t]):wr[t]=e[t]})},Pa=new WeakMap;function Ia(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"div",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Mr(t)?t:t?Ho(t.prototype):"jodit-utils",i=Pa.get(e)||{},a=o+r,s=pn(e)?e:e.j,l=null;if(!i[a]){var c=s.c;if(l=Ra(s.o,s.container,e.od.body),n&&rn(e)&&e.od!==e.ed){c=e.createInside;var u="style"===r?e.ed.head:e.ed.body;l=rn(e)&&e.o.shadowRoot?e.o.shadowRoot:u}var d=c.element(r,{className:"jodit jodit-".concat(Tn(o),"-container jodit-box")});d.classList.add("jodit_theme_".concat(s.o.theme||"default")),l.appendChild(d),i[a]=d,e.hookStatus("beforeDestruct",function(){s.events.off(d),li.safeRemove(d),delete i[a],Object.keys(i).length&&Pa.delete(e)}),Pa.set(e,i),s.events.fire("getContainer",d)}return i[a].classList.remove("jodit_theme_default","jodit_theme_dark"),i[a].classList.add("jodit_theme_".concat(s.o.theme||"default")),i[a]}function Ra(e,t,r){var n,o,i;return null!==(i=null!==(o=null!==(n=e.popupRoot)&&void 0!==n?n:e.shadowRoot)&&void 0!==o?o:li.closest(t,function(e){return li.isHTMLElement(e)&&(li.isTag(e,"dialog")||["fixed","absolute"].includes(Rn(e,"position")))},r))&&void 0!==i?i:r}var Aa=new fa;function Ma(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Da=new Map,Na=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.async=new ki,this.ownerWindow=window,this.__componentStatus=Pr.beforeInit,this.uid="jodit-uid-"+function(){function e(){return xa+=10*(Math.random()+1),Math.round(xa).toString(16)}for(var t=e();Ta.has(t);)t=e();return Ta.add(t),t}()}var t,r,n;return t=e,r=[{key:"componentName",get:function(){return this.__componentName||(this.__componentName="jodit-"+Tn((Rr(this.className)?this.className():"")||Ho(this))),this.__componentName}},{key:"getFullElName",value:function(e,t,r){var n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push("__".concat(e))),t&&(n.push("_",t),n.push("_",Nr(r)?"true":r.toString())),n.join("")}},{key:"ownerDocument",get:function(){return this.ow.document}},{key:"od",get:function(){return this.ownerDocument}},{key:"ow",get:function(){return this.ownerWindow}},{key:"get",value:function(e,t){return Lr(e,t||this)}},{key:"isReady",get:function(){return this.componentStatus===Pr.ready}},{key:"isDestructed",get:function(){return this.componentStatus===Pr.destructed}},{key:"isInDestruct",get:function(){return Pr.beforeDestruct===this.componentStatus||Pr.destructed===this.componentStatus}},{key:"bindDestruct",value:function(e){var t=this;return e.hookStatus(Pr.beforeDestruct,function(){return!t.isInDestruct&&t.destruct()}),this}},{key:"destruct",value:function(){this.setStatus(Pr.destructed),this.async&&(this.async.destruct(),this.async=void 0),Da.get(this)&&Da.delete(this),this.ownerWindow=void 0}},{key:"componentStatus",get:function(){return this.__componentStatus},set:function(e){this.setStatus(e)}},{key:"setStatus",value:function(e){return this.setStatusComponent(e,this)}},{key:"setStatusComponent",value:function(e,t){if(e!==this.__componentStatus){t===this&&(this.__componentStatus=e);var r=Object.getPrototypeOf(this);r&&Rr(r.setStatusComponent)&&r.setStatusComponent(e,t);var n=Da.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(function(e){return e(t)})}}},{key:"hookStatus",value:function(e,t){var r=Da.get(this);r||(r={},Da.set(this,r)),r[e]||(r[e]=[]),r[e].push(t)}}],n=[{key:"isInstanceOf",value:function(e,t){return r=e,null!=(n=t)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](r):r instanceof n;var r,n}}],r&&Ma(t.prototype,r),n&&Ma(t,n),e}();function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ba(e,t,r){return Ba="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Fa(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Ba(e,t,r||e)}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fa(e)}function za(e,t){return za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},za(e,t)}function Ua(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ua=function(){return!!e})()}Na.STATUSES=Pr;var Ha=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Fa(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Ua()?Reflect.construct(t,[],Fa(e).constructor):t.apply(e,r))}(this,t)).setParentView(e),r}var r;return function(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}}),t&&za(e,t)}(t,e),r=[{key:"j",get:function(){return this.jodit}},{key:"defaultTimeout",get:function(){return this.j.defaultTimeout}},{key:"i18n",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o;return(o=this.j).i18n.apply(o,[e].concat(function(e){return function(e){if(Array.isArray(e))return La(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return La(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?La(e,t):void 0}}(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.")}()}(r)))}},{key:"setParentView",value:function(e){return this.jodit=e,e.components.add(this),this}},{key:"destruct",value:function(){return this.j.components.delete(this),Ba(Fa(t.prototype),"destruct",this).call(this)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Na);function qa(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"debounce";return function(n,o){var i=n[o];if(!Rr(i))throw Bo("Handler must be a Function");return n.hookStatus(Pr.ready,function(n){var i=n.async;Jn(null!=i,"Component ".concat(n.componentName||n.constructor.name,' should have "async:IAsync" field'));var a=Rr(e)?e(n):e,s=an(a)||ln(a)?a:n.defaultTimeout;Object.defineProperty(n,o,{configurable:!0,value:i[r](n[o].bind(n),s,t)})}),{configurable:!0,get:function(){return i.bind(this)}}}}function Va(e){return qa(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"throttle")}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ga(e){return function(e){if(Array.isArray(e))return Wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wa(e,t):void 0}}(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 $a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=e.prototype,n=0;n<t.length;n++)for(var o=function(e){var t=a[e],n=Object.getOwnPropertyDescriptor(i.prototype,t);null!=n&&Rr(n.value)&&!Rr(r[t])&&Object.defineProperty(r,t,{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o;return(o=n.value).call.apply(o,[this].concat(Ga(t)))}})},i=t[n],a=Object.getOwnPropertyNames(i.prototype),s=0;s<a.length;s++)o(s)}}function Ka(e){return function(t,r){if(!Rr(t[r]))throw Bo("Handler must be a Function");t.hookStatus(e,function(e){e[r].call(e)})}}function Ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ja(){return function(e,t){if(!Rr(e[t]))throw Bo("Handler must be a Function");e.hookStatus(Pr.ready,function(e){var r,n=e.async,o=e[t];e[t]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return n.requestIdleCallback((r=o).bind.apply(r,[e].concat(function(e){return function(e){if(Array.isArray(e))return Ya(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ya(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ya(e,t):void 0}}(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.")}()}(i))))}})}}var Xa=function(e,t){!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set:function(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};function Qa(e,t){e.hookStatus(Pr.ready,function(e){var r=pn(e)?e:e.jodit,n="".concat(r.options.namespace).concat(e.componentName,"_prop_").concat(t),o=e[t];Object.defineProperty(e,t,{get:function(){var e;return null!==(e=r.storage.get(n))&&void 0!==e?e:o},set:function(e){r.storage.set(n,e)}})})}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function es(e){return function(t,r){if(!Rr(t[r]))throw Bo("Handler must be a Function");t.hookStatus(Pr.ready,function(t){var n=t.async,o=t[r],i=0;Object.defineProperty(t,r,{configurable:!0,value:function r(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n.clearTimeout(i),e(t)?o.apply(t,s):i=n.setTimeout(function(){return r.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Za(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Za(e,t):void 0}}(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.")}()}(s))},10)}})})}}function ts(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function rs(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ts(i,n,o,a,s,"next",e)}function s(e){ts(i,n,o,a,s,"throw",e)}a(void 0)})}}function ns(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}eo.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:function(){return new XMLHttpRequest}};var os=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.request=t,this.status=r,this.statusText=n,this.body=o}var t;return(t=[{key:"url",get:function(){return this.request.url}},{key:"json",value:function(){var e=this;return rs(function(){return ns(this,function(t){return[2,JSON.parse(e.body)]})})()}},{key:"text",value:function(){return Promise.resolve(this.body)}},{key:"blob",value:function(){var e=this;return rs(function(){return ns(this,function(t){return[2,e.body]})})()}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function is(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function as(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ss(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ls=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo.prototype.defaultAjaxOptions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__async=new ki,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=yo(t||{},r),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}var t;return t=[{key:"className",value:function(){return"Ajax"}},{key:"__buildParams",value:function(e,t){return ln(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):Rr(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):Mr(e)||(r=e,null!=(n=Tt.FormData)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n)||"object"===(void 0===e?"undefined":ss(e))&&null!=e&&Rr(e.append)?e:Zn(e);var r,n}},{key:"o",get:function(){return this.options}},{key:"abort",value:function(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}},{key:"send",value:function(){this.__activated=!0;var e=this.xhr,t=this.o,r=this.prepareRequest(),n=this;return this.__async.promise(function(){var o,i=(o=function(o,i){var a,s,l,c,u,d,f;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(p){switch(p.label){case 0:return s=function(){n.__isFulfilled=!0,i(Fo("Connection error"))},l=function(){n.__isFulfilled=!0,o(new os(r,e.status,e.statusText,e.responseType?e.response:e.responseText))},e.onload=l,e.onabort=function(){n.__isFulfilled=!0,i(ko("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=function(e){var t,r,o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null===(r=(t=n.options).onProgress)||void 0===r||r.call(t,o)},e.onreadystatechange=function(){var r,o;null===(o=(r=n.options).onProgress)||void 0===o||o.call(r,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?l():e.statusText&&(n.__isFulfilled=!0,i(Fo(e.statusText))))},e.withCredentials=null!==(a=t.withCredentials)&&void 0!==a&&a,c=r.url,u=r.data,d=r.method,e.open(d,c,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType),Rr(f=t.headers)?[4,f.call(n)]:[3,2];case 1:f=p.sent(),p.label=2;case 2:return f&&e.setRequestHeader&&Object.keys(f).forEach(function(t){e.setRequestHeader(t,f[t])}),n.__async.setTimeout(function(){e.send(u?n.__buildParams(u):void 0)},0),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var i=o.apply(e,t);function a(e){is(i,r,n,a,s,"next",e)}function s(e){is(i,r,n,a,s,"throw",e)}a(void 0)})});return function(e,t){return i.apply(this,arguments)}}())}},{key:"prepareRequest",value:function(){if(!this.o.url)throw Bo("Need URL for AJAX request");var t=this.o.url,r=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&r&&ln(r)){var o=t.indexOf("?");if(-1!==o){var i=_o(t);t=t.substring(0,o)+"?"+Zn(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){as(e,t,r[t])})}return e}({},i,r))}else t+="?"+Zn(this.o.data)}var a={url:t,method:n,data:r};return e.log.splice(100),e.log.push(a),a}},{key:"destruct",value:function(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();ls.log=[],function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ss(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)}([jr],ls.prototype,"destruct",null);var cs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"getElm",value:function(e){return this.container.querySelector(".".concat(this.getFullElName(e)))}},{key:"getElms",value:function(e){return zr(this.container.querySelectorAll(".".concat(this.getFullElName(e))))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),us=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"afterSetMod",value:function(e,t){}},{key:"setMod",value:function(e,t,r){e=e.toLowerCase();var n=this.mods[e];if(n===t)return this;var o="".concat(this.componentName,"_").concat(e,"_"),i=(r||this.container).classList;return null!=n&&i.remove("".concat(o).concat(n.toString().toLowerCase())),!Nr(t)&&""!==t&&i.add("".concat(o).concat(t.toString().toLowerCase())),this.mods[e]=t,this.afterSetMod(e,t),this}},{key:"getMod",value:function(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),ds=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"getIcon",value:function(t){if(/<svg/i.test(t))return t;var r=e.icons[t]||e.icons[t.replace(/-/g,"_")]||e.icons[t.replace(/_/g,"-")]||e.icons[In(t)]||e.icons[Tn(t)]||e.icons[t.toLowerCase()];return ft||r||console.warn('Icon "'.concat(t,'" not found')),r}},{key:"exists",value:function(e){return void 0!==this.getIcon(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"<span></span>";return this.getIcon(e)||t}},{key:"set",value:function(e,t){return this.icons[e.replace("_","-")]=t,this}},{key:"makeIcon",value:function(t,r){var n,o,i,a;if(r){var s,l,c=r.name,u=r.iconURL,d=r.fill,f=c.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(c)||(l=null===(o=(n=t.o).getIcon)||void 0===o?void 0:o.call(n,c,f));var p="".concat(c).concat(u).concat(d).concat(null!=l?l:"");if(t.o.cache&&this.__cache.has(p))return null===(i=this.__cache.get(p))||void 0===i?void 0:i.cloneNode(!0);if(u)Rn(s=t.c.span(),"backgroundImage","url("+u.replace("{basePath}",(null==t?void 0:t.basePath)||"")+")");else{var h=l||e.get(c,"")||(null===(a=t.o.extraIcons)||void 0===a?void 0:a[c]);h&&(s=t.c.fromHTML(h.trim()),/^<svg/i.test(c)||s.classList.add("jodit-icon_"+f))}return s&&(s.classList.add("jodit-icon"),s.style.fill=d,t.o.cache&&this.__cache.set(p,s.cloneNode(!0))),s}}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,t),e}();function fs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ps(e,t,r){return ps="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hs(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},ps(e,t,r||e)}function hs(e){return hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hs(e)}function ms(e,t){return ms=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ms(e,t)}function gs(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ys(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ys=function(){return!!e})()}ds.icons={},ds.__cache=new Map;var vs,bs=vs=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=hs(t),function(e,t){return!t||"object"!==gs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ys()?Reflect.construct(t,r||[],hs(e).constructor):t.apply(e,r))}(this,t,[e])).name="",n.__parentElement=null,n.mods={},n.container=n.createContainer(r),Object.defineProperty(n.container,"component",{value:n,configurable:!0}),n}var r,n,o;return function(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}}),t&&ms(e,t)}(t,e),r=t,n=[{key:"parentElement",get:function(){return this.__parentElement},set:function(e){var t=this;this.__parentElement=e,e&&e.hookStatus("beforeDestruct",function(){return t.destruct()}),this.updateParentElement(this)}},{key:"bubble",value:function(e){for(var t=this.parentElement;t;)e(t),t=t.parentElement;return this}},{key:"updateParentElement",value:function(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}},{key:"get",value:function(e,r){return ps(hs(t.prototype),"get",this).call(this,e,r)||this.getElm(e)}},{key:"closest",value:function(e){for(var t="object"===(void 0===e?"undefined":gs(e))?function(t){return t===e}:function(t){return Na.isInstanceOf(t,e)},r=this.__parentElement;r;){if(t(r))return r;r=!r.parentElement&&r.container.parentElement?vs.closestElement(r.container.parentElement,vs):r.parentElement}return null}},{key:"update",value:function(){}},{key:"appendTo",value:function(e){return e.appendChild(this.container),this}},{key:"clearName",value:function(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}},{key:"render",value:function(e){return this.j.c.div(this.componentName)}},{key:"createContainer",value:function(e){var t=this.render(e);if(Mr(t)){var r=this.parseTemplate(t);return r.classList.add(this.componentName),r}return t}},{key:"parseTemplate",value:function(e){var t=this;return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,function(e,t){return ds.get(t)||""}).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,function(e,r){return t.i18n(r)}))}},{key:"destruct",value:function(){return li.safeRemove(this.container),this.parentElement=null,ps(hs(t.prototype),"destruct",this).call(this)}}],o=[{key:"closestElement",value:function(e,t){var r=li.up(e,function(e){if(e){var r=e.component;return r&&Na.isInstanceOf(r,t)}return!1});return r?null==r?void 0:r.component:null}}],n&&fs(r.prototype,n),o&&fs(r,o),t}(Ha);function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ws(e,t,r){return ws="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ss(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},ws(e,t,r||e)}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ss(e)}function Es(e,t){return Es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Es(e,t)}function ks(e){return function(e){if(Array.isArray(e))return _s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_s(e,t):void 0}}(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 xs(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ts=function(){return!!e})()}bs=vs=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":gs(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([$a(us,cs)],bs);var Os,Cs=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":xs(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},js=Os=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=Ss(t),function(e,t){return!t||"object"!==xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ts()?Reflect.construct(t,r||[],Ss(e).constructor):t.apply(e,r))}(this,t,[e,n])).options=n,o.syncMod=!1,o.elements=[],o.buttonSize="middle",null==r||r.forEach(function(e){return e&&o.append(e)}),(null==n?void 0:n.name)&&(o.name=n.name),o}var r;return function(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}}),t&&Es(e,t)}(t,e),r=[{key:"className",value:function(){return"UIGroup"}},{key:"allChildren",get:function(){for(var e=[],t=ks(this.elements);t.length;){var r,n=t.shift();if(Ar(n))(r=t).push.apply(r,ks(n));else if(Na.isInstanceOf(n,Os)){var o;(o=t).push.apply(o,ks(n.elements))}else n&&e.push(n)}return e}},{key:"update",value:function(){this.elements.forEach(function(e){return e.update()}),this.setMod("size",this.buttonSize)}},{key:"append",value:function(e,t){var r=this;if(Ar(e)){if("number"==typeof t)throw new Error("You can not use index when append array of elements");return e.forEach(function(e){return r.append(e,t)}),this}var n=e,o=void 0;if("number"==typeof t?(o=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(o,0,n)):this.elements.push(n),n.name&&n.container.classList.add(this.getFullElName(n.name)),t&&"string"==typeof t){var i=this.getElm(t);if(null==i)throw new Error("Element does not exist");i.appendChild(n.container)}else this.appendChildToContainer(n.container,o);return n.parentElement=this,this}},{key:"afterSetMod",value:function(e,t){this.syncMod&&this.elements.forEach(function(r){return r.setMod(e,t)})}},{key:"appendChildToContainer",value:function(e,t){void 0===t||t<0||t>this.elements.length-1||null==this.container.children[t]?this.container.appendChild(e):this.container.insertBefore(e,this.container.children[t])}},{key:"remove",value:function(e){var t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),li.safeRemove(e.container),e.parentElement=null),this}},{key:"clear",value:function(){return this.elements.forEach(function(e){return e.destruct()}),this.elements.length=0,this}},{key:"destruct",value:function(){return this.clear(),ws(Ss(t.prototype),"destruct",this).call(this)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ps(e)}function Is(e,t){return Is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Is(e,t)}function Rs(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function As(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(As=function(){return!!e})()}Cs([va("buttonSize")],js.prototype,"update",null),js=Os=Cs([gi],js);var Ms=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Ps(r=t),function(e,t){return!t||"object"!==Rs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,As()?Reflect.construct(r,n||[],Ps(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Is(e,t)}(t,e),(r=[{key:"className",value:function(){return"UISeparator"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ds(e)}function Ns(e,t){return Ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ns(e,t)}function Ls(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Bs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bs=function(){return!!e})()}Ms=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Rs(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Ms);var Fs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Ds(r=t),function(e,t){return!t||"object"!==Ls(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Bs()?Reflect.construct(r,n||[],Ds(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Ns(e,t)}(t,e),(r=[{key:"className",value:function(){return"UISpacer"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Us(e){return function(e){if(Array.isArray(e))return zs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zs(e,t):void 0}}(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.")}()}Fs=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Ls(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Fs);var Hs=function(e){return Ar(e.buttons)};function qs(e,t){var r=t.getRegisteredButtonGroups();return new Set(e.reduce(function(e,t){var n;return Hs(t)?e=e.concat(Us(t.buttons).concat(Us(null!==(n=r[t.group])&&void 0!==n?n:[]))):e.push(t),e},[]))}function Vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ws(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ws(e,t,r[t])})}return e}function $s(e,t){var r;return t||(t=eo.defaultOptions.controls),Mr(e)?r=Ks(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(r=Gs({name:"empty"},vo(e))).name]&&(r=Gs({},vo(t[r.name]),vo(r))),r}function Ks(e,t){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Vs(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vs(e,2):void 0}}(e)||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.")}()}(e.split(/\./)),n=r[0],o=r[1],i=t;return null!=o?void 0!==t[n]&&(i=t[n]):o=n,i[o]?Gs({name:o},vo(i[o])):void 0}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(e)}function Js(e,t){return Js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Js(e,t)}function Xs(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qs=function(){return!!e})()}var Zs=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Xs(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},el=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Ys(t),function(e,t){return!t||"object"!==Xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Qs()?Reflect.construct(t,r||[],Ys(e).constructor):t.apply(e,r))}(this,t,[e])).mode="horizontal",r.removeButtons=[],r}var r;return function(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}}),t&&Js(e,t)}(t,e),r=[{key:"className",value:function(){return"UIList"}},{key:"__onChangeMode",value:function(){this.setMod("mode",this.mode)}},{key:"makeGroup",value:function(){return new js(this.jodit)}},{key:"buttons",get:function(){return this.allChildren.filter(function(e){return Na.isInstanceOf(e,ll)})}},{key:"getButtonsNames",value:function(){return this.buttons.map(function(e){return t=e,(null!=(r=ll)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)&&e.state.name||"";var t,r}).filter(function(e){return""!==e})}},{key:"setRemoveButtons",value:function(e){return this.removeButtons=e||[],this}},{key:"build",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e=Ti(e),this.clear();var n,o=!1,i=this.makeGroup();this.append(i),i.setMod("line",!0);var a=function(e){var a=null;switch(e.name){case"\n":(i=t.makeGroup()).setMod("line",!0),n=t.makeGroup(),i.append(n),t.append(i);break;case"|":o||(o=!0,a=new Ms(t.j));break;case"---":n.setMod("before-spacer",!0);var s=new Fs(t.j);i.append(s),n=t.makeGroup(),i.append(n),o=!1;break;default:o=!1,a="select"===e.component?t.makeSelect(e,r):t.makeButton(e,r)}a&&(n||(n=t.makeGroup(),i.append(n)),n.append(a))},s=function(e){var r;return!t.removeButtons.includes(e.name)&&(!e.isVisible||(null===(r=e.isVisible)||void 0===r?void 0:r.call(e,t.j,e)))};return e.forEach(function(e){if(Hs(e)){var r=e.buttons.filter(function(e){return e});r.length&&((n=t.makeGroup()).setMod("separated",!0).setMod("group",e.group),i.append(n),function(e,t){var r=Ar(e)?e:fo(e,!1).map(function(t){return yo({name:t},e[t]||{})});return r.map(function(e){return $s(e,t||eo.defaultOptions.controls)})}(r,t.j.o.controls).filter(s).forEach(a))}else{n||(n=t.makeGroup(),i.append(n));var o=$s(e,t.j.o.controls);s(o)&&a(o)}}),this.update(),this}},{key:"makeSelect",value:function(e,t){throw new Error("Not implemented behaviour")}},{key:"makeButton",value:function(e,t){return new ll(this.j,{name:e.name})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function tl(e,t,r){return tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rl(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},tl(e,t,r||e)}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(e)}function nl(e,t){return nl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nl(e,t)}function ol(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(il=function(){return!!e})()}Zs([va("mode"),Ka("ready")],el.prototype,"__onChangeMode",null),el=Zs([gi],el);var al=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ol(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},sl=function(){return{size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}},ll=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=rl(t),function(e,t){return!t||"object"!==ol(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,il()?Reflect.construct(t,r||[],rl(e).constructor):t.apply(e,r))}(this,t,[e])).isButton=!0,n.state=sl(),n.actionHandlers=[],n.button=n.container,n.updateSize(),n.onChangeSize(),n.onChangeStatus(),r&&n.hookStatus(Pr.ready,function(){n.setState(r)}),n}var r;return function(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}}),t&&nl(e,t)}(t,e),(r=[{key:"className",value:function(){return"UIButton"}},{key:"setState",value:function(e){return Object.assign(this.state,e),this}},{key:"text",get:function(){var e=this.getElm("text");return Jn(e,"Text element not found"),e}},{key:"icon",get:function(){var e=this.getElm("icon");return Jn(e,"Icon element not found"),e}},{key:"onChangeSize",value:function(){this.setMod("size",this.state.size)}},{key:"onChangeType",value:function(){Xn(this.container,"type",this.state.type)}},{key:"onChangeRole",value:function(){Xn(this.container,"role",this.state.role)}},{key:"updateSize",value:function(){var e=this.closest(el);e&&(this.state.size=e.buttonSize)}},{key:"onChangeStatus",value:function(){this.setMod("variant",this.state.variant)}},{key:"onChangeText",value:function(){this.text.textContent=this.jodit.i18n(this.state.text)}},{key:"onChangeTextSetMode",value:function(){this.setMod("text-icons",Boolean(this.state.text.trim().length))}},{key:"onChangeDisabled",value:function(){Xn(this.container,"disabled",this.state.disabled||null)}},{key:"onChangeActivated",value:function(){Xn(this.container,"aria-pressed",this.state.activated)}},{key:"onChangeName",value:function(){this.container.classList.add("".concat(this.componentName,"_").concat(this.clearName(this.state.name))),this.name=this.state.name,Xn(this.container,"data-ref",this.state.name),Xn(this.container,"ref",this.state.name)}},{key:"onChangeTooltip",value:function(){this.get("j.o.useNativeTooltip")&&Xn(this.container,"title",this.state.tooltip),Xn(this.container,"aria-label",this.state.tooltip)}},{key:"onChangeTabIndex",value:function(){Xn(this.container,"tabindex",this.state.tabIndex)}},{key:"onChangeIcon",value:function(){var e=this.get("j.o.textIcons");if(!(!0===e||Rr(e)&&e(this.state.name))){li.detach(this.icon);var t=ds.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}}},{key:"focus",value:function(){this.container.focus()}},{key:"isFocused",value:function(){var e=this.od.activeElement;return Boolean(e&&li.isOrContains(this.container,e))}},{key:"createContainer",value:function(){var e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),r=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return t.appendChild(r),t.appendChild(n),t}},{key:"destruct",value:function(){return this.j.e.off(this.container),tl(rl(t.prototype),"destruct",this).call(this)}},{key:"onAction",value:function(e){return this.actionHandlers.push(e),this}},{key:"__onActionFire",value:function(e){var t=this;e.buffer={actionTrigger:this},this.actionHandlers.forEach(function(r){return r.call(t,e)})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function cl(e,t,r,n){var o=new ll(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,Mr(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),r&&(o.state.text=r)):o.setState(t),o}function ul(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dl(e)}function fl(e,t){return fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fl(e,t)}function pl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function hl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hl=function(){return!!e})()}al([ui],ll.prototype,"text",null),al([ui],ll.prototype,"icon",null),al([va("state.size",{immediately:!1})],ll.prototype,"onChangeSize",null),al([va("state.type",{immediately:!1})],ll.prototype,"onChangeType",null),al([va("state.role",{immediately:!1})],ll.prototype,"onChangeRole",null),al([va("parentElement")],ll.prototype,"updateSize",null),al([va("state.variant",{immediately:!1})],ll.prototype,"onChangeStatus",null),al([va("state.text",{immediately:!1})],ll.prototype,"onChangeText",null),al([va("state.text",{immediately:!1})],ll.prototype,"onChangeTextSetMode",null),al([va("state.disabled")],ll.prototype,"onChangeDisabled",null),al([va("state.activated")],ll.prototype,"onChangeActivated",null),al([va("state.name",{immediately:!1})],ll.prototype,"onChangeName",null),al([va("state.tooltip",{immediately:!1})],ll.prototype,"onChangeTooltip",null),al([va("state.tabIndex",{immediately:!1})],ll.prototype,"onChangeTabIndex",null),al([va("state.icon",{immediately:!1})],ll.prototype,"onChangeIcon",null),al([di],ll.prototype,"createContainer",null),al([va("button:click")],ll.prototype,"__onActionFire",null),ll=al([gi],ll);var ml=function(e){function t(e){var r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{radio:!0};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=dl(t),function(e,t){return!t||"object"!==pl(t)&&"function"!=typeof t?ul(e):t}(e,hl()?Reflect.construct(t,r||[],dl(e).constructor):t.apply(e,r))}(this,t,[e,null===(n=i.options)||void 0===n?void 0:n.map(function(t){var n=new ll(e,{text:t.text,value:t.value,variant:"primary"});return n.onAction(function(){ul(r).select(t.value)}),n}),i])).options=i,r.select(null!==(o=i.value)&&void 0!==o?o:0),r}var r;return function(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}}),t&&fl(e,t)}(t,e),r=[{key:"className",value:function(){return"UIButtonGroup"}},{key:"render",value:function(e){return'<div>\n\t\t\t<div class="&__label">~'.concat(e.label,'~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>')}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("options");Jn(null!=t,"Options does not exist"),t.appendChild(e)}},{key:"select",value:function(e){var t,r,n=this;this.elements.forEach(function(t,r){r===e||t.state.value===e?t.state.activated=!0:n.options.radio&&(t.state.activated=!1)});var o=this.elements.filter(function(e){return e.state.activated}).map(function(e){return{text:e.state.text,value:e.state.value}});this.jodit.e.fire(this,"select",o),null===(r=(t=this.options).onChange)||void 0===r||r.call(t,o)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function gl(e,t,r){return gl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=yl(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},gl(e,t,r||e)}function yl(e){return yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yl(e)}function vl(e,t){return vl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vl(e,t)}function bl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_l=function(){return!!e})()}ml=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":pl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],ml);var wl,Sl=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":bl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},El=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],kl=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],xl=wl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=yl(t),function(e,t){return!t||"object"!==bl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,_l()?Reflect.construct(t,r||[],yl(e).constructor):t.apply(e,r))}(this,t,[e])).__isOpened=!1,r.__attachedContainers=new Set,r.__listenClose=!1,r.__currentTarget=null,r.__delayShowTimeout=0,r.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(r.j.e.on("getContainer",function(e){r.__onAttach(e)}),e.hookStatus(Pr.ready,function(){r.__onAttach(r.j.container)})),r}var r;return function(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}}),t&&vl(e,t)}(t,e),(r=[{key:"className",value:function(){return"UITooltip"}},{key:"render",value:function(){return'<div><div class="&__content"></div></div>'}},{key:"__onAttach",value:function(e){Ia(this.j,wl).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}},{key:"__addListenersOnEnter",value:function(){if(!this.__listenClose){this.__listenClose=!0;var e=this.j;e.e.on(e.ow,El,this.__hide).on(kl,this.__hide)}}},{key:"__removeListenersOnLeave",value:function(){if(this.__listenClose){this.__listenClose=!1;var e=this.j;e.e.off(e.ow,El,this.__hide).off(kl,this.__hide)}}},{key:"__onMouseLeave",value:function(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}},{key:"__onMouseEnter",value:function(e){if(li.isHTMLElement(e.target)){var t=Xn(e.target,"aria-label");if(t&&!Boolean(Xn(e.target,"disabled"))&&e.target.className.includes("jodit")){this.__currentTarget=e.target;var r=e.target;this.__open(function(){var e=Ji(r);return{x:e.left+e.width/2,y:e.top+e.height}},t)}}}},{key:"__open",value:function(e,t){var r=this;this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);var n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout(function(){return r.__show(e,t)},n):this.__show(e,t)}},{key:"__show",value:function(e,t){this.setMod("visible",!0),this.getElm("content").innerHTML=t;var r=e();Rn(this.container,{left:r.x,top:r.y})}},{key:"__hide",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",Rn(this.container,{left:-5e3}))}},{key:"__hideDelay",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}},{key:"destruct",value:function(){var e=this;this.__attachedContainers.forEach(function(t){e.j.e.off(t,"mouseenter.tooltip",e.__onMouseEnter).off(t,"mouseleave.tooltip",e.__onMouseLeave)}),this.__hide(),gl(yl(t.prototype),"destruct",this).call(this)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function Tl(e){return Tl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tl(e)}function Ol(e,t){return Ol=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ol(e,t)}function Cl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jl=function(){return!!e})()}Sl([jr],xl.prototype,"__onMouseLeave",null),Sl([jr],xl.prototype,"__onMouseEnter",null),Sl([jr],xl.prototype,"__hide",null),Sl([jr],xl.prototype,"__hideDelay",null),xl=wl=Sl([gi],xl);var Pl=function(e){function t(e,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{align:"left"};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Tl(t),function(e,t){return!t||"object"!==Cl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,jl()?Reflect.construct(t,r||[],Tl(e).constructor):t.apply(e,r))}(this,t,[e,r])).options=o,n.setMod("align",n.options.align||"left"),n.setMod("width",n.options.width||""),n.options.mod&&n.setMod(n.options.mod,!0),n.options.className&&n.container.classList.add(n.options.className),Xn(n.container,"data-ref",o.ref),Xn(n.container,"ref",o.ref),n}var r;return function(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}}),t&&Ol(e,t)}(t,e),(r=[{key:"className",value:function(){return"UIBlock"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);Pl=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Cl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Pl);var Il=function(e){return!!hn(e.value).length||(e.error="Please fill out this field",!1)},Rl=function(e){return!!dn(hn(e.value))||(e.error="Please enter a web address",!1)},Al=function(e){return!!hn(e.value).length||(e.error="Please fill out this field",!1)};function Ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dl(e,t,r){return Dl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Nl(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Dl(e,t,r||e)}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nl(e)}function Ll(e,t){return Ll=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ll(e,t)}function Bl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Fl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fl=function(){return!!e})()}var zl,Ul=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Bl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Hl=zl=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Nl(t),function(e,t){return!t||"object"!==Bl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Fl()?Reflect.construct(t,r||[],Nl(e).constructor):t.apply(e,r))}(this,t,[e,r])).label=n.j.c.span(n.getFullElName("label")),n.icon=n.j.c.span(n.getFullElName("icon")),n.clearButton=n.j.c.span(n.getFullElName("clear"),ds.get("cancel")),n.state=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ml(e,t,r[t])})}return e}({},zl.defaultState),n.__errorBox=n.j.c.span(n.getFullElName("error")),n.validators=new Set([]),void 0!==(null==r?void 0:r.value)&&(r.value=r.value.toString()),Object.assign(n.state,r),void 0!==n.state.clearButton&&(n.j.e.on(n.clearButton,"click",function(e){e.preventDefault(),n.nativeInput.value="",n.j.e.fire(n.nativeInput,"input"),n.focus()}).on(n.nativeInput,"input",function(){n.state.clearButton=Boolean(n.value.length)}),n.state.clearButton=Boolean(n.value.length)),n.j.e.on(n.nativeInput,"focus blur",function(){n.onChangeFocus()}).on(n.nativeInput,"input change",n.onChangeValue),n.onChangeState(),n.onChangeClassName(),n.onChangeStateValue(),n}var r;return function(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}}),t&&Ll(e,t)}(t,e),r=[{key:"className",value:function(){return"UIInput"}},{key:"onChangeClear",value:function(){this.state.clearButton?li.after(this.nativeInput,this.clearButton):li.safeRemove(this.clearButton)}},{key:"onChangeClassName",value:function(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}},{key:"onChangeState",value:function(){this.name=this.state.name;var e=this.nativeInput,t=this.state,r=t.name,n=t.icon,o=t.type,i=t.ref,a=t.required,s=t.placeholder,l=t.autocomplete,c=t.label;Xn(e,"name",r),Xn(e,"type",o),Xn(e,"data-ref",i||r),Xn(e,"ref",i||r),Xn(e,"required",a||null),Xn(e,"autocomplete",l?null:"off"),Xn(e,"placeholder",s?this.j.i18n(s):""),n&&ds.exists(n)?(li.before(e,this.icon),this.icon.innerHTML=ds.get(n)):li.safeRemove(this.icon),c?(li.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(c)):li.safeRemove(this.label),this.updateValidators()}},{key:"updateValidators",value:function(){var e,t=this;this.validators.clear(),this.state.required&&this.validators.add(Il),null===(e=this.state.validators)||void 0===e||e.forEach(function(e){var r=l[e];r&&t.validators.add(r)})}},{key:"error",set:function(e){this.setMod("has-error",Boolean(e)),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):li.safeRemove(this.__errorBox)}},{key:"value",get:function(){return this.nativeInput.value},set:function(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}},{key:"onChangeStateValue",value:function(){var e=this.state.value.toString();e!==this.value&&(this.value=e)}},{key:"onChangeValue",value:function(){var e,t,r=this.value;this.state.value!==r&&(this.state.value=r,this.j.e.fire(this,"change",r),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,r))}},{key:"validate",value:function(){var e=this;this.error="";var t=zr(this.validators).every(function(t){return t(e)});return this.__markInputInvalid(),t}},{key:"__markInputInvalid",value:function(){var e,t,r,n;this.error?(this.nativeInput.setAttribute("aria-invalid","true"),null===(t=(e=this.nativeInput).setCustomValidity)||void 0===t||t.call(e,this.error)):(this.nativeInput.removeAttribute("aria-invalid"),null===(n=(r=this.nativeInput).setCustomValidity)||void 0===n||n.call(r,""))}},{key:"createContainer",value:function(e){var r=Dl(Nl(t.prototype),"createContainer",this).call(this);this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());var n=this.nativeInput;return n.classList.add(this.getFullElName("input")),this.wrapper.appendChild(n),r.appendChild(this.wrapper),Xn(n,"dir",this.j.o.direction||"auto"),r}},{key:"createNativeInput",value:function(e){return this.j.create.element("input")}},{key:"focus",value:function(){this.nativeInput.focus()}},{key:"isFocused",get:function(){return this.nativeInput===this.j.od.activeElement}},{key:"onChangeFocus",value:function(){this.setMod("focused",this.isFocused)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function ql(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vl(e,t,r){return Vl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wl(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Vl(e,t,r||e)}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ql(e,t,r[t])})}return e}function $l(e,t){return $l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$l(e,t)}function Kl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yl=function(){return!!e})()}Hl.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},Ul([va("state.clearButton")],Hl.prototype,"onChangeClear",null),Ul([va("state.className")],Hl.prototype,"onChangeClassName",null),Ul([va(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),qa()],Hl.prototype,"onChangeState",null),Ul([va("state.value")],Hl.prototype,"onChangeStateValue",null),Ul([jr],Hl.prototype,"onChangeValue",null),Hl=zl=Ul([gi],Hl);var Jl,Xl=Jl=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Wl(t),function(e,t){return!t||"object"!==Kl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Yl()?Reflect.construct(t,r||[],Wl(e).constructor):t.apply(e,r))}(this,t,[e,r])).state=Gl({},Jl.defaultState),Object.assign(n.state,r),n}var r;return function(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}}),t&&$l(e,t)}(t,e),(r=[{key:"className",value:function(){return"UISelect"}},{key:"createContainer",value:function(e){var r,n=Vl(Wl(t.prototype),"createContainer",this).call(this,e),o=this.j,i=this.nativeInput,a=function(){return o.create.element("option")};if(void 0!==e.placeholder){var s=a();s.value="",s.text=o.i18n(e.placeholder),i.add(s)}return null===(r=e.options)||void 0===r||r.forEach(function(e){var t=a();t.value=e.value.toString(),t.text=o.i18n(e.text),i.add(t)}),e.size&&e.size>0&&Xn(i,"size",e.size),e.multiple&&Xn(i,"multiple",""),n}},{key:"createNativeInput",value:function(){return this.j.create.element("select")}},{key:"updateValidators",value:function(){Vl(Wl(t.prototype),"updateValidators",this).call(this),this.state.required&&(this.validators.delete(Il),this.validators.add(Al))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hl);function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zl(e){return Zl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zl(e)}function ec(e,t){return ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ec(e,t)}function tc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rc=function(){return!!e})()}Xl.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(Gl({},Hl.defaultState),{options:[],size:1,multiple:!1}),Xl=Jl=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Kl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Xl);var nc=function(e){function t(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(null===(i=(o=function(e,t,r){return t=Zl(t),function(e,t){return!t||"object"!==tc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,rc()?Reflect.construct(t,r||[],Zl(e).constructor):t.apply(e,r))}(this,t,function(e){return function(e){if(Array.isArray(e))return Ql(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ql(e,t):void 0}}(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.")}()}(r))).options)||void 0===i?void 0:i.className)&&o.container.classList.add(null===(a=o.options)||void 0===a?void 0:a.className),o}var r;return function(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}}),t&&ec(e,t)}(t,e),r=[{key:"className",value:function(){return"UIForm"}},{key:"submit",value:function(){this.j.e.fire(this.container,"submit")}},{key:"validate",value:function(){var e=this.allChildren.filter(function(e){return Na.isInstanceOf(e,Hl)}),t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)if(!o.value.validate())return!1}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}var a=this.allChildren.filter(function(e){return Na.isInstanceOf(e,Xl)}),s=!0,l=!1,c=void 0;try{for(var u,d=a[Symbol.iterator]();!(s=(u=d.next()).done);s=!0)if(!u.value.validate())return!1}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}return!0}},{key:"onSubmit",value:function(e){var t=this;return this.j.e.on(this.container,"submit",function(){var r=t.allChildren.filter(function(e){return Na.isInstanceOf(e,Hl)});return!!t.validate()&&(e(r.reduce(function(e,t){return e[t.state.name]=t.value,e},{})),!1)}),this}},{key:"createContainer",value:function(){var e=this.j.c.element("form");return e.classList.add(this.componentName),Xn(e,"dir",this.j.o.direction||"auto"),Xn(e,"novalidate",""),e}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function oc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ic(e)}function ac(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){oc(e,t,r[t])})}return e}function sc(e,t){return sc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sc(e,t)}function lc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function cc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cc=function(){return!!e})()}nc=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":tc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],nc);var uc,dc=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":lc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},fc=uc=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=ic(t),function(e,t){return!t||"object"!==lc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,cc()?Reflect.construct(t,r||[],ic(e).constructor):t.apply(e,r))}(this,t,[e,r])).state=ac({},uc.defaultState),Object.assign(n.state,r),!1===n.state.resizable&&(n.nativeInput.style.resize="none"),n}var r;return function(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}}),t&&sc(e,t)}(t,e),r=[{key:"className",value:function(){return"UITextArea"}},{key:"createNativeInput",value:function(e){return this.j.create.element("textarea")}},{key:"onChangeStateSize",value:function(){var e=this.state,t=e.size,r=e.resizable;this.nativeInput.style.resize=r?"auto":"none",this.nativeInput.rows=null!=t?t:5}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hl);function pc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hc(e)}function mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){pc(e,t,r[t])})}return e}function gc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function yc(e,t){return yc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yc(e,t)}function vc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function bc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bc=function(){return!!e})()}fc.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(ac({},Hl.defaultState),{size:5,resizable:!0}),dc([va(["state.size","state.resizable"])],fc.prototype,"onChangeStateSize",null),fc=uc=dc([gi],fc);var _c,wc=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":vc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Sc=_c=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=hc(t),function(e,t){return!t||"object"!==vc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,bc()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}(this,t,[e,gc(mc({},r),{type:"checkbox"})])).state=mc({},_c.defaultState),Object.assign(n.state,r),n}var r;return function(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}}),t&&yc(e,t)}(t,e),(r=[{key:"className",value:function(){return"UICheckbox"}},{key:"render",value:function(){return this.j.c.element("label",{className:this.componentName})}},{key:"onChangeChecked",value:function(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}},{key:"onChangeNativeCheckBox",value:function(){this.state.checked=this.nativeInput.checked}},{key:"onChangeSwitch",value:function(){this.setMod("switch",this.state.switch);var e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),li.after(this.nativeInput,e)):li.safeRemove(e)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hl);function Ec(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kc(e)}function xc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ec(e,t,r[t])})}return e}function Tc(e,t){return Tc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tc(e,t)}function Oc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Cc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cc=function(){return!!e})()}Sc.defaultState=gc(mc({},Hl.defaultState),{checked:!1,switch:!1}),wc([va("state.checked"),Ka("ready")],Sc.prototype,"onChangeChecked",null),wc([va("nativeInput:change")],Sc.prototype,"onChangeNativeCheckBox",null),wc([va("state.switch"),Ka("ready")],Sc.prototype,"onChangeSwitch",null),Sc=_c=wc([gi],Sc);var jc=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=kc(t),function(e,t){return!t||"object"!==Oc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Cc()?Reflect.construct(t,r||[],kc(e).constructor):t.apply(e,r))}(this,t,[e,xc({type:"file"},r)])).state=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(xc({},Hl.defaultState),{type:"file",onlyImages:!0}),n}var r;return function(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}}),t&&Tc(e,t)}(t,e),r=[{key:"className",value:function(){return"UIFileInput"}},{key:"createContainer",value:function(e){this.button=new ll(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});var t=this.button.container;this.nativeInput||(this.nativeInput=this.createNativeInput(e));var r=this.nativeInput;return r.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(r),t}},{key:"createNativeInput",value:function(e){return this.j.create.fromHTML('<input\n\t\t\ttype="file"\n\t\t\taccept="'.concat(e.onlyImages?"image/*":"*",'"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>'))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hl);function Pc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ic(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ac(e,t,r){return Ac="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mc(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Ac(e,t,r||e)}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mc(e)}function Dc(e,t){return Dc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dc(e,t)}function Nc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pc(e,t):void 0}}(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 Lc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Bc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bc=function(){return!!e})()}jc=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Oc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],jc);var Fc=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Lc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},zc=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"],Uc=function(e){function t(e){var r,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Mc(t),function(e,t){return!t||"object"!==Lc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Bc()?Reflect.construct(t,r||[],Mc(e).constructor):t.apply(e,r))}(this,t,[e])).smart=n,r.isOpened=!1,r.strategy="leftBottom",r.viewBound=function(){return{left:0,top:0,width:r.ow.innerWidth,height:r.ow.innerHeight}},r.__childrenPopups=new Set,Xn(r.container,"role","popup"),r}var r,n,o;return function(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}}),t&&Dc(e,t)}(t,e),r=t,n=[{key:"className",value:function(){return"Popup"}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("content");Jn(t,"Content element should exist"),t.appendChild(e)}},{key:"updateParentElement",value:function(e){var r=this;return e!==this&&Na.isInstanceOf(e,t)&&(this.__childrenPopups.forEach(function(t){!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",function(){r.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),Ac(Mc(t.prototype),"updateParentElement",this).call(this,e)}},{key:"setContent",value:function(e){if(this.allChildren.length)throw new Error("Remove children");if(Na.isInstanceOf(e,bs))this.append(e);else{var t=Mr(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}},{key:"open",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if(lo(this.jodit,this.container),this.container.classList.add("jodit_theme_".concat(this.jodit.o.theme)),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=r?this.getKeepBound(e):e,n)n.appendChild(this.container);else{var o=Ia(this.jodit,t);n!==this.container.parentElement&&o.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}},{key:"__calculateZIndex",value:function(){var e=this;if(!this.container.style.zIndex){var t=function(t){var r=t.container.style.zIndex||t.o.zIndex;return!!r&&(e.setZIndex(1+parseInt(r.toString(),10)),!0)};if(!t(this.j))for(var r=this.parentElement;r;){if(t(r.j))return;if(r.container.style.zIndex)return void this.setZIndex(1+parseInt(r.container.style.zIndex.toString(),10));if(!r.parentElement&&r.container.parentElement){var n=bs.closestElement(r.container.parentElement,bs);if(n){r=n;continue}}r=r.parentElement}}}},{key:"getKeepBound",value:function(e){var t=this,r=e(),n=this.od.elementFromPoint(r.left,r.top);if(!n)return e;var o=li.isHTMLElement(n)?n:n.parentElement,i=Ji(o,this.j);return function(){var r=e(),n=Ji(o,t.j);return function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Rc(e,t,r[t])})}return e}({},r),{top:r.top+(n.top-i.top),left:r.left+(n.left-i.left)})}}},{key:"updatePosition",value:function(){if(!this.isOpened)return this;var e=Nc(this.__calculatePosition(this.__targetBound(),this.viewBound(),Ji(this.container,this.j)),2),t=e[0],r=e[1];return this.setMod("strategy",r),Rn(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(function(e){return e.updatePosition()}),this}},{key:"__throttleUpdatePosition",value:function(){this.updatePosition()}},{key:"__calculatePosition",value:function(e,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.strategy,i={left:e.left,right:e.left-(n.width-e.width)},a={bottom:e.top+e.height,top:e.top-n.height},s=Object.keys(i).reduce(function(e,t){return e.concat(Object.keys(a).map(function(e){return"".concat(t).concat(Qi(e))}))},[]),l=function(e){var t=Nc(Tn(e).split("-"),2),r=t[0],o=t[1];return{left:i[r],top:a[o],width:n.width,height:n.height}},c=function(e){return t.boxInView(l(o),e)?o:s.find(function(r){if(t.boxInView(l(r),e))return r})||null},u=c(Ji(this.j.container,this.j));return u&&t.boxInView(l(u),r)||(u=c(r)||u||o),[l(u),u]}},{key:"close",value:function(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach(function(e){return e.close()}),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),li.safeRemove(this.container),this):this}},{key:"__closeOnOutsideClick",value:function(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}},{key:"isOwnClick",value:function(e){if(!e.target)return!1;var r=bs.closestElement(e.target,t);return Boolean(r&&(this===r||r.closest(this)))}},{key:"__addGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,r=this.ow;Aa.on("closeAllPopups",this.close),this.smart&&this.j.e.on(zc,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(r,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(r,"scroll",t).on(r,"resize",t),li.up(this.j.container,function(r){r&&e.j.e.on(r,"scroll mousewheel",t)})}},{key:"__removeGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,r=this.ow;Aa.off("closeAllPopups",this.close),this.smart&&this.j.e.off(zc,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(r,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(r,"scroll",t).off(r,"resize",t),this.j.container.isConnected&&li.up(this.j.container,function(r){r&&e.j.e.off(r,"scroll mousewheel",t)})}},{key:"setZIndex",value:function(e){this.container.style.zIndex=e.toString()}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}},{key:"destruct",value:function(){return this.close(),Ac(Mc(t.prototype),"destruct",this).call(this)}}],o=[{key:"boxInView",value:function(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}}],n&&Ic(r.prototype,n),o&&Ic(r,o),t}(js);function Hc(e,t,r){return Hc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qc(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Hc(e,t,r||e)}function qc(e){return qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qc(e)}function Vc(e,t){return Vc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vc(e,t)}function Wc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wc=function(){return!!e})()}Fc([jr],Uc.prototype,"updatePosition",null),Fc([Va(10),jr],Uc.prototype,"__throttleUpdatePosition",null),Fc([jr],Uc.prototype,"close",null),Fc([jr],Uc.prototype,"__closeOnOutsideClick",null);var Gc,$c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=qc(r=t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Wc()?Reflect.construct(r,n||[],qc(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Vc(e,t)}(t,e),(r=[{key:"className",value:function(){return"ProgressBar"}},{key:"render",value:function(){return"<div><div></div></div>"}},{key:"show",value:function(){return(this.j.workplace||this.j.container).appendChild(this.container),this}},{key:"hide",value:function(){return li.safeRemove(this.container),this}},{key:"progress",value:function(e){return this.container.style.width=e.toFixed(2)+"%",this}},{key:"destruct",value:function(){return this.hide(),Hc(qc(t.prototype),"destruct",this).call(this)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs),Kc=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.document=t,this.createAttributes=r}var t;return t=[{key:"doc",get:function(){return Rr(this.document)?this.document():this.document}},{key:"element",value:function(e,t,r){var n=this,o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&(ln(t)?Xn(o,t):r=t),r&&xi(r).forEach(function(e){return o.appendChild(Mr(e)?n.fromHTML(e):e)}),o}},{key:"div",value:function(e,t,r){var n=this.element("div",t,r);return e&&(n.className=e),n}},{key:"sandbox",value:function(){var e,t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);var r=null===(e=t.contentWindow)||void 0===e?void 0:e.document;if(Jn(r,"iframe.contentWindow.document"),!r)throw Error("Iframe error");return r.open(),r.write("<!DOCTYPE html><html><head></head><body></body></html>"),r.close(),[r.body,t]}},{key:"span",value:function(e,t,r){var n=this.element("span",t,r);return e&&(n.className=e),n}},{key:"a",value:function(e,t,r){var n=this.element("a",t,r);return e&&(n.className=e),n}},{key:"text",value:function(e){return this.doc.createTextNode(e)}},{key:"fake",value:function(){return this.text(vt)}},{key:"fragment",value:function(){return this.doc.createDocumentFragment()}},{key:"fromHTML",value:function(e,t){var r=this.div();r.innerHTML=e.toString();var n=r.firstChild===r.lastChild&&r.firstChild?r.firstChild:r;if(li.safeRemove(n),t){var o=Xo(n);Object.keys(t).forEach(function(e){var r=o[e];r&&!1===t[e]&&li.hide(r)})}return n}},{key:"applyCreateAttributes",value:function(e){if(this.createAttributes){var t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){var r=t[e.tagName.toLowerCase()];Rr(r)?r(e):ln(r)&&Xn(e,r)}}}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),Yc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootKey=t}var t;return t=[{key:"set",value:function(e,t){try{var r=localStorage.getItem(this.rootKey),n=r?JSON.parse(r):{};n[e]=t,localStorage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}},{key:"delete",value:function(e){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}},{key:"get",value:function(e){try{var t=localStorage.getItem(this.rootKey),r=t?JSON.parse(t):{};return void 0!==r[e]?r[e]:void 0}catch(e){}}},{key:"exists",value:function(e){return null!=this.get(e)}},{key:"clear",value:function(){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),Jc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=new Map}var t;return t=[{key:"set",value:function(e,t){return this.data.set(e,t),this}},{key:"delete",value:function(e){return this.data.delete(e),this}},{key:"get",value:function(e){return this.data.get(e)}},{key:"exists",value:function(e){return this.data.has(e)}},{key:"clear",value:function(){return this.data.clear(),this}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function Xc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Qc="Jodit_",Zc=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.provider=t,this.prefix=Qc,r&&(this.prefix+=r)}var t,r,n;return t=e,r=[{key:"set",value:function(e,t){return this.provider.set(In(this.prefix+e),t),this}},{key:"delete",value:function(e){return this.provider.delete(In(this.prefix+e)),this}},{key:"get",value:function(e){return this.provider.get(In(this.prefix+e))}},{key:"exists",value:function(e){return this.provider.exists(In(this.prefix+e))}},{key:"clear",value:function(){return this.provider.clear(),this}}],n=[{key:"makeStorage",value:function(){var t,r=arguments.length>1?arguments[1]:void 0;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(void 0===Gc&&(Gc=function(){var e="___Jodit___"+Math.random().toString();try{localStorage.setItem(e,"1");var t="1"===localStorage.getItem(e);return localStorage.removeItem(e),t}catch(e){}return!1}()),Gc)&&(t=new Yc(Qc+r)),t||(t=new Jc),new e(t,r)}}],r&&Xc(t.prototype,r),n&&Xc(t,n),e}();function eu(e){return eu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eu(e)}function tu(e,t){return tu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tu(e,t)}function ru(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nu=function(){return!!e})()}var ou=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=eu(t),function(e,t){return!t||"object"!==ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nu()?Reflect.construct(t,r||[],eu(e).constructor):t.apply(e,r))}(this,t,[e])).setMod("active",!0),n.setMod("variant",r.variant),n.container.textContent=r.text,n}var r;return function(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}}),t&&tu(e,t)}(t,e),(r=[{key:"className",value:function(){return"UIMessage"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function iu(e){return iu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iu(e)}function au(e,t){return au=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},au(e,t)}function su(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lu=function(){return!!e})()}ou=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ru(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],ou);var cu=function(e){function t(e,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{defaultTimeout:3e3,defaultOffset:5};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=iu(t),function(e,t){return!t||"object"!==su(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,lu()?Reflect.construct(t,r||[],iu(e).constructor):t.apply(e,r))}(this,t,[e])).__box=r,n.options=o,n.__messages=new Set,n}var r;return function(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}}),t&&au(e,t)}(t,e),r=[{key:"className",value:function(){return"UIMessages"}},{key:"info",value:function(e,t){this.__message(e,"info",t)}},{key:"success",value:function(e,t){this.__message(e,"success",t)}},{key:"error",value:function(e,t){this.__message(e,"error",t)}},{key:"message",value:function(e,t,r){this.__message(e,t,r)}},{key:"__message",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",r=arguments.length>2?arguments[2]:void 0,n=e+":"+t;if(this.__messages.has(n))this.async.updateTimeout(n,r||this.options.defaultTimeout);else{if(!this.__box)throw new Error("Container is not defined: "+n);this.__box.appendChild(this.container);var o=new ou(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(n);var i=this.__getRemoveCallback(o,n);this.j.e.on(o.container,"pointerdown",i),this.async.setTimeout(i,{label:n,timeout:r||this.options.defaultTimeout})}}},{key:"__getRemoveCallback",value:function(e,t){var r=this,n=function(o){o&&o.preventDefault(),e.isInDestruct||(r.async.clearTimeout(t),r.j.e.off(e.container,"pointerdown",n),r.__messages.delete(t),e.setMod("active",!1),r.async.setTimeout(function(){r.remove(e),e.destruct(),r.__calcOffsets()},300))};return n}},{key:"__calcOffsets",value:function(){var e=this,t=5;this.elements.forEach(function(r){Rn(r.container,"bottom",t+"px"),t+=r.container.offsetHeight+e.options.defaultOffset})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function uu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function du(e,t,r){return du="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},du(e,t,r||e)}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fu(e)}function pu(e,t){return pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pu(e,t)}function hu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function mu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(mu=function(){return!!e})()}cu=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":su(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],cu);var gu,yu=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":hu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},vu=gu=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=fu(t),function(e,t){return!t||"object"!==hu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,mu()?Reflect.construct(t,[],fu(e).constructor):t.apply(e,r))}(this,t)).isJodit=n,r.isView=!0,r.parent=null,r.mods={},r.components=new Set,r.OPTIONS=gu.defaultOptions,r.__isFullSize=!1,r.__whoLocked="",r.isLockedNotBy=function(e){return r.isLocked&&r.__whoLocked!==e},r.__modulesInstances=new Map,r.id=(new Date).getTime().toString(),r.initOptions(e),r.initOwners(),r.events=new fa(r.od),r.create=new Kc(r.od),r.container=r.c.div("jodit ".concat(r.componentName)),r}var r,n,o;return function(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}}),t&&pu(e,t)}(t,e),r=t,n=[{key:"basePath",get:function(){return this.o.basePath?this.o.basePath:vr}},{key:"minified",get:function(){return void 0!==this.o.minified?this.o.minified:br}},{key:"defaultTimeout",get:function(){return Nr(this.o.defaultTimeout)?100:this.o.defaultTimeout}},{key:"buffer",get:function(){return Zc.makeStorage()}},{key:"message",get:function(){return this.getMessageModule(this.container)}},{key:"getMessageModule",value:function(e){return new cu(this,e)}},{key:"storage",get:function(){return Zc.makeStorage(!0,this.id)}},{key:"c",get:function(){return this.create}},{key:"container",get:function(){return this.__container},set:function(e){this.__container=e}},{key:"e",get:function(){return this.events}},{key:"progressbar",get:function(){return new $c(this)}},{key:"options",get:function(){return this.__options},set:function(e){this.__options=e}},{key:"o",get:function(){return this.options}},{key:"i18n",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ea(e,r,this.options)}},{key:"toggleFullSize",value:function(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}},{key:"isLocked",get:function(){return""!==this.__whoLocked}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!this.isLocked&&(this.__whoLocked=e,!0)}},{key:"unlock",value:function(){return!!this.isLocked&&(this.__whoLocked="",!0)}},{key:"isFullSize",get:function(){return this.__isFullSize}},{key:"getVersion",value:function(){return gu.version}},{key:"initOptions",value:function(e){this.options=yo(e||{},yo(this.options||{},gu.defaultOptions))}},{key:"initOwners",value:function(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}},{key:"attachEvents",value:function(e){var t=this;if(e){var r=null==e?void 0:e.events;r&&Object.keys(r).forEach(function(e){return t.e.on(e,r[e])})}}},{key:"getInstance",value:function(e,t){var r=Rr(e)?e.prototype.className():e,n=this.e.fire(In("getInstance_"+r),t);if(n)return n;var o,i,a=Rr(e)?e:Ca[r],s=this.__modulesInstances;if(!Rr(a))throw Bo("Need real module name");if(!s.has(r)){var l=(o=a.prototype,(null!=(i=Ha)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i)?new a(this,t):new a(t));this.components.add(l),s.set(r,l)}return s.get(r)}},{key:"addDisclaimer",value:function(e){this.container.appendChild(e)}},{key:"beforeDestruct",value:function(){this.e.fire(Pr.beforeDestruct,this),this.components.forEach(function(e){Xr(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}},{key:"destruct",value:function(){var e,r,n;this.isDestructed||(null===(e=ci(this,"progressbar"))||void 0===e||e.destruct(),null===(r=ci(this,"message"))||void 0===r||r.destruct(),this.events&&(this.events.destruct(),this.events=void 0),null===(n=ci(this,"buffer"))||void 0===n||n.clear(),li.safeRemove(this.container),du(fu(t.prototype),"destruct",this).call(this))}}],o=[{key:"getVersion",value:function(){return gu.version}}],n&&uu(r.prototype,n),o&&uu(r,o),t}(Na);function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _u(e,t,r){return _u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},_u(e,t,r||e)}function wu(e){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wu(e)}function Su(e,t){return Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Su(e,t)}function Eu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ku=function(){return!!e})()}vu.ES=ct,vu.version=lt,vu.esNext=dt,vu.esModern=ut,yu([ui],vu.prototype,"buffer",null),yu([ui],vu.prototype,"message",null),yu([ui],vu.prototype,"storage",null),yu([ui],vu.prototype,"c",null),yu([ui],vu.prototype,"e",null),yu([ui],vu.prototype,"progressbar",null),yu([Ka(Pr.beforeDestruct)],vu.prototype,"beforeDestruct",null),(vu=gu=yu([$a(us,cs)],vu)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var xu=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Eu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Tu=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=wu(t),function(e,t){return!t||"object"!==Eu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ku()?Reflect.construct(t,r||[],wu(e).constructor):t.apply(e,r))}(this,t,[e])).__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",r}var r;return function(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}}),t&&Su(e,t)}(t,e),r=[{key:"className",value:function(){return"ToolbarCollection"}},{key:"firstButton",get:function(){return function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),1!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return bu(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bu(e,1):void 0}}(e)||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.")}()}(this.buttons)[0]||null}},{key:"makeButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return od(this.j,e,t)}},{key:"makeSelect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return new Ju(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}(this.j,e,t)}},{key:"shouldBeActive",value:function(e){}},{key:"shouldBeDisabled",value:function(e){}},{key:"getTarget",value:function(e){return e.target||null}},{key:"__immediateUpdate",value:function(){this.isDestructed||this.j.isLocked||(_u(wu(t.prototype),"update",this).call(this),this.j.e.fire("afterUpdateToolbar",this))}},{key:"update",value:function(){this.__immediateUpdate()}},{key:"setDirection",value:function(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}},{key:"__initEvents",value:function(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}},{key:"hide",value:function(){this.container.remove()}},{key:"show",value:function(){this.appendTo(this.j.toolbarContainer)}},{key:"showInline",value:function(e){throw Bo("The method is not implemented for this class.")}},{key:"build",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.j.e.fire("beforeToolbarBuild",e);return n&&(e=n),_u(wu(t.prototype),"build",this).call(this,e,r),this}},{key:"destruct",value:function(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),_u(wu(t.prototype),"destruct",this).call(this))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(el);function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ju(e,t,r){return ju="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Pu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},ju(e,t,r||e)}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}function Iu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Cu(e,t,r[t])})}return e}function Ru(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function Au(e,t){return Au=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Au(e,t)}function Mu(e){return function(e){if(Array.isArray(e))return Ou(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ou(e,t):void 0}}(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 Du(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nu=function(){return!!e})()}xu([jr],Tu.prototype,"__immediateUpdate",null),xu([qa(function(e){return e.j.defaultTimeout},!0)],Tu.prototype,"update",null),xu([Ka("ready")],Tu.prototype,"__initEvents",null),Tu=xu([gi],Tu);var Lu=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Du(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Bu=function(e){function t(e,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Pu(t),function(e,t){return!t||"object"!==Du(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Nu()?Reflect.construct(t,r||[],Pu(e).constructor):t.apply(e,r))}(this,t,[e])).control=r,n.target=o,n.state=Ru(Iu({},sl()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),n.openedPopup=null;var i=n.getElm("button");Jn(i,"Element button should exists"),n.button=i,Object.defineProperty(i,"component",{value:n,configurable:!0});var a=n.getElm("trigger");return Jn(a,"Element trigger should exists"),n.trigger=a,a.remove(),e.e.on([n.button,n.trigger],"mousedown",function(e){return e.preventDefault()}),n.onAction(n.onClick),n.hookStatus(Pr.ready,function(){n.__initFromControl(),n.update()}),r.mods&&Object.keys(r.mods).forEach(function(e){r.mods&&n.setMod(e,r.mods[e])}),n}var r;return function(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}}),t&&Au(e,t)}(t,e),r=[{key:"className",value:function(){return"ToolbarButton"}},{key:"toolbar",get:function(){return this.closest(Tu)}},{key:"update",value:function(){var e,t,r=this.control,n=this.state,o=this.closest(Tu);if(o){var i=null===(e=r.value)||void 0===e?void 0:e.call(r,o.jodit,this);void 0!==i&&(n.value=i),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null===(t=r.update)||void 0===t||t.call(r,o.jodit,this)}}},{key:"__calculateActivatedStatus",value:function(e){var t,r;return!(rn(this.j)&&!this.j.editorIsActive)&&(!!(null===(r=(t=this.control).isActive)||void 0===r?void 0:r.call(t,this.j,this))||Boolean(e&&e.shouldBeActive(this)))}},{key:"__calculateDisabledStatus",value:function(e){var t,r;return!!this.j.o.disabled||!(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))||!!(null===(r=(t=this.control).isDisabled)||void 0===r?void 0:r.call(t,this.j,this))||Boolean(e&&e.shouldBeDisabled(this))}},{key:"onChangeActivated",value:function(){Xn(this.button,"aria-pressed",this.state.activated),ju(Pu(t.prototype),"onChangeActivated",this).call(this)}},{key:"onChangeText",value:function(){Rr(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):ju(Pu(t.prototype),"onChangeText",this).call(this),this.setMod("text-icons",Boolean(this.text.innerText.trim().length))}},{key:"onChangeTabIndex",value:function(){Xn(this.button,"tabindex",this.state.tabIndex)}},{key:"createContainer",value:function(){var e=this.componentName,r=this.j.c.span(e),n=ju(Pu(t.prototype),"createContainer",this).call(this);Xn(r,"role","listitem"),n.classList.remove(e),n.classList.add(e+"__button"),Object.defineProperty(n,"component",{value:this}),r.appendChild(n);var o=this.j.c.fromHTML('<span role="trigger" class="'.concat(e,'__trigger">').concat(ds.get("chevron"),"</span>"));return n.appendChild(o),r}},{key:"focus",value:function(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}},{key:"onChangeHasTrigger",value:function(){this.state.hasTrigger?this.container.appendChild(this.trigger):li.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}},{key:"onChangeDisabled",value:function(){var e=this.state.disabled?"disabled":null;Xn(this.trigger,"disabled",e),Xn(this.button,"disabled",e),Xn(this.container,"disabled",e)}},{key:"__initFromControl",value:function(){var e,t=this.control,r=this.state;this.updateSize(),r.name=t.name;var n=this.j.o.textIcons;if(!0===n||Rr(n)&&n(t.name)||t.template)r.icon=sl().icon,r.text=t.text||t.name;else{if(t.iconURL)r.icon.iconURL=t.iconURL;else{var o=t.icon||t.name;r.icon.name=ds.exists(o)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[o])?o:""}t.iconURL||r.icon.name||(r.text=t.text||t.name)}t.tooltip&&(r.tooltip=this.j.i18n(Rr(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),r.hasTrigger=Boolean(t.list||t.popup&&t.exec)}},{key:"onTriggerClick",value:function(e){var t,r,n,o=this;if(this.openedPopup)this.__closePopup();else{var i=this.control;if(e.buffer={actionTrigger:this},i.list)return this.__openControlList(i);if(Rr(i.popup)){var a=this.openPopup();a.parentElement=this;try{if(!1!==this.j.e.fire(In("before-".concat(i.name,"-open-popup")),this.target,i,a)){var s=null!==(n=null!==(r=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==r?r:this.target)&&void 0!==n?n:null,l=i.popup(this.j,s,this.__closePopup,this);l?a.setContent(Mr(l)?this.j.c.fromHTML(l):l).open(function(){return Ji(o.container)},!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire(In("after-".concat(i.name,"-open-popup")),a.container)}}}},{key:"__openControlList",value:function(e){var t,r=this,n=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},o=function(e){return Ks(e,n)},i=e.list,a=this.openPopup(),s=nd(this.j);a.parentElement=this,s.parentElement=a,s.mode="vertical";var l=function(t,n){if(Mr(n)&&o(n))return Iu({name:n.toString()},o(n));if(Mr(t)&&o(t))return Iu({name:t.toString()},o(t),"object"===(void 0===n?"undefined":Du(n))?n:{});(function(e){return ln(e)&&"title"in e&&"value"in e})(t)&&(n=t.value,t=t.title);var i=e.childTemplate,a={name:t.toString(),template:i&&function(e,t,n){return i(e,t,n,r)},exec:e.childExec?function(t,r,n){var o;return null===(o=e.childExec)||void 0===o?void 0:o.call(e,t,r,Ru(Iu({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:Mu(e.args?e.args:[]).concat([t,n])};return Mr(n)&&(a.text=n),a};s.build(Ar(i)?i.map(l):fo(i,!1).map(function(e){return l(e,i[e])}),this.target),a.setContent(s).open(function(){return Ji(r.container)},!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}},{key:"onOutsideClick",value:function(e){this.openedPopup&&(e&&li.isNode(e.target)&&(li.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}},{key:"openPopup",value:function(){return this.__closePopup(),this.openedPopup=new Uc(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}},{key:"__closePopup",value:function(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}},{key:"onClick",value:function(e){var t,r,n,o,i,a,s,l=this.control;if(Rr(l.exec)){var c=null!==(n=null!==(r=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==r?r:this.target)&&void 0!==n?n:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null===(i=null===(o=this.j)||void 0===o?void 0:o.e)||void 0===i||i.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(s=null===(a=this.j)||void 0===a?void 0:a.e)||void 0===s||s.fire("closeAllPopups afterExec")),!1!==u)return}return l.list?this.__openControlList(l):Rr(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&(so(rn(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}},{key:"destruct",value:function(){return this.__closePopup(),ju(Pu(t.prototype),"destruct",this).call(this)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ll);function Fu(e,t,r){return Fu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Fu(e,t,r||e)}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zu(e)}function Uu(e,t){return Uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uu(e,t)}function Hu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function qu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qu=function(){return!!e})()}Lu([di],Bu.prototype,"createContainer",null),Lu([va("state.hasTrigger",{immediately:!1})],Bu.prototype,"onChangeHasTrigger",null),Lu([va("trigger:click")],Bu.prototype,"onTriggerClick",null),Lu([jr],Bu.prototype,"onOutsideClick",null),Lu([jr],Bu.prototype,"__closePopup",null),Bu=Lu([gi],Bu);var Vu=function(e){function t(e,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=zu(t),function(e,t){return!t||"object"!==Hu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,qu()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}(this,t,[e])).control=r,n.target=o,n.container.classList.add("".concat(n.componentName,"_").concat(n.clearName(r.name))),Xn(n.container,"role","content"),n}var r;return function(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}}),t&&Uu(e,t)}(t,e),(r=[{key:"className",value:function(){return"ToolbarContent"}},{key:"update",value:function(){var e=this.control.getContent(this.j,this);(Mr(e)||e.parentNode!==this.container)&&(li.detach(this.container),this.container.appendChild(Mr(e)?this.j.create.fromHTML(e):e)),Fu(zu(t.prototype),"update",this).call(this)}},{key:"createContainer",value:function(){return this.j.c.span(this.componentName)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ll);function Wu(e,t,r){return Wu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Wu(e,t,r||e)}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gu(e)}function $u(e,t){return $u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$u(e,t)}function Ku(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Yu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yu=function(){return!!e})()}Vu=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Hu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Vu);var Ju=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Gu(r=t),function(e,t){return!t||"object"!==Ku(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Yu()?Reflect.construct(r,n||[],Gu(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&$u(e,t)}(t,e),r=[{key:"className",value:function(){return"ToolbarSelect"}},{key:"update",value:function(){var e,r,n;Wu(Gu(t.prototype),"update",this).call(this),this.state.icon.name="";var o=this.control,i=o.list,a=o.data;if(i){var s=this.state.value||(a&&Mr(a.currentValue)?a.currentValue:void 0);s||(s=Object.keys(i)[0]);var l=(ln(i)&&i[s.toString()]||s).toString();this.state.text=null!==(n=null===(r=(e=this.control).textTemplate)||void 0===r?void 0:r.call(e,this.jodit,l))&&void 0!==n?n:l}}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Bu);function Xu(e,t,r){return Xu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Qu(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Xu(e,t,r||e)}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}function Zu(e,t){return Zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zu(e,t)}function ed(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function td(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(td=function(){return!!e})()}Ju=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Ku(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Ju);var rd=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Qu(t),function(e,t){return!t||"object"!==ed(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,td()?Reflect.construct(t,r||[],Qu(e).constructor):t.apply(e,r))}(this,t,[e])).checkActiveStatus=function(e,t){var n=0,o=0;return Object.keys(e).forEach(function(i){var a=e[i];Rr(a)?a(r.j,Rn(t,i).toString())&&(n+=1):-1!==a.indexOf(Rn(t,i).toString())&&(n+=1),o+=1}),o===n},r.prependInvisibleInput(r.container),r}var r;return function(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}}),t&&Zu(e,t)}(t,e),r=[{key:"className",value:function(){return"ToolbarEditorCollection"}},{key:"shouldBeDisabled",value:function(e){var r=Xu(Qu(t.prototype),"shouldBeDisabled",this).call(this,e);if(void 0!==r)return r;var n=void 0===e.control.mode?Qt:e.control.mode;return!(n===er||n===this.j.getRealMode())}},{key:"shouldBeActive",value:function(e){var r=this,n=Xu(Qu(t.prototype),"shouldBeActive",this).call(this,e);if(void 0!==n)return n;var o,i=this.j.selection?this.j.s.current():null;if(!i)return!1;if(e.control.tags){var a=e.control.tags;if(o=i,li.up(o,function(e){if(e&&-1!==a.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){var s=e.control.css;if(o=i,li.up(o,function(e){if(e&&!li.isText(e)&&!li.isComment(e))return r.checkActiveStatus(s,e)},this.j.editor))return!0}return!1}},{key:"getTarget",value:function(e){return e.target||this.j.s.current()||null}},{key:"prependInvisibleInput",value:function(e){var t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});li.appendChildFirst(e,t)}},{key:"showInline",value:function(e){this.jodit.e.fire("showInlineToolbar",e)}},{key:"hide",value:function(){this.jodit.e.fire("hidePopup"),Xu(Qu(t.prototype),"hide",this).call(this),this.jodit.e.fire("toggleToolbar")}},{key:"show",value:function(){Xu(Qu(t.prototype),"show",this).call(this),this.jodit.e.fire("toggleToolbar")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Tu);function nd(e,t){var r=rn(e)?new rd(e):new Tu(e);return e.o.textIcons&&r.container.classList.add("jodit_text_icons"),t&&(r.parentElement=t),e.o.toolbarButtonSize&&(r.buttonSize=e.o.toolbarButtonSize),r}function od(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Rr(t.getContent))return new Vu(e,t,r);var n=new Bu(e,t,r);return n.state.tabIndex=e.o.allowTabNavigation?0:-1,n}function id(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ad(e,t,r){return ad="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=sd(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},ad(e,t,r||e)}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function ld(e,t){return ld=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ld(e,t)}function cd(e){return function(e){if(Array.isArray(e))return id(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?id(e,t):void 0}}(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 ud(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dd=function(){return!!e})()}rd=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ed(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],rd);var fd=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ud(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},pd=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=sd(t),function(e,t){return!t||"object"!==ud(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,dd()?Reflect.construct(t,r||[],sd(e).constructor):t.apply(e,r))}(this,t,[e,n])).toolbar=nd(r),r.__defaultToolbarContainer=r.c.div("jodit-toolbar__box"),r.registeredButtons=new Set,r.groupToButtons={},r.isJodit=!1,r.__tooltip=new xl(r),r.isJodit=n,r.e.on("beforeToolbarBuild",r.beforeToolbarBuild),r}var r;return function(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}}),t&&ld(e,t)}(t,e),(r=[{key:"toolbarContainer",get:function(){return this.o.fullsize||!Mr(this.o.toolbar)&&!li.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&li.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):Zo(this.o.toolbar,this.o.shadowRoot||this.od)}},{key:"setPanel",value:function(e){this.o.toolbar=e,this.buildToolbar()}},{key:"buildToolbar",value:function(){var e;if(this.o.toolbar){var t=this.o.buttons?Ti(this.o.buttons):[];null===(e=this.toolbar)||void 0===e||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}}},{key:"getRegisteredButtonGroups",value:function(){return this.groupToButtons}},{key:"registerButton",value:function(e){var t;this.registeredButtons.add(e);var r=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[r]||(this.groupToButtons[r]=[]),null!=e.position?this.groupToButtons[r][e.position]=e.name:this.groupToButtons[r].push(e.name),this}},{key:"unregisterButton",value:function(e){var t;this.registeredButtons.delete(e);var r=null!==(t=e.group)&&void 0!==t?t:"other",n=this.groupToButtons[r];if(n){var o=n.indexOf(e.name);-1!==o&&n.splice(o,1),0===n.length&&delete this.groupToButtons[r]}return this}},{key:"beforeToolbarBuild",value:function(e){var t=this;if(Object.keys(this.groupToButtons).length)return e.map(function(e){return Hs(e)&&e.group&&t.groupToButtons[e.group]?{group:e.group,buttons:cd(e.buttons).concat(cd(t.groupToButtons[e.group]))}:e})}},{key:"destruct",value:function(){this.isDestructed||(this.setStatus(Pr.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,ad(sd(t.prototype),"destruct",this).call(this))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(vu);function hd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function md(e,t,r){return md="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gd(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},md(e,t,r||e)}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gd(e)}function yd(e,t){return yd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yd(e,t)}function vd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bd=function(){return!!e})()}fd([va(":rebuildToolbar")],pd.prototype,"buildToolbar",null),fd([jr],pd.prototype,"beforeToolbarBuild",null);var _d,wd=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":vd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};eo.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},eo.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}}};var Sd=_d=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=gd(t),function(e,t){return!t||"object"!==vd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,bd()?Reflect.construct(t,r||[],gd(e).constructor):t.apply(e,r))}(this,t,[r])).destroyAfterClose=!1,e.moved=!1,e.resizable=!1,e.draggable=!1,e.startX=0,e.startY=0,e.startPoint={x:0,y:0,w:0,h:0},e.lockSelect=function(){e.setMod("moved",!0)},e.unlockSelect=function(){e.setMod("moved",!1)},e.__onResize=function(){e.options&&e.o.resizable&&!e.moved&&e.isOpened&&!e.offsetX&&!e.offsetY&&e.setPosition()},e.isModal=!1,e.isOpened=!1;var n=e;n.options=yo(r,yo(eo.prototype.dialog,_d.defaultOptions)),li.safeRemove(n.container);var o=e.getFullElName.bind(e);n.container=e.c.fromHTML('<div class="jodit jodit-dialog '.concat(e.componentName,'">\n\t\t\t\t<div class="').concat(o("overlay"),'"></div>\n\t\t\t\t<div class="').concat(e.getFullElName("panel"),'">\n\t\t\t\t\t<div class="').concat(o("header"),'">\n\t\t\t\t\t\t<div class="').concat(o("header-title"),'"></div>\n\t\t\t\t\t\t<div class="').concat(o("header-toolbar"),'"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="').concat(o("content"),'"></div>\n\t\t\t\t\t<div class="').concat(o("footer"),'"></div>\n\t\t\t\t\t<div class="').concat(o("resizer"),'">').concat(ds.get("resize_handler"),"</div>\n\t\t\t\t</div>\n\t\t\t</div>")),"rtl"===n.options.direction&&(n.container.style.direction="rtl",n.container.setAttribute("dir","rtl")),e.o.zIndex&&(e.container.style.zIndex=e.o.zIndex.toString()),Xn(n.container,"role","dialog"),Object.defineProperty(n.container,"component",{value:e}),n.setMod("theme",n.o.theme||"default").setMod("resizable",Boolean(n.o.resizable));var i=n.getElm("panel");Jn(null!=i,"Panel element does not exist");var a=n.getElm("resizer");Jn(null!=a,"Resizer element does not exist");var s=n.getElm("header-title");Jn(null!=s,"header-title element does not exist");var l=n.getElm("content");Jn(null!=l,"Content element does not exist");var c=n.getElm("footer");Jn(null!=c,"Footer element does not exist");var u=n.getElm("header-toolbar");Jn(null!=u,"header-toolbar element does not exist"),e.dialog=i,e.resizer=a,e.dialogbox_header=s,e.dialogbox_content=l,e.dialogbox_footer=c,e.dialogbox_toolbar=u,Rn(n.dialog,{maxWidth:n.options.maxWidth,minHeight:n.options.minHeight,minWidth:n.options.minWidth});var d=n.getElm("header");d&&n.e.on(d,"pointerdown touchstart",n.__onHeaderMouseDown),n.e.on(n.resizer,"mousedown touchstart",n.__onResizerMouseDown);var f=Oa.get("fullsize");if(Rr(f)&&f(n),e.e.on(n.container,"close_dialog",n.close).on(e.ow,"keydown",e.__onEsc).on(e.ow,"resize",e.__onResize),e.o.closeOnClickOverlay){var p=n.getElm("overlay");Jn(null!=p,"Overlay element does not exist"),e.e.on(p,"click",n.close)}return e}var r;return function(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}}),t&&yd(e,t)}(t,e),r=[{key:"className",value:function(){return"Dialog"}},{key:"destination",get:function(){var e=this.o,t=e.popupRoot,r=e.shadowRoot;return t||r||this.od.body}},{key:"setElements",value:function(e,t){var r=this,n=[];xi(t).forEach(function(t){if(Ar(t)){var o=r.c.div(r.getFullElName("column"));return n.push(o),e.appendChild(o),r.setElements(o,t)}var i;i=Mr(t)?r.c.fromHTML(t):Qr(t)?t.container:t,n.push(i),i.parentNode!==e&&e.appendChild(i)}),zr(e.childNodes).forEach(function(t){-1===n.indexOf(t)&&e.removeChild(t)})}},{key:"__onMouseUp",value:function(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}},{key:"__onHeaderMouseDown",value:function(e){var t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=Rn(this.dialog,"left"),this.startPoint.y=Rn(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}},{key:"__onMouseMove",value:function(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}},{key:"__onEsc",value:function(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===Bt&&!0!==this.getMod("static")){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}},{key:"__onResizerMouseDown",value:function(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}},{key:"__addGlobalResizeListeners",value:function(){var e=this;e.e.on(e.ow,"pointermove touchmove",e.__onMouseMove).on(e.ow,"pointerup touchend",e.__onMouseUp)}},{key:"__removeGlobalResizeListeners",value:function(){var e=this;e.e.off(e.ow,"mousemove pointermove",e.__onMouseMove).off(e.ow,"mouseup pointerup",e.__onMouseUp)}},{key:"setSize",value:function(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),Rn(this.dialog,{width:e,height:t}),this}},{key:"calcAutoSize",value:function(){return this.setSize("auto","auto"),this.setSize(),this}},{key:"setPosition",value:function(e,t){var r=this.ow.innerWidth,n=this.ow.innerHeight,o=r/2-this.dialog.offsetWidth/2,i=n/2-this.dialog.offsetHeight/2;return o<0&&(o=0),i<0&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-i)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||i)+"px",this}},{key:"setHeader",value:function(e){return this.setElements(this.dialogbox_header,e),this}},{key:"setContent",value:function(e){return this.setElements(this.dialogbox_content,e),this}},{key:"setFooter",value:function(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",Boolean(e)),this}},{key:"getZIndex",value:function(){return parseInt(Rn(this.container,"zIndex"),10)||0}},{key:"getMaxZIndexDialog",value:function(){var e,t,r=0,n=this;return Yo(".jodit-dialog",this.destination).forEach(function(o){e=o.component,t=parseInt(Rn(o,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>r&&(n=e,r=t)}),n}},{key:"setMaxZIndex",value:function(){if(!this.getMod("static")){var e=20000004,t=0;Yo(".jodit-dialog",this.destination).forEach(function(r){t=parseInt(Rn(r,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)}),this.container.style.zIndex=(e+1).toString()}}},{key:"toggleFullSize",value:function(e){Nr(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),md(gd(t.prototype),"toggleFullSize",this).call(this,e)}},{key:"open",value:function(e,t,r,n){if(Aa.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;qr(e)&&(r=e),qr(t)&&(n=t),this.destroyAfterClose=!0===r;var o=qr(e)?void 0:e,i=qr(t)?void 0:t;return void 0!==i&&this.setHeader(i),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,this.setModal(n),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}},{key:"setModal",value:function(e){return this.isModal=Boolean(e),this.setMod("modal",this.isModal),this}},{key:"close",value:function(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;var e=this.e;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),li.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}},{key:"buildToolbar",value:function(){this.o.buttons&&this.toolbar.build(Ti(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Pr.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),md(gd(t.prototype),"destruct",this).call(this))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(pd);function Ed(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"jodit-dialog_alert";Rr(t)&&(r=t,t=void 0);var o,i=(null!=(o=Sd)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](this):this instanceof o)?this:new Sd({closeOnClickOverlay:!0}),a=i.c.div(n),s=cl(i,"ok","Ok");return xi(e).forEach(function(e){a.appendChild(li.isNode(e)?e:i.c.fromHTML(e))}),s.onAction(function(){r&&Rr(r)&&!1===r(i)||i.close()}),i.setFooter([s]),i.open(a,t||" ",!0,!0),s.focus(),i}function kd(e,t,r){var n,o=(null!=(n=Sd)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](this):this instanceof n)?this:new Sd({closeOnClickOverlay:!0}),i=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),a=o.c.element("label");Rr(t)&&(r=t,t=void 0),a.appendChild(o.c.fromHTML(e)),i.appendChild(a);var s=function(e){return function(){r&&!1===r(e)||o.close()}},l=cl(o,"cancel","Cancel"),c=cl(o,"ok","Yes");return l.onAction(s(!1)),c.onAction(s(!0)),o.e.on(i,"submit",function(){return s(!0)(),!1}),o.setFooter([c,l]),o.open(i,t||" ",!0,!0),c.focus(),o}function xd(e,t,r,n,o){var i,a=(null!=(i=Sd)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](this):this instanceof i)?this:new Sd({closeOnClickOverlay:!0}),s=cl(a,"cancel","Cancel"),l=cl(a,"ok","Ok"),c=a.c.element("form",{class:"jodit-dialog_prompt"}),u=a.c.element("input",{autofocus:!0,class:"jodit-input"}),d=a.c.element("label");Rr(t)&&(r=t,t=void 0),n&&Xn(u,"placeholder",n),d.appendChild(a.c.text(e)),c.appendChild(d),c.appendChild(u),s.onAction(a.close);var f=function(){r&&Rr(r)&&!1===r(u.value)||a.close()};return l.onAction(f),a.e.on(c,"submit",function(){return f(),!1}),a.setFooter([l,s]),a.open(c,t||" ",!0,!0),u.focus(),void 0!==o&&o.length&&(u.value=o,u.select()),a}function Td(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wd([jr],Sd.prototype,"__onMouseUp",null),wd([jr],Sd.prototype,"__onHeaderMouseDown",null),wd([jr],Sd.prototype,"__onMouseMove",null),wd([jr],Sd.prototype,"__onEsc",null),wd([jr],Sd.prototype,"__onResizerMouseDown",null),wd([jr],Sd.prototype,"close",null),wd([Ka("ready")],Sd.prototype,"buildToolbar",null),(Sd=_d=wd([gi],Sd)).defaultOptions=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){hd(e,t,r[t])})}return e}({},vu.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0});var Od=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"dlg",value:function(e){var t=Ra(this.o,this.container,this.od.body),r=new Sd(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Td(e,t,r[t])})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return lo(this,r.container),r.parent=this,r.bindDestruct(this)}},{key:"confirm",value:function(e,t,r){return e=Cd(e,this),t=Cd(t,this),kd.call(this.dlg({closeOnClickOverlay:!0}),e,t,r)}},{key:"prompt",value:function(e,t,r,n,o){return e=Cd(e,this),t=Cd(t,this),n=Cd(n,this),xd.call(this.dlg({closeOnClickOverlay:!0}),e,t,r,n,o)}},{key:"alert",value:function(e,t,r,n){return e=Cd(e,this),t=Cd(t,this),Ed.call(this.dlg({closeOnClickOverlay:!0}),e,t,r,n)}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function Cd(e,t){return Mr(e)&&!Kr(e)&&(e=t.i18n(e)),e}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jd(e)}function Pd(e,t){return Pd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pd(e,t)}function Id(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rd=function(){return!!e})()}var Ad=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=jd(r=t),function(e,t){return!t||"object"!==Id(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Rd()?Reflect.construct(r,n||[],jd(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Pd(e,t)}(t,e),(r=[{key:"className",value:function(){return"ContextMenu"}},{key:"show",value:function(e,t,r){var n=this,o=this;o.clear(),Ar(r)&&(r.forEach(function(e){if(e){var t=cl(n.jodit,e.icon||"empty",e.title);n.jodit&&t.setParentView(n.jodit),t.setMod("context","menu"),t.onAction(function(t){var r;return null===(r=e.exec)||void 0===r||r.call(o,t),o.clear(),o.close(),!1}),n.append(t)}}),this.open(function(){return{left:e,top:t,width:0,height:0}},!0))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Uc);function Md(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nd(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(function(t){t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(function(){return e.files.setMod("loading",!1)})}function Ld(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Bd(e){return Fd.apply(this,arguments)}function Fd(){var e;return e=function(e){var t,r;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(n){return e.tree.setMod("active",!0),li.detach(e.tree.container),t=Nd(e),e.o.showFoldersPanel?(e.tree.setMod("loading",!0),r=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(function(t){e.state.sources=t}).catch(e.status).finally(function(){return e.tree.setMod("loading",!1)}),[2,Promise.all([r,t])]):(e.tree.setMod("active",!1),[2,t])})},Fd=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ld(i,n,o,a,s,"next",e)}function s(e){Ld(i,n,o,a,s,"throw",e)}a(void 0)})},Fd.apply(this,arguments)}Ad=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Id(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi],Ad),eo.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:function(e,t){return t=t.toLowerCase(),Mr(e)?-1!==e.toLowerCase().indexOf(t):Mr(e.name)?-1!==e.name.toLowerCase().indexOf(t):!Mr(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort:function(e,t,r){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Md(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Md(e,2):void 0}}(e)||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.")}()}(r.toLowerCase().split("-")),o=n[0],i="asc"===n[1],a=function(e,t){return e<t?i?-1:1:e>t?i?1:-1:0};if(Mr(e))return a(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return Mr(e.name)?a(e.name.toLowerCase(),t.name.toLowerCase()):Mr(e.file)?a(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(o){case"changed":var s=new Date(e.changed).getTime(),l=new Date(t.changed).getTime();return i?s-l:l-s;case"size":var c=qo(e.size),u=qo(t.size);return i?c-u:u-c}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&Ar(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate:function(e,t,r){var n=this.options,o=this.files.getFullElName("item"),i=n.showFileName,a=n.showFileSize&&e.size,s=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);var c='<div class="'.concat(o,'-info">').concat(i?'<span class="'.concat(o,'-info-filename">').concat(l,"</span>"):"").concat(a?'<span class="'.concat(o,'-info-filesize">').concat(e.size,"</span>"):"").concat(s?'<span class="'.concat(o,'-info-filechanged">').concat(s,"</span>"):"","</div>");return'<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="'.concat(e.isImage?0:1,'"\n\t\t\tdraggable="true"\n\t\t\tclass="').concat(o,'"\n\t\t\thref="').concat(e.fileURL,'"\n\t\t\tdata-source="').concat(r,'"\n\t\t\tdata-path="').concat(e.path,'"\n\t\t\tdata-name="').concat(l,'"\n\t\t\ttitle="').concat(l,'"\n\t\t\tdata-url="').concat(e.fileURL,'">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="').concat(e.isImage?0:1,'"\n\t\t\t\t\tdata-src="').concat(e.fileURL,'"\n\t\t\t\t\tsrc="').concat(e.imageURL,'"\n\t\t\t\t\talt="').concat(l,'"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t').concat(i||a||s?c:"","\n\t\t\t</a>")},ajax:function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Dd(e,t,r[t])})}return e}({},eo.prototype.defaultAjaxOptions),{url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:function(e){return e},process:function(e){return e}}),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},eo.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:function(e){return!e.dataProvider.canI("FileUpload")},getContent:function(e,t){var r=new jc(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",r.container),r.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:function(e){return!e.state.activeElements.length||!e.dataProvider.canI("FileRemove")},exec:function(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:function(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:function(e){return!e.state.activeElements.length},exec:function(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:function(e){var t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:function(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:function(e){return"tiles"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:function(e){return"list"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(e,t){var r=t.container.querySelector(".jodit-input");if(r)return r;var n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce(function(){e.e.fire("filter.filebrowser",n.value)},e.defaultTimeout)),n}},sort:{isInput:!0,getContent:function(e){var t=e.c.fromHTML('<select class="jodit-input jodit-select">'+'<option value="changed-asc">'.concat(e.i18n("Sort by changed")," (⬆)</option>")+'<option value="changed-desc">'.concat(e.i18n("Sort by changed")," (⬇)</option>")+'<option value="name-asc">'.concat(e.i18n("Sort by name")," (⬆)</option>")+'<option value="name-desc">'.concat(e.i18n("Sort by name")," (⬇)</option>")+'<option value="size-asc">'.concat(e.i18n("Sort by size")," (⬆)</option>")+'<option value="size-desc">'.concat(e.i18n("Sort by size")," (⬇)</option>")+"</select>");return t.value=e.state.sortBy,e.e.on("sort.filebrowser",function(e){t.value!==e&&(t.value=e)}).on(t,"change",function(){e.e.fire("sort.filebrowser",t.value)}),t}}};var zd=new WeakMap,Ud=function(e){var t=zd.get(e);return t||(t={},zd.set(e,t)),t};function Hd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var qd=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,Object.keys(t).forEach(function(e){r[e]=t[e]})}var t,r,n;return t=e,r=[{key:"path",get:function(){return Ui(this.data.source.path?this.data.source.path+"/":"/")}},{key:"imageURL",get:function(){var e=this.time||(new Date).getTime().toString(),t=this.data,r=t.thumbIsAbsolute,n=t.source,o=t.thumb,i=t.file,a=o||i;return r&&a?a:Vi(n.baseurl,n.path,a||"")+"?_tmst="+encodeURIComponent(e)}},{key:"fileURL",get:function(){var e=this.data.name,t=this.data,r=t.file,n=t.fileIsAbsolute,o=t.source;return void 0!==r&&(e=r),n&&e?e:Vi(o.baseurl,o.path,e||"")}},{key:"time",get:function(){var e=this.data.changed;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}},{key:"uniqueHashKey",get:function(){var e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}},{key:"toJSON",value:function(){return this.data}}],n=[{key:"create",value:function(t){return r=t,(null!=(n=e)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n)?t:new e(t);var r,n}}],r&&Hd(t.prototype,r),n&&Hd(t,n),e}();function Vd(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Wd(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Vd(i,n,o,a,s,"next",e)}function s(e){Vd(i,n,o,a,s,"throw",e)}a(void 0)})}}function Gd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $d(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var Kd="default",Yd=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]),Jd=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.options=r,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=function(e){}}var t;return t=[{key:"o",get:function(){return this.options}},{key:"get",value:function(e){var t=this,r=this.__ajaxInstances;if(r.has(e)){var n=r.get(e);null==n||n.abort(),r.delete(e)}var o=yo(void 0!==this.options[e]?this.options[e]:{},yo({onProgress:this.progressHandler},this.o.ajax));o.prepareData&&(o.data=o.prepareData.call(this,o.data));var i=new ls(o);r.set(e,i);var a=i.send();return a.finally(function(){i.destruct(),r.delete(e),t.progressHandler(100)}).catch(function(){return null}),a.then(function(e){return e.json()}).then(function(e){if(e&&!t.isSuccess(e))throw new Error(t.getMessage(e));return e})}},{key:"onProgress",value:function(e){this.progressHandler=e}},{key:"permissions",value:function(e,t){var r=this;return Wd(function(){return $d(this,function(n){return r.o.permissions?(r.o.permissions.data.path=e,r.o.permissions.data.source=t,r.o.permissions.url?[2,r.get("permissions").then(function(e){if(r.parent.isInDestruct)throw ko();var t=r.o.permissions.process;if(t||(t=r.o.ajax.process),t){var n=t.call(self,e);n.data.permissions&&(r.parent.events.fire(r,"changePermissions",r.__currentPermissions,n.data.permissions),r.__currentPermissions=n.data.permissions)}return r.__currentPermissions})]:[2,null]):[2,null]})})()}},{key:"canI",value:function(e){var t="allow"+e;if(!ft&&!Yd.has(t))throw Bo("Wrong action "+e);var r=this.o.permissionsPresets[t];return void 0!==r?r:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}},{key:"__items",value:function(e,t,r,n){var o=this,i=this.options;return i.items?(i.items.data.path=e,i.items.data.source=t,i.items.data.mods=r,this.get("items").then(function(e){var t=o.o.items.process;return t||(t=o.o.ajax.process),t&&(e=t.call(self,e)),n(e)})):Promise.reject(Error("Set Items api options"))}},{key:"items",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,n,function(e){return r.generateItemsList(e.data.sources,n)})}},{key:"itemsEx",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,n,function(e){return{items:r.generateItemsList(e.data.sources,n),loadedTotal:(t=e.data.sources,t.reduce(function(e,t){return e+t.files.length},0))};var t})}},{key:"generateItemsList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return e.forEach(function(e){if(e.files&&e.files.length){var o=t.o.sort;Rr(o)&&r.sortBy&&e.files.sort(function(e,t){return o(e,t,r.sortBy)}),e.files.forEach(function(o){(function(e){var n;return!(null===(n=r.filterWord)||void 0===n?void 0:n.length)||void 0===t.o.filter||t.o.filter(e,r.filterWord)})(o)&&function(e){return"folder"===e.type||!r.onlyImages||void 0===e.isImage||e.isImage}(o)&&n.push(qd.create(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Gd(e,t,r[t])})}return e}({},o),{sourceName:e.name,source:e})))})}}),n}},{key:"tree",value:function(e,t){var r=this;return Wd(function(){return $d(this,function(n){switch(n.label){case 0:return e=Hi(e),r.o.folder?[4,r.permissions(e,t)]:[2,Promise.reject(Error("Set Folder Api options"))];case 1:return n.sent(),r.o.folder.data.path=e,r.o.folder.data.source=t,[2,r.get("folder").then(function(e){var t=r.o.folder.process;return t||(t=r.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})]}})})()}},{key:"getPathByUrl",value:function(e){var t=this;return ni("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(function(e){if(t.isSuccess(e))return e.data;throw Bo(t.getMessage(e))})}},{key:"createFolder",value:function(e,t,r){var n=this,o=this.o.create;if(!o)throw Bo("Set Create api options");return o.data.source=r,o.data.path=t,o.data.name=e,this.get("create").then(function(e){if(n.isSuccess(e))return!0;throw Bo(n.getMessage(e))})}},{key:"move",value:function(e,t,r,n){var o=this,i=n?"fileMove":"folderMove",a=this.options[i];if(!a)throw Bo("Set Move api options");return a.data.from=e,a.data.path=t,a.data.source=r,this.get(i).then(function(e){if(o.isSuccess(e))return!0;throw Bo(o.getMessage(e))})}},{key:"remove",value:function(e,t,r,n){var o=this,i=this.o[e];if(!i)throw Bo('Set "'.concat(e,'" api options'));return i.data.path=t,i.data.name=r,i.data.source=n,this.get(e).then(function(e){return i.process&&(e=i.process.call(o,e)),o.getMessage(e)})}},{key:"fileRemove",value:function(e,t,r){return this.remove("fileRemove",e,t,r)}},{key:"folderRemove",value:function(e,t,r){return this.remove("folderRemove",e,t,r)}},{key:"rename",value:function(e,t,r,n,o){var i=this,a=this.o[e];if(!a)throw Bo('Set "'.concat(e,'" api options'));return a.data.path=t,a.data.name=r,a.data.newname=n,a.data.source=o,this.get(e).then(function(e){return a.process&&(e=a.process.call(self,e)),i.getMessage(e)})}},{key:"folderRename",value:function(e,t,r,n){return this.rename("folderRename",e,t,r,n)}},{key:"fileRename",value:function(e,t,r,n){return this.rename("fileRename",e,t,r,n)}},{key:"changeImage",value:function(e,t,r,n,o,i){this.o[e]||(this.o[e]={data:{}});var a=this.o[e];return void 0===a.data&&(a.data={action:e}),a.data.newname=o||n,i&&(a.data.box=i),a.data.path=t,a.data.name=n,a.data.source=r,this.get(e).then(function(){return!0})}},{key:"crop",value:function(e,t,r,n,o){return this.changeImage("crop",e,t,r,n,o)}},{key:"resize",value:function(e,t,r,n,o){return this.changeImage("resize",e,t,r,n,o)}},{key:"getMessage",value:function(e){return this.options.getMessage(e)}},{key:"isSuccess",value:function(e){return this.options.isSuccess(e)}},{key:"destruct",value:function(){this.__ajaxInstances.forEach(function(e){return e.destruct()}),this.__ajaxInstances.clear()}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();const Xd=Jd=function(e,t,r,n){var o,i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==("undefined"==typeof Reflect?"undefined":(i=Reflect)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(t,r,s):o(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}([jr],Jd);function Qd(e,t,r){return e.dataProvider.fileRemove(e.state.currentPath,t,r).then(function(r){e.status(r||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}eo.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},ds.set("crop",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> ').set("resize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> ');var Zd="jodit-image-editor",ef=ds.get.bind(ds),tf=function(e){return e?arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jodti-image-editor_active":""};function rf(e,t,r){return rf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nf(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},rf(e,t,r||e)}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nf(e)}function of(e,t){return of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},of(e,t)}function af(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sf=function(){return!!e})()}var lf,cf=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":af(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},uf="jodit-image-editor",df="resize",ff="crop",pf=lf=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=nf(t),function(e,t){return!t||"object"!==af(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,sf()?Reflect.construct(t,r||[],nf(e).constructor):t.apply(e,r))}(this,t,[e])).resizeUseRatio=!0,r.cropUseRatio=!0,r.clicked=!1,r.start_x=0,r.start_y=0,r.top_x=0,r.top_y=0,r.width=0,r.height=0,r.activeTab=df,r.naturalWidth=0,r.naturalHeight=0,r.ratio=0,r.new_h=0,r.new_w=0,r.diff_x=0,r.diff_y=0,r.cropBox={x:0,y:0,w:0,h:0},r.resizeBox={w:0,h:0},r.calcCropBox=function(){var e=r.crop_box.parentNode,t=.8*e.offsetWidth,n=.8*e.offsetHeight,o=t,i=n,a=r.naturalWidth,s=r.naturalHeight;t>a&&n>s?(o=a,i=s):r.ratio>t/n?(o=t,i=s*(t/a)):(o=a*(n/s),i=n),Rn(r.crop_box,{width:o,height:i})},r.showCrop=function(){if(r.cropImage){r.calcCropBox();var e=r.cropImage.offsetWidth||r.image.offsetWidth||r.image.naturalWidth;r.new_w=lf.calcValueByPercent(e,r.o.cropDefaultWidth);var t=r.cropImage.offsetHeight||r.image.offsetHeight||r.image.naturalHeight;r.cropUseRatio?r.new_h=r.new_w/r.ratio:r.new_h=lf.calcValueByPercent(t,r.o.cropDefaultHeight),Rn(r.cropHandler,{backgroundImage:"url("+Xn(r.cropImage,"src")+")",width:r.new_w,height:r.new_h,left:e/2-r.new_w/2,top:t/2-r.new_h/2}),r.j.e.fire(r.cropHandler,"updatesize")}},r.updateCropBox=function(){if(r.cropImage){var e=r.cropImage.offsetWidth/r.naturalWidth,t=r.cropImage.offsetHeight/r.naturalHeight;r.cropBox.x=Rn(r.cropHandler,"left")/e,r.cropBox.y=Rn(r.cropHandler,"top")/t,r.cropBox.w=r.cropHandler.offsetWidth/e,r.cropBox.h=r.cropHandler.offsetHeight/t,r.sizes.textContent=r.cropBox.w.toFixed(0)+"x"+r.cropBox.h.toFixed(0)}},r.updateResizeBox=function(){r.resizeBox.w=r.image.offsetWidth||r.naturalWidth,r.resizeBox.h=r.image.offsetHeight||r.naturalHeight},r.setHandlers=function(){var e=r,t=Xo(r.editor),n=t.widthInput,o=t.heightInput;e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown.".concat(uf),r.onResizeHandleMouseDown).on(r.j.ow,"resize.".concat(uf),function(){r.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),r.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on(zr(r.editor.querySelectorAll(".".concat(uf,"__slider-title"))),"click",r.onTitleModeClick).on([n,o],"input",r.onChangeSizeInput);var i=Xo(r.editor),a=i.keepAspectRatioResize,s=i.keepAspectRatioCrop;a&&a.addEventListener("change",function(){r.resizeUseRatio=a.checked}),s&&s.addEventListener("change",function(){r.cropUseRatio=s.checked}),e.j.e.on(e.resizeHandler,"updatesize",function(){Rn(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),r.updateResizeBox()}).on(e.cropHandler,"updatesize",function(){if(e.cropImage){var t=Rn(e.cropHandler,"left"),r=Rn(e.cropHandler,"top"),n=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),r<0&&(r=0),t+n>e.cropImage.offsetWidth&&(n=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=n/e.ratio)),r+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-r,e.cropUseRatio&&(n=o*e.ratio)),Rn(e.cropHandler,{width:n,height:o,left:t,top:r,backgroundPosition:-t-1+"px "+(-r-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}}),Object.values(e.buttons).forEach(function(t){t.onAction(function(){var r={action:e.activeTab,box:e.activeTab===df?e.resizeBox:e.cropBox};switch(t){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",function(t){if(!hn(t))return e.j.alert("The name should not be empty"),!1;e.onSave(t,r,e.hide,function(t){e.j.alert(t.message)})});break;case e.buttons.save:e.onSave(void 0,r,e.hide,function(t){e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===df?(Rn(e.image,{width:null,height:null}),n.value=e.naturalWidth.toString(),o.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},r.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:eo.defaultOptions.imageeditor;var n=r.options;r.resizeUseRatio=n.resizeUseRatio,r.cropUseRatio=n.cropUseRatio,r.buttons={reset:cl(r.j,"update","Reset"),save:cl(r.j,"save","Save"),saveas:cl(r.j,"save","Save as ...")},r.activeTab=n.resize?df:ff,r.editor=function(e,t){var r=e.i18n.bind(e),n=function(e,t){return'<div class="jodit-form__group">\n\t\t\t<label class="jodit-switcher-wrapper">\n\t\t\t\t<span class=\'jodit-switcher\'>\n\t\t\t\t\t<input '.concat(tf(!(arguments.length>2&&void 0!==arguments[2])||arguments[2],"checked"),' data-ref="').concat(t,'" type="checkbox"/>\n\t\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t\t</span>\n\t\t\t\t<span>').concat(r(e),"</span>\n\t\t\t</label>\n\t</div>")};return e.create.fromHTML('<form class="'.concat(Zd,' jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div class="'.concat(Zd,"__area ").concat(Zd,"__area_resize ").concat(Zd,'_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="').concat(Zd,'__box"></div>\n\t\t\t\t\t\t\t<div class="').concat(Zd,'__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"","\n\t\t\t").concat(t.crop?'<div class="'.concat(Zd,"__area ").concat(Zd,"__area_crop ").concat(tf(!t.resize),'">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="').concat(Zd,'__box">\n\t\t\t\t\t\t\t\t<div class="').concat(Zd,'__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="').concat(Zd,'__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"",'\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div data-area="resize" class="'.concat(Zd,"__slider ").concat(Zd,'_active">\n\t\t\t\t\t\t\t<div class="').concat(Zd,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(ef("resize"),"\n\t\t\t\t\t\t\t\t").concat(r("Resize"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(Zd,'__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(r("Width"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(r("Height"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t').concat(n("Keep Aspect Ratio","keepAspectRatioResize"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t").concat(t.crop?'<div data-area="crop" class="'.concat(Zd,"__slider ").concat(tf(!t.resize),'\'">\n\t\t\t\t\t\t\t<div class="').concat(Zd,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(ef("crop"),"\n\t\t\t\t\t\t\t\t").concat(r("Crop"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(Zd,'__slider-content">\n\t\t\t\t\t\t\t\t').concat(n("Keep Aspect Ratio","keepAspectRatioCrop"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t</div>\n\t\t</div>\n\t</form>"))}(r.j,r.options);var o=Xo(r.editor),i=o.resizeBox,a=o.cropBox;return r.resize_box=i,r.crop_box=a,r.sizes=r.editor.querySelector(".".concat(uf,"__area.").concat(uf,"__area_crop .jodit-image-editor__sizes")),r.resizeHandler=r.editor.querySelector(".".concat(uf,"__resizer")),r.cropHandler=r.editor.querySelector(".".concat(uf,"__croper")),r._dialog=r.j.dlg({buttons:["fullsize","dialog.close"]}),r._dialog.setContent(r.editor),r._dialog.setSize(r.o.width,r.o.height),r._dialog.setHeader([r.buttons.reset,r.buttons.save,r.buttons.saveas]),r.setHandlers(),r}var r;return function(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}}),t&&of(e,t)}(t,e),r=[{key:"className",value:function(){return"ImageEditor"}},{key:"o",get:function(){return this.options}},{key:"hide",value:function(){this._dialog.close()}},{key:"open",value:function(e,t){var r=this;return this.j.async.promise(function(n){var o=(new Date).getTime();r.image=r.j.c.element("img"),Yo("img,.jodit-icon_loader",r.resize_box).forEach(li.safeRemove),Yo("img,.jodit-icon_loader",r.crop_box).forEach(li.safeRemove),Rn(r.cropHandler,"background","transparent"),r.onSave=t,r.resize_box.appendChild(r.j.c.element("i",{class:"jodit-icon_loader"})),r.crop_box.appendChild(r.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+o:e+="?_tst="+o,r.image.setAttribute("src",e),r._dialog.open();var i=Xo(r.editor),a=i.widthInput,s=i.heightInput,l=function(){r.isDestructed||(r.image.removeEventListener("load",l),r.naturalWidth=r.image.naturalWidth,r.naturalHeight=r.image.naturalHeight,a.value=r.naturalWidth.toString(),s.value=r.naturalHeight.toString(),r.ratio=r.naturalWidth/r.naturalHeight,r.resize_box.appendChild(r.image),r.cropImage=r.image.cloneNode(!0),r.crop_box.appendChild(r.cropImage),li.safeRemove.apply(null,Yo(".jodit-icon_loader",r.editor)),r.activeTab===ff&&r.showCrop(),r.j.e.fire(r.resizeHandler,"updatesize"),r.j.e.fire(r.cropHandler,"updatesize"),r._dialog.setPosition(),r.j.e.fire("afterImageEditor"),n(r._dialog))};r.image.addEventListener("load",l),r.image.complete&&l()})}},{key:"onTitleModeClick",value:function(e){var t=this,r=e.target,n=null==r?void 0:r.parentElement;if(n){Yo(".".concat(uf,"__slider,.").concat(uf,"__area"),t.editor).forEach(function(e){return e.classList.remove("".concat(uf,"_active"))}),n.classList.add("".concat(uf,"_active")),this.activeTab=Xn(n,"-area")||df;var o=t.editor.querySelector(".".concat(uf,"__area.").concat(uf,"__area_")+t.activeTab);o&&o.classList.add("".concat(uf,"_active")),t.activeTab===ff&&t.showCrop()}}},{key:"onChangeSizeInput",value:function(e){var t,r=this,n=e.target,o=Xo(this.editor),i=o.widthInput,a=o.heightInput,s="widthInput"===Xn(n,"data-ref"),l=parseInt(n.value,10),c=s?r.o.min_width:r.o.min_height,u=s?r.o.min_height:r.o.min_width;l>c&&(Rn(r.image,s?"width":"height",l),r.resizeUseRatio&&(t=s?Math.round(l/r.ratio):Math.round(l*r.ratio))>u&&(Rn(r.image,s?"height":"width",t),s?a.value=t.toString():i.value=t.toString())),this.j.e.fire(r.resizeHandler,"updatesize")}},{key:"onResizeHandleMouseDown",value:function(e){var t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===ff?(t.top_x=Rn(t.cropHandler,"left"),t.top_y=Rn(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}},{key:"onGlobalMouseUp",value:function(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}},{key:"onGlobalMouseMove",value:function(e){var t=this;if(t.clicked){var r=Xo(this.editor),n=r.widthInput,o=r.heightInput;t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===df&&t.resizeUseRatio||t.activeTab===ff&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===df?(t.new_w>t.o.resizeMinWidth&&(Rn(t.image,"width",t.new_w+"px"),n.value=t.new_w.toString()),t.new_h>t.o.resizeMinHeight&&(Rn(t.image,"height",t.new_h+"px"),o.value=t.new_h.toString()),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),Rn(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),Rn(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),Rn(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}}},{key:"destruct",value:function(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),li.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".".concat(uf)).off(".".concat(uf)),rf(nf(t.prototype),"destruct",this).call(this))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ha);function hf(e,t,r,n,o,i){var a=this;return this.getInstance("ImageEditor",this.o).open(e,function(e,s,l,c){return so("resize"===s.action?a.dataProvider.resize:a.dataProvider.crop,r,n,t,e,s.box).then(function(e){e&&(l(),o&&o())}).catch(function(e){c(e),i&&i(e)})})}function mf(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function gf(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){mf(i,n,o,a,s,"next",e)}function s(e){mf(i,n,o,a,s,"throw",e)}a(void 0)})}}pf.calcValueByPercent=function(e,t){var r,n=t.toString(),o=parseFloat(e.toString());return(r=/^[-+]?[0-9]+(px)?$/.exec(n))?parseInt(n,10):(r=/^([-+]?[0-9.]+)%$/.exec(n))?Math.round(o*(parseFloat(r[1])/100)):o||0},cf([jr],pf.prototype,"hide",null),cf([jr],pf.prototype,"open",null),cf([jr],pf.prototype,"onTitleModeClick",null),cf([qa(),jr],pf.prototype,"onChangeSizeInput",null),cf([jr],pf.prototype,"onResizeHandleMouseDown",null),cf([jr],pf.prototype,"onGlobalMouseUp",null),cf([Va(10)],pf.prototype,"onGlobalMouseMove",null),pf=lf=cf([gi],pf);var yf="jodit-file-browser-preview",vf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return'<div class="'.concat(yf,"__navigation ").concat(yf,"__navigation_arrow_").concat(e,'">')+""+ds.get("angle-"+t)+"</a>"};function bf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _f=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a";return li.closest(e,function(e){return li.isTag(e,r)},t)},wf=function(e,t){return t[e.dataset.key||""].item};function Sf(){var e=this,t=!1,r=Ud(this),n=this;n.e.on(n.tree.container,"dragstart",function(e){var r=_f(e.target,n.container);r&&n.o.moveFolder&&(t=r)}).on(n.tree.container,"drop",function(r){if((n.o.moveFile||n.o.moveFolder)&&t){var o=Xn(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(e.tree.getFullElName("item")))return!1;if(t.classList.contains(e.files.getFullElName("item"))&&(o+=Xn(t,"-name"),!n.o.moveFile))return!1;var i=_f(r.target,n.container);if(!i)return;n.dataProvider.move(o,Xn(i,"-path")||"",Xn(i,"-source")||"",t.classList.contains(e.files.getFullElName("item"))).then(function(){return Bd(e)}).catch(n.status),t=!1}}).on(n.files.container,"contextmenu",function(e){if(!e.o.contextMenu)return function(){};var t=new Ad(e);return function(r){var n=_f(r.target,e.container);if(n){var o=n,i=e.options,a=function(e){return Xn(o,e)||""};return e.async.setTimeout(function(){var s=wf(n,Ud(e));s&&(e.state.activeElements=[s],t.show(r.clientX,r.clientY,[!("1"===a("data-is-file")||!i.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){return hf.call(e,a("href"),a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:function(){e.e.fire("fileRename.filebrowser",a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:gf(function(){var t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Qd(e,a("data-name"),a("data-source"))];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),[2,e.status(t)];case 3:return e.state.activeElements=[],[2,Bd(e).catch(e.status)]}})})},!!i.preview&&{icon:"eye",title:"Preview",exec:function(){var t=e.dlg({buttons:["fullsize","dialog.close"]}),r=e.c.div(yf,'<div class="jodit-icon_loader"></div>'),n=e.c.div(yf+"__box"),s=e.c.fromHTML(vf()),l=e.c.fromHTML(vf("prev","left")),c=function(a){var c=e.c.element("img");c.setAttribute("src",a);var u=function(){var a;e.isInDestruct||(e.e.off(c,"load"),li.detach(r),i.showPreviewNavigation&&(li.prevWithClass(o,e.files.getFullElName("item"))&&r.appendChild(l),li.nextWithClass(o,e.files.getFullElName("item"))&&r.appendChild(s)),r.appendChild(n),n.appendChild(c),t.setPosition(),null===(a=null==e?void 0:e.events)||void 0===a||a.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",u),c.complete&&u()};e.e.on([s,l],"click",function(){if(!(o=this===s?li.nextWithClass(o,e.files.getFullElName("item")):li.prevWithClass(o,e.files.getFullElName("item"))))throw Bo("Need element");li.detach(r),li.detach(n),r.innerHTML='<div class="jodit-icon_loader"></div>',c(a("href"))}),e.e.on("beforeDestruct",function(){t.destruct()}),t.container.classList.add(yf+"__dialog"),t.setContent(r),t.setPosition(),t.open(),c(a("href")),e.events.on("beforeDestruct",function(){t.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec:function(){var t=a("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",function(){t.close()}).on("beforeDestruct",function(){return t.destruct()}),r.stopPropagation(),r.preventDefault(),!1}}}(n)).on(n.files.container,"click",function(t){So(t)||(e.state.activeElements=[])}).on(n.files.container,"click",function(e){var t=_f(e.target,n.container);if(t){var o=wf(t,r);if(o)return So(e)?n.state.activeElements=function(e){return function(e){if(Array.isArray(e))return bf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bf(e,t):void 0}}(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.")}()}(n.state.activeElements).concat([o]):n.state.activeElements=[o],e.stopPropagation(),!1}}).on(n.files.container,"dragstart",function(e){if(n.o.moveFile){var r=_f(e.target,n.container);if(!r)return;t=r}}).on(n.container,"drop",function(e){return e.preventDefault()})}function Ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kf(){var e=this,t=this.state,r=this.dataProvider,n=this;n.e.on("view.filebrowser",function(e){e!==t.view&&(t.view=e)}).on("sort.filebrowser",function(e){e!==t.sortBy&&(t.sortBy=e,Nd(n))}).on("filter.filebrowser",function(e){e!==t.filterWord&&(t.filterWord=e,Nd(n))}).on("openFolder.filebrowser",function(e){var t;t=".."===e.name?e.path.split("/").filter(function(e){return e.length}).slice(0,-1).join("/"):Ui(e.path,e.name),n.state.currentPath=t,n.state.currentSource="."===e.name?Kd:e.source}).on("removeFolder.filebrowser",function(e){n.confirm("Are you sure?","Delete",function(t){t&&r.folderRemove(e.path,e.name,e.source).then(function(e){return n.status(e,!0),Bd(n)}).catch(n.status)})}).on("renameFolder.filebrowser",function(e){n.prompt("Enter new name","Rename",function(t){if(!fn(t))return n.status(n.i18n("Enter new name")),!1;r.folderRename(e.path,e.name,t,e.source).then(function(e){return n.state.activeElements=[],n.status(e,!0),Bd(n)}).catch(n.status)},"type name",e.name)}).on("addFolder.filebrowser",function(e){n.prompt("Enter Directory name","Create directory",function(t){r.createFolder(t,e.path,e.source).then(function(){return Bd(n)}).catch(n.status)},"type name")}).on("fileRemove.filebrowser",function(){n.state.activeElements.length&&n.confirm("Are you sure?","",function(e){if(e){var t=[];n.state.activeElements.forEach(function(e){t.push(Qd(n,e.file||e.name||"",e.sourceName))}),n.state.activeElements=[],Promise.all(t).then(function(){return Bd(n).catch(n.status)},n.status)}})}).on("edit.filebrowser",function(){if(1===n.state.activeElements.length){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),1!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Ef(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ef(e,1):void 0}}(e)||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.")}()}(e.state.activeElements)[0];hf.call(n,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",function(e,t,o){1===n.state.activeElements.length&&n.prompt("Enter new name","Rename",function(i){if(!fn(i))return n.status(n.i18n("Enter new name")),!1;r.fileRename(t,e,i,o).then(function(e){n.state.activeElements=[],n.status(e,!0),Nd(n)}).catch(n.status)},"type name",e)}).on("update.filebrowser",function(){Bd(e).then(e.status,e.status)})}function xf(){var e=this,t=Ud(this),r=this,n=r.state,o=r.files,i=r.create,a=r.options;n.on(["change.currentPath","change.currentSource"],this.async.debounce(function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeLastOpenedFolder&&e.storage.set("currentPath",e.state.currentPath).set("currentSource",e.state.currentSource),Bd(e).catch(e.status)},this.defaultTimeout)).on("beforeChange.activeElements",function(){n.activeElements.forEach(function(e){var r=e.uniqueHashKey,n=t[r].elm;n&&n.classList.remove(o.getFullElName("item","active",!0))})}).on("change.activeElements",function(){e.e.fire("changeSelection"),n.activeElements.forEach(function(e){var r=e.uniqueHashKey,n=t[r].elm;n&&n.classList.add(o.getFullElName("item","active",!0))})}).on("change.view",function(){o.setMod("view",n.view),e.o.saveStateInStorage&&e.o.saveStateInStorage.storeView&&e.storage.set("view",n.view)}).on("change.sortBy",function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeSortBy&&e.storage.set("sortBy",n.sortBy)}).on("change.elements",this.async.debounce(function(){li.detach(o.container),n.elements.length?n.elements.forEach(function(r){e.files.container.appendChild(function(r){var n=r.uniqueHashKey;if(t[n])return t[n].elm;var o=i.fromHTML(a.getThumbTemplate.call(e,r,r.source,r.sourceName.toString()));return o.dataset.key=n,t[n]={item:r,elm:o},t[n].elm}(r))}):o.container.appendChild(i.div(e.componentName+"_no-files_true",e.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(function(){li.detach(e.tree.container),n.sources.forEach(function(t){var r=t.name;if(r&&"default"!==r&&e.tree.container.appendChild(i.div(e.tree.getFullElName("source-title"),r)),t.folders.forEach(function(n){var o=i.a(e.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":Ui(t.path,n+"/"),"data-name":n,"data-source":r,"data-source-path":t.path},i.span(e.tree.getFullElName("item-title"),n)),s=function(o){return function(i){e.e.fire("".concat(o,".filebrowser"),{name:n,path:Ui(t.path+"/"),source:r}),i.stopPropagation(),i.preventDefault()}};if(e.e.on(o,"click",s("openFolder")),e.tree.container.appendChild(o),".."!==n&&"."!==n){if(a.renameFolder&&e.dataProvider.canI("FolderRename")){var l=cl(e,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});l.onAction(s("renameFolder")),o.appendChild(l.container)}if(a.deleteFolder&&e.dataProvider.canI("FolderRemove")){var c=cl(e,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});c.onAction(s("removeFolder")),o.appendChild(c.container)}}}),a.createNewFolder&&e.dataProvider.canI("FolderCreate")){var n=cl(e,"plus","Add folder","secondary");n.onAction(function(){e.e.fire("addFolder",{path:Ui(t.path+"/"),source:r})}),e.tree.append(n)}})},this.defaultTimeout))}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tf(e)}function Of(e,t){return Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Of(e,t)}function Cf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cf=function(){return!!e})()}var jf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Tf(r=t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Cf()?Reflect.construct(r,n||[],Tf(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Of(e,t)}(t,e),(r=[{key:"className",value:function(){return"FileBrowserFiles"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pf(e)}function If(e,t){return If=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},If(e,t)}function Rf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rf=function(){return!!e})()}var Af=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Pf(r=t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Rf()?Reflect.construct(r,n||[],Pf(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&If(e,t)}(t,e),(r=[{key:"className",value:function(){return"FileBrowserTree"}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function Mf(e,t,r){return Mf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Df(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Mf(e,t,r||e)}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Df(e)}function Nf(e,t){return Nf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nf(e,t)}function Lf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bf=function(){return!!e})()}var Ff=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Lf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},zf=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Df(t),function(e,t){return!t||"object"!==Lf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Bf()?Reflect.construct(t,r||[],Df(e).constructor):t.apply(e,r))}(this,t,[e])).browser=r.c.div(r.componentName),r.status_line=r.c.div(r.getFullElName("status")),r.tree=new Af(r),r.files=new jf(r),r.state=Ea({currentPath:"",currentSource:Kd,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),r.errorHandler=function(e){var t,n;Hr(e)||(t=e,(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](t):t instanceof n)?r.status(r.i18n(e.message)):r.status(r.dataProvider.getMessage(e)))},r.close=function(){r._dialog.close()},r.__prevButtons=[],r.attachEvents(e);var n=r;n.options=yo(e||{},eo.defaultOptions.filebrowser),n.browser.component=r,n.container=n.browser,n.o.showFoldersPanel&&n.browser.appendChild(n.tree.container),n.browser.appendChild(n.files.container),n.browser.appendChild(n.status_line),kf.call(n),Sf.call(n),xf.call(n),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(function(e){null!=r.options[e]&&(r.options[e]=yo(r.options[e],r.o.ajax))});var o=r.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},i=o.storeView,a=o.storeSortBy,s=o.storeLastOpenedFolder,l=i&&r.storage.get("view");l&&null==r.o.view?n.state.view="list"===l?"list":"tiles":n.state.view="list"===n.o.view?"list":"tiles",n.files.setMod("view",n.state.view);var c=a&&n.storage.get("sortBy");if(c){var u=c.split("-");n.state.sortBy=["changed","name","size"].includes(u[0])?c:"changed-desc"}else n.state.sortBy=n.o.sortBy||"changed-desc";if(s){var d=n.storage.get("currentPath"),f=n.storage.get("currentSource");n.state.currentPath=null!=d?d:"",n.state.currentSource=null!=f?f:""}return n.initUploader(n),n.setStatus(Pr.ready),r}var r;return function(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}}),t&&Nf(e,t)}(t,e),r=[{key:"className",value:function(){return"FileBrowser"}},{key:"dataProvider",get:function(){return function(e,t){return new Xd(e,t)}(this,this.options)}},{key:"onSelect",value:function(e){var t=this;return function(){if(t.state.activeElements.length){var r=[],n=[];t.state.activeElements.forEach(function(e){var t=e.fileURL;t&&(r.push(t),n.push(e.isImage||!1))}),t.close();var o={baseurl:"",files:r,isImages:n};Rr(e)&&e(o),t.close()}return!1}}},{key:"_dialog",get:function(){var e,t=this,r=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(e=this.o.headerButtons)&&void 0!==e?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(function(e){return r.events.on(r,e,function(){return t.e.fire(e)})}),r.setSize(this.o.width,this.o.height),r}},{key:"storage",get:function(){return Zc.makeStorage(Boolean(this.o.saveStateInStorage),this.componentName)}},{key:"isOpened",get:function(){return this._dialog.isOpened&&"none"!==this.browser.style.display}},{key:"status",value:function(e,t){e&&!Hr(e)&&(Mr(e)||(e=e.message),Mr(e)&&hn(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}},{key:"open",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.o.defaultCallback,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.state.onlyImages=r,this.async.promise(function(r,n){var o;if(!e.o.items||!e.o.items.url)throw Bo("Need set options.filebrowser.ajax.url");var i=0;e.e.off(e.files.container,"dblclick").on(e.files.container,"dblclick",e.onSelect(t)).on(e.files.container,"touchstart",function(){var r=(new Date).getTime();r-i<ar&&e.onSelect(t)(),i=r}).off("select.filebrowser").on("select.filebrowser",e.onSelect(t));var a=e.c.div();null===(o=e.toolbar)||void 0===o||o.appendTo(a),e.__updateToolbarButtons(),e._dialog.open(e.browser,a),e.e.fire("sort.filebrowser",e.state.sortBy),Bd(e).then(r,n).finally(function(){var t;e.isInDestruct||null===(t=null==e?void 0:e.e)||void 0===t||t.fire("fileBrowserReady.filebrowser")})}).catch(function(e){if(!Hr(e)&&!ft)throw e})}},{key:"__getButtons",value:function(){var e,t=this;return(null!==(e=this.o.buttons)&&void 0!==e?e:[]).filter(function(e){if(!Mr(e))return!0;switch(e){case"filebrowser.upload":return t.dataProvider.canI("FileUpload");case"filebrowser.edit":return t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop");case"filebrowser.remove":return t.dataProvider.canI("FileRemove")}return!0})}},{key:"initUploader",value:function(e){var t,r=this,n=this,o=yo((null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader)||{},eo.defaultOptions.uploader),i=function(){return Nd(r)};n.uploader=n.getInstance("Uploader",o),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,i,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],function(){r.uploader.setPath(r.state.currentPath).setSource(r.state.currentSource)}),n.e.on("bindUploader.filebrowser",function(e){n.uploader.bind(e,i,n.errorHandler)})}},{key:"destruct",value:function(){var e;this.isInDestruct||(null===(e=ci(this,"_dialog"))||void 0===e||e.destruct(),Mf(Df(t.prototype),"destruct",this).call(this),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}},{key:"__updateToolbarButtons",value:function(){var e,t=this.__getButtons();(function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0})(this.__prevButtons,t)||(this.__prevButtons=t,null===(e=this.toolbar)||void 0===e||e.build(t))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(pd);function Uf(e,t,r){return Uf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hf(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Uf(e,t,r||e)}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hf(e)}function qf(e,t){return qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qf(e,t)}function Vf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Wf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wf=function(){return!!e})()}Ff([ui],zf.prototype,"dataProvider",null),Ff([ui],zf.prototype,"_dialog",null),Ff([ui],zf.prototype,"storage",null),Ff([jr],zf.prototype,"status",null),Ff([jr],zf.prototype,"open",null),Ff([va("dataProvider:changePermissions")],zf.prototype,"__updateToolbarButtons",null),zf=Ff([$a(Od)],zf);var Gf=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Vf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},$f=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Hf(t),function(e,t){return!t||"object"!==Vf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Wf()?Reflect.construct(t,r||[],Hf(e).constructor):t.apply(e,r))}(this,t,[e])).buttons=[],r.hasStyle=!1,r.__inited=!1,e.e.on("afterPluginSystemInit",r.__afterPluginSystemInit).on("afterInit",r.__afterInit).on("beforeDestruct",r.__beforeDestruct),r}var r;return function(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}}),t&&qf(e,t)}(t,e),(r=[{key:"className",value:function(){return"Plugin"}},{key:"__afterPluginSystemInit",value:function(){var e=this.j,t=this.buttons;t&&rn(e)&&t.forEach(function(t){e.registerButton(t)})}},{key:"__afterInit",value:function(){this.__inited=!0,this.setStatus(Pr.ready),this.afterInit(this.jodit)}},{key:"init",value:function(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}},{key:"__beforeDestruct",value:function(){var e;if(!this.isInDestruct){var r=this.j;if(r.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(Pr.beforeDestruct),!this.__inited)return Uf(Hf(t.prototype),"destruct",this).call(this);rn(r)&&(null===(e=this.buttons)||void 0===e||e.forEach(function(e){null==r||r.unregisterButton(e)})),this.beforeDestruct(this.j),Uf(Hf(t.prototype),"destruct",this).call(this)}}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ha);$f.requires=[],Gf([jr],$f.prototype,"__afterPluginSystemInit",null),Gf([jr],$f.prototype,"__afterInit",null),Gf([jr],$f.prototype,"__beforeDestruct",null);var Kf=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.oldValue=t,this.newValue=r,this.history=n,this.tick=o}var t;return(t=[{key:"undo",value:function(){this.history.snapshot.restore(this.oldValue)}},{key:"redo",value:function(){this.history.snapshot.restore(this.newValue)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function Yf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jf(e,t,r){return Jf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xf(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Jf(e,t,r||e)}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xf(e)}function Qf(e,t){return Qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qf(e,t)}function Zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zf=function(){return!!e})()}var ep=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Xf(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Zf()?Reflect.construct(t,r||[],Xf(e).constructor):t.apply(e,r))}(this,t,arguments)).__isBlocked=!1,e.__levelOfTransaction=0,e}var r,n,o;return function(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}}),t&&Qf(e,t)}(t,e),r=t,n=[{key:"className",value:function(){return"Snapshot"}},{key:"calcHierarchyLadder",value:function(e){var r=[];if(!e||!e.parentNode||!li.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!t.isIgnoredNode(e)&&r.push(t.countNodesBeforeInParent(e)),e=e.parentNode;return r.reverse()}},{key:"getElementByLadder",value:function(e){var t,r=this.j.editor;for(t=0;r&&t<e.length;t+=1)r=r.childNodes[e[t]];return r}},{key:"isBlocked",get:function(){return this.__isBlocked}},{key:"__block",value:function(e){this.__isBlocked=e}},{key:"transaction",value:function(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!ft)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}},{key:"make",value:function(){var e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);var r=this.j.s.sel;if(r&&r.rangeCount){var n=r.getRangeAt(0),o=this.calcHierarchyLadder(n.startContainer),i=this.calcHierarchyLadder(n.endContainer),a=t.strokeOffset(n.startContainer,n.startOffset),s=t.strokeOffset(n.endContainer,n.endOffset);o.length||n.startContainer===this.j.editor||(a=0),i.length||n.endContainer===this.j.editor||(s=0),e.range={startContainer:o,startOffset:a,endContainer:i,endOffset:s}}return e}},{key:"restore",value:function(e){var t=this;this.transaction(function(){var r=t.storeScrollState();t.__getCleanedEditorValue(t.j.editor)!==e.html&&(t.j.value=e.html),t.restoreOnlySelection(e),t.restoreScrollState(r)})}},{key:"storeScrollState",value:function(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}},{key:"restoreScrollState",value:function(e){var t=this.j,r=t.ow;r.scrollTo(r.scrollX,e[0]),t.editor.scrollTop=e[1]}},{key:"restoreOnlySelection",value:function(e){try{if(e.range){var t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),ft||console.warn("Broken snapshot",e)}}},{key:"destruct",value:function(){this.__block(!1),Jf(Xf(t.prototype),"destruct",this).call(this)}},{key:"__getCleanedEditorValue",value:function(e){var t=e.cloneNode(!0);return li.temporaryList(t).forEach(li.unwrap),t.innerHTML}}],o=[{key:"equal",value:function(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}},{key:"countNodesBeforeInParent",value:function(e){if(!e.parentNode)return 0;for(var t=e.parentNode.childNodes,r=0,n=null,o=0;o<t.length;o+=1){if(!n||this.isIgnoredNode(t[o])||li.isText(n)&&li.isText(t[o])||(r+=1),t[o]===e)return r;n=t[o]}return 0}},{key:"strokeOffset",value:function(e,t){for(;li.isText(e);)e=e.previousSibling,li.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}},{key:"isIgnoredNode",value:function(e){return li.isText(e)&&!e.nodeValue||li.isTemporary(e)}}],n&&Yf(r.prototype,n),o&&Yf(r,o),t}(Ha),tp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t,this.commands=[],this.stackPosition=-1}var t;return(t=[{key:"length",get:function(){return this.commands.length}},{key:"clearRedo",value:function(){this.commands.length=this.stackPosition+1}},{key:"clear",value:function(){this.commands.length=0,this.stackPosition=-1}},{key:"push",value:function(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}},{key:"replace",value:function(e){this.commands[this.stackPosition]=e}},{key:"current",value:function(){return this.commands[this.stackPosition]}},{key:"undo",value:function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}},{key:"redo",value:function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}},{key:"canUndo",value:function(){return this.stackPosition>=0}},{key:"canRedo",value:function(){return this.stackPosition<this.commands.length-1}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function rp(e,t,r){return rp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=np(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},rp(e,t,r||e)}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},np(e)}function op(e,t){return op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},op(e,t)}function ip(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ap(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ap=function(){return!!e})()}eo.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};var sp=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new tp(e.o.history.maxHistoryLength),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ep(e);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=np(t),function(e,t){return!t||"object"!==ip(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ap()?Reflect.construct(t,r||[],np(e).constructor):t.apply(e,r))}(this,t,[e])).updateTick=0,r.__stack=n,r.snapshot=o,e.o.history.enable&&e.e.on("afterAddPlace.history",function(){r.isInDestruct||(r.startValue=r.snapshot.make(),e.events.on("internalChange internalUpdate",function(){r.startValue=r.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(function(e){return e+".history"}).join(" "),function(){r.startValue.html===r.j.getNativeEditorValue()&&(r.startValue=r.snapshot.make())}).on(r,"change.history",r.onChange))}),r}var r;return function(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}}),t&&op(e,t)}(t,e),r=[{key:"className",value:function(){return"History"}},{key:"redo",value:function(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canRedo",value:function(){return this.__stack.canRedo()}},{key:"undo",value:function(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canUndo",value:function(){return this.__stack.canUndo()}},{key:"clear",value:function(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}},{key:"length",get:function(){return this.__stack.length}},{key:"startValue",get:function(){return this.__startValue},set:function(e){this.__startValue=e}},{key:"__upTick",value:function(){this.updateTick+=1}},{key:"onChange",value:function(){this.__processChanges()}},{key:"__processChanges",value:function(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}},{key:"updateStack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.snapshot.make();if(!ep.equal(t,this.startValue)){var r=new Kf(this.startValue,t,this,this.updateTick);if(e){var n=this.__stack.current();n&&this.updateTick===n.tick&&this.__stack.replace(r)}else this.__stack.push(r);this.startValue=t,this.fireChangeStack()}}},{key:"fireChangeStack",value:function(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}},{key:"destruct",value:function(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),rp(np(t.prototype),"destruct",this).call(this))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ha);function lp(e,t,r){return lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=cp(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},lp(e,t,r||e)}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cp(e)}function up(e,t){return up=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},up(e,t)}function dp(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function fp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fp=function(){return!!e})()}!function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ip(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)}([qa()],sp.prototype,"onChange",null);var pp=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=cp(t),function(e,t){return!t||"object"!==dp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,fp()?Reflect.construct(t,r||[],cp(e).constructor):t.apply(e,r))}(this,t,[e])).target=r,n.mods={},n.container=e.c.div("jodit-status-bar"),r.appendChild(n.container),n.hide(),n}var r;return function(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}}),t&&up(e,t)}(t,e),r=[{key:"className",value:function(){return"StatusBar"}},{key:"hide",value:function(){this.container.classList.add("jodit_hidden")}},{key:"show",value:function(){this.container.classList.remove("jodit_hidden")}},{key:"isShown",get:function(){return!this.container.classList.contains("jodit_hidden")}},{key:"getHeight",value:function(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}},{key:"findEmpty",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getElms(e?"item-right":"item"),r=0;r<t.length;r+=1)if(!t[r].innerHTML.trim().length)return t[r]}},{key:"append",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.findEmpty(r)||this.j.c.div(this.getFullElName("item"));r&&n.classList.add(this.getFullElName("item-right")),n.appendChild(e),null===(t=this.container)||void 0===t||t.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Pr.beforeDestruct),li.safeRemove(this.container),lp(cp(t.prototype),"destruct",this).call(this))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ha);function hp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mp(e,t,r){return mp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gp(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},mp(e,t,r||e)}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gp(e)}function yp(e,t){return yp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yp(e,t)}function vp(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bp=function(){return!!e})()}pp=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":dp(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([gi,$a(us,cs)],pp);var _p=new WeakMap,wp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=gp(t),function(e,t){return!t||"object"!==vp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,bp()?Reflect.construct(t,r||[],gp(e).constructor):t.apply(e,r))}(this,t,arguments)).selected=new Set,e}var r,n,o;return function(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}}),t&&yp(e,t)}(t,e),r=t,n=[{key:"className",value:function(){return"Table"}},{key:"__recalculateStyles",value:function(){var e=Ia(this.j,t,"style",!0),r=[];this.selected.forEach(function(e){var t=Qo(e);t&&r.push(t)}),e.innerHTML=r.length?r.join(",")+"{".concat(this.jodit.options.table.selectionCellStyle,"}"):""}},{key:"addSelection",value:function(e){this.selected.add(e),this.__recalculateStyles();var r=li.closest(e,"table",this.j.editor);if(r){var n=t.__selectedByTable.get(r)||new Set;n.add(e),t.__selectedByTable.set(r,n)}}},{key:"removeSelection",value:function(e){this.selected.delete(e),this.__recalculateStyles();var r=li.closest(e,"table",this.j.editor);if(r){var n=t.__selectedByTable.get(r);n&&(n.delete(e),n.size||t.__selectedByTable.delete(r))}}},{key:"getAllSelectedCells",value:function(){return zr(this.selected)}},{key:"destruct",value:function(){return this.selected.clear(),mp(gp(t.prototype),"destruct",this).call(this)}},{key:"getRowsCount",value:function(e){return t.__getRowsCount(e)}},{key:"getColumnsCount",value:function(e){return t.__getColumnsCount(e)}},{key:"formalMatrix",value:function(e,r){return t.__formalMatrix(e,r)}},{key:"formalCoordinate",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.__formalCoordinate(e,r,n)}},{key:"appendRow",value:function(e,r,n){return t.__appendRow(e,r,n,this.j.createInside)}},{key:"removeRow",value:function(e,r){return t.__removeRow(e,r)}},{key:"appendColumn",value:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.__formalMatrix(e);if(!n&&li.isCell(r.previousElementSibling))return this.appendColumn(e,r.previousElementSibling,!0);for(var i=n?r.cellIndex+((r.colSpan||1)-1):r.cellIndex,a=n?i+1:i,s=0;s<o.length;){var l=o[s];if(l[i]!==l[a]||i===a){var c=this.j.createInside.element("td");n?li.after(l[i],c):li.before(l[i],c),l[i].rowSpan>1&&(c.rowSpan=l[i].rowSpan)}else l[i].colSpan+=1;s+=l[i].rowSpan||1}}},{key:"removeColumn",value:function(e,r){return t.__removeColumn(e,r)}},{key:"getSelectedBound",value:function(e,r){return t.__getSelectedBound(e,r)}},{key:"normalizeTable",value:function(e){return t.__normalizeTable(e)}},{key:"mergeSelected",value:function(e){return t.__mergeSelected(e,this.j)}},{key:"splitHorizontal",value:function(e){return t.__splitHorizontal(e,this.j)}},{key:"splitVertical",value:function(e){return t.__splitVertical(e,this.j)}},{key:"setColumnWidthByDelta",value:function(e,r,n,o,i){return t.__setColumnWidthByDelta(e,r,n,o,i)}}],o=[{key:"__getSelectedCellsByTable",value:function(e){var r=t.__selectedByTable.get(e);return r?zr(r):[]}},{key:"__getRowsCount",value:function(e){return e.rows.length}},{key:"__getColumnsCount",value:function(e){return t.__formalMatrix(e).reduce(function(e,t){return Math.max(e,t.length)},0)}},{key:"__formalMatrix",value:function(e,t){for(var r=[[]],n=zr(e.rows),o=function(e,n){void 0===r[n]&&(r[n]=[]);for(var o,i,a=e.colSpan,s=e.rowSpan,l=0;r[n][l];)l+=1;for(i=0;i<s;i+=1)for(o=0;o<a;o+=1){if(void 0===r[n+i]&&(r[n+i]=[]),t&&!1===t(e,n+i,l+o,a,s))return!1;r[n+i][l+o]=e}},i=0;i<n.length;i+=1)for(var a=zr(n[i].cells),s=0;s<a.length;s+=1)if(!1===o(a[s],i))return r;return r}},{key:"__formalCoordinate",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=0,i=0,a=1,s=1;return t.__formalMatrix(e,function(e,t,l,c,u){if(r===e)return o=t,i=l,a=c||1,s=u||1,n&&(i+=(c||1)-1,o+=(u||1)-1),!1}),[o,i,a,s]}},{key:"__appendRow",value:function(e,r,n,o){var i,a;if(r)a=r.cloneNode(!0),Yo("td,th",r).forEach(function(e){var t=Xn(e,"rowspan");if(t&&parseInt(t,10)>1){var r=parseInt(t,10)-1;Xn(e,"rowspan",r>1?r:null)}}),Yo("td,th",a).forEach(function(e){e.innerHTML=""});else{var s=t.__getColumnsCount(e);a=o.element("tr");for(var l=0;l<s;l+=1)a.appendChild(o.element("td"))}n&&r&&r.nextSibling?r.parentNode&&r.parentNode.insertBefore(a,r.nextSibling):!n&&r?r.parentNode&&r.parentNode.insertBefore(a,r):((null===(i=e.getElementsByTagName("tbody"))||void 0===i?void 0:i[0])||e).appendChild(a)}},{key:"__removeRow",value:function(e,r){var n,o=t.__formalMatrix(e),i=e.rows[r];o[r].forEach(function(t,a){if(n=!1,r-1>=0&&o[r-1][a]===t)n=!0;else if(o[r+1]&&o[r+1][a]===t){if(t.parentNode===i&&t.parentNode.nextSibling){n=!0;for(var s=a+1;o[r+1][s]===t;)s+=1;var l=li.next(t.parentNode,function(e){return li.isTag(e,"tr")},e);l&&(o[r+1][s]?l.insertBefore(t,o[r+1][s]):l.appendChild(t))}}else li.safeRemove(t);if(n&&(t.parentNode===i||t!==o[r][a-1])){var c=t.rowSpan;Xn(t,"rowspan",c-1>1?c-1:null)}}),li.safeRemove(i)}},{key:"__removeColumn",value:function(e,r){var n,o=t.__formalMatrix(e);o.forEach(function(e,t){var i=e[r];if(n=!1,r-1>=0&&o[t][r-1]===i||r+1<e.length&&o[t][r+1]===i?n=!0:li.safeRemove(i),n&&(t-1<0||i!==o[t-1][r])){var a=i.colSpan;Xn(i,"colspan",a-1>1?(a-1).toString():null)}})}},{key:"__getSelectedBound",value:function(e,r){var n,o,i,a=[[1/0,1/0],[0,0]],s=t.__formalMatrix(e);for(n=0;n<s.length;n+=1)for(o=0;s[n]&&o<s[n].length;o+=1)r.includes(s[n][o])&&(a[0][0]=Math.min(n,a[0][0]),a[0][1]=Math.min(o,a[0][1]),a[1][0]=Math.max(n,a[1][0]),a[1][1]=Math.max(o,a[1][1]));for(n=a[0][0];n<=a[1][0];n+=1)for(i=1,o=a[0][1];o<=a[1][1];o+=1){for(;s[n]&&s[n][o-i]&&s[n][o]===s[n][o-i];)a[0][1]=Math.min(o-i,a[0][1]),a[1][1]=Math.max(o-i,a[1][1]),i+=1;for(i=1;s[n]&&s[n][o+i]&&s[n][o]===s[n][o+i];)a[0][1]=Math.min(o+i,a[0][1]),a[1][1]=Math.max(o+i,a[1][1]),i+=1;for(i=1;s[n-i]&&s[n][o]===s[n-i][o];)a[0][0]=Math.min(n-i,a[0][0]),a[1][0]=Math.max(n-i,a[1][0]),i+=1;for(i=1;s[n+i]&&s[n][o]===s[n+i][o];)a[0][0]=Math.min(n+i,a[0][0]),a[1][0]=Math.max(n+i,a[1][0]),i+=1}return a}},{key:"__normalizeTable",value:function(e){var r=[],n=t.__formalMatrix(e);t.__removeExtraColspans(n,r),t.__removeExtraRowspans(n,r);for(var o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)void 0!==n[o][i]&&(n[o][i].hasAttribute("rowspan")&&1===n[o][i].rowSpan&&Xn(n[o][i],"rowspan",null),n[o][i].hasAttribute("colspan")&&1===n[o][i].colSpan&&Xn(n[o][i],"colspan",null),n[o][i].hasAttribute("class")&&!Xn(n[o][i],"class")&&Xn(n[o][i],"class",null));t.__unmark(r)}},{key:"__removeExtraColspans",value:function(e,r){for(var n=0;n<e[0].length;n+=1){for(var o=1e6,i=!1,a=0;a<e.length;a+=1)if(void 0!==e[a][n]){if(e[a][n].colSpan<2){i=!0;break}o=Math.min(o,e[a][n].colSpan)}if(!i)for(var s=0;s<e.length;s+=1)void 0!==e[s][n]&&t.__mark(e[s][n],"colspan",e[s][n].colSpan-o+1,r)}}},{key:"__removeExtraRowspans",value:function(e,r){var n=0,o=0;for(n=0;n<e.length;n+=1){var i=1e6,a=!1;for(o=0;o<e[n].length;o+=1)if(void 0!==e[n][o]){if(e[n][o].rowSpan<2){a=!0;break}i=Math.min(i,e[n][o].rowSpan)}if(!a)for(o=0;o<e[n].length;o+=1)void 0!==e[n][o]&&t.__mark(e[n][o],"rowspan",e[n][o].rowSpan-i+1,r)}}},{key:"__mergeSelected",value:function(e,r){var n,o=[],i=t.__getSelectedBound(e,t.__getSelectedCellsByTable(e)),a=0,s=null,l=0,c=0,u=0,d=new Set,f=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(t.__formalMatrix(e,function(e,p,h,m,g){if(p>=i[0][0]&&p<=i[1][0]&&h>=i[0][1]&&h<=i[1][1]){if(n=e,d.has(n))return;d.add(n),p===i[0][0]&&n.style.width&&(a+=n.offsetWidth),""!==hn(e.innerHTML.replace(/<br(\/)?>/g,""))&&o.push(e.innerHTML),m>1&&(c+=m-1),g>1&&(u+=g-1),s?(t.__mark(n,"remove",1,f),Sp(r).removeSelection(n)):(s=e,l=h)}}),c=i[1][1]-i[0][1]+1,u=i[1][0]-i[0][0]+1,s&&(c>1&&t.__mark(s,"colspan",c,f),u>1&&t.__mark(s,"rowspan",u,f),a&&(t.__mark(s,"width",(a/e.offsetWidth*100).toFixed(Kt)+"%",f),l&&t.__setColumnWidthByDelta(e,l,0,!0,f)),s.innerHTML=o.join("<br/>"),Sp(r).addSelection(s),d.delete(s),t.__unmark(f),t.__normalizeTable(e),zr(e.rows).forEach(function(e){e.cells.length||li.safeRemove(e)})))}},{key:"__splitHorizontal",value:function(e,r){var n,o,i,a,s,l=[];t.__getSelectedCellsByTable(e).forEach(function(c){(o=r.createInside.element("td")).appendChild(r.createInside.element("br")),i=r.createInside.element("tr"),n=t.__formalCoordinate(e,c),c.rowSpan<2?(t.__formalMatrix(e,function(e,r,o){n[0]===r&&n[1]!==o&&e!==c&&t.__mark(e,"rowspan",e.rowSpan+1,l)}),li.after(li.closest(c,"tr",e),i),i.appendChild(o)):(t.__mark(c,"rowspan",c.rowSpan-1,l),t.__formalMatrix(e,function(t,r,o){r>n[0]&&r<n[0]+c.rowSpan&&n[1]>o&&t.parentNode.rowIndex===r&&(s=t),n[0]<r&&t===c&&(a=e.rows[r])}),s?li.after(s,o):a.insertBefore(o,a.firstChild)),c.colSpan>1&&t.__mark(o,"colspan",c.colSpan,l),t.__unmark(l),Sp(r).removeSelection(c)}),this.__normalizeTable(e)}},{key:"__splitVertical",value:function(e,r){var n,o,i,a=[];t.__getSelectedCellsByTable(e).forEach(function(s){n=t.__formalCoordinate(e,s),s.colSpan<2?t.__formalMatrix(e,function(e,r,o){n[1]===o&&n[0]!==r&&e!==s&&t.__mark(e,"colspan",e.colSpan+1,a)}):t.__mark(s,"colspan",s.colSpan-1,a),(o=r.createInside.element("td")).appendChild(r.createInside.element("br")),s.rowSpan>1&&t.__mark(o,"rowspan",s.rowSpan,a);var l=s.offsetWidth;li.after(s,o),i=l/e.offsetWidth/2,t.__mark(s,"width",(100*i).toFixed(Kt)+"%",a),t.__mark(o,"width",(100*i).toFixed(Kt)+"%",a),t.__unmark(a),Sp(r).removeSelection(s)}),t.__normalizeTable(e)}},{key:"__setColumnWidthByDelta",value:function(e,r,n,o,i){for(var a=t.__formalMatrix(e),s=0,l=0;l<a.length;l+=1){var c=a[l][r];if(!(c.colSpan>1&&a.length>1)){var u=(c.offsetWidth+n)/e.offsetWidth*100;t.__mark(c,"width",u.toFixed(Kt)+"%",i),s=l;break}}for(var d=s+1;d<a.length;d+=1){var f=a[d][r];t.__mark(f,"width",null,i)}o||t.__unmark(i)}},{key:"__mark",value:function(e,t,r,n){var o;n.push(e);var i=null!==(o=_p.get(e))&&void 0!==o?o:{};i[t]=void 0===r?1:r,_p.set(e,i)}},{key:"__unmark",value:function(e){e.forEach(function(e){var t=_p.get(e);t&&(Object.keys(t).forEach(function(r){var n=t[r];switch(r){case"remove":li.safeRemove(e);break;case"rowspan":Xn(e,"rowspan",an(n)&&n>1?n:null);break;case"colspan":Xn(e,"colspan",an(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),Xn(e,"style")||Xn(e,"style",null)):e.style.width=n.toString()}delete t[r]}),_p.delete(e))})}}],n&&hp(r.prototype,n),o&&hp(r,o),t}(Ha);wp.__selectedByTable=new WeakMap,function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":vp(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)}([qa()],wp.prototype,"__recalculateStyles",null);var Sp=function(e){return e.getInstance("Table",e.o)};function Ep(e){for(var t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n),i=0;i<t.length;i+=1)o[i]=t.charCodeAt(i);return new Blob([o.buffer],{type:r})}var kp=new WeakMap;function xp(e,t){var r=function(e,t){if(Rr(e.o.buildData))return e.o.buildData.call(e,t);var r,n,o=e.ow.FormData;if(void 0!==o){if(r=t,null!=(n=o)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n)return t;if(Mr(t))return t;var i=new o,a=t;return Object.keys(a).forEach(function(e){i.append(e,a[e])}),i}return t}(e,t),n=function(t){var r=new ls({xhr:function(){var t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(e.j.progressbar.show().progress(10),t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var r=t.loaded/t.total;r*=100,e.j.progressbar.show().progress(r),r>=100&&e.j.progressbar.hide()}},!1)):e.j.progressbar.hide(),t},method:e.o.method||"POST",data:t,url:Rr(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),n=kp.get(e);return n||(n=new Set,kp.set(e,n)),n.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(function(e){return e.json()}).catch(function(e){return{success:!1,data:{messages:[e]}}}).finally(function(){r.destruct(),null==n||n.delete(r)})};return cn(r)?r.then(n).catch(function(t){e.o.error.call(e,t)}):n(r)}function Tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tp(e,t):void 0}}(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 Cp(e,t,r,n,o){if(!t)return Promise.reject(Bo("Need files"));var i=e.o,a=zr(t);if(!a.length)return Promise.reject(Bo("Need files"));var s=[];if(i.insertImageAsBase64URI&&function(e,t,r,n,o,i){var a,s,l=function(){if((a=e[s])&&a.type){var l=a.type.match(/\/([a-z0-9]+)/i),c=l[1]?l[1].toLowerCase():"";if(!t.includes(c))return"continue";var u=new FileReader;r.push(n.j.async.promise(function(e,t){u.onerror=t,u.onloadend=function(){var t={baseurl:"",files:[u.result],isImages:[!0]};(Rr(o)?o:i).call(n,t),e(t)},u.readAsDataURL(a)})),e[s]=null}};for(s=0;s<e.length;s+=1)l()}(a,i.imagesExtensions,s,e,r,i.defaultHandlerSuccess),a=a.filter(function(e){return e}),a.length){var l,c=new FormData;c.append(i.pathVariableName,e.path),c.append("source",e.source);for(var u=0;u<a.length;u+=1)if(l=a[u]){var d=/\.\w+$/.test(l.name),f=l.type.match(/\/([a-z0-9]+)/i),p=f&&f[1]?f[1].toLowerCase():"",h=a[u].name||Math.random().toString().replace(".","");if(!d&&p){var m=p;["jpeg","jpg"].includes(m)&&(m="jpeg|jpg"),new RegExp(".("+m+")$","i").test(h)||(h+="."+p)}var g=Op(i.processFileName.call(e,i.filesVariableName(u),a[u],h),3),y=g[0],v=g[1],b=g[2];c.append(y,v,b)}o&&o(c),i.data&&ln(i.data)&&Object.keys(i.data).forEach(function(e){c.append(e,i.data[e])}),i.prepareData.call(e,c),s.push(xp(e,c).then(function(t){return i.isSuccess.call(e,t)?((Rr(r)?r:i.defaultHandlerSuccess).call(e,i.process.call(e,t)),t):((Rr(n)?n:i.defaultHandlerError).call(e,Bo(i.getMessage.call(e,t))),t)}).then(function(){e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(s)}function jp(e){return Boolean(e&&e.files&&e.files.length>0)}function Pp(e){return Boolean(e&&e.items&&e.items.length>0)}function Ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rp(e,t,r){return Rp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ap(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Rp(e,t,r||e)}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ap(e)}function Mp(e,t){return Mp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mp(e,t)}function Dp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dp=function(){return!!e})()}eo.prototype.enableDragAndDropFileToEditor=!0,eo.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:function(e){return"files[".concat(e,"]")},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:function(e){return e},isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&Ar(e.data.messages)?e.data.messages.join(" "):""},processFileName:function(e,t,r){return[e,t,r]},process:function(e){return e.data},error:function(e){this.j.message.error(e.message,4e3)},getDisplayName:function(e,t){return e+t},defaultHandlerSuccess:function(e){var t=this,r=this.j||this;rn(r)&&e.files&&e.files.length&&e.files.forEach(function(n,o){var i=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Ip(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ip(e,2):void 0}}(e)||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.")}()}(e.isImages&&e.isImages[o]?["img","src"]:["a","href"]),a=i[0],s=i[1],l=r.createInside.element(a);l.setAttribute(s,e.baseurl+n),"a"===a&&(l.textContent=r.o.uploader.getDisplayName.call(t,e.baseurl,n)),"img"===a?r.s.insertImage(l,null,r.o.imageDefaultWidth):r.s.insertNode(l)})},defaultHandlerError:function(e){this.j.message.error(e.message)},contentType:function(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};var Np=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Ap(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Dp()?Reflect.construct(t,r||[],Ap(e).constructor):t.apply(e,r))}(this,t,[e])).path="",n.source="default",n.options=yo(r||{},yo(eo.defaultOptions.uploader,rn(e)?e.o.uploader:{})),n}var r;return function(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}}),t&&Mp(e,t)}(t,e),r=[{key:"j",get:function(){return this.jodit}},{key:"className",value:function(){return"Uploader"}},{key:"o",get:function(){return this.options}},{key:"setPath",value:function(e){return this.path=e,this}},{key:"setSource",value:function(e){return this.source=e,this}},{key:"bind",value:function(e,t,r){var n=function(){e.classList.remove("jodit_drag_hover")},o=this,i=function(e){var i,a,s,l=e.clipboardData,c=function(e){a&&(e.append("extension",s),e.append("mimetype",a.type))};if(!tr&&jp(l))return Cp(o,l.files,t,r).finally(n),!1;if(tr&&!dt)return function(e,t,r,n,o){if(t&&(!t.types.length||t.types[0]!==rr)){var i=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});Ia(e.j,e.constructor).appendChild(i);var a=rn(e.j)?e.j.s.save():null;i.focus(),e.j.async.setTimeout(function(){var t=i.firstChild;if(li.safeRemove(i),t&&t.hasAttribute("src")){var s=Xn(t,"src")||"";a&&rn(e.j)&&e.j.s.restore(),Cp(e,[Ep(s)],r,n).finally(o)}},e.j.defaultTimeout)}}(o,l,t,r,n);if(Pp(l)){var u=l.items;for(i=0;i<u.length;i+=1)if("file"===u[i].kind&&"image/png"===u[i].type){if(a=u[i].getAsFile()){var d=a.type.match(/\/([a-z0-9]+)/i);s=d[1]?d[1].toLowerCase():"",Cp(o,[a],t,r,c).finally(n)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",i):o.j.e.on("beforePaste",i),this.attachEvents(e,t,r,n)}},{key:"attachEvents",value:function(e,t,r,n){var o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",function(e){e.preventDefault()}).on(e,"dragover",function(t){(jp(t.dataTransfer)||Pp(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",function(t){e.classList.remove("jodit_drag_hover"),jp(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",function(i){e.classList.remove("jodit_drag_hover"),jp(i.dataTransfer)&&(i.preventDefault(),i.stopImmediatePropagation(),Cp(o,i.dataTransfer.files,t,r).finally(n))});var i=e.querySelector("input[type=file]");i&&o.j.e.on(i,"change",function(){Cp(o,i.files,t,r).then(function(){i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")}).finally(n)})}},{key:"uploadRemoteImage",value:function(e,t,r){var n=this,o=n.o,i=Rr(r)?r:o.defaultHandlerError;xp(n,{action:"fileUploadRemote",url:e}).then(function(e){o.isSuccess.call(n,e)?(Rr(t)?t:o.defaultHandlerSuccess).call(n,o.process.call(n,e)):i.call(n,Bo(o.getMessage.call(n,e)))}).catch(function(e){return i.call(n,e)})}},{key:"destruct",value:function(){this.setStatus(Pr.beforeDestruct);var e=kp.get(this);e&&(e.forEach(function(e){try{e.destruct()}catch(e){}}),e.clear()),Rp(Ap(t.prototype),"destruct",this).call(this)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ha),Lp="wrap",Bp="unwrap",Fp="change",zp="unset",Up="initial",Hp="replace",qp="commitStyle";function Vp(e,t,r){var n=r.s.createRange(),o=on(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(o),Wp(e,n,!0);var i=on(t.nextSibling)?t.nextSibling:t;n.setStartAfter(i),n.setEndAfter(e),Wp(e,n,!1)}function Wp(e,t,r){var n=t.extractContents();n.textContent&&hn(n.textContent).length||!n.firstChild||li.unwrap(n.firstChild),e.parentNode&&so(r?li.before:li.after,e,n)}var Gp=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.transitions=r,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}var t;return(t=[{key:"setState",value:function(e){Jn(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}},{key:"getState",value:function(){return this.__state}},{key:"disableSilent",value:function(){this.silent=!1}},{key:"dispatch",value:function(e,t){var r=this.transitions[this.getState()][e];if(r){var n=r.call(this,t);return Jn(n&&n!==t,"Action should return new value"),Jn(Mr(n.next),"Value should contain the next state"),Jn(n.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(n.next),ft||this.silent||console.log("State: ".concat(this.getState())),n}throw new Error("invalid action: ".concat(this.getState(),".").concat(e.toString()))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function $p(e){return Boolean(e&&!li.isEmptyTextNode(e)&&!li.isTemporary(e)&&!on(e))}function Kp(e,t){return Boolean(!li.isTag(e,"font")&&li.isHTMLElement(e)&&Object.keys(t).every(function(r){var n=Rn(e,r,!0);return""===n&&(""===t[r]||null==t[r])||!Nr(n)&&""!==n&&!Nr(t[r])&&Pn(r,t[r]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(Ot){var Yp=Ot.createElement("div");Yp.style.color="red",Jn(Kp(Yp,{color:"red"}),"Style test"),Jn(Kp(Yp,{fontSize:null}),"Style test"),Jn(Kp(Yp,{fontSize:""}),"Style test")}function Jp(e,t){return Boolean(!li.isTag(e,"font")&&li.isHTMLElement(e)&&Object.keys(t).every(function(t){return""!==Rn(e,t,!0)}))}if(Ot){var Xp=Ot.createElement("div");Xp.style.color="red",Jn(Jp(Xp,{color:"red"}),"Style test"),Jn(!Jp(Xp,{font:"Arial",color:"red"}),"Style test"),Jn(!Jp(Xp,{border:"1px solid #ccc"}),"Style test")}function Qp(e,t,r){var n,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t||!$p(t))return!1;var i=e.element,a=e.elementIsDefault,s=e.options;if(li.isList(t)&&e.elementIsList)return!0;var l=li.isTag(t,i);return!(!l||a&&r)||!(!Boolean((null===(n=s.attributes)||void 0===n?void 0:n.style)&&(o?Kp(t,s.attributes.style):Jp(t,s.attributes.style)))||e.elementIsList)||!l&&!r&&a&&li.isInlineBlock(t)}function Zp(e,t,r){return li.closest(t,function(t){return Qp(e,t,!0,!1)},r)}function eh(e,t,r){var n=t.parentNode;return n===r||!li.isHTMLElement(n)||li.next(t,$p,n)||li.prev(t,$p,n)?null:e.isElementCommit&&e.elementIsBlock&&!li.isBlock(n)?eh(e,n,r):!Qp(e,n,!1)||li.isBlock(n)&&!e.elementIsBlock?e.isElementCommit&&!li.isBlock(n)?eh(e,n,r):null:n}var th="toggleAttributes";function rh(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!o&&e.isApplied(t,th))return n;!o&&e.setApplied(t,th);var i=e.options.attributes;return i&&Ki(i)>0&&Object.keys(i).forEach(function(a){var s=i[a];switch(a){case"style":n=function(e,t,r,n,o,i){return Jn(ln(r)&&Ki(r),"Style must be an object"),Object.keys(r).forEach(function(a){var s=n.style.getPropertyValue(Tn(a)),l=r[a];if(""!==s||null!=l){if(function(e,t,r){var n=e.create.element(t.tagName.toLowerCase());n.style.cssText=t.style.cssText;var o=function(e){var t;if(void 0!==io(e,"shadowRoot"))return io(e,"shadowRoot");var r=Ia(e),n=Ot.createElement("iframe");Rn(n,{width:0,height:0,position:"absolute",border:0}),n.src="about:blank",r.appendChild(n);var o=null===(t=n.contentWindow)||void 0===t?void 0:t.document,i=o?o.body:e.od.body;return io(e,"shadowRoot",i),i}(e);o.appendChild(n);var i=Rn(n,r);return li.safeRemove(n),i}(t,n,a)===Pn(a,l)){if(!s)return;return!o&&Rn(n,a,null),void(i=nh(e,n,i=zp))}i=Fp,o||(Rn(n,a,l),i=nh(e,n,i))}}),i}(e,r,s,t,o,n);break;case"className":case"class":n=function(e,t,r,n,o){Jn(Mr(t),"Class name must be a string");var i=e.e.fire.bind(e.e,"".concat(qp,"AfterToggleAttribute"));return r.classList.contains(t.toString())?(n=zp,o||(r.classList.remove(t),0===r.classList.length&&(Xn(r,"class",null),i(n,r,"class",null)))):(n=Fp,o||(r.classList.add(t),i(n,r,"class",t))),n}(r,s,t,n,o);break;default:n=function(e,t,r,n,o,i){Jn(Mr(t)||an(t)||qr(t)||null==t,"Attribute value must be a string or number or boolean or null");var a=e.e.fire.bind(e.e,"".concat(qp,"AfterToggleAttribute"));return Xn(r,n)===t?(!o&&Xn(r,n,null),i=zp,!o&&a(i,r,n,t),i):(i=Fp,o||(Xn(r,n,t),a(i,r,n,t)),i)}(r,s,t,a,o,n)}}),n}function nh(e,t,r){return Xn(t,"style")||(Xn(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(li.unwrap(t),r=Bp)),r}function oh(e,t,r){var n=r.e.fire("".concat(qp,"BeforeWrapList"),Hp,t,e),o=null!=n?n:li.replace(t,"li",r.createInside),i=o.previousElementSibling,a=o.nextElementSibling,s=li.isTag(i,e.element)?i:null;return null!=s||(s=li.isTag(a,e.element)?a:null),li.isList(s)&&function(e,t){return!e.attributes.length&&!Ki(t)||!Ki(t)||(Jn(t,"Attrs must be a non-empty object"),Object.keys(t).every(function(r){return"class"===r||"className"===r?e.classList.contains(t[r]):"style"===r?Kp(e,t[r]):Xn(e,r)===t[r]}))}(s,e.options.attributes)||(rh(e,s=r.createInside.element(e.element),r,Up),li.before(o,s)),i===s?li.append(s,o):li.prepend(s,o),li.isTag(s.nextElementSibling,e.element)&&function(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(function(e){return t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value})}(s,s.nextElementSibling)&&(li.append(s,Array.from(s.nextElementSibling.childNodes)),li.safeRemove(s.nextElementSibling)),r.e.fire("".concat(qp,"AfterWrapList"),Lp,s,e),s}function ih(e,t,r,n){if(!t)return n;var o=t.parentElement;if(!o)return n;var i=r.e.fire("".concat(qp,"BeforeToggleList"),n,e,o);if(void 0!==i)return i;var a=r.e.fire.bind(r.e,"".concat(qp,"AfterToggleList"));if(n!==Bp){var s=rh(e,t.parentElement,r,Up,!0)===Fp;if(n===Hp||s||o.tagName.toLowerCase()!==e.element){var l=oh(e,ah(Hp,o,t,r,e),r);return a(Hp,l,e),Hp}}var c=ah(Bp,o,t,r,e);return a(Bp,c,e),Bp}function ah(e,t,r,n,o){var i=n.e.fire("".concat(qp,"BeforeUnwrapList"),e,t,o);return i?(Jn(li.isHTMLElement(i),"".concat(qp,"BeforeUnwrapList hook must return HTMLElement")),i):(Vp(t,r,n),Jn(li.isHTMLElement(r.parentElement),"Element should be inside the list"),li.unwrap(r.parentElement),li.replace(r,"br"!==n.o.enter.toLowerCase()?n.o.enter:n.createInside.fragment(),n.createInside))}var sh=new Set(["td","th","tr","tbody","table","li","ul","ol"]);function lh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ch(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lh(e,t,r[t])})}return e}function uh(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var dh,fh="START",ph="ELEMENT",hh="UNWRAP",mh="UNWRAP_CHILDREN",gh="CHANGE",yh="REPLACE_DEFAULT",vh="LIST",bh="TOGGLE_LIST",_h="WRAP",wh="EXTRACT",Sh="END",Eh=(lh(dh={},fh,{exec:function(e){var t,r,n=e.element,o=e.jodit,i=e.style,a=e.mode,s=e.collapsed;if(t=n,r=o.editor,Boolean(li.closest(t,["style","script"],r))||!s&&li.isEmptyContent(n))return uh(ch({},e),{next:Sh});var l=eh(i,n,o.editor)||function(e,t){for(var r=t.firstChild;r&&!$p(r);)if(!(r=r.nextSibling))return null;return r&&!li.next(r,$p,t)&&Qp(e,r,!1)?r:null}(i,n);if(l)return uh(ch({},e),{next:ph,element:l});var c=Zp(i,n,o.editor);return i.elementIsList&&li.isList(c)?uh(ch({},e),{next:vh}):uh(ch({},e),c?{next:wh}:{next:a!==Bp?mh:Sh})}}),lh(dh,vh,{exec:function(e){var t=e.element,r=e.jodit,n=e.mode;if(n!==Up&&n!==Bp&&n!==Hp)return uh(ch({},e),{next:Sh});var o=li.closest(t,"li",r.editor);if(!o)return uh(ch({},e),{next:Sh});var i=li.closest(t,Pt,r.editor);return uh(ch({},e),i?{element:o,next:bh}:{next:Sh})}}),lh(dh,bh,{exec:function(e){return uh(ch({},e),{mode:ih(e.style,e.element,e.jodit,e.mode),next:Sh})}}),lh(dh,wh,{exec:function(e){var t,r=e.element,n=e.jodit,o=e.style,i=Zp(o,r,n.editor);return Jn(i,"This place should have an element"),!o.elementIsBlock&&(null===(t=o.options.attributes)||void 0===t?void 0:t.style)&&li.isBlock(i)?uh(ch({},e),{next:_h}):(o.elementIsBlock||Vp(i,r,n),uh(ch({},e),{element:i,next:ph}))}}),lh(dh,mh,{exec:function(e){var t=e.element;return function(e,t){var r,n,o=[],i=[],a=null===(r=e.options.attributes)||void 0===r?void 0:r.style;if(t.firstChild)for(var s=function(){var t=c.value;!Qp(e,t,!0)||a&&!Jp(t,a)?a&&function(e,t){var r,n,o=e.element,i=e.options;if(!t||!$p(t))return!1;var a=t.nodeName.toLowerCase()===o,s=Boolean((null===(r=i.attributes)||void 0===r?void 0:r.style)&&Jp(t,null===(n=i.attributes)||void 0===n?void 0:n.style));return a&&s}(e,t)?(void 0===n&&(n=!1),i.push(function(){Rn(t,Object.keys(a).reduce(function(e,t){return e[t]=null,e},{})),Xn(t,"style")||Xn(t,"style",null),Xn(t,"style")||t.nodeName.toLowerCase()!==e.element||o.push(t)})):li.isEmptyTextNode(t)||void 0===n&&(n=!1):(void 0===n&&(n=!0),o.push(t)),c=l.next()},l=li.eachGen(t),c=l.next();!c.done;)s();return i.forEach(function(e){return e()}),o.forEach(li.unwrap),Boolean(n)}(e.style,t)?uh(ch({},e),{mode:Bp,next:Sh}):uh(ch({},e),{next:_h})}}),lh(dh,_h,{exec:function(e){var t=e.element,r=e.jodit,n=e.style,o=function(e,t,r){var n=function(e,t,r){return e.elementIsBlock?li.up(t,function(e){return li.isBlock(e)&&!li.isTag(e,sh)},r.editor)||function(e,t,r){var n=r.editor,o=r.createInside,i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"previousSibling",o=e,i=e;i&&!on(i)&&!li.isTag(i,r.o.enter)&&(o=i,i=i[t]?i[t]:i.parentNode&&!li.isBlock(i.parentNode)&&i.parentNode!==n?i.parentNode:null,!li.isBlock(i)););return o},a=i(t),s=i(t,"nextSibling"),l=r.s.createRange();l.setStartBefore(a),l.setEndAfter(s);var c=l.extractContents(),u=o.element(e.element);return u.appendChild(c),li.safeInsertNode(l,u),e.elementIsBlock&&li.isEmpty(u)&&!li.isTag(u.firstElementChild,"br")&&u.appendChild(o.element("br")),u}(e,t,r):(Xn(t,"size",null),t)}(e,t,r);return e.elementIsList?oh(e,n,r):li.replace(n,e.element,r.createInside,!0)}(n,t,r);return uh(ch({},e),{next:n.elementIsList?Sh:gh,mode:Lp,element:o})}}),lh(dh,ph,{exec:function(e){var t=e.style,r=e.element;return rh(t,r,e.jodit,Up,!0)!==Up?uh(ch({},e),{next:gh}):li.isTag(r,t.element)?uh(ch({},e),{next:hh}):uh(ch({},e),{next:Sh})}}),lh(dh,gh,{exec:function(e){var t=e.style,r=e.element,n=e.jodit,o=e.mode,i=rh(t,r,n,e.mode);return o!==Lp&&i===zp&&!r.attributes.length&&li.isTag(r,t.element)?uh(ch({},e),{next:hh}):uh(ch({},e),{mode:i,next:Sh})}}),lh(dh,hh,{exec:function(e){return e.element.attributes.length&&li.isTag(e.element,e.style.element)?uh(ch({},e),{next:yh}):(li.unwrap(e.element),uh(ch({},e),{mode:Bp,next:Sh}))}}),lh(dh,yh,{exec:function(e){return li.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),uh(ch({},e),{mode:Hp,next:Sh})}}),lh(dh,Sh,{exec:function(e){return e}}),dh),kh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.__applyMap=new WeakMap}var t;return t=[{key:"isApplied",value:function(e,t){var r=this.__applyMap.get(e);return!!r&&r[t]}},{key:"setApplied",value:function(e,t){var r,n=null!==(r=this.__applyMap.get(e))&&void 0!==r?r:{};n[t]=!0,this.__applyMap.set(e,n)}},{key:"elementIsList",get:function(){return Boolean(this.options.element&&Pt.has(this.options.element))}},{key:"element",get:function(){return this.options.element||this.defaultTag}},{key:"elementIsBlock",get:function(){return Boolean(this.options.element&&Ct.test(this.options.element))}},{key:"isElementCommit",get:function(){return Boolean(this.options.element&&this.options.element!==this.options.defaultTag)}},{key:"defaultTag",get:function(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}},{key:"elementIsDefault",get:function(){return this.element===this.defaultTag}},{key:"apply",value:function(e){var t=this.options.hooks,r=t?Object.keys(t):[];try{r.forEach(function(r){e.e.on(In(qp+"_"+r),t[r])}),function(e,t){var r,n=e.s;null===(r=e.editor.firstChild)||void 0===r||r.normalize();var o=n.fakes(),i=e.s.wrapInTagGen(o),a=i.next();if(!a.done){for(var s={collapsed:n.isCollapsed(),mode:Up,element:a.value,next:fh,jodit:e,style:t};a&&!a.done;){var l=new Gp(fh,Eh);for(s.element=a.value;l.getState()!==Sh;)s=l.dispatch("exec",s);a=i.next()}n.restoreFakes(o)}}(e,this)}finally{r.forEach(function(r){e.e.off(In(qp+"_"+r),t[r])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function xh(e,t,r){for(var n=li.findSibling(t,r),o=li.findSibling(t,!r);li.isElement(n)&&!li.isTag(n,Rt)&&li.isContentEditable(n,e.editor)&&(!o||!li.closest(t,li.isElement,e.editor));)r||!n.firstChild?n.appendChild(t):li.before(n.firstChild,t),n=li.sibling(t,r),o=li.sibling(t,!r)}function Th(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Ch=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Oh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},jh=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,t.e.on("removeMarkers",function(){r.removeMarkers()})}var t;return t=[{key:"j",get:function(){return this.jodit}},{key:"errorNode",value:function(e){if(!li.isNode(e))throw Bo("Parameter node must be instance of Node")}},{key:"area",get:function(){return this.j.editor}},{key:"win",get:function(){return this.j.ew}},{key:"doc",get:function(){return this.j.ed}},{key:"sel",get:function(){return this.j.o.shadowRoot&&Rr(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}},{key:"range",get:function(){var e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}},{key:"isInsideArea",get:function(){var e=this.sel,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!li.isOrContains(this.area,t.startContainer))}},{key:"createRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.doc.createRange();return e&&this.selectRange(t),t}},{key:"remove",value:function(){var e=this.sel,t=this.current();if(e&&t)for(var r=0;r<e.rangeCount;r+=1)e.getRangeAt(r).deleteContents(),e.getRangeAt(r).collapse(!0)}},{key:"clear",value:function(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}},{key:"removeNode",value:function(e){if(!li.isOrContains(this.j.editor,e,!0))throw Bo("Selection.removeNode can remove only editor's children");li.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}},{key:"insertCursorAtPoint",value:function(e,t){var r=this;this.removeMarkers();try{var n=this.createRange();return function(){if(r.doc.caretPositionFromPoint){var o=r.doc.caretPositionFromPoint(e,t);if(o)return void n.setStart(o.offsetNode,o.offset)}if(r.doc.caretRangeFromPoint){var i=r.doc.caretRangeFromPoint(e,t);Jn(i,"Incorrect caretRangeFromPoint behaviour"),n.setStart(i.startContainer,i.startOffset)}}(),n.collapse(!0),this.selectRange(n),!0}catch(e){}return!1}},{key:"hasMarkers",get:function(){return Boolean(this.markers.length)}},{key:"markers",get:function(){return Yo("span[data-"+ir+"]",this.area)}},{key:"removeMarkers",value:function(){li.safeRemove.apply(null,this.markers)}},{key:"marker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=null;t&&(r=t.cloneRange()).collapse(e);var n=this.j.createInside.span();return n.id=ir+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),n.style.lineHeight="0",n.style.display="none",li.markTemporary(n),Xn(n,"data-"+ir,e?"start":"end"),n.appendChild(this.j.createInside.text(vt)),r&&li.isOrContains(this.area,e?r.startContainer:r.endContainer)&&r.insertNode(n),n}},{key:"restore",value:function(){var e=!1,t=function(e){return"span[data-".concat(ir,"=").concat(e?"start":"end","]")},r=this.area.querySelector(t(!0)),n=this.area.querySelector(t(!1));if(r){if(e=this.createRange(),n)e.setStartAfter(r),li.safeRemove(r),e.setEndBefore(n),li.safeRemove(n);else{var o=r.previousSibling;li.isText(o)?e.setStart(o,o.nodeValue?o.nodeValue.length:0):e.setStartBefore(r),li.safeRemove(r),e.collapse(!0)}e&&this.selectRange(e)}}},{key:"fakes",value:function(){var e=this.sel;if(!e||!e.rangeCount)return[];var t=e.getRangeAt(0);Jn(t,"Range is null");var r=t.cloneRange();r.collapse(!0);var n=this.j.createInside.fake();li.safeInsertNode(r,n),t.setStartBefore(n);var o=[n];if(!t.collapsed){var i=t.cloneRange();i.collapse(!1);var a=this.j.createInside.fake();li.safeInsertNode(i,a),t.setEndAfter(a),o.push(a)}return this.selectRange(t),o}},{key:"restoreFakes",value:function(e){var t,r,n,o,i=e.filter(function(e){return e.isConnected});if(i.length){var a=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Th(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Th(e,2):void 0}}(e)||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.")}()}(i),s=a[0],l=a[1],c=this.createRange();c.setStartAfter(s),l&&c.setEndBefore(l),this.selectRange(c),(null===(t=s.parentNode)||void 0===t?void 0:t.firstChild)!==(null===(r=s.parentNode)||void 0===r?void 0:r.lastChild)&&li.safeRemove(s),(null===(n=null==l?void 0:l.parentNode)||void 0===n?void 0:n.firstChild)!==(null===(o=null==l?void 0:l.parentNode)||void 0===o?void 0:o.lastChild)&&li.safeRemove(l)}}},{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasMarkers)return[];var t=this.sel;if(!t||!t.rangeCount)return[];for(var r=[],n=t.rangeCount,o=[],i=0;i<n;i+=1)if(o[i]=t.getRangeAt(i),o[i].collapsed){var a=this.marker(!0,o[i]);r[i]={startId:a.id,collapsed:!0,startMarker:a.outerHTML}}else{var s=this.marker(!0,o[i]),l=this.marker(!1,o[i]);r[i]={startId:s.id,endId:l.id,collapsed:!1,startMarker:s.outerHTML,endMarker:l.outerHTML}}if(!e){t.removeAllRanges();for(var c=n-1;c>=0;--c){var u=this.doc.getElementById(r[c].startId);if(u){if(r[c].collapsed)o[c].setStartAfter(u),o[c].collapse(!0);else if(o[c].setStartBefore(u),r[c].endId){var d=this.doc.getElementById(r[c].endId);d&&o[c].setEndAfter(d)}try{t.addRange(o[c].cloneRange())}catch(e){}}}}return r}},{key:"focus",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{preventScroll:!0};if(!this.isFocused()){var n=Gi(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(r),this.win.focus(),this.area.focus(r),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);var i=this.sel,a=(null==i?void 0:i.rangeCount)?null==i?void 0:i.getRangeAt(0):null;if(!a||!li.isOrContains(this.area,a.startContainer)){var s=this.createRange();s.setStart(this.area,0),s.collapse(!0),this.selectRange(s,!1)}return this.j.editorIsActive||null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.fire("focus"),!0}return!1}},{key:"isCollapsed",value:function(){for(var e=this.sel,t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}},{key:"isFocused",value:function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}},{key:"current",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.j.getRealMode()!==Qt)return null;var t=this.sel;if(!t||0===t.rangeCount)return null;var r=t.getRangeAt(0),n=r.startContainer,o=!1;if(li.isTag(n,"br")&&t.isCollapsed)return n;if(!li.isText(n)){var i=function(e,t,r,n,o,i){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],r=!0),e&&n&&!li.isText(e))if(!r&&li.isText(e.previousSibling))e=e.previousSibling;else if(o)for(var a=i(e);a;){if(a&&li.isText(a)){e=a;break}a=i(a)}if(e&&!n&&!li.isText(e)){var s=e,l=e;do{s=s.firstChild,l=l.lastChild}while(s&&l&&!li.isText(s));s===l&&s&&li.isText(s)&&(e=s)}return{node:e,rightMode:r}}(n,r,o,t.isCollapsed,e,function(e){return o?e.lastChild:e.firstChild});n=i.node,o=i.rightMode}return n&&li.isOrContains(this.area,n)?n:null}},{key:"insertNode",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.errorNode(e);var o=li.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());var i=this.sel;this.j.history.snapshot.transaction(function(){if(t.isCollapsed()||t.j.execCommand("Delete"),t.j.e.fire("beforeInsertNode",e),i&&i.rangeCount){var n=i.getRangeAt(0),a=e.firstChild;li.isOrContains(t.area,n.commonAncestorContainer)?li.safeInsertNode(n,e):t.area.appendChild(e),[function(){return null==a?void 0:a.previousSibling},function(){return null==a?void 0:a.previousSibling},function(){var e;return null===(e=null==a?void 0:a.previousSibling)||void 0===e?void 0:e.lastChild}].forEach(function(e){var t=e();t&&li.isEmptyTextNode(t)&&li.safeRemove(t)})}else t.area.appendChild(e);var s=function(e){if(li.isBlock(e)){var r=e.lastChild;if(r)return s(r)}t.setCursorAfter(e)};r&&(li.isFragment(e)?o&&s(o):s(e)),t.j.o.scrollToPastedContent&&ri(null!=o?o:e,t.j.editor,t.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",li.isFragment(e)?o:e)}},{key:"insertHTML",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(""!==e){var r=this.j.createInside.div(),n=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),li.isNode(e)?r.appendChild(e):r.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",r.innerHTML))&&r.lastChild){for(;r.firstChild;)r.firstChild,n.appendChild(r.firstChild);this.insertNode(n,t,!1),this.j.__imdSynchronizeValues()}}}},{key:"insertImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Mr(e)?this.j.createInside.element("img"):e;if(Mr(e)&&n.setAttribute("src",e),null!=r){var o=r.toString();o&&"auto"!==o&&String(o).indexOf("px")<0&&String(o).indexOf("%")<0&&(o+="px"),Xn(n,"width",o)}t&&"object"===(void 0===t?"undefined":Oh(t))&&Rn(n,t);var i=function(){(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",i)};this.j.e.on(n,"load",i),n.complete&&i(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}},{key:"eachSelection",value:function(e){var t,r=this,n=this.sel;if(n&&n.rangeCount){var o=n.getRangeAt(0),i=o.commonAncestorContainer;li.isHTMLElement(i)||(i=i.parentElement);var a=[],s=o.startOffset,l=i.childNodes.length,c=s<l?s:l-1,u=o.startContainer===this.area?i.childNodes[c]:o.startContainer,d=o.endContainer===this.area?i.childNodes[o.endOffset-1]:o.endContainer;li.isText(u)&&u===o.startContainer&&o.startOffset===(null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&u.nextSibling&&(u=u.nextSibling),li.isText(d)&&d===o.endContainer&&0===o.endOffset&&d.previousSibling&&(d=d.previousSibling);var f=function(e){!e||e===i||li.isEmptyTextNode(e)||on(e)||a.push(e)};f(u),u!==d&&li.isOrContains(i,u,!0)&&li.find(u,function(e){return f(e),e===d||e&&e.contains&&e.contains(d)},i,!0,!1);var p=function(t){if(li.isOrContains(r.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return zr(t.childNodes).forEach(p);if(li.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{var n=r.j.createInside.text(vt);t.appendChild(n),t=n}e(t)}};0===a.length&&(li.isEmptyTextNode(u)&&a.push(u),u.firstChild&&a.push(u.firstChild)),a.forEach(p)}}},{key:"cursorInTheEdge",value:function(e,t){var r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!e,a=null===(r=this.sel)||void 0===r?void 0:r.getRangeAt(0);if(null!=o||(o=this.current(!1)),!a||!o||!li.isOrContains(t,o,!0))return null;var s=e?a.startContainer:a.endContainer,l=e?a.startOffset:a.endOffset,c=function(e){return Boolean(e&&!li.isTag(e,"br")&&!li.isEmptyTextNode(e)&&!li.isTemporary(e)&&!(li.isElement(e)&&!0===n.j.e.fire("isInvisibleForCursor",e)))};if(li.isText(s)){if(function(e,t,r,n){var o,i=(null===(o=e.nodeValue)||void 0===o?void 0:o.length)?e.nodeValue:"";if(n&&i.replace(wt(),"").length>t)return!0;var a=St().exec(i);return r&&(a&&a[0].length<t||!a&&t>0)}(s,l,e,i))return!1}else{var u=zr(s.childNodes);if(i){if(u.slice(l).some(c))return!1}else if(u.slice(0,l).some(c))return!1}for(var d=o;d&&d!==t;){var f=li.sibling(d,e);if(f){if((d=f)&&c(d))return!1}else d=d.parentNode}return!0}},{key:"cursorOnTheLeft",value:function(e,t){return this.cursorInTheEdge(!0,e,t)}},{key:"cursorOnTheRight",value:function(e,t){return this.cursorInTheEdge(!1,e,t)}},{key:"setCursorAfter",value:function(e){return this.setCursorNearWith(e,!1)}},{key:"setCursorBefore",value:function(e){return this.setCursorNearWith(e,!0)}},{key:"setCursorNearWith",value:function(e,t){var r,n,o=this;if(this.errorNode(e),!li.up(e,function(e){return e===o.area||e&&e.parentNode===o.area},this.area))throw Bo("Node element must be in editor");var i=this.createRange(),a=null;return li.isText(e)?t?i.setStart(e,0):i.setEnd(e,null!==(n=null===(r=e.nodeValue)||void 0===r?void 0:r.length)&&void 0!==n?n:0):(a=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),li.safeInsertNode(i,a),i.selectNode(a)),i.collapse(t),this.selectRange(i),a}},{key:"setCursorIn",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!li.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Bo("Node element must be in editor");var n=this.createRange(),o=e,i=e;do{if(li.isText(o)||li.isTag(o,Rt))break;i=o,o=r?o.firstChild:o.lastChild}while(o);if(!o){var a=this.j.createInside.text(vt);li.isTag(i,Rt)?o=i:(i.appendChild(a),i=a)}var s=o||i;return li.isTag(s,Rt)?(r||li.isTag(s,"br")?n.setStartBefore(s):n.setEndAfter(s),n.collapse(r)):(n.selectNodeContents(s),n.collapse(r)),this.selectRange(n),i}},{key:"selectRange",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.sel;return t&&!this.isFocused()&&this.focus(),r&&(r.removeAllRanges(),r.addRange(e)),this.j.e.fire("changeSelection"),this}},{key:"select",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!li.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Bo("Node element must be in editor");var n=this.createRange();return n[r?"selectNodeContents":"selectNode"](e),this.selectRange(n)}},{key:"html",get:function(){var e=this.sel;if(e&&e.rangeCount>0){var t=e.getRangeAt(0).cloneContents(),r=this.j.createInside.div();return r.appendChild(t),r.innerHTML}return""}},{key:"wrapInTagGen",value:function(e){var t,r,n,o,i,a,s,l,c,u,d;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(f){switch(f.label){case 0:return this.isCollapsed()?(t=this.jodit.createInside.element("font",vt),this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),[4,t]):[3,2];case 1:return f.sent(),li.unwrap(t),[2];case 2:Yo("*[style*=font-size]",this.area).forEach(function(e){Xn(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),Yo("*[data-font-size]",this.area).forEach(function(e){var t=Xn(e,"data-font-size");t&&(e.style.fontSize=t,Xn(e,"data-font-size",null))}),r=Yo('font[size="7"]',this.area),n=!0,o=!1,i=void 0,f.label=3;case 3:f.trys.push([3,8,9,10]),a=r[Symbol.iterator](),f.label=4;case 4:return(n=(s=a.next()).done)?[3,7]:(l=s.value,c=l.firstChild,u=l.lastChild,c&&c===u&&on(c)?(li.unwrap(l),[3,6]):(c&&on(c)&&li.before(l,c),u&&on(u)&&li.after(l,u),[4,l]));case 5:f.sent(),li.unwrap(l),f.label=6;case 6:return n=!0,[3,4];case 7:return[3,10];case 8:return d=f.sent(),o=!0,i=d,[3,10];case 9:try{n||null==a.return||a.return()}finally{if(o)throw i}return[7];case 10:return[2]}})}},{key:"wrapInTag",value:function(e){var t=[],r=!0,n=!1,o=void 0;try{for(var i,a=this.wrapInTagGen()[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;try{if(s.firstChild&&s.firstChild===s.lastChild&&on(s.firstChild))continue;Rr(e)?e(s):t.push(li.replace(s,e,this.j.createInside))}finally{var l=s.parentNode;l&&(li.unwrap(s),li.isEmpty(l)&&li.unwrap(l))}}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return t}},{key:"commitStyle",value:function(e){Jn(Ki(e)>0,"Need to pass at least one option"),new kh(e).apply(this.j)}},{key:"splitSelection",value:function(e,t){if(!this.isCollapsed())return null;var r=this.createRange(),n=this.range;r.setStartBefore(e);var o=this.cursorOnTheRight(e,t),i=this.cursorOnTheLeft(e,t),a=this.j.createInside.element("br"),s=this.j.createInside.fake(),l=s.cloneNode();try{if(o||i){t?li.before(t,a):li.safeInsertNode(n,a);var c=function(e,t){for(var r=t(e);r;){var n=t(r);if(!r||!li.isTag(r,"br")&&!li.isEmptyTextNode(r))break;li.safeRemove(r),r=n}};c(a,function(e){return e.nextSibling}),c(a,function(e){return e.previousSibling}),li.after(a,l),li.before(a,s),o?(r.setEndBefore(a),n.setEndBefore(a)):(r.setEndAfter(a),n.setEndAfter(a))}else r.setEnd(n.startContainer,n.startOffset);var u=r.extractContents(),d=function(e){return li.each(e,function(e){return li.isEmptyTextNode(e)&&li.safeRemove(e)})};Jn(e.parentNode,"Splitting fails");try{if(d(u),d(e),e.parentNode.insertBefore(u,e),!t&&o&&(null==a?void 0:a.parentNode)){var f=this.createRange();f.setStartBefore(a),this.selectRange(f)}}catch(e){if(!ft)throw e}var p=function(e){var t,r,n;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(r=null==e?void 0:e.parentNode)||void 0===r?void 0:r.lastChild)&&(null===(n=null==e?void 0:e.parentNode)||void 0===n||n.appendChild(a.cloneNode()))};p(s),p(l)}finally{li.safeRemove(s),li.safeRemove(l)}return e.previousElementSibling}},{key:"expandSelection",value:function(){var e=this;if(this.isCollapsed())return this;var t=this.range,r=t.cloneRange();if(!li.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;var n=function(r){var n=e.j.createInside.fake(),o=t.cloneRange();return o.collapse(r),li.safeInsertNode(o,n),function(e,t,r){for(var n=e;n&&n!==r;){if(li.findSibling(n,t))return;if(li.isBlock(n.parentElement))break;(n=n.parentElement)&&n!==r&&(t?li.before(n,e):li.after(n,e))}}(n,r,e.j.editor),n},o=n(!0),i=n(!1);r.setStartAfter(o),r.setEndBefore(i);var a=li.findSibling(o,!1),s=li.findSibling(i,!0);if(a!==s){var l=li.isElement(a)&&li.isOrContains(a,i),c=!l&&li.isElement(s)&&li.isOrContains(s,o);if(l||c){for(var u=l?a:s,d=u;li.isElement(u);)(u=l?u.firstElementChild:u.lastElementChild)&&(l?li.isOrContains(u,i):li.isOrContains(u,o))&&(d=u);l?r.setStart(d,0):r.setEnd(d,d.childNodes.length)}}if(this.selectRange(r),li.safeRemove(o,i),this.isCollapsed())throw Bo("Selection is collapsed");return this}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function Ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ih(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ah(e,t,r){return Ah="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mh(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},Ah(e,t,r||e)}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mh(e)}function Dh(e,t){return!t||"object"!==Bh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nh(e,t){return Nh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nh(e,t)}function Lh(e){return function(e){if(Array.isArray(e))return Ph(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ph(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ph(e,t):void 0}}(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 Bh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fh=function(){return!!e})()}Ch([jr],jh.prototype,"createRange",null),Ch([jr],jh.prototype,"focus",null),Ch([jr],jh.prototype,"setCursorAfter",null),Ch([jr],jh.prototype,"setCursorBefore",null),Ch([jr],jh.prototype,"setCursorIn",null);var zh,Uh=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Bh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Hh="data-jodit-default-style-display",qh="data-jodit-default-classes",Vh=zh=function(e){function t(e,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Mh(t),Dh(e,Fh()?Reflect.construct(t,r||[],Mh(e).constructor):t.apply(e,r))}(this,t,[r,!0])).isJodit=!0,n.commands=new Map,n.__selectionLocked=null,n.__wasReadOnly=!1,n.editorIsActive=!1,n.__mode=Qt,n.__callChangeCount=0,n.__isSilentChange=!1,n.__elementToPlace=new Map;try{var o=Zo(e,n.o.shadowRoot||n.od);if(zh.isJoditAssigned(o))return Dh(n,o.component)}catch(e){if(!ft)throw e;throw n.destruct(),e}return n.setStatus(Pr.beforeInit),n.id=Xn(Zo(e,n.o.shadowRoot||n.od),"id")||(new Date).getTime().toString(),ka[n.id]=n,n.attachEvents(r),n.e.on(n.ow,"resize",function(){n.e&&n.e.fire("resize")}),n.e.on("prepareWYSIWYGEditor",n.__prepareWYSIWYGEditor),n.selection=new jh(n),co(n.beforeInitHook(),function(){if(!n.isInDestruct){n.e.fire("beforeInit",n),Oa.__init(n),n.e.fire("afterPluginSystemInit",n),n.e.on("changePlace",function(){n.setReadOnly(n.o.readonly),n.setDisabled(n.o.disabled)}),n.places.length=0;var t=n.addPlace(e,r);ka[n.id]=n,co(t,function(){n.isInDestruct||(n.e&&n.e.fire("afterInit",n),co(n.afterInitHook()),n.setStatus(Pr.ready),n.e.fire("afterConstructor",n))})}}),n}var r,n,o;return function(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}}),t&&Nh(e,t)}(t,e),r=t,n=[{key:"className",value:function(){return"Jodit"}},{key:"waitForReady",value:function(){var e=this;return this.isReady?Promise.resolve(this):this.async.promise(function(t){e.hookStatus("ready",function(){return t(e)})})}},{key:"text",get:function(){if(this.editor)return this.editor.innerText||"";var e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}},{key:"defaultTimeout",get:function(){return an(this.o.defaultTimeout)?this.o.defaultTimeout:eo.defaultOptions.defaultTimeout}},{key:"createInside",get:function(){var e=this;return new Kc(function(){return e.ed},this.o.createAttributes)}},{key:"__setPlaceField",value:function(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}},{key:"element",get:function(){return this.currentPlace.element}},{key:"editor",get:function(){return this.currentPlace.editor},set:function(e){this.__setPlaceField("editor",e)}},{key:"container",get:function(){return this.currentPlace.container},set:function(e){this.__setPlaceField("container",e)}},{key:"workplace",get:function(){return this.currentPlace.workplace}},{key:"message",get:function(){return this.getMessageModule(this.workplace)}},{key:"statusbar",get:function(){return this.currentPlace.statusbar}},{key:"iframe",get:function(){return this.currentPlace.iframe},set:function(e){this.__setPlaceField("iframe",e)}},{key:"history",get:function(){return this.currentPlace.history}},{key:"editorWindow",get:function(){return this.currentPlace.editorWindow},set:function(e){this.__setPlaceField("editorWindow",e)}},{key:"ew",get:function(){return this.editorWindow}},{key:"editorDocument",get:function(){return this.currentPlace.editorWindow.document}},{key:"ed",get:function(){return this.editorDocument}},{key:"options",get:function(){return this.currentPlace.options},set:function(e){this.__setPlaceField("options",e)}},{key:"s",get:function(){return this.selection}},{key:"uploader",get:function(){return this.getInstance("Uploader",this.o.uploader)}},{key:"filebrowser",get:function(){var e=this,t=yo({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback:function(t){t.files&&t.files.length&&t.files.forEach(function(r,n){var o=t.baseurl+r;t.isImages&&t.isImages[n]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML("<a href='".concat(o,"' title='").concat(o,"'>").concat(o,"</a>")))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}},{key:"mode",get:function(){return this.__mode},set:function(e){this.setMode(e)}},{key:"getNativeEditorValue",value:function(){var e=this.e.fire("beforeGetNativeEditorValue");return Mr(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}},{key:"setNativeEditorValue",value:function(e){var t={value:e};this.e.fire("beforeSetNativeEditorValue",t)||this.editor&&(this.editor.innerHTML=t.value)}},{key:"value",get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e),this.history.__processChanges()}},{key:"synchronizeValues",value:function(){this.__imdSynchronizeValues()}},{key:"__imdSynchronizeValues",value:function(){this.setEditorValue()}},{key:"getEditorValue",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1?arguments[1]:void 0;if(void 0!==(e=this.e.fire("beforeGetValueFromEditor",r)))return e;e=this.getNativeEditorValue().replace(_t(),""),t&&(e=e.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===e&&(e="");var n={value:e};return this.e.fire("afterGetValueFromEditor",n,r),n.value}},{key:"setEditorValue",value:function(e){var t=this.e.fire("beforeSetValueToEditor",e);if(!1!==t)if(Mr(t)&&(e=t),this.editor){if(!Mr(e)&&!Nr(e))throw Bo("value must be string");Nr(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");var r=this.getElementValue(),n=this.getEditorValue();if(!this.__isSilentChange&&r!==n&&this.__callChangeCount<dr){this.__setElementValue(n),this.__callChangeCount+=1,!ft&&this.__callChangeCount>4&&console.warn("Too many recursive changes",n,r);try{this.history.__upTick(),this.e.fire("change",n,r),this.e.fire(this.history,"change",n,r)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.__setElementValue(e)}},{key:"updateElementValue",value:function(){this.__setElementValue(this.getEditorValue())}},{key:"getElementValue",value:function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}},{key:"__setElementValue",value:function(e){var t=this;if(!Mr(e))throw Bo("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){var r={value:e};co(this.e.fire("beforeSetElementValue",r),function(){void 0!==t.element.value?t.element.value=r.value:t.element.innerHTML=r.value,t.e.fire("afterSetElementValue",r)})}}},{key:"registerCommand",value:function(e,t,r){var n=e.toLowerCase(),o=this.commands.get(n);if(void 0===o&&(o=[],this.commands.set(n,o)),o.push(t),!Rr(t)){var i=this.o.commandToHotkeys[n]||this.o.commandToHotkeys[e]||t.hotkeys;i&&this.registerHotkeyToCommand(i,n,null==r?void 0:r.stopPropagation)}return this}},{key:"registerHotkeyToCommand",value:function(e,t){var r=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=xi(e).map(Fi).map(function(e){return e+".hotkey"}).join(" ");this.e.off(o).on(o,function(e,o){return o&&(o.shouldStop=null==n||n),r.execCommand(t)})}},{key:"execCommand",value:function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];var a;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){var s,l;if(e=e.toLowerCase(),!1!==(s=(a=this.e).fire.apply(a,["beforeCommand".concat(Qi(e)),t,r].concat(Lh(o))))&&(s=(l=this.e).fire.apply(l,["beforeCommand",e,t,r].concat(Lh(o)))),!1!==s&&(s=this.__execCustomCommands.apply(this,[e,t,r].concat(Lh(o)))),!1!==s){this.s.focus();try{s=this.nativeExecCommand(e,t,r)}catch(e){if(!ft)throw e}}return this.e.fire("afterCommand",e,t,r),this.__imdSynchronizeValues(),s}}},{key:"nativeExecCommand",value:function(e,t,r){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,r)}finally{this.__isSilentChange=!1}}},{key:"__execCustomCommands",value:function(e,t,r){for(var n=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];e=e.toLowerCase();var s,l=this.commands.get(e);if(void 0!==l)return l.forEach(function(o){var a,l=(a=Rr(o)?o:o.exec).call.apply(a,[n,e,t,r].concat(Lh(i)));void 0!==l&&(s=l)}),s}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!!Ah(Mh(t.prototype),"lock",this).call(this,e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}},{key:"unlock",value:function(){return!!Ah(Mh(t.prototype),"unlock",this).call(this)&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}},{key:"getMode",value:function(){return this.mode}},{key:"isEditorMode",value:function(){return this.getRealMode()===Qt}},{key:"getRealMode",value:function(){if(this.getMode()!==er)return this.getMode();var e=this.od.activeElement;return e&&(e===this.iframe||li.isOrContains(this.editor,e)||li.isOrContains(this.toolbar.container,e))?Qt:Zt}},{key:"setMode",value:function(e){var t=this,r=this.getMode(),n={mode:parseInt(e.toString(),10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",n)&&(this.__mode=[Zt,Qt,er].includes(n.mode)?n.mode:Qt,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach(function(e){t.container.classList.remove(e)}),this.container.classList.add(o[this.mode-1]),r!==this.getMode()&&this.e.fire("afterSetMode"))}},{key:"toggleMode",value:function(){var e=this.getMode();[Zt,Qt,this.o.useSplitMode?er:9].includes(e+1)?e+=1:e=Qt,this.setMode(e)}},{key:"setDisabled",value:function(e){this.o.disabled=e;var t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}},{key:"getDisabled",value:function(){return this.o.disabled}},{key:"setReadOnly",value:function(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}},{key:"getReadOnly",value:function(){return this.o.readonly}},{key:"focus",value:function(){this.getMode()!==Zt&&this.s.focus()}},{key:"isFocused",get:function(){return this.s.isFocused()}},{key:"beforeInitHook",value:function(){}},{key:"afterInitHook",value:function(){}},{key:"initOptions",value:function(e){this.options=yo(e||{},eo.defaultOptions)}},{key:"initOwners",value:function(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}},{key:"addPlace",value:function(e,t){var r=this,n=Zo(e,this.o.shadowRoot||this.od);this.attachEvents(t),n.attributes&&zr(n.attributes).forEach(function(e){var n=e.name,o=e.value;void 0===eo.defaultOptions[n]||t&&void 0!==t[n]||(-1!==["readonly","disabled"].indexOf(n)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(o.toString())&&(o=Number(o)),r.options[n]=o)});var o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_".concat(this.o.theme||"default")),Wh(this.o.className,o),this.o.containerStyle&&Rn(o,this.o.containerStyle);var i=this.o.styleValues;Object.keys(i).forEach(function(e){var t=Tn(e);o.style.setProperty("--jd-".concat(t),i[e])}),o.setAttribute("contenteditable","false");var a=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(n.nodeName)&&(o=n,n.setAttribute(qh,n.className.toString()),a=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),n!==o&&(n.style.display&&n.setAttribute(Hh,n.style.display),n.style.display="none");var s=this.c.div("jodit-workplace",{contenteditable:!1});o.appendChild(s),n.parentNode&&n!==o&&n.parentNode.insertBefore(o,n),Object.defineProperty(n,"component",{enumerable:!1,configurable:!0,value:this});var l=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});s.appendChild(l);var c={editor:l,element:n,container:o,workplace:s,statusbar:new pp(this,o),options:this.isReady?yo(t||{},eo.defaultOptions):this.options,history:new sp(this),editorWindow:this.ow};this.__elementToPlace.set(l,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());var u=this.__initEditor(a),d=this.options;return co(u,function(){d.enableDragAndDropFileToEditor&&d.uploader&&(d.uploader.url||d.uploader.insertImageAsBase64URI)&&r.uploader.bind(r.editor),r.__elementToPlace.get(r.editor)||r.__elementToPlace.set(r.editor,c),r.e.fire("afterAddPlace",c)})}},{key:"addDisclaimer",value:function(e){this.workplace.appendChild(e)}},{key:"setCurrentPlace",value:function(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(Qt),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}},{key:"__initEditor",value:function(e){var t=this;return co(this.__createEditor(),function(){if(!t.isInDestruct){if(t.element!==t.container){var r=t.getElementValue();r!==t.getEditorValue()&&t.setEditorValue(r)}else null!=e&&t.setEditorValue(e);var n=t.o.defaultMode;if(t.o.saveModeInStorage){var o=t.storage.get("jodit_default_mode");"string"==typeof o&&(n=parseInt(o,10))}t.setMode(n),t.o.readonly&&(t.__wasReadOnly=!1,t.setReadOnly(!0)),t.o.disabled&&t.setDisabled(!0);try{t.ed.execCommand("defaultParagraphSeparator",!1,t.o.enter.toLowerCase())}catch(e){}}})}},{key:"__createEditor",value:function(){var e=this,t=this.editor,r=this.e.fire("createEditor",this);return co(r,function(){e.isInDestruct||((!1===r||cn(r))&&li.safeRemove(t),Wh(e.o.editorClassName,e.editor),e.o.style&&Rn(e.editor,e.o.style),e.e.on("synchro",function(){e.setEditorValue()}).on("focus",function(){e.editorIsActive=!0}).on("blur",function(){return e.editorIsActive=!1}),e.__prepareWYSIWYGEditor(),e.o.triggerChangeEvent&&e.e.on("change",e.async.debounce(function(){e.e&&e.e.fire(e.element,"change")},e.defaultTimeout)))})}},{key:"__prepareWYSIWYGEditor",value:function(){var e=this,t=this.editor;if(this.o.direction){var r="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=r,this.editor.setAttribute("dir",r),this.container.style.direction=r,this.container.setAttribute("dir",r),this.toolbar.setDirection(r)}this.e.on(t,"mousedown touchstart focus",function(){var r=e.__elementToPlace.get(t);r&&e.setCurrentPlace(r)}).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",function(t){var r,n;if(!e.o.readonly&&!e.__isSilentChange&&(r=t,(!(null!=(n=e.ew.KeyboardEvent)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n)||!t.isComposing)&&e.e&&e.e.fire)){if(!1===e.e.fire(t.type,t))return!1;e.synchronizeValues()}})}},{key:"fetch",value:function(e,t){var r=this,n=new ls(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Rh(e,t,r[t])})}return e}({url:e},t),this.o.defaultAjaxOptions),o=function(){r.e.off("beforeDestruct",o),r.progressbar.progress(100).hide(),n.destruct()};this.e.one("beforeDestruct",o),this.progressbar.show().progress(30);var i=n.send();return i.finally(o).catch(function(){return null}),i}},{key:"destruct",value:function(){var e,r,n=this;if(!this.isInDestruct){this.setStatus(Pr.beforeDestruct),this.__elementToPlace.clear(),null===(e=ci(this,"storage"))||void 0===e||e.clear(),null===(r=ci(this,"buffer"))||void 0===r||r.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);var o=this.editor?this.getEditorValue():"";this.places.forEach(function(e){var t=e.container,r=e.workplace,i=e.statusbar,a=e.element,s=e.iframe,l=e.editor,c=e.history;if(a){if(a!==t)if(a.hasAttribute(Hh)){var u=Xn(a,Hh);u&&(a.style.display=u,a.removeAttribute(Hh))}else a.style.display="";else a.hasAttribute(qh)&&(a.className=Xn(a,qh)||"",a.removeAttribute(qh));a.hasAttribute("style")&&!Xn(a,"style")&&a.removeAttribute("style"),i.destruct(),n.e.off(t),n.e.off(a),n.e.off(l),li.safeRemove(r),li.safeRemove(l),t!==a&&li.safeRemove(t),Object.defineProperty(a,"component",{enumerable:!1,configurable:!0,value:null}),li.safeRemove(s),t===a&&(a.innerHTML=o),c.destruct()}}),this.places.length=0,this.currentPlace={},delete ka[this.id],Ah(Mh(t.prototype),"destruct",this).call(this)}}}],o=[{key:"ready",get:function(){return new Promise(function(e){Aa.on("joditready",e)})}},{key:"atom",value:function(e){return ro(e)}},{key:"make",value:function(e,t){return new this(e,t)}},{key:"isJoditAssigned",value:function(e){return e&&rn(e.component)&&!e.component.isInDestruct}},{key:"defaultOptions",get:function(){return eo.defaultOptions}}],n&&Ih(r.prototype,n),o&&Ih(r,o),t}(pd);function Wh(e,t){e&&e.split(/\s+/).forEach(function(e){return t.classList.add(e)})}Vh.fatMode=ht,Vh.plugins=Oa,Vh.modules=Ca,Vh.ns=Ca,Vh.decorators={},Vh.constants=i,Vh.instances=ka,Vh.lang=wr,Vh.core={Plugin:$f},Uh([ui],Vh.prototype,"createInside",null),Uh([ui],Vh.prototype,"message",null),Uh([ui],Vh.prototype,"s",null),Uh([ui],Vh.prototype,"uploader",null),Uh([ui],Vh.prototype,"filebrowser",null),Uh([Va()],Vh.prototype,"synchronizeValues",null),Uh([va(":internalChange")],Vh.prototype,"updateElementValue",null),Uh([jr],Vh.prototype,"__prepareWYSIWYGEditor",null),Vh=zh=Uh([$a(Od)],Vh);const Gh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',$h='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',Kh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',Yh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',Jh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> ',Xh='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> ',Qh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> ',Zh='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> ',em='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> ',tm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> ',rm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> ',nm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> ',om='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> ',im='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> ',am='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',sm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> ',lm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> ',cm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> ',um='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> ',dm='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> ',fm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',pm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> ',hm='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> ',mm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> ',gm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> ',ym='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> ',vm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> ',bm={};var _m={};_m={ar:{"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Press Alt for custom resizing":"اضغط البديل لتغيير حجم مخصص","Line height":"ارتفاع الخط",spellcheck:"التدقيق الإملائي","Speech Recognize":"التعرف على الكلام",All:"تحديد الكل"},cs_cz:{"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"},de:{"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochstellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Press Alt for custom resizing":"Drücken Sie Alt für benutzerdefinierte Größenanpassung","License: %s":"Lizenz: %s"},en:{"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"},es:{"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"},fi:{"Type something":"Kirjoita jotain...",Advanced:"Avanzado","About Jodit":"Tietoja Jodit:ista","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit käyttäjän ohje","contains detailed help for using":"sisältää tarkempaa tietoa käyttämiseen","For information about the license, please go to our website:":"Tietoa lisensoinnista, vieraile verkkosivuillamme:","Buy full version":"Osta täysi versio","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Kaikki oikeudet pidätetään.",Anchor:"Ankkuri","Open in new tab":"Avaa uudessa välilehdessä","Open in fullsize":"Avaa täysikokoisena","Clear Formatting":"Poista muotoilu","Fill color or set the text color":"Täytä värillä tai aseta tekstin väri",Redo:"Tee uudelleen",Undo:"Peruuta",Bold:"Lihavoitu",Italic:"Kursiivi","Insert Unordered List":"Lisää järjestämätön lista","Insert Ordered List":"Lisää järjestetty lista","Align Center":"Asemoi keskelle","Align Justify":"Asemoi tasavälein","Align Left":"Asemoi vasemmalle","Align Right":"Asemoi oikealle","Insert Horizontal Line":"Lisää vaakasuuntainen viiva","Insert Image":"Lisää kuva","Insert file":"Lisää tiedosto","Insert youtube/vimeo video":"Lisää Youtube-/vimeo- video","Insert link":"Lisää linkki","Font size":"Kirjasimen koko","Font family":"Kirjasimen nimi","Insert format block":"Lisää muotoilualue",Normal:"Normaali","Heading 1":"Otsikko 1","Heading 2":"Otsikko 2","Heading 3":"Otsikko 3","Heading 4":"Otsikko 4",Quote:"Lainaus",Code:"Koodi",Insert:"Lisää","Insert table":"Lisää taulukko","Decrease Indent":"Pienennä sisennystä","Increase Indent":"Lisää sisennystä","Select Special Character":"Valitse erikoismerkki","Insert Special Character":"Lisää erikoismerkki","Paint format":"Maalaa muotoilu","Change mode":"Vaihda tilaa",Margins:"Marginaalit",top:"ylös",right:"oikealle",bottom:"alas",left:"vasemmalle",Styles:"CSS-tyylit",Classes:"CSS-luokat",Align:"Asemointi",Right:"Oikea",Center:"Keskellä",Left:"Vasen","--Not Set--":"--Ei asetettu--",Src:"Fuente",Title:"Otsikko",Alternative:"Vaihtoehtoinen teksti",Filter:"Suodatin",Link:"Linkki","Open link in new tab":"Avaa uudessa välilehdessä",Image:"Kuva",file:"Tiedosto","Image properties":"Kuvan ominaisuudet",Cancel:"Peruuta",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Koodi on HTML:n tapaista. Säilytetäänkö HTML?","Paste as HTML":"Liitä HTML:nä?",Keep:"Säilytä",Clean:"Tyhjennä","Insert as Text":"Lisää tekstinä","Word Paste Detected":"Word liittäminen havaittu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Liitetty sisältö tulee Microsoft Word-/Excel- tiedostosta. Haluatko säilyttää muotoilun vai poistaa sen?","Insert only Text":"Lisää vain teksti","File Browser":"Tiedostoselain","Error on load list":"Virhe listan latauksessa","Error on load folders":"Virhe kansioiden latauksessa","Are you sure?":"Oletko varma?","Enter Directory name":"Syötä hakemiston nimi","Create directory":"Luo hakemisto","type name":"Syötä nimi","Drop image":"Pudota kuva","Drop file":"Pudota tiedosto","or click":"tai klikkaa","Alternative text":"Vaihtoehtoinen teksti",Browse:"Selaa",Upload:"Lataa",Background:"Tausta",Text:"Teksti",Top:"Ylös",Middle:"Keskelle",Bottom:"Alas","Insert column before":"Lisää sarake ennen","Insert column after":"Lisää sarake jälkeen","Insert row above":"Lisää rivi ylös","Insert row below":"Lisää rivi alle","Delete table":"Poista taulukko","Delete row":"Poista rivi","Delete column":"Poista sarake","Empty cell":"Tyhjennä solu",Delete:"Poista","Strike through":"Yliviivaus",Underline:"Alleviivaus",Break:"Vaihto","Search for":"Etsi arvoa","Replace with":"Korvaa arvolla",Replace:"Korvaa",Edit:"Muokkaa","Vertical align":"Pystyasemointi","Horizontal align":"Vaaka-asemointi","Sort by changed":"Järjestä muuttuneilla","Sort by name":"Järjestä nimellä","Sort by size":"Järjestä koolla","Add folder":"Lisää kansio",Split:"Jaa","Split vertical":"Jaa pystysuuntaisesti","Split horizontal":"Jaa vaakasuuntaisesti",Merge:"Yhdistä","Add column":"Lisää sarake","Add row":"Lisää rivi",Border:"Reuna","Embed code":"Sisällytä koodi",Update:"Päivitä",superscript:"yläviite",subscript:"alaviite","Cut selection":"Leikkaa valinta",Paste:"Liitä","Choose Content to Paste":"Valitse liitettävä sisältö","Chars: %d":"Merkit: %d","Words: %d":"Sanat: %d",All:"Kaikki","Select %s":"Valitse: %s","Select all":"Valitse kaikki",source:"HTML",bold:"lihavoitu",italic:"kursiivi",brush:"sivellin",link:"linkki",undo:"peruuta",redo:"tee uudelleen",table:"taulukko",image:"kuva",eraser:"pyyhekumi",paragraph:"kappale",fontsize:"tekstin koko",video:"video",font:"kirjasin",about:"tietoja",print:"tulosta",underline:"alleviivaa",strikethrough:"yliviivaa",indent:"sisennä",outdent:"pienennä sisennystä",fullsize:"täysikokoinen",shrink:"pienennä",hr:"vaakaviiva",ul:"järjestetty lista",ol:"järjestämätön lista",cut:"leikkaa",selectall:"valitse kaikki","Open link":"Avaa linkki","Edit link":"Muokkaa linkkiä","No follow":"Älä seuraa",Unlink:"Pura linkki",Eye:"Ver",pencil:"Muokkaa"," URL":"URL",Reset:"Nollaa",Save:"Tallenna","Save as ...":"Tallenna nimellä ...",Resize:"Muuta kokoa",Crop:"Rajaa",Width:"Leveys",Height:"Korkeus","Keep Aspect Ratio":"Säilytä kuvasuhde",Yes:"Kyllä",No:"Ei",Remove:"Poista",Select:"Valitse","You can only edit your own images. Download this image on the host?":"Voit muokata vain omia kuvia. Lataa tämä kuva palvelimelle?","The image has been successfully uploaded to the host!":"Kuva on onnistuneesti ladattu palvelimelle!",palette:"paletti","There are no files":"Tiedostoja ei ole",Rename:"Nimeä uudelleen","Enter new name":"Syötä uusi nimi",preview:"esikatselu",download:"Lataa","Paste from clipboard":"Liitä leikepöydältä","Your browser doesn't support direct access to the clipboard.":"Selaimesi ei tue suoraa pääsyä leikepöydälle.","Copy selection":"Kopioi valinta",copy:"kopioi","Border radius":"Reunan pyöristys","Show all":"Näytä kaikki",Apply:"Käytä","Please fill out this field":"Täytä tämä kenttä","Please enter a web address":"Annan web-osoite",Default:"Oletus",Circle:"Ympyrä",Dot:"Piste",Quadrate:"Neliö","Lower Alpha":"Pieni aakkosellinen","Lower Greek":"Pieni kreikkalainen","Lower Roman":"Pieni roomalainen","Upper Alpha":"Suuri aakkosellinen","Upper Roman":"Suuri roomalainen",Find:"Hae","Find Previous":"Hae edellinen","Find Next":"Hae seuraava","Insert className":"Lisää luokkanimi","Press Alt for custom resizing":"Paina Alt muokattuun koon muuttamiseen","Class name":"Luokan nimi","License: %s":"Lisenssi: %s"},fr:{"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"},he:{"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Press Alt for custom resizing":"לחץ על אלט לשינוי גודל מותאם אישית","License: %s":"רישיון: %s"},hu:{"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Press Alt for custom resizing":"Nyomja meg az Alt egyéni átméretezés","License: %s":"Licenc: %s"},id:{"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"},it:{"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito web:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.",Anchor:"Link","Open in new tab":"Apri in una nuova scheda","Open in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Pulisci Formattazione","Fill color or set the text color":"Colore di sfondo o del testo",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci lista ordinata","Align Center":"Allinea al centro","Align Justify":"Allineamento Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci una linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci link","Font size":"Dimensione carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona un carattere speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modalita'",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incolla testo da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Digita il nome","Drop image":"Cancella immagine","Drop file":"Cancella file","or click":"o clicca","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci la colonna prima","Insert column after":"Inserisci la colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca per","Replace with":"Sostituisci con",Replace:"Sostituisci",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividi","Split vertical":"Dividi verticalmente","Split horizontal":"Dividi orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiorna",superscript:"indice",subscript:"pedice","Cut selection":"Taglia selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"risorsa",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",underline:"Sottolineato",strikethrough:"Barrato",indent:"aumenta rientro",outdent:"riduci rientro",fullsize:"espandi",shrink:"comprimi",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Rimuovi link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Ritaglia",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantieni le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovi",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Vuoi scaricare questa immagine dal server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata correttamente sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"Rinomina","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scarica","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Copia selezione",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applica","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Default",Circle:"Cerchio",Dot:"Punto",Quadrate:"Quadrato","Lower Alpha":"Lettera Minuscola","Lower Greek":"Lettera Greca Minuscola","Lower Roman":"Numero Romano Minuscolo","Upper Alpha":"Lettera Maiuscola","Upper Roman":"Numero Romano Maiuscolo",Find:"Trova","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Press Alt for custom resizing":"Premere Alt per il ridimensionamento personalizzato","License: %s":"Licenza: %s"},ja:{"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Press Alt for custom resizing":"カスタムサイズ変更のためのAltキーを押します","License: %s":"ライセンス: %s"},ko:{"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Press Alt for custom resizing":"사용자 지정 크기 조정에 대 한 고도 누르십시오"},mn:{"Type something":"Бичээд үзээрэй",Advanced:"Дэвшилтэт","About Jodit":"Jodit-ын талаар ","Jodit Editor":"Jodit програм","Jodit User's Guide":"Jodit гарын авлага","contains detailed help for using":"хэрэглээний талаар дэлгэрэнгүй мэдээллийг агуулна","For information about the license, please go to our website:":"Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:","Buy full version":"Бүрэн хувилбар худалдан авах","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.",Anchor:"Холбоо барих","Open in new tab":"Шинэ табаар нээх","Open in fullsize":"Бүтэн дэлгэцээр нээх","Clear Formatting":"Форматыг арилгах","Fill color or set the text color":"Өнгөөр будах эсвэл текстийн өнгө сонгох",Redo:"Дахих",Undo:"Буцаах",Bold:"Тод",Italic:"Налуу","Insert Unordered List":"Тэмдэгт жагсаалт нэмэх","Insert Ordered List":"Дугаарт жагсаалт нэмэх","Align Center":"Голлож байрлуулах","Align Justify":"Тэгшитгэн байрлуулах","Align Left":"Зүүнд байрлуулах","Align Right":"Баруунд байрлуулах","Insert Horizontal Line":"Хэвтээ зураас нэмэх","Insert Image":"Зураг нэмэх","Insert file":"Файл нэмэх","Insert youtube/vimeo video":"Youtube/Vimeo видео нэмэх","Insert link":"Холбоос нэмэх","Font size":"Фонтын хэмжээ","Font family":"Фонтын бүл","Insert format block":"Блок нэмэх",Normal:"Хэвийн","Heading 1":"Гарчиг 1","Heading 2":"Гарчиг 2","Heading 3":"Гарчиг 3","Heading 4":"Гарчиг 4",Quote:"Ишлэл",Code:"Код",Insert:"Оруулах","Insert table":"Хүснэгт оруулах","Decrease Indent":"Доголын зай хасах","Increase Indent":"Доголын зай нэмэх","Select Special Character":"Тусгай тэмдэгт сонгох","Insert Special Character":"Тусгай тэмдэгт нэмэх","Paint format":"Зургийн формат","Change mode":"Горим өөрчлөх",Margins:"Цаасны зай",top:"Дээрээс",right:"Баруунаас",bottom:"Доороос",left:"Зүүнээс",Styles:"CSS стиль",Classes:"CSS анги",Align:"Байрлуулах",Right:"Баруун",Center:"Төв",Left:"Зүүн","--Not Set--":"--Тодорхойгүй--",Src:"Эх үүсвэр",Title:"Гарчиг",Alternative:"Алтернатив текст",Link:"Холбоос","Open link in new tab":"Холбоосыг шинэ хавтсанд нээх",Image:"Зураг",file:"Файл","Image properties":"Зургийн үзүүлэлт",Cancel:"Цуцлах",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Таны код HTML кодтой адил байна. HTML форматаар үргэлжлүүлэх үү?","Paste as HTML":"HTML байдлаар буулгах",Keep:"Хадгалах",Clean:"Цэвэрлэх","Insert as Text":"Текст байдлаар нэмэх","Word Paste Detected":"Word байдлаар буулгасан байна","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Буулгасан агуулга Microsoft Word/Excel форматтай байна. Энэ форматыг хэвээр хадгалах уу эсвэл арилгах уу?","Insert only Text":"Зөвхөн текст оруулах","File Browser":"Файлын цонх","Error on load list":"Жагсаалт татах үед алдаа гарлаа","Error on load folders":"Хавтас татах үед алдаа гарлаа","Are you sure?":"Итгэлтэй байна уу?","Enter Directory name":"Хавтсын нэр оруулах","Create directory":"Хавтас үүсгэх","type name":"Нэр бичих","Drop image":"Зураг буулгах","Drop file":"Файл буулгах","or click":"эсвэл товш","Alternative text":"Алтернатив текст",Browse:"Үзэх",Upload:"Байршуулах",Background:"Арын зураг",Text:"Текст",Top:"Дээр",Middle:"Дунд",Bottom:"Доор","Insert column before":"Урд нь багана нэмэх","Insert column after":"Ард нь багана нэмэх","Insert row above":"Дээр нь мөр нэмэх","Insert row below":"Доор нь мөр нэмэх","Delete table":"Хүснэгт устгах","Delete row":"Мөр устгах","Delete column":"Багана устгах","Empty cell":"Нүд цэвэрлэх",Delete:"Устгах","Strike through":"Дээгүүр зураас",Underline:"Доогуур зураас",Break:"Мөрийг таслах","Search for":"Хайх","Replace with":"Үүгээр солих",Replace:"Солих",Edit:"Засах","Vertical align":"Босоо эгнүүлэх","Horizontal align":"Хэвтээ эгнүүлэх",Filter:"Шүүх","Sort by changed":"Сүүлд өөрчлөгдсөнөөр жагсаах","Sort by name":"Нэрээр жагсаах","Sort by size":"Хэмжээгээр жагсаах","Add folder":"Хавтас нэмэх",Split:"Задлах","Split vertical":"Баганаар задлах","Split horizontal":"Мөрөөр задлах",Merge:"Нэгтгэх","Add column":"Багана нэмэх","Add row":"Мөр нэмэх",Border:"Хүрээ","Embed code":"Код оруулах",Update:"Шинэчлэх",superscript:"Дээд индекс",subscript:"Доод индекс","Cut selection":"Сонголтыг таслах",Paste:"Буулгах","Choose Content to Paste":"Буулгах агуулгаа сонгоно уу","Chars: %d":"Тэмдэгт: %d","Words: %d":"Үг: %d",All:"Бүгдийг","Select %s":"Сонго: %s","Select all":"Бүгдийг сонго",source:"Эх үүсвэр",bold:"Тод",italic:"Налуу",brush:"Будах",link:"Холбоос",undo:"Буцаах",redo:"Дахих",table:"Хүснэгт",image:"Зураг",eraser:"Баллуур",paragraph:"Параграф",fontsize:"Фонтын хэмжээ",video:"Видео",font:"Фонт",about:"Тухай",print:"Хэвлэх",underline:"Доогуур зураас",strikethrough:"Дээгүүр зураас",indent:"Догол нэмэх",outdent:"Догол багасгах",fullsize:"Бүтэн дэлгэц",shrink:"Багасга",hr:"Хаалт",ul:"Тэмдэгт жагсаалт",ol:"Дугаарласан жагсаалт",cut:"Таслах",selectall:"Бүгдийг сонго","Open link":"Холбоос нээх","Edit link":"Холбоос засах","No follow":"Nofollow özelliği",Unlink:"Холбоос салгах",Eye:"Нүд",pencil:"Засах"," URL":"URL",Reset:"Буцаах",Save:"Хадгалах","Save as ...":"Өөрөөр хадгалах",Resize:"Хэмжээг өөрчил",Crop:"Тайрах",Width:"Өргөн",Height:"Өндөр","Keep Aspect Ratio":"Харьцааг хадгал",Yes:"Тийм",No:"Үгүй",Remove:"Арилга",Select:"Сонго","You can only edit your own images. Download this image on the host?":"Та зөвхөн өөрийн зургуудаа янзлах боломжтой. Энэ зургийг өөр лүүгээ татмаар байна уу?","The image has been successfully uploaded to the host!":"Зургийг хост руу амжилттай хадгалсан",palette:"Палет","There are no files":"Энд ямар нэг файл алга",Rename:"Шинээр нэрлэх","Enter new name":"Шинэ нэр оруулна уу",preview:"Урьдчилан харах",download:"Татах","Paste from clipboard":"Самбараас хуулах ","Your browser doesn't support direct access to the clipboard.":"Энэ вэб хөтчөөс самбарт хандах эрх алга.","Copy selection":"Сонголтыг хуул",copy:"Хуулах","Border radius":"Хүрээний радиус","Show all":"Бүгдийг харуулах",Apply:"Хэрэгжүүл","Please fill out this field":"Энэ талбарыг бөглөнө үү","Please enter a web address":"Вэб хаягаа оруулна уу",Default:"Үндсэн",Circle:"Дугуй",Dot:"Цэг",Quadrate:"Дөрвөлжин",Find:"Хайх","Find Previous":"Өмнөхийг ол","Find Next":"Дараагийнхийг ол","Insert className":"Бүлгийн нэрээ оруулна уу","Press Alt for custom resizing":"Хэмжээсийг шинээр өөчрлөхийн тулд Alt товчин дээр дарна уу","License: %s":"Лиценз: %s"},nl:{"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte","License: %s":"Licentie: %s"},no:{"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, besøk vår nettside:","Buy full version":"Kjøp fullversjon","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett © XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"Åpne i ny fane","Open in fullsize":"Åpne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gjør om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"Høyrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftstørrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"Øk innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"høyre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"Høyre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"Åpne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne før","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"Tøm celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"Søk etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold å lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gjør om",table:"tabell",image:"bilde",eraser:"viskelær",paragraph:"avsnitt",fontsize:"skriftstørrelse",video:"video",font:"skrift",about:"om redigeringsverktøyet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full størrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"Åpne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppfølging",Unlink:"Fjern lenke",Eye:"Forhåndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre størrelse",Crop:"Beskjær",Width:"Bredde",Height:"Høyde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Slå sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter størrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forhåndsvisning","Line height":"Linjehøyde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Foreløpige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk på Alt for å endre størrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du kan bare redigere dine egne bilder. Last ned dette bildet på verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din støtter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"},pl:{"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Press Alt for custom resizing":"Naciśnij Alt, aby zmienić rozmiar","License: %s":"Licencja: %s"},pt_br:{"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Press Alt for custom resizing":"Pressione Alt para redimensionamento personalizado","License: %s":"Licença: %s"},ru:{"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"},tr:{"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"},ua:{"Type something":"Напишіть щось","About Jodit":"Про Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit інструкція користувача","contains detailed help for using":"містить детальну інформацію щодо користування","For information about the license, please go to our website:":"Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:","Buy full version":"Купити повну версію","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.",Anchor:"Анкор","Open in new tab":"Відкрити у новій вкладці","Open in fullsize":"Відкрити редактор в повному розмірі","Clear Formatting":"Очистити форматування","Fill color or set the text color":"Колір заливки або колір текста",Redo:"Повторити",Undo:"Відмінити",Bold:"Жирний",Italic:"Курсів","Insert Unordered List":"Вставити невпорядкований список","Insert Ordered List":"Вставити нумерованний список","Align Center":"Вирівняти по центру","Align Justify":"Вирівняти по ширині","Align Left":"Вирівняти по лівому краю","Align Right":"Вирівняти по правому краю","Insert Horizontal Line":"Вставити горизонтальну лінію","Insert Image":"Вставити зображення","Insert file":"Вставити файл","Insert youtube/vimeo video":"Вставити відео","Insert link":"Вставити посилання","Font size":"Розмір шрифту","Font family":"Шрифт","Insert format block":"Вставити блочний елемент",Normal:"Нормальний текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставити","Insert table":"Вставити таблицю","Decrease Indent":"Збільшити відступ","Increase Indent":"Зменшити відступ","Select Special Character":"Оберіть спеціальный символ","Insert Special Character":"Вставити спеціальный символ","Paint format":"Формат краски","Change mode":"Джерело",Margins:"Відступи",top:"зверху",right:"справа",bottom:"знизу",left:"зліва",Styles:"Стилі",Classes:"Класи",Align:"Вирівнювання",Right:"По правому краю",Center:"По центру",Left:"По лівому краю","--Not Set--":"--не встановлено--",Src:"src",Title:"Заголовок",Alternative:"Альтернативний текст (alt)",Link:"Посилання","Open link in new tab":"Відкрити посилання в новій вкладці",file:"Файл",Advanced:"Розширені","Image properties":"Властивості зображення",Cancel:"Відміна",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Текст, який Ви намагаєтесь вставити схожий на HTML. Вставити його як HTML?","Paste as HTML":"Вставити його як HTML",Keep:"Зберегти оригінал",Clean:"Почистити","Insert as Text":"Вставити як текст","Insert only Text":"Вставити тільки текст","Word Paste Detected":"Можливо це фрагмент Word або Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Ви вставляєте контент з документа Microsoft Word або Excel. Бажаєте зберегти форматування?","File Browser":"Браузер файлів","Error on load list":"Помилка при завантаженні списку зображень","Error on load folders":"Помилка при завантаженні списку папок","Are you sure?":"Ви впевнені?","Enter Directory name":"Введіть назву папки","Create directory":"Створити папку","type name":"введіть назву","Drop image":"Перетягніть зображення сюди","Drop file":"Перетягніть файл сюди","or click":"або клікніть","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Завантаження",Background:"Фон",Text:"Текст",Top:" Вгору",Middle:"По центру",Bottom:"Донизу","Insert column before":"Вставити стовпець до","Insert column after":"Вставити стовпець після","Insert row above":"Вставити рядок вище","Insert row below":"Вставити рядок нижче","Delete table":"Видалити таблицю","Delete row":"Видалити рядок","Delete column":"Видалити стовпчик","Empty cell":"Очистити кліинку",source:"HTML",bold:"жирний",italic:"курсів",brush:"заливка",link:"посилання",undo:"відмінити",redo:"повторити",table:"таблиця",image:"зображення",eraser:"видалення",paragraph:"параграф",fontsize:"розмір шрифту",video:"відео",font:"шрифт",about:"про редактор",print:"друк",underline:"підкреслений",strikethrough:"закреслений",indent:"відступ",outdent:"заступ",fullsize:"на весь екран",shrink:"звичайний розмір",hr:"лінія",ul:"Список",ol:"Нумерований список",cut:"Вирізати",selectall:"Виділити все","Embed code":"Код","Open link":"Відкрити посилання","Edit link":"Редагувати посилання","No follow":"Атрибут nofollow",Unlink:"Видалити посилання",Eye:"Перегляд",pencil:"Редагування",Update:"Оновити"," URL":"URL",Edit:"Редагувати","Horizontal align":"Горизонтальне вирівнювання",Filter:"Фільтр","Sort by changed":"Сортувати за зміною","Sort by name":"Сортувати за ім'ям","Sort by size":"Сортувати за розміром","Add folder":"Додати папку",Reset:"Відновити",Save:"Зберегти","Save as ...":"Зберегти як",Resize:"Змінити розмір",Crop:"Обрізати розмір",Width:"Ширина",Height:"Висота","Keep Aspect Ratio":"Зберегти пропорції",Yes:"Так",No:"Ні",Remove:"Видалити",Select:"Вибрати","Chars: %d":"Символів: %d","Words: %d":"Слів: %d",All:"Вибрати все","Select %s":"Вибрати: %s","Select all":"Вибрати все","Vertical align":"Вертикальне вирівнювання",Split:"Розділити","Split vertical":"Розділити по вертикалі","Split horizontal":"Розділити по горизонталі",Merge:"Об'єднати в одну","Add column":"Додати стовпчик","Add row":"Додати рядок",Delete:"Видалити",Border:"Рамка","License: %s":"Ліцензія: %s","Strike through":"Закреслений",Underline:"Підкреслений",superscript:"верхній індекс",subscript:"індекс","Cut selection":"Обрізати вибране",Break:"Межа","Search for":"Шукати","Replace with":"Замінити на",Replace:"Замінити",Paste:"Вставити","Choose Content to Paste":"Обрати контент для вставки","You can only edit your own images. Download this image on the host?":"Ви можете редагувати лише власні зображення. Завантажити зображення на ваш сервер?","The image has been successfully uploaded to the host!":"Зображення успішно завантажено на сервер!",palette:"палітра","There are no files":"Файли відсутні",Rename:"Змінити назву","Enter new name":"Введіть нове імя'",preview:"Попередній перегляд",download:"Завантажити","Paste from clipboard":"Вставити з буфера обміну","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не підтримує доступ до буфера обміну.","Copy selection":"Копіювати виділене",copy:"копія","Border radius":"Радіус рамки","Show all":"Показати все",Apply:"Застосувати","Please fill out this field":"Будь ласка, заповніть це поле","Please enter a web address":"Будь ласка, введіть веб-адресу",Default:"За замовченням",Circle:"Коло",Dot:"Крапка",Quadrate:"Квадрат",Find:"Знайти","Find Previous":"Знайти попередні","Find Next":"Знайти наступні","Insert className":"Вставити клас","Press Alt for custom resizing":"Натисніть Alt для зміни розміру"},zh_cn:{"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Press Alt for custom resizing":"按Alt自定义调整大小","License: %s":"许可证: %s"},zh_tw:{"Type something":"輸入一些內容",Advanced:"進階","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"相關授權條款資訊,請造訪我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"錨點","Open in new tab":"在新分頁開啟","Open in fullsize":"全螢幕編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"取消復原",Undo:"復原",Bold:"粗體",Italic:"斜體","Insert Unordered List":"項目符號清單","Insert Ordered List":"編號清單","Align Center":"置中","Align Justify":"文字對齊","Align Left":"靠左","Align Right":"靠右","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"檔案","Insert youtube/vimeo video":"插入 youtube/vimeo 影片","Insert link":"插入連結","Font size":"文字大小","Font family":"字型","Insert format block":"格式化區塊",Normal:"內文","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引文",Code:"程式碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮排","Increase Indent":"增加縮排","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"檢視原始碼",Margins:"邊距",top:"上",right:"右",bottom:"下",left:"左",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"靠右",Center:"置中",Left:"靠左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新分頁開啟連結",Image:"圖片",file:"檔案","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"您的程式碼與 HTML 類似,是否貼上 HTML 格式?","Paste as HTML":"貼上 HTML",Keep:"保留原始格式",Clean:"清除格式","Insert as Text":"以純文字貼上","Word Paste Detected":"貼上 Word 格式","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在貼上 Word/Excel 文件的內容,是否保留原始格式?","Insert only Text":"僅貼上內文","File Browser":"檔案瀏覽","Error on load list":"清單載入錯誤","Error on load folders":"資料夾載入錯誤","Are you sure?":"您確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","Drop image":"拖曳圖片至此","Drop file":"拖曳檔案至此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"插入左方欄","Insert column after":"插入右方欄","Insert row above":"插入上方列","Insert row below":"插入下方列","Delete table":"刪除表格","Delete row":"刪除整列","Delete column":"刪除整欄","Empty cell":"清除內容","Chars: %d":"字元數: %d","Words: %d":"單字數: %d","Strike through":"刪除線",Underline:"底線",superscript:"上標",subscript:"下標","Cut selection":"剪下","Select all":"全選",Break:"斷行","Search for":"尋找","Replace with":"取代為",Replace:"取代",Paste:"貼上","Choose Content to Paste":"選擇內容並貼上",All:"全部",source:"原始碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"連結",undo:"復原",redo:"取消復原",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"文字大小",video:"影片",font:"字型",about:"關於",print:"列印",underline:"底線",strikethrough:"刪除線",indent:"增加縮排",outdent:"減少縮排",fullsize:"全螢幕",shrink:"縮減",hr:"分隔線",ul:"項目符號清單",ol:"編號清單",cut:"剪下",selectall:"全選","Open link":"打開連結","Edit link":"編輯連結","No follow":"No follow",Unlink:"取消連結",Eye:"查看"," URL":"URL",Reset:"重設",Save:"儲存","Save as ...":"另存為...",Resize:"調整大小",Crop:"裁切",Width:"寬",Height:"高","Keep Aspect Ratio":"維持長寬比",Yes:"是",No:"否",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"新增欄","Add row":"新增列",Border:"邊框","Embed code":"嵌入程式碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新增資料夾",Split:"分割","Split vertical":"垂直分割","Split horizontal":"水平分割","You can only edit your own images. Download this image on the host?":"您只能編輯您自己的圖片。是否下載此圖片?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色盤",pencil:"鉛筆","There are no files":"沒有檔案",Rename:"重新命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼簿貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪貼簿。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示全部",Apply:"應用","Please fill out this field":"請輸入此欄位","Please enter a web address":"請輸入網址",Default:"預設",Circle:"圓圈",Dot:"點",Quadrate:"方形",Find:"尋找","Find Previous":"尋找上一個","Find Next":"尋找下一個","Insert className":"插入 class 名稱","Press Alt for custom resizing":"按住 Alt 以調整自訂大小",Edit:"編輯","License: %s":"許可證: %s"}};var wm=function(e){return e?e.default||e:{}},Sm={};Ar(wm(bm))&&wm(bm).forEach(function(e,t){Sm[t]=e}),Object.keys(_m).forEach(function(e){var t=wm(_m[e]);Ar(t)?(_m[e]={},t.forEach(function(t,r){_m[e][Sm[r]]=t})):_m[e]=t});const Em=_m;function km(e){return function(t){return!0!==e.e.fire("backSpaceIsMovedIgnore",t)}}function xm(e,t,r,n){if(t&&li.isElement(r)){li.moveContent(t,r,!n,km(e));for(var o=t;o&&o!==e.editor&&li.isEmpty(o);){var i=o.parentElement;li.safeRemove(o),o=i}return!0}return!1}function Tm(e,t,r){var n=li.findSibling(t,r),o=li.findSibling(t,!r);if(!li.closest(t,li.isElement,e.editor)&&li.isList(n)&&li.isList(o)&&li.isTag(n.lastElementChild,"li")&&li.isTag(o.firstElementChild,"li")){var i=e.s,a=i.setCursorBefore,s=i.setCursorAfter,l=n.lastElementChild,c=o.firstElementChild;return so(r?li.prepend:li.append,c,t),li.moveContent(o,n,!r,km(e)),li.safeRemove(o),so(r?li.append:li.prepend,l,t),so(r?a:s,t),!0}return!1}function Om(e,t,r,n){var o,i,a,s=r?-1:1,l=li.sibling(t,!r),c=li.sibling(t,r),u=null,d=!1;for(c||(c=Cm(t,r,e.editor));c&&(li.isText(c)||li.isInlineBlock(c));){for(;li.isInlineBlock(c);)c=r?null==c?void 0:c.lastChild:null==c?void 0:c.firstChild;if(!c)break;if((null===(o=c.nodeValue)||void 0===o?void 0:o.length)&&(a=jm(c,r,s,l),!c.nodeValue.length&&li.isInlineBlock(c.parentNode)&&(c.nodeValue=vt)),(null===(i=c.nodeValue)||void 0===i?void 0:i.length)||(u=c),!Nr(a)&&a!==vt){Pm(r,c,t,n,a,e),d=!0;break}var f=Cm(c,r,e.editor);u&&(li.safeRemove(u),u=null),c=f}return u&&(li.safeRemove(u),u=null),d&&(function(e){for(var t=e.parentElement;t&&li.isInlineBlock(t)&&li.isTag(t,"a");){var r=t.parentElement;li.isEmpty(t)&&(li.after(t,e),li.safeRemove(t)),t=r}}(t),function(e,t){t.parentElement!==e.editor&&li.isBlock(t.parentElement)&&li.each(t.parentElement,li.isEmptyTextNode)&&li.after(t,e.createInside.element("br"))}(e,t),e.s.setCursorBefore(t),li.isTag(t.previousSibling,"br")&&!li.findNotEmptySibling(t,!1)&&li.after(t,e.createInside.element("br"))),d}function Cm(e,t,r){var n=li.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==r&&(n=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function(e){return t?e.firstChild:e.lastChild},i=li.findNotEmptyNeighbor(e,!t,r);if(n&&li.isElement(i)&&!li.isInlineBlock(i))return null;if(i)do{if(!o(i))return i;i=o(i)}while(i);return null}(e,!t,r,!0)),n}function jm(e,t,r,n){var o=zr(e.nodeValue),i=o.length,a=t?i-1:0;if(o[a]===vt)for(;o[a]===vt;)a+=r;var s=o[a];if(o[a+r]===vt){for(a+=r;o[a]===vt;)a+=r;a+=t?1:-1}return function(e,t,r){var n;if(!e||!li.isText(e)||(t?/^ /:/ $/).test(null!==(n=e.nodeValue)&&void 0!==n?n:"")||!gn(e.nodeValue||"").length)for(var o=t?r.length-1:0;(t?o>=0:o<r.length)&&" "===r[o];o+=t?-1:1)r[o]=bt}(n,t,o=t&&a<0?[]:o.slice(t?0:a+1,t?a:i)),e.nodeValue=o.join(""),s}function Pm(e,t,r,n,o,i){so(e?li.after:li.before,t,r),("sentence"===n||"word"===n&&" "!==o&&o!==bt)&&Om(i,r,e,n)}function Im(e,t,r){var n=!1,o=e.s,i=o.setCursorBefore,a=o.setCursorIn,s=li.closest(t,li.isElement,e.editor);if(!s||!li.isEmpty(s))return!1;var l=li.findNotEmptyNeighbor(t,r,e.editor);do{if(!s||!li.isEmpty(s)||li.isCell(s))break;li.after(s,t);var c=li.closest(s,function(e){return li.isElement(e)&&e!==s},e.editor);li.safeRemove(s),n=!0,s=c}while(s);return!(!n||!Tm(e,t,r))||(!l||li.isText(l)||li.isTag(l,Rt)?i(t):a(l,!r),n)}eo.prototype.controls.about={exec:function(e){var t=e.dlg({closeOnClickOverlay:!0}),r=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(r("About Jodit")).setContent('<div class="jodit-about">\n\t\t\t\t\t<div>'.concat(r("Jodit Editor")," v.").concat(e.getVersion(),"</div>\n\t\t\t\t\t<div>").concat(r("License: %s",nn(e.o.license)?zi(e.o.license):"MIT"),'</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="').concat(mt,'" target="_blank">').concat(mt,'</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(r("Jodit User's Guide"),"</a>\n\t\t\t\t\t\t").concat(r("contains detailed help for using"),"\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>").concat(r("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."),"</div>\n\t\t\t\t</div>")),Rn(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:Zt+Qt},Oa.add("about",function(e){e.registerButton({name:"about",group:"info"})}),ds.set("about",'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '),eo.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};var Rm=[function(e,t,r){var n=li.findSibling(t,r);return!(!li.isElement(n)||!li.isTag(n,Rt)&&!li.isEmpty(n)||(li.safeRemove(n),li.isTag(n,"br")&&!li.findNotEmptySibling(t,!1)&&li.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),li.isTag(n,"br")&&Im(e,t,r),0))},function(e,t,r){var n=li.findSibling(t,r);return!n&&t.parentElement&&t.parentElement!==e.editor&&(n=li.findSibling(t.parentElement,r)),!(!li.isElement(n)||li.isContentEditable(n,e.editor)||(so(r?li.before:li.after,n,t),li.safeRemove(n),xh(e,t,r),so(r?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},Om,function(e,t){var r=t.parentElement;return!!li.isCell(r)},Im,function(e,t,r){var n=li.closest(t,li.isElement,e.editor);if(!n)return!1;var o=li.findNotEmptySibling(n,r);return!(!o||!li.isEmpty(o)||(li.safeRemove(o),e.s.setCursorBefore(t),0))},Tm,function(e,t,r){for(var n=t,o=n;n&&!li.findNotEmptySibling(n,r)&&n.parentElement!==e.editor;)o=n=n.parentElement;if(li.isElement(o)&&li.isContentEditable(o,e.editor)){var i=li.findNotEmptySibling(o,r);if(i&&(function(e,t,r,n){var o=li.isTag(r,Pt),i=li.isTag(t,Pt),a=function(e,t){return t?e.firstElementChild:e.lastElementChild};return i?(r=e.createInside.element(e.o.enterBlock),li.before(t,r),xm(e,a(t,n),r,n)):!(!r||!o||i)&&xm(e,t,a(r,!n),n)}(e,o,i,r)||xm(e,o,i,r)))return e.s.setCursorBefore(t),!0}return!1},function(e,t,r){var n,o=li.closest(t,li.isElement,e.editor),i=e.s;if(li.isLeaf(o)&&(null===(n=null==o?void 0:o.parentElement)||void 0===n?void 0:n[r?"firstElementChild":"lastElementChild"])===o&&i.cursorInTheEdge(r,o)){var a=o.parentElement,s=e.createInside.element(e.o.enterBlock);return so(r?li.before:li.after,a,s),li.moveContent(o,s),li.safeRemove(o),li.isEmpty(a)&&li.safeRemove(a),so(r?i.setCursorBefore:i.setCursorAfter,t),!0}return!1}];function Am(e,t,r){return Am=Lm()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Dm(o,r.prototype),o},Am.apply(null,arguments)}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mm(e)}function Dm(e,t){return Dm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dm(e,t)}function Nm(e){var t="function"==typeof Map?new Map:void 0;return Nm=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Am(e,arguments,Mm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dm(n,e)},Nm(e)}function Lm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lm=function(){return!!e})()}var Bm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Mm(r=t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Lm()?Reflect.construct(r,n||[],Mm(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Dm(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;e.registerCommand("deleteButton",{exec:function(){return t.onDelete(!1)},hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:function(){return t.onDelete(!0)},hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:function(){return t.onDelete(!1,"word")},hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:function(){return t.onDelete(!0,"word")},hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:function(){return t.onDelete(!1,"sentence")},hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:function(){return t.onDelete(!0,"sentence")},hotkeys:e.o.delete.hotkeys.backspaceSentence})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"onDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"char",r=this.j,n=r.selection;if(n.isFocused()||n.focus(),function(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}(r))return!1;var o=n.range,i=r.createInside.text(vt);try{if(li.safeInsertNode(o,i),!li.isOrContains(r.editor,i))return;if(r.e.fire("backSpaceBeforeCases",e,i))return!1;if(xh(r,i,e),Rm.some(function(n){if(Rr(n)&&n(r,i,e,t))return ft||console.info("Remove case:",n.name),!0}))return!1}catch(e){throw ft||console.error(e),e}finally{r.e.fire("backSpaceAfterDelete",e,i),this.safeRemoveEmptyNode(i)}return!1}},{key:"safeRemoveEmptyNode",value:function(e){var t,r,n=this.j.s.range;n.startContainer===e&&(e.previousSibling?li.isText(e.previousSibling)?n.setStart(e.previousSibling,null!==(r=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==r?r:0):n.setStartAfter(e.previousSibling):e.nextSibling&&(li.isText(e.nextSibling)?n.setStart(e.nextSibling,0):n.setStartBefore(e.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),li.safeRemove(e)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Nm($f));function Fm(e,t,r){return Fm=qm()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Um(o,r.prototype),o},Fm.apply(null,arguments)}function zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zm(e)}function Um(e,t){return Um=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Um(e,t)}function Hm(e){var t="function"==typeof Map?new Map:void 0;return Hm=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Fm(e,arguments,zm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Um(n,e)},Hm(e)}function qm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qm=function(){return!!e})()}Bm.requires=["hotkeys"],Oa.add("backspace",Bm);var Vm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=zm(r=t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,qm()?Reflect.construct(r,n||[],zm(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Um(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterCommand.delete",function(e){"delete"===e&&t.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"__afterDeleteCommand",value:function(){var e=this.j,t=e.s.current();if(t&&li.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(hn(e.editor.textContent||"")||e.editor.querySelector("img,table,jodit,iframe,hr")||t&&li.closest(t,"table",e.editor))){e.editor.innerHTML="";var r=e.s.setCursorIn(e.editor);e.s.removeNode(r)}}},{key:"__onDeleteCommand",value:function(){var e=this.jodit;if(!e.s.isCollapsed()){e.s.expandSelection();var t=e.s.range;t.deleteContents();var r=e.createInside.fake();t.insertNode(r);var n=li.findSibling(r,!0),o=li.findSibling(r,!1);return this.__moveContentInLeftSibling(r,n,o),t.setStartBefore(r),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,r,t),this.__addBrInEmptyBlock(r,o,t),li.safeRemove(r),e.s.selectRange(t),!1}}},{key:"__moveContentInLeftSibling",value:function(e,t,r){t=this.__defineRightLeftBox(t),!li.isList(r)&&!li.isTag(r,"table")&&li.isBlock(r)&&li.isBlock(t)&&(li.append(t,e),li.moveContent(r,t),li.safeRemove(r)),li.isList(r)&&li.isLeaf(r.firstElementChild)&&li.isEmpty(r.firstElementChild)&&li.safeRemove(r.firstElementChild)}},{key:"__defineRightLeftBox",value:function(e){if(!li.isList(e))return e;var t=e.lastElementChild;return li.isLeaf(t)||(t=this.j.createInside.element("li"),li.append(e,t)),t}},{key:"__addBrInEmptyBlock",value:function(e,t,r){var n=this.j;if(e.isConnected&&li.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){var o=n.createInside.element("br");li.after(e,o),r.setStartBefore(o),r.collapse(!0)}if(li.isTag(t,"table")){var i=Yo("td,th",t).shift();li.isCell(i)&&li.isEmpty(i)&&li.append(i,n.createInside.element("br"))}}},{key:"__moveCursorInEditableSibling",value:function(e,t,r,n){var o;if(!t||!li.isText(t)){var i=null!==(o=li.closest(r,li.isBlock,e.editor))&&void 0!==o?o:e.editor,a=li.prev(r,li.isText,i);a&&(n.setStartAfter(a),n.collapse(!0),li.safeRemove(r))}}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hm($f));function Wm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Vm.requires=["backspace"],Oa.add("deleteCommand",Vm),eo.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},eo.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},eo.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},eo.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},eo.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},eo.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},Oa.add("bold",function(e){var t=function(t){var r,n=eo.defaultOptions.controls[t],o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Wm(e,t,r[t])})}return e}({},n.css);return Object.keys(o).forEach(function(e){r||(r={}),r[e]=Ar(o[e])?o[e][0]:o[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(function(t){e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(function(t){e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),ds.set("bold",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> ').set("italic",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> ').set("strikethrough",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> ').set("subscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> ').set("superscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> ').set("underline",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '),ds.set("palette",'<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> ');var Gm=function(e,t,r){var n="jodit-color-picker",o=Bi(r),i=e.c.div(n),a=e.o.textIcons?"<span>".concat(e.i18n("palette"),"</span>"):ds.get("palette"),s=function(e){var t=[];return ln(e)?Object.keys(e).forEach(function(r){t.push('<div class="'.concat(n,"__group ").concat(n,"__group-").concat(r,'">')),t.push(s(e[r])),t.push("</div>")}):Ar(e)&&e.forEach(function(e){t.push("<span class='".concat(n,"__color-item ").concat(o===e?n+"__color-item_active_true":"","' title=\"").concat(e,'" style="background-color:').concat(e,'" data-color="').concat(e,'"></span>'))}),t.join("")};i.appendChild(e.c.fromHTML('<div class="'.concat(n,'__groups">').concat(s(e.o.colors),"</div>"))),i.appendChild(e.c.fromHTML('<div data-ref="extra" class="'.concat(n,'__extra"></div>')));var l=Xo(i).extra;return e.o.showBrowserColorPicker&&Ur()&&(l.appendChild(e.c.fromHTML('<div class="'.concat(n,'__native">').concat(a,'<input type="color" value="#ffffff"/></div>'))),e.e.on(i,"change",function(e){e.stopPropagation();var r=e.target;if(r&&r.tagName&&li.isTag(r,"input")){var n=r.value||"";Rr(t)&&t(n),e.preventDefault()}})),e.e.on(i,"mousedown touchend",function(r){r.stopPropagation(),r.preventDefault();var o=r.target;if(o&&o.tagName&&!li.isTag(o,"svg")&&!li.isTag(o,"path")||!o.parentNode||(o=li.closest(o.parentNode,"span",e.editor)),li.isTag(o,"span")&&o.classList.contains(n+"__color-item")){var i=Xn(o,"-color")||"";t&&Rr(t)&&t(i)}}),e.e.fire("afterGenerateColorPicker",i,l,t,o),i},$m=function(e,t,r){var n=e.c.div("jodit-tabs"),o=e.c.div("jodit-tabs__wrapper"),i=e.c.div("jodit-tabs__buttons");Xn(i,{role:"tablist","aria-orientation":"horizontal"});var a={},s=[],l="";n.appendChild(i),n.appendChild(o);var c=function(e){a[e]&&(s.forEach(function(e){e.state.activated=!1}),Object.values(a).forEach(function(e){return e.tab.classList.remove("jodit-tab_active")}),a[e].button.state.activated=!0,a[e].tab.classList.add("jodit-tab_active"))};t.forEach(function(n){var u=n.icon,d=n.name,f=n.content,p=e.c.div("jodit-tab");Xn(p,{role:"tabpanel"});var h=cl(e,u||d,d);h.state.role="tab",e.e.on(h.container,"pointerdown",function(e){return e.preventDefault()}),l||(l=d),i.appendChild(h.container),s.push(h),h.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),Rr(f)?p.appendChild(e.c.div("jodit-tab_empty")):p.appendChild(Na.isInstanceOf(f,bs)?f.container:f),o.appendChild(p),h.onAction(function(){return c(d),Rr(f)&&!li.isElement(f)&&f.call(e),r&&(r.activeTab=d),!1}),a[d]={button:h,tab:p}}),Object.values(a).forEach(function(e){e.button.container.style.width=(100/t.length).toFixed(10)+"%"});var u=r&&r.activeTab&&a[r.activeTab]?r.activeTab:l;if(c(u),r){var d=r.activeTab;Object.defineProperty(r,"activeTab",{configurable:!0,enumerable:!1,get:function(){return d},set:function(e){d=e,c(e)}})}return n},Km=function(e,t,r,n){var o,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){var s=e.c.fromHTML('<div class="jodit-drag-and-drop__file-box">'+"<strong>".concat(e.i18n(i?"Drop image":"Drop file"),"</strong>")+"<span><br>".concat(e.i18n("or click"),"</span>")+'<input type="file" accept="'.concat(i?"image/*":"*",'" tabindex="-1" dir="auto" multiple=""/>')+"</div>");e.uploader.bind(s,function(r){var n=Rr(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;Rr(n)&&n.call(e,r),e.e.fire("closeAllPopups")},function(t){e.message.error(t.message),e.e.fire("closeAllPopups")}),a.push({icon:"upload",name:"Upload",content:s})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&a.push({icon:"folder",name:"Browse",content:function(){n&&n(),t.filebrowser&&e.filebrowser.open(t.filebrowser,i)}}),t.url){var l=new ll(e,{type:"submit",variant:"primary",text:"Insert"}),c=new nc(e,[new Hl(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new Hl(e,{name:"text",label:"Alternative text"}),new Pl(e,[l])]);o=null,!r||li.isText(r)||li.isComment(r)||!li.isTag(r,"img")&&!Yo("img",r).length||(o="IMG"===r.tagName?r:Yo("img",r)[0],Ym(c.container,"input[name=url]",Xn(o,"src")),Ym(c.container,"input[name=text]",Xn(o,"alt")),l.state.text="Update"),r&&li.isTag(r,"a")&&(Ym(c.container,"input[name=url]",Xn(r,"href")),Ym(c.container,"input[name=text]",Xn(r,"title")),l.state.text="Update"),c.onSubmit(function(r){Rr(t.url)&&t.url.call(e,r.url,r.text)}),a.push({icon:"link",name:"URL",content:c.container})}return $m(e,a)};function Ym(e,t,r){var n=e.querySelector(t);return n?(r&&(n.value=r),n.value):""}function Jm(e){if(!e)return!1;var t=li.findSibling(e,!0);return!(!t||!li.isTag(t,"br"))&&t}function Xm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ct,n=e,o=t.editor;do{if(!n||n===o)break;if(r.test(n.nodeName))return li.isLeaf(n)?n:Xm(n.parentNode,t,/^li$/i)||n;n=n.parentNode}while(n&&n!==o);return null}function Qm(e,t,r,n){var o="br"===r.toLowerCase(),i=t.createInside,a=i.element(r),s=i.element("br");return o||a.appendChild(s),n&&n.cssText&&a.setAttribute("style",n.cssText),li.after(e,a),li.before(o?a:s,e),ri(a,t.editor,t.ed),a}function Zm(e,t,r){return Zm=og()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&tg(o,r.prototype),o},Zm.apply(null,arguments)}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eg(e)}function tg(e,t){return tg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tg(e,t)}function rg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ng(e){var t="function"==typeof Map?new Map:void 0;return ng=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Zm(e,arguments,eg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tg(n,e)},ng(e)}function og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(og=function(){return!!e})()}ds.set("brush",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '),eo.prototype.controls.brushCell={isVisible:function(e){return!e.o.disablePlugins.includes("color")},icon:"brush",popup:function(e,t,r){if(rn(e)){var n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;var o=function(t){return Gm(e,function(o){n.forEach(function(e){Rn(e,t,o)}),e.lock(),e.synchronizeValues(),r(),e.unlock()},Rn(n[0],t))};return $m(e,[{name:"Background",content:o("background-color")},{name:"Text",content:o("color")},{name:"Border",content:o("border-color")}])}},tooltip:"Background"},eo.prototype.controls.brush={isVisible:function(e){return!e.o.disablePlugins.includes("color")},update:function(e,t){var r=io(t,"color"),n=function(r,n){n&&n!==Rn(e.editor,r).toString()&&(t.state.icon.fill=n)};if(r){var o=io(t,"color");n("color"===o?o:"background-color",r)}else{var i=e.s.current();if(i&&!t.state.disabled){var a=li.closest(i,li.isElement,e.editor)||e.editor;n("color",Rn(a,"color").toString()),n("background-color",Rn(a,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1}},popup:function(e,t,r,n){var o="",i="",a=[],s=null;return t&&t!==e.editor&&li.isNode(t)&&(li.isElement(t)&&e.s.isCollapsed()&&!li.isTag(t,new Set(["br","hr"]))&&(s=t),li.up(t,function(e){if(li.isHTMLElement(e)){var t=Rn(e,"color",!0),r=Rn(e,"background-color",!0);if(t)return o=t.toString(),!0;if(r)return i=r.toString(),!0}},e.editor)),a=[{name:"Background",content:Gm(e,function(t){s?s.style.backgroundColor=t:e.execCommand("background",!1,t),io(n,"color",t),io(n,"color-mode","background"),r()},i)},{name:"Text",content:Gm(e,function(t){s?s.style.color=t:e.execCommand("forecolor",!1,t),io(n,"color",t),io(n,"color-mode","color"),r()},o)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),$m(e,a,s)},exec:function(e,t,r){var n=r.button,o=io(n,"color-mode"),i=io(n,"color");if(!o)return!1;if(t&&t!==e.editor&&li.isNode(t)&&li.isElement(t))switch(o){case"color":t.style.color=i;break;case"background":t.style.backgroundColor=i}else e.execCommand("background"===o?o:"forecolor",!1,i)},tooltip:"Fill color or set the text color"},Oa.add("color",function(e){e.registerButton({name:"brush",group:"color"});var t=function(t,r,n){var o=Bi(n);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:o||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:o||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)});var ig=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=eg(r=t),function(e,t){return!t||"object"!==rg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,og()?Reflect.construct(r,n||[],eg(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&tg(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this,r=e.o.enter.toLowerCase(),n=r===Jt.toLowerCase();e.o.enterBlock||(e.o.enterBlock=n?Xt:r),e.registerCommand("enter",function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.onEnter(n)})}},{key:"onEnterKeyDown",value:function(e){if(e.key===Lt){var t=this.j,r=t.e.fire("beforeEnter",e);return void 0!==r?r:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}},{key:"onEnter",value:function(e){var t=this.jodit,r=t.createInside.fake();try{li.safeInsertNode(t.s.range,r),function(e,t){var r=e.s,n=li.closest(t,["a"],e.editor);n&&(r.cursorOnTheRight(n,t)?li.after(n,t):r.cursorOnTheLeft(n,t)&&li.before(n,t))}(t,r);var n=Xm(r,t),o=li.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&function(e,t,r){var n=Boolean(li.closest(e,["pre","blockquote"],t.editor)),o=!n&&li.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===Jt.toLowerCase()||o||r&&!n||!r&&n){if(n&&function(e){var t=Jm(Jm(e));return!!t&&(li.safeRemove(Jm(e)),li.safeRemove(t),!0)}(e))return!1;var i=t.createInside.element("br");if(li.before(e,i),!li.findNotEmptySibling(i,!1)){var a=i.cloneNode();li.after(i,a),li.before(a,e)}return ri(i,t.editor,t.ed),!0}return!1}(r,t,null==e?void 0:e.shiftKey))return!1;if(n||function(e,t){return Boolean(li.prev(e,function(e){return li.isBlock(e)||li.isImage(e)},t.editor))}(r,t)||(n=function(e,t){var r=e;li.up(r,function(e){e&&e.hasChildNodes()&&e!==t.editor&&(r=e)},t.editor);var n=li.wrapInline(r,t.o.enter,t);if(li.isEmpty(n)){var o=t.createInside.element("br");n.appendChild(o),li.before(o,e)}return n}(r,t)),!n)return Qm(r,t,o?"li":t.o.enter),!1;if(!function(e,t,r){return!!li.canSplitBlock(r)||(li.before(e,t.createInside.element("br")),!1)}(r,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return function(e,t,r){var n=li.closest(r,["ol","ul"],t.editor);if(n){var o=n.parentElement,i=li.isLeaf(o),a=i?o:n,s=t.s.createRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();li.after(a,e),li.safeRemove(r),Yo("li",n).length||li.safeRemove(n);var c=Qm(e,t,i?"li":t.o.enter);l.querySelector("li")&&(i?c.appendChild(l):li.after(c,l))}}(r,t,n),!1;!function(e,t,r){var n=t.s,o=t.o.enter.toLowerCase(),i=li.isLeaf(r),a=r.tagName.toLowerCase()===o||i,s=n.cursorOnTheRight(r,e),l=n.cursorOnTheLeft(r,e);if(!a&&(s||l))return s?li.after(r,e):li.before(r,e),Qm(e,t,o),void(l&&!s&&li.prepend(r,e));ri(n.splitSelection(r,e),t.editor,t.ed)}(r,t,n)}finally{r.isConnected&&t.s.setCursorBefore(r),li.safeRemove(r)}}},{key:"__isEmptyListLeaf",value:function(e){var t=this.j.e.fire("enterIsEmptyListLeaf",e);return qr(t)?t:li.isEmpty(e)}},{key:"beforeDestruct",value:function(e){e.e.off("keydown.enter")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ng($f));function ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e,t,r){return lg=fg()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ug(o,r.prototype),o},lg.apply(null,arguments)}function cg(e){return cg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cg(e)}function ug(e,t){return ug=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ug(e,t)}function dg(e){var t="function"==typeof Map?new Map:void 0;return dg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lg(e,arguments,cg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ug(n,e)},dg(e)}function fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fg=function(){return!!e})()}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":rg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([va(":keydown.enter")],ig.prototype,"onEnterKeyDown",null),Oa.add("enter",ig),eo.prototype.defaultFontSizePoints="px",ds.set("font",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> ').set("fontsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '),eo.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:function(e,t){return/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:function(e,t){return t+e.o.defaultFontSizePoints},childTemplate:function(e,t,r){return"".concat(r).concat(e.o.defaultFontSizePoints)},tooltip:"Font size",value:function(e,t){var r,n=e.s.current();if(n){var o=li.closest(n,li.isElement,e.editor);if(o)return Rn(o,(null===(r=t.control.data)||void 0===r?void 0:r.cssRule)||"font-size").toString()}},isChildActive:function(e,t){var r,n,o=t.state.value,i=null!==(n=null===(r=t.control.data)||void 0===r?void 0:r.normalize)&&void 0!==n?n:function(e){return e};return Boolean(o&&t.control.args&&i(t.control.args[0].toString())===i(o.toString()))},isActive:function(e,t){var r,n,o=t.state.value;if(!o)return!1;var i=null!==(n=null===(r=t.control.data)||void 0===r?void 0:r.normalize)&&void 0!==n?n:function(e){return e},a=t.control.data.cacheListSet;if(!a){var s=Object.keys(t.control.list).map(i);a=new Set(s),t.control.data.cacheListSet=a}return a.has(i(o.toString()))}},eo.prototype.controls.font=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){sg(e,t,r[t])})}return e}({},eo.prototype.controls.fontsize),{command:"fontname",textTemplate:function(e,t){return mn(function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),1!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return ag(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ag(e,1):void 0}}(e)||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.")}()}(t.split(","))[0],"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:function(e,t,r){var n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check("16px ".concat(t),r)}catch(e){}return'<span data-style="'.concat(t,'" style="').concat(n?"font-family: ".concat(t,"!important;"):"",'">').concat(r,"</span>")},data:{cssRule:"font-family",normalize:function(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}),Oa.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});var t=function(t,r,n){switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:qi(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}),ds.set("paragraph",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '),eo.prototype.controls.paragraph={command:"formatBlock",value:function(e,t){var r,n,o=t.control,i=e.s.current(),a=li.closest(i,li.isBlock,e.editor);return null!==(r=null==a?void 0:a.nodeName.toLowerCase())&&void 0!==r?r:null===(n=o.data)||void 0===n?void 0:n.currentValue},update:function(e,t){var r=t.control;if(!e.s.current())return!1;var n=t.state.value,o=r.list;return ln(o)&&o[n.toString()]&&e.o.textIcons&&(t.state.text=o[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:function(e,t){var r,n;return Boolean(t.state.value===(null===(n=null===(r=t.control)||void 0===r?void 0:r.args)||void 0===n?void 0:n[0]))},isActive:function(e,t){return t.state.value!==e.o.enter&&ln(t.control.list)&&Boolean(t.control.list[t.state.value])},childTemplate:function(e,t,r){return"<".concat(t,' style="margin:0;padding:0"><span>').concat(e.i18n(r),"</span></").concat(t,">")},tooltip:"Insert format block"},Oa.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",function(t,r,n){return e.s.commitStyle({element:n}),e.synchronizeValues(),!1})}),eo.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};var pg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=cg(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,fg()?Reflect.construct(t,r||[],cg(e).constructor):t.apply(e,r))}(this,t,arguments)).onKeyPress=function(t){var r=e.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[r||n];return["alt","ctrl","shift","meta"].forEach(function(e){t[e+"Key"]&&r!==e&&o.push(e)}),Fi(o.join("+"))},e.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",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:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},e}var r;return function(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}}),t&&ug(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this;fo(e.o.commandToHotkeys,!1).forEach(function(t){var r=e.o.commandToHotkeys[t];r&&(Ar(r)||Mr(r))&&e.registerHotkeyToCommand(r,t)});var r=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",function(e){if(e.key===Bt)return t.j.e.fire("escape",e)}).on("keydown.hotkeys",function(n){var o=t.onKeyPress(n),i={shouldStop:!0};if(!1===t.j.e.fire(o+".hotkey",n.type,i)){if(i.shouldStop)return r=!0,e.e.stopPropagation("keydown"),!1;n.preventDefault()}},{top:!0}).on("keyup.hotkeys",function(){if(r)return r=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}},{key:"beforeDestruct",value:function(e){e.events&&e.e.off(".hotkeys")}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(dg($f));function hg(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}Oa.add("hotkeys",pg),eo.prototype.iframeBaseUrl="",eo.prototype.iframeTitle="Jodit Editor",eo.prototype.iframeDoctype="<!DOCTYPE html>",eo.prototype.iframeDefaultSrc="about:blank",eo.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',eo.prototype.iframeCSSLinks=[],eo.prototype.iframeSandbox=null,Oa.add("iframe",function(e){var t=e.options;e.e.on("afterSetMode",function(){e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",function(e,r){var n=e||r.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+'<html dir="'.concat(t.direction,'" class="jodit" lang="').concat(Eo(t.language),'">')+"<head>"+"<title>".concat(t.iframeTitle,"</title>")+(t.iframeBaseUrl?'<base href="'.concat(t.iframeBaseUrl,'"/>'):"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(function(e){var t=n.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),n.head&&n.head.appendChild(t)}),t.iframeStyle){var o=n.createElement("style");o.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(o)}}).on("createEditor",function(){if(t.iframe){var r=e.c.element("iframe");return r.style.display="block",r.src="about:blank",r.className="jodit-wysiwyg_iframe",r.setAttribute("allowtransparency","true"),r.setAttribute("tabindex",t.tabIndex.toString()),r.setAttribute("frameborder","0"),null!=t.iframeSandbox&&r.setAttribute("sandbox",t.iframeSandbox),e.workplace.appendChild(r),e.iframe=r,co(e.e.fire("generateDocumentStructure.iframe",null,e),function(){if(!e.iframe)return!1;var r=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;var n=t.editHTMLDocumentMode,o=function(){Xn(r.body,"contenteditable",e.getMode()!==Zt&&!e.getReadOnly()||null)},i=function(e){var t=/<body.*<\/body>/im,r="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,r).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(r,n[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(n){var a=e.element.tagName;if("TEXTAREA"!==a&&"INPUT"!==a)throw Bo("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",function(){return i(e.o.iframeDoctype+r.documentElement.outerHTML)}).on("beforeSetNativeEditorValue",function(t){var n=t.value;if(e.isLocked)return!1;if(/<(html|body)/i.test(n)){var a=r.documentElement.outerHTML;i(a)!==i(n)&&(r.open(),r.write(e.o.iframeDoctype+i(n)),r.close(),e.editor=r.body,e.e.fire("safeHTML",e.editor),o(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue"))}else r.body.innerHTML=n;return!0},{top:!0})}if(e.editor=r.body,e.e.on("afterSetMode afterInit afterAddPlace",o),"auto"===t.height){r.documentElement&&(r.documentElement.style.overflowY="hidden");var s=e.async.throttle(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.async.requestAnimationFrame(function(){if(e.editor&&e.iframe&&"auto"===t.height){var r=e.ew.getComputedStyle(e.editor),n=parseInt(r.marginTop||"0",10)+parseInt(r.marginBottom||"0",10);Rn(e.iframe,"height",e.editor.offsetHeight+n)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",s).on([e.iframe,e.ew,r.documentElement],"load",s).on(r,"readystatechange DOMContentLoaded",s),"function"==typeof ResizeObserver){var l=new ResizeObserver(s);l.observe(r.body),e.e.on("beforeDestruct",function(){l.disconnect()})}}return r.documentElement&&e.e.on(r.documentElement,"mousedown touchend",function(){e.s.isFocused()||(e.s.focus(),e.editor===r.body&&e.s.setCursorIn(r.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",function(t){var r;null===(r=e.events)||void 0===r||r.fire(e.ow,t)}),!1})}})}),ds.set("image",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '),eo.prototype.controls.image={popup:function(e,t,r){var n=null;return t&&!li.isText(t)&&li.isHTMLElement(t)&&(li.isTag(t,"img")||Yo("img",t).length)&&(n=li.isTag(t,"img")?t:Yo("img",t)[0]),e.s.save(),Km(e,{filebrowser:function(t){e.s.restore(),t.files&&t.files.forEach(function(r){return e.s.insertImage(t.baseurl+r,null,e.o.imageDefaultWidth)}),r()},upload:!0,url:function(){var t,o=(t=function(t,o){var i;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(a){switch(a.label){case 0:return e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t),(i=n||e.createInside.element("img")).setAttribute("src",t),i.setAttribute("alt",o),n?[3,2]:[4,e.s.insertImage(i,null,e.o.imageDefaultWidth)];case 1:a.sent(),a.label=2;case 2:return r(),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){hg(i,n,o,a,s,"next",e)}function s(e){hg(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e,t){return o.apply(this,arguments)}}()},n,r)},tags:["img"],tooltip:"Insert Image"},Oa.add("image",function(e){e.registerButton({name:"image",group:"media"})});const mg=[{name:"eye",tooltip:"Open link",exec:function(e,t){var r=Xn(t,"href");t&&r&&e.ow.open(r)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"];var gg=function(e){return e.args&&Mr(e.args[0])?e.args[0].toLowerCase():""};const yg=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:function(e,t,r){return r},exec:function(e,t,r){var n=r.control,o=gg(n);e.getInstance("Table",e.o).getAllSelectedCells().forEach(function(e){Rn(e,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(e,t,r){var n=r.control;if(rn(e)){if(!n.args)return!1;var o=gg(n);e.execCommand(o,!1,t)}},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,r){var n=r.control;if(rn(e)){if(!n.args)return!1;var o=gg(n);e.execCommand(o,!1,t)}},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(e,t,r){var n=r.control;if(rn(e)){if(!n.args)return!1;var o=gg(n);e.execCommand(o,!1,t),e.e.fire("hidePopup")}},tooltip:"Delete"}];var vg={name:"left",childTemplate:function(e,t,r){return r},list:["Left","Right","Center","Normal"],exec:function(e,t,r){var n=r.control;if(li.isTag(t,new Set(["img","jodit","jodit-media"]))){var o=n.args&&Mr(n.args[0])?n.args[0].toLowerCase():"";if(!o)return!1;Mn(t,o),li.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&Mn(t.firstElementChild,o),e.synchronizeValues(),e.e.fire("recalcPositionPopup")}},tooltip:"Horizontal align"};const bg=[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec:function(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:function(e,t,r){var n=r.control;if(li.isTag(t,"img")){var o=n.args&&Mr(n.args[0])?n.args[0].toLowerCase():"";if(!o)return!1;Rn(t,"vertical-align","normal"===o?"":o),e.e.fire("recalcPositionPopup")}}},vg],_g=[{name:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},vg];function wg(e,t,r){return wg=Tg()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Eg(o,r.prototype),o},wg.apply(null,arguments)}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(e)}function Eg(e,t){return Eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Eg(e,t)}function kg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function xg(e){var t="function"==typeof Map?new Map:void 0;return xg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return wg(e,arguments,Sg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Eg(n,e)},xg(e)}function Tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tg=function(){return!!e})()}eo.prototype.toolbarInline=!0,eo.prototype.toolbarInlineForSelection=!1,eo.prototype.toolbarInlineDisableFor=[],eo.prototype.toolbarInlineDisabledButtons=["source"],ds.set("addcolumn",'<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> ').set("addrow",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> ').set("merge",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> ').set("th",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> ').set("splitg",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("splitv",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("th-list",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '),eo.prototype.popup={a:mg,img:bg,cells:yg,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:_g,iframe:_g,"jodit-media":_g,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};var Og=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":kg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Cg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Sg(t),function(e,t){return!t||"object"!==kg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Tg()?Reflect.construct(t,r||[],Sg(e).constructor):t.apply(e,r))}(this,t,arguments)).type=null,e.snapRange=null,e.elmsList=fo(e.j.o.popup,!1).filter(function(t){return!e.isExcludedTarget(t)}),e}var r;return function(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}}),t&&Eg(e,t)}(t,e),r=[{key:"popup",get:function(){return new Uc(this.jodit,!1)}},{key:"toolbar",get:function(){return nd(this.jodit,this.popup)}},{key:"onClick",value:function(e){var t=this,r=this.elmsList,n=li.isTag(e,"img")?e:li.closest(e,r,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(function(){return Ji(n,t.j)},n.nodeName.toLowerCase(),n),!1}},{key:"showPopup",value:function(e,t,r){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||r!==this.previousTarget){this.previousTarget=r;var n,o=this.j.o.popup[t];Ar(n=Rr(o)?o(this.j,r,this.popup.close):o)&&(this.toolbar.build(n,r),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,n=this.toolbar.container),this.popup.setContent(n),this.type=t}return this.popup.open(e),!0}},{key:"hidePopup",value:function(e){!this.popup.isOpened||Mr(e)&&e!==this.type||this.popup.close()}},{key:"onOutsideClick",value:function(){this.popup.close()}},{key:"canShowPopupForType",value:function(e){var t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}},{key:"isExcludedTarget",value:function(e){return Ti(this.j.o.toolbarInlineDisableFor).map(function(e){return e.toLowerCase()}).includes(e.toLowerCase())}},{key:"afterInit",value:function(e){var t=this;this.j.e.on("getDiffButtons.mobile",function(r){if(t.toolbar===r){var n=t.toolbar.getButtonsNames();return zr(e.registeredButtons).filter(function(e){return!t.j.o.toolbarInlineDisabledButtons.includes(e.name)}).filter(function(e){var t=Mr(e)?e:e.name;return t&&"|"!==t&&"\n"!==t&&!n.includes(t)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",function(e,r,n){t.showPopup(r,n||(Mr(e)?e:e.nodeName),Mr(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",function(){t.popup.isOpened&&t.previousTarget&&!t.previousTarget.parentNode&&(t.hidePopup(),t.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}},{key:"onSelectionStart",value:function(){this.snapRange=this.j.s.range.cloneRange()}},{key:"onSelectionEnd",value:function(e){if(!(e&&e.target&&bs.closestElement(e.target,Uc))){var t=this.snapRange,r=this.j.s.range;t&&!r.collapsed&&r.startContainer===t.startContainer&&r.startOffset===t.startOffset&&r.endContainer===t.endContainer&&r.endOffset===t.endOffset||this.onSelectionChange()}}},{key:"onSelectionChange",value:function(){if(this.j.o.toolbarInlineForSelection){var e="selection",t=this.j.s.sel,r=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(r)?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup(function(){return r.getBoundingClientRect()},e)}}},{key:"isSelectedTarget",value:function(e){var t=e.startContainer;return li.isElement(t)&&t===e.endContainer&&li.isTag(t.childNodes[e.startOffset],new Set(fo(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}},{key:"beforeDestruct",value:function(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}},{key:"_eventsList",value:function(){var e=this.elmsList;return e.map(function(e){return In("click_".concat(e))}).concat(e.map(function(e){return In("touchstart_".concat(e))})).join(" ")}},{key:"addListenersForElements",value:function(){this.j.e.on(this._eventsList(),this.onClick)}},{key:"removeListenersForElements",value:function(){this.j.e.off(this._eventsList(),this.onClick)}},{key:"showInlineToolbar",value:function(e){var t=this;this.showPopup(function(){return e||t.j.s.range.getBoundingClientRect()},"toolbar")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(xg($f));function jg(e,t,r){return jg=Mg()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Ig(o,r.prototype),o},jg.apply(null,arguments)}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pg(e)}function Ig(e,t){return Ig=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ig(e,t)}function Rg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ag(e){var t="function"==typeof Map?new Map:void 0;return Ag=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return jg(e,arguments,Pg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ig(n,e)},Ag(e)}function Mg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mg=function(){return!!e})()}Cg.requires=["select"],Og([ui],Cg.prototype,"popup",null),Og([ui],Cg.prototype,"toolbar",null),Og([jr],Cg.prototype,"onClick",null),Og([es(function(e){return!e.j.isLocked})],Cg.prototype,"showPopup",null),Og([va([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),jr],Cg.prototype,"hidePopup",null),Og([va(":outsideClick")],Cg.prototype,"onOutsideClick",null),Og([jr],Cg.prototype,"onSelectionStart",null),Og([jr],Cg.prototype,"onSelectionEnd",null),Og([qa(function(e){return e.defaultTimeout})],Cg.prototype,"onSelectionChange",null),Og([jr],Cg.prototype,"showInlineToolbar",null),Oa.add("inlinePopup",Cg),eo.prototype.link={formTemplate:function(e){var t=e.o.link,r=t.openInNewTabCheckbox,n=t.noFollowCheckbox,o=t.modeClassName,i=t.selectSizeClassName,a=t.selectMultipleClassName,s=t.selectOptionsClassName;return new nc(e,[new Pl(e,[new Hl(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new Pl(e,[new Hl(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new Pl(e,["input"===o?new Hl(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new Xl(e,{name:"className",ref:"className_select",label:"Class name",size:i,multiple:a,options:s}):null]):null,r?new Sc(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new Sc(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new Pl(e,[new ll(e,{name:"unlink",variant:"default",text:"Unlink"}),new ll(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},ds.set("link",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> ').set("unlink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '),eo.prototype.controls.unlink={exec:function(e,t){var r=li.closest(t,"a",e.editor);r&&li.unwrap(r),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},eo.prototype.controls.link={isActive:function(e){var t=e.s.current();return Boolean(t&&li.closest(t,"a",e.editor))},popup:function(e,t,r){return e.e.fire("generateLinkForm.link",t,r)},tags:["a"],tooltip:"Insert link"};var Dg=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Rg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Ng=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Pg(t),function(e,t){return!t||"object"!==Rg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Mg()?Reflect.construct(t,r||[],Pg(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"link",group:"insert"}],e}var r;return function(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}}),t&&Ig(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:function(){var r=e.dlg({resizable:!1}),n=t.__generateForm(e.s.current(),function(){r.close()});n.container.classList.add("jodit-dialog_alert"),r.setContent(n),r.open(),e.async.requestIdleCallback(function(){var e=Xo(n.container).url_input;null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}},{key:"__onDblClickOnLink",value:function(e){if(li.isTag(e.target,"a")){var t=Xn(e.target,"href");t&&(location.href=t,e.preventDefault())}}},{key:"onProcessPasteLink",value:function(e,t){var r,n,o,i,a=this.jodit;if(dn(t)&&a.o.link.processPastedLink){if(a.e.stopPropagation("processPaste"),a.o.link.processVideoLink){var s=so(null!==(n=null===(r=a.o.video)||void 0===r?void 0:r.parseUrlToVideoEmbed)&&void 0!==n?n:wo,t,{width:null===(o=a.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=a.o.video)||void 0===i?void 0:i.defaultHeight});if(s!==t)return a.createInside.fromHTML(s)}if(a.s.isCollapsed()){var l=a.createInside.element("a");return l.setAttribute("href",t),l.textContent=t,a.e.fire("applyLink",a,l,null),l}return a.s.commitStyle({element:"a",attributes:{href:t}}),!0}}},{key:"__generateForm",value:function(e,t){var r,n=this.jodit,o=n.i18n.bind(n),i=n.o.link,a=i.openInNewTabCheckbox,s=i.noFollowCheckbox,l=i.formTemplate,c=i.formClassName,u=i.modeClassName,d=l(n),f=Mr(d)?n.c.fromHTML(d,{target_checkbox_box:a,nofollow_checkbox_box:s}):d,p=li.isElement(f)?f:f.container,h=Xo(p),m=h.insert,g=h.unlink,y=h.content_input_box,v=h.target_checkbox,b=h.nofollow_checkbox,_=h.url_input,w=e,S=li.isImage(w),E=h.content_input,k=h.className_input,x=h.className_select;E||(E=n.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),S&&li.hide(y);var T=function(){return r?r.innerText:Li(n.s.range.cloneContents(),n.ed)};r=!(!e||!li.closest(e,"a",n.editor))&&li.closest(e,"a",n.editor),!S&&e&&(E.value=T()),r?(_.value=Xn(r,"href")||"",u&&function(e,t,r,n){switch(e){case"input":t&&(t.value=Xn(r,"class")||"");break;case"select":if(n){for(var o=0;o<n.selectedOptions.length;o++){var i=n.options.item(o);i&&(i.selected=!1)}(Xn(r,"class")||"").split(/\s+/).filter(function(e){return e.trim().length>0}).forEach(function(e){if(e)for(var t=0;t<n.options.length;t++){var r=n.options.item(t);(null==r?void 0:r.value)&&r.value.split(/\s+/).map(function(e){return e.trim()}).includes(e)&&(r.selected=!0)}})}}}(u,k,r,x),a&&v&&(v.checked="_blank"===Xn(r,"target")),s&&b&&(b.checked="nofollow"===Xn(r,"rel")),m.textContent=o("Update")):li.hide(g),n.editor.normalize();var O=n.history.snapshot.make();g&&n.e.on(g,"click",function(e){n.s.restore(),n.history.snapshot.restore(O),r&&li.unwrap(r),n.synchronizeValues(),t(),e.preventDefault()});var C=function(){if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;var e;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(O);var o=T()!==E.value.trim(),i=n.createInside;if(r&&li.isOrContains(n.editor,r))e=[r];else{if(n.s.isCollapsed()){var l=i.element("a");n.s.insertNode(l,!1,!1),e=[l]}else{var c=n.s.current();e=li.isTag(c,"img")?[li.wrap(c,"a",i)]:n.s.wrapInTag("a")}e.forEach(function(e){return n.s.select(e)})}return e.forEach(function(e){Xn(e,"href",_.value),function(e,t,r,n){var o;if(e&&(null!=t?t:r))if("input"===e)""===t.value&&n.hasAttribute("class")&&Xn(n,"class",null),""!==t.value&&Xn(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&Xn(n,"class",null);for(var i=0;i<r.selectedOptions.length;i++){var a=null===(o=r.selectedOptions.item(i))||void 0===o?void 0:o.value;a&&a.split(/\s+/).filter(function(e){return e.trim().length>0}).forEach(function(e){n.classList.add(e)})}}}(u,k,x,e),S||function(e,t,r,n){var o=e.textContent;t.value.trim().length?r&&(o=t.value):o=n.value,o!==e.textContent&&(e.textContent=o)}(e,E,o,_),a&&v&&Xn(e,"target",v.checked?"_blank":null),s&&b&&Xn(e,"rel",b.checked?"nofollow":null),n.e.fire("applyLink",n,e,f)}),n.synchronizeValues(),t(),!1};return li.isElement(f)?n.e.on(f,"submit",function(e){return e.preventDefault(),e.stopImmediatePropagation(),C(),!1}):f.onSubmit(C),f}},{key:"beforeDestruct",value:function(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}},{key:"__onClickReadOnlyLink",value:function(e){var t=this.jodit;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&li.isTag(e.target,"a")&&e.preventDefault()}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ag($f));Dg([jr],Ng.prototype,"__onDblClickOnLink",null),Dg([jr],Ng.prototype,"onProcessPasteLink",null),Dg([jr],Ng.prototype,"__generateForm",null),Dg([jr],Ng.prototype,"__onClickReadOnlyLink",null),Oa.add("link",Ng);var Lg=function(e,t,r){var n,o=r.control,i="button".concat(o.command),a=null!==(n=o.args&&o.args[0])&&void 0!==n?n:io(e,i);io(e,i,a),e.execCommand(o.command,!1,"default"===a?null:a)};function Bg(e,t,r){return Bg=qg()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&zg(o,r.prototype),o},Bg.apply(null,arguments)}function Fg(e){return Fg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fg(e)}function zg(e,t){return zg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zg(e,t)}function Ug(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hg(e){var t="function"==typeof Map?new Map:void 0;return Hg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Bg(e,arguments,Fg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zg(n,e)},Hg(e)}function qg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qg=function(){return!!e})()}ds.set("ol",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("ul",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),eo.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Lg},eo.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Lg};var Vg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Fg(t),function(e,t){return!t||"object"!==Ug(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,qg()?Reflect.construct(t,r||[],Fg(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}],e}var r;return function(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}}),t&&zg(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}},{key:"onCommand",value:function(e,t,r){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=r?r:null}}}),this.jodit.synchronizeValues(),!1}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Hg($f));function Wg(e,t,r){return Wg=Jg()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&$g(o,r.prototype),o},Wg.apply(null,arguments)}function Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gg(e)}function $g(e,t){return $g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$g(e,t)}function Kg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Yg(e){var t="function"==typeof Map?new Map:void 0;return Yg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Wg(e,arguments,Gg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$g(n,e)},Yg(e)}function Jg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jg=function(){return!!e})()}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Ug(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([jr],Vg.prototype,"onCommand",null),Oa.add("orderedList",Vg),eo.prototype.showPlaceholder=!0,eo.prototype.placeholder="Type something",eo.prototype.useInputsPlaceholder=!0;var Xg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Gg(t),function(e,t){return!t||"object"!==Kg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jg()?Reflect.construct(t,r||[],Gg(e).constructor):t.apply(e,r))}(this,t,arguments)).addNativeListeners=function(){e.j.e.off(e.j.editor,"input.placeholder keydown.placeholder").on(e.j.editor,"input.placeholder keydown.placeholder",e.toggle)},e.addEvents=function(){var t=e.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(e.placeholderElm.innerHTML=Xn(t.element,"placeholder")||""),t.e.fire("placeholder",e.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",e.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",e.toggle).on(window,"load",e.toggle),e.addNativeListeners(),e.toggle()},e}var r;return function(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}}),t&&$g(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(e.i18n(e.o.placeholder),"</span>")),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",function(e){e?t.hide():t.toggle()}).on("changePlace",this.addEvents),this.addEvents())}},{key:"show",value:function(){var e=this.j;if(!e.o.readonly){var t=0,r=0,n=e.s.current(),o=n&&li.closest(n,li.isBlock,e.editor)||e.editor,i=e.ew.getComputedStyle(o),a=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);var s=e.editor.firstChild;if(li.isElement(s)&&!on(s)){var l=e.ew.getComputedStyle(s);t=parseInt(l.getPropertyValue("margin-top"),10),r=parseInt(l.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(l.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=l.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height");Rn(this.placeholderElm,{display:"block",textAlign:i.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(i.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(i.getPropertyValue("margin-left"),10),r)})}}},{key:"hide",value:function(){li.safeRemove(this.placeholderElm)}},{key:"toggle",value:function(){var e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===Qt&&function(e){var t;if(!e.firstChild)return!0;var r=e.firstChild;if(Rt.has(null===(t=r.nodeName)||void 0===t?void 0:t.toLowerCase())||/^(TABLE)$/i.test(r.nodeName))return!1;var n=li.next(r,function(e){return e&&!li.isEmptyTextNode(e)},e);return li.isText(r)&&!n?li.isEmptyTextNode(r):!n&&li.each(r,function(e){return!(li.isLeaf(e)||li.isList(e))&&(li.isEmpty(e)||li.isTag(e,"br"))})}(e.editor)?this.show():this.hide())}},{key:"beforeDestruct",value:function(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Yg($f));function Qg(e,t,r){return Qg=ry()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ey(o,r.prototype),o},Qg.apply(null,arguments)}function Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zg(e)}function ey(e,t){return ey=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ey(e,t)}function ty(e){var t="function"==typeof Map?new Map:void 0;return ty=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qg(e,arguments,Zg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ey(n,e)},ty(e)}function ry(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ry=function(){return!!e})()}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Kg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([qa(function(e){return e.defaultTimeout/10},!0)],Xg.prototype,"toggle",null),Oa.add("placeholder",Xg),Oa.add("poweredByJodit",function(e){var t=e.o;t.hidePoweredByJodit||t.inline||!(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)||e.hookStatus("ready",function(){e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)})}),ds.set("redo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg> ').set("undo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg> '),eo.prototype.controls.redo={mode:er,isDisabled:function(e){return!e.history.canRedo()},tooltip:"Redo"},eo.prototype.controls.undo={mode:er,isDisabled:function(e){return!e.history.canUndo()},tooltip:"Undo"};var ny=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Zg(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,ry()?Reflect.construct(t,r||[],Zg(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}],e}var r;return function(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}}),t&&ey(e,t)}(t,e),(r=[{key:"beforeDestruct",value:function(){}},{key:"afterInit",value:function(e){var t=function(t){return e.history[t](),!1};e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ty($f));function oy(e,t,r){return oy=cy()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ay(o,r.prototype),o},oy.apply(null,arguments)}function iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iy(e)}function ay(e,t){return ay=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ay(e,t)}function sy(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ly(e){var t="function"==typeof Map?new Map:void 0;return ly=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return oy(e,arguments,iy(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ay(n,e)},ly(e)}function cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cy=function(){return!!e})()}Oa.add("redoUndo",ny),eo.prototype.minWidth=200,eo.prototype.maxWidth="100%",eo.prototype.minHeight=200,eo.prototype.maxHeight="auto",eo.prototype.saveHeightInStorage=!1;var uy=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":sy(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},dy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=iy(t),function(e,t){return!t||"object"!==sy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,cy()?Reflect.construct(t,r||[],iy(e).constructor):t.apply(e,r))}(this,t,arguments)).__resizeWorkspaces=e.j.async.debounce(e.__resizeWorkspaceImd,e.j.defaultTimeout,!0),e}var r;return function(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}}),t&&ay(e,t)}(t,e),r=[{key:"afterInit",value:function(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}},{key:"__initialize",value:function(){var e=this.j;if(!e.o.inline){var t=e.o.height;if(e.o.saveHeightInStorage&&"auto"!==t){var r=e.storage.get("height");r&&(t=r)}Rn(e.editor,{minHeight:"100%"}),Rn(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}}},{key:"__setHeight",value:function(e){var t=this.j.container,r=t.clientHeight,n=t.clientWidth;if(an(e)){var o=this.j.o,i=o.minHeight,a=o.maxHeight;an(i)&&i>e&&(e=i),an(a)&&a<e&&(e=a)}Rn(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:r,clientWidth:n})}},{key:"__setWidth",value:function(e){var t=this.j.container,r=t.clientHeight,n=t.clientWidth;if(an(e)){var o=this.j.o,i=o.minWidth,a=o.maxWidth;an(i)&&i>e&&(e=i),an(a)&&a<e&&(e=a)}Rn(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:r,clientWidth:n})}},{key:"__getNotWorkHeight",value:function(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2}},{key:"__resizeWorkspaceImd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.j.container,t=e.clientHeight,r=e.clientWidth;if(this.j&&!this.j.isDestructed&&this.j.o&&!this.j.o.inline&&this.j.container&&this.j.container.parentNode){var n=(Rn(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if(an(n)&&n>0&&([this.j.workplace,this.j.iframe,this.j.editor].map(function(e){e&&Rn(e,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),an(this.j.o.maxHeight)){var o=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map(function(e){e&&Rn(e,"maxHeight",o)}),this.j.e.fire("setMaxHeight",o)}this.j.container&&Rn(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");var i=this.j.container,a=i.clientHeight,s=i.clientWidth;t===a&&r===s||this.j.e.fire(this.j,"resize")}}},{key:"beforeDestruct",value:function(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ly($f));function fy(e,t,r){return fy=gy()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&hy(o,r.prototype),o},fy.apply(null,arguments)}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},py(e)}function hy(e,t){return hy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hy(e,t)}function my(e){var t="function"==typeof Map?new Map:void 0;return my=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return fy(e,arguments,py(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),hy(n,e)},my(e)}function gy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gy=function(){return!!e})()}uy([Va()],dy.prototype,"__initialize",null),uy([jr],dy.prototype,"__resizeWorkspaceImd",null),dy=uy([jr],dy),Oa.add("size",dy),eo.prototype.showCharsCounter=!0,eo.prototype.countHTMLChars=!1,eo.prototype.countTextSpaces=!1,eo.prototype.showWordsCounter=!0;var yy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=py(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,gy()?Reflect.construct(t,r||[],py(e).constructor):t.apply(e,r))}(this,t,arguments)).charCounter=null,e.wordCounter=null,e.reInit=function(){e.j.o.showCharsCounter&&e.charCounter&&e.j.statusbar.append(e.charCounter,!0),e.j.o.showWordsCounter&&e.wordCounter&&e.j.statusbar.append(e.wordCounter,!0),e.j.e.off("change keyup",e.calc).on("change keyup",e.calc),e.calc()},e.calc=e.j.async.throttle(function(){var t,r=e.j.text;e.j.o.showCharsCounter&&e.charCounter&&(t=e.j.o.countHTMLChars?e.j.value:e.j.o.countTextSpaces?r.replace(_t(),"").replace(/[\r\n]/g,""):r.replace(Et(),""),e.charCounter.textContent=e.j.i18n("Chars: %d",t.length)),e.j.o.showWordsCounter&&e.wordCounter&&(e.wordCounter.textContent=e.j.i18n("Words: %d",r.replace(_t(),"").split(Et()).filter(function(e){return e.length}).length))},e.j.defaultTimeout),e}var r;return function(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}}),t&&hy(e,t)}(t,e),(r=[{key:"afterInit",value:function(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}},{key:"beforeDestruct",value:function(){li.safeRemove(this.charCounter),li.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(my($f));function vy(e,t,r){return vy=Ey()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_y(o,r.prototype),o},vy.apply(null,arguments)}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},by(e)}function _y(e,t){return _y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_y(e,t)}function wy(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Sy(e){var t="function"==typeof Map?new Map:void 0;return Sy=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return vy(e,arguments,by(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_y(n,e)},Sy(e)}function Ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ey=function(){return!!e})()}Oa.add("stat",yy),eo.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},ds.set("table",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '),eo.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(e,t,r,n){e.editor.normalize();for(var o=e.history.snapshot.make(),i=n.control,a=i.data&&i.data.rows?i.data.rows:10,s=i.data&&i.data.cols?i.data.cols:10,l=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+function(){if(!e.o.table.useExtraClassesOptions)return"";var t=[];if(i.data){var r=i.data.classList;Object.keys(r).forEach(function(e){t.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(e,'" type="checkbox"/>').concat(r[e],"</label>"))})}return t.join("")}()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),c=l.querySelectorAll("span")[0],u=l.querySelectorAll("span")[1],d=l.querySelector(".jodit-form__container"),f=l.querySelector(".jodit-form__options"),p=[],h=a*s,m=0;m<h;m+=1)p[m]||p.push(e.c.element("span",{dataIndex:m}));if(e.e.on(d,"mousemove",function(e,t){var r=e.target;if(li.isTag(r,"span")){for(var n=void 0===t||isNaN(t)?parseInt(Xn(r,"-index")||"0",10):t||0,o=Math.ceil((n+1)/s),i=n%s+1,a=0;a<p.length;a+=1)i>=a%s+1&&o>=Math.ceil((a+1)/s)?p[a].className="jodit_hovered":p[a].className="";u.textContent=i.toString(),c.textContent=o.toString()}}).on(d,"touchstart mousedown",function(t){var n=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),li.isTag(n,"span")){var i=parseInt(Xn(n,"-index")||"0",10),a=Math.ceil((i+1)/s),l=i%s+1,c=e.createInside,u=c.element("tbody"),d=c.element("table");d.appendChild(u);for(var p,h,m=null,g=1;g<=a;g+=1){p=c.element("tr");for(var y=1;y<=l;y+=1)h=c.element("td"),m||(m=h),Rn(h,"width",(100/l).toFixed(4)+"%"),h.appendChild(c.element("br")),p.appendChild(c.text("\n")),p.appendChild(c.text("\t")),p.appendChild(h);u.appendChild(c.text("\n")),u.appendChild(p)}Yo("input[type=checkbox]:checked",f).forEach(function(e){e.value.split(/[\s]+/).forEach(function(e){d.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(o);var v=li.furthest(e.s.current(),li.isBlock,e.editor);if(v&&li.isEmpty(v))li.replace(v,d,void 0,!1,!0);else if(v){var b=c.text("\n");if(e.o.table.splitBlockOnInsertTable){var _=e.s.range;_.collapse(!1),_.insertNode(b),_.collapse(!1),e.s.selectRange(_);var w=e.s.splitSelection(v,b);li.after(w,d)}else li.after(v,b),li.after(b,d)}else e.s.insertNode(d,!1);m&&(e.s.setCursorIn(m),ri(m,e.editor,e.ed)),r()}}),n&&n.parentElement){for(var g=0;g<a;g+=1){for(var y=e.c.div(),v=0;v<s;v+=1)y.appendChild(p[g*s+v]);d.appendChild(y)}p[0]&&(p[0].className="hovered")}return l},tooltip:"Insert table"},Oa.add("table",function(e){e.registerButton({name:"table",group:"insert"})}),eo.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0};var ky=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":wy(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},xy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=by(t),function(e,t){return!t||"object"!==wy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ey()?Reflect.construct(t,r||[],by(e).constructor):t.apply(e,r))}(this,t,arguments)).isSuitableStart=function(t){var r;return li.isText(t)&&Mr(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||(null===(r=t.parentNode)||void 0===r?void 0:r.firstChild)===t&&e.isSuitable(t.nextSibling))||e.isNotWrapped(t)&&!li.isTemporary(t)},e.isSuitable=function(t){return li.isText(t)||e.isNotWrapped(t)},e.isNotWrapped=function(t){return li.isElement(t)&&!(li.isBlock(t)||li.isTag(t,e.j.o.wrapNodes.exclude))},e}var r;return function(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}}),t&&_y(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}},{key:"beforeDestruct",value:function(e){e.e.off(".wtn")}},{key:"postProcessSetEditorValue",value:function(){var e=this.jodit;if(e.isEditorMode()){for(var t=e.editor.firstChild,r=!1;t;){if(t=Ty(t,e),this.isSuitableStart(t)){r||e.s.save(),r=!0;var n=e.createInside.element(e.o.enter);for(li.before(t,n);t&&this.isSuitable(t);){var o=t.nextSibling;n.appendChild(t),t=o}n.normalize(),t=n}t=t&&t.nextSibling}r&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}}},{key:"preprocessInput",value:function(){var e=this.jodit,t="afterInit"===e.e.current;if(e.isEditorMode()&&!e.editor.firstChild&&(e.o.wrapNodes.emptyBlockAfterInit||!t)){var r=e.createInside.element(e.o.enter),n=e.createInside.element("br");li.append(r,n),li.append(e.editor,r),e.s.isFocused()&&e.s.setCursorBefore(n),e.e.fire("internalChange")}}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Sy($f));function Ty(e,t){var r=e,n=e;do{if(!li.isElement(n)||!li.isLeaf(n)||li.isList(n.parentElement))break;var o=li.findNotEmptySibling(n,!1);li.isTag(r,"ul")?r.appendChild(n):r=li.wrap(n,"ul",t.createInside),n=o}while(n);return r}ky([jr],xy.prototype,"postProcessSetEditorValue",null),ky([jr],xy.prototype,"preprocessInput",null),Oa.add("wrapNodes",xy),eo.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};var Oy=new Set(["table","pre","blockquote","code"]);function Cy(e,t){if(e.o.dtd.removeExtraBr&&!li.isTag(t,"br")){var r=li.furthest(t,li.isBlock,e.editor);if(r&&!li.isTag(r,Oy)){var n=li.isTag(t,"br")?t:li.findNotEmptySibling(t,!1);if(!li.isTag(n,"br"))return;e.s.setCursorBefore(n),li.safeRemove(n)}}}function jy(e,t){if(li.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&li.isBlock(t)){var r=li.furthest(e.s.current(),li.isBlock,e.editor);r&&!e.o.dtd.blockLimits[r.tagName.toLowerCase()]&&(e.s.setCursorAfter(r),li.isEmpty(r)&&li.safeRemove(r))}}function Py(e,t,r){return Py=Dy()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Ry(o,r.prototype),o},Py.apply(null,arguments)}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Iy(e)}function Ry(e,t){return Ry=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ry(e,t)}function Ay(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function My(e){var t="function"==typeof Map?new Map:void 0;return My=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Py(e,arguments,Iy(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ry(n,e)},My(e)}function Dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dy=function(){return!!e})()}var Ny=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Ay(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Ly=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Iy(r=t),function(e,t){return!t||"object"!==Ay(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Dy()?Reflect.construct(r,n||[],Iy(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Ry(e,t)}(t,e),r=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"__onBeforeInsertNode",value:function(e){var t=this;Object.keys(f).forEach(function(r){f[r](t.j,e)})}},{key:"__onAfterInsertNode",value:function(e){var t=this;Object.keys(d).forEach(function(r){d[r](t.j,e)})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(My($f));Ny([va(":beforeInsertNode")],Ly.prototype,"__onBeforeInsertNode",null),Ny([va(":afterInsertNode")],Ly.prototype,"__onAfterInsertNode",null),Oa.add("dtd",Ly),Object.keys(i).forEach(function(e){Vh[e]=i[e]});var By=function(e){return"__esModule"!==e};Object.keys(u).filter(By).forEach(function(e){ds.set(e.replace("_","-"),u[e])}),Object.keys(c).filter(By).forEach(function(e){var t,r=c[e],n=Rr(null===(t=r.prototype)||void 0===t?void 0:t.className)?r.prototype.className():e;Mr(n)?Vh.modules[n]=r:console.warn("Module name must be a string",e)}),Object.keys(s).filter(By).forEach(function(e){Vh.decorators[e]=s[e]}),["Confirm","Alert","Prompt"].forEach(function(e){Vh[e]=c[e]}),Object.keys(Em).filter(By).forEach(function(e){Vh.lang[e]=Em[e]});var Fy=n(72),zy=n.n(Fy),Uy=n(825),Hy=n.n(Uy),qy=n(659),Vy=n.n(qy),Wy=n(56),Gy=n.n(Wy),$y=n(540),Ky=n.n($y),Yy=n(113),Jy=n.n(Yy),Xy=n(616),Qy={};function Zy(e,t,r){return Zy=ov()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&tv(o,r.prototype),o},Zy.apply(null,arguments)}function ev(e){return ev=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ev(e)}function tv(e,t){return tv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tv(e,t)}function rv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nv(e){var t="function"==typeof Map?new Map:void 0;return nv=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Zy(e,arguments,ev(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tv(n,e)},nv(e)}function ov(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ov=function(){return!!e})()}Qy.styleTagTransform=Jy(),Qy.setAttributes=Gy(),Qy.insert=Vy().bind(null,"head"),Qy.domAPI=Hy(),Qy.insertStyleElement=Ky(),zy()(Xy.A,Qy),Xy.A&&Xy.A.locals&&Xy.A.locals,eo.prototype.addNewLine=!0,eo.prototype.addNewLineOnDBLClick=!0,eo.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],eo.prototype.addNewLineDeltaShow=20,ds.set("enter",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> ');var iv=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":rv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},av="addnewline",sv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=ev(t),function(e,t){return!t||"object"!==rv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ov()?Reflect.construct(t,r||[],ev(e).constructor):t.apply(e,r))}(this,t,arguments)).__line=e.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(e.j.i18n("Break"),'" class="jodit-add-new-line"><span>').concat(ds.get("enter"),"</span></div>")),e.__isMatchedTag=function(t){return Boolean(t&&e.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))},e.__isBeforeContent=!1,e.__lineInFocus=!1,e.__isShown=!1,e.__hideForce=function(){e.__isShown&&(e.__isShown=!1,e.j.async.clearTimeout(e.__timeout),e.__lineInFocus=!1,li.safeRemove(e.__line),e.__line.style.setProperty("--jd-anl-handle-offset","0"))},e.__canGetFocus=function(e){return null!=e&&li.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)},e.__onClickLine=function(t){var r=e.j,n=r.createInside.element(r.o.enter);e.__isBeforeContent&&e.__current&&e.__current.parentNode?e.__current===r.editor?li.prepend(r.editor,n):e.__current.parentNode.insertBefore(n,e.__current):r.editor.appendChild(n),r.s.setCursorIn(n),ri(n,r.editor,r.ed),r.synchronizeValues(),e.__hideForce(),t.preventDefault()},e}var r;return function(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}}),t&&tv(e,t)}(t,e),(r=[{key:"__show",value:function(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}},{key:"onLock",value:function(e){e&&this.__isShown&&this.__hideForce()}},{key:"__hide",value:function(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}},{key:"afterInit",value:function(e){var t=this;e.o.addNewLine&&(e.e.on(this.__line,"mousemove",function(e){e.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",function(){t.j.async.clearTimeout(t.__timeout),t.__lineInFocus=!0}).on(this.__line,"mouseleave",function(){t.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}},{key:"__addEventListeners",value:function(){var e=this.j;e.e.off(e.editor,"."+av).off(e.container,"."+av).off("."+av).on([e.ow,e.ew,e.editor],"scroll."+av,this.__hideForce).on("finishedCleanHTMLWorker."+av,this.__hideForce).on(e.editor,"click."+av,this.__hide).on(e.container,"mouseleave."+av,this.__hide).on(e.editor,"mousemove."+av,this.__onMouseMove)}},{key:"onDblClickEditor",value:function(e){var t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){var r=Yi(t.editor,t,t.ed),n=e.pageY-t.ew.scrollX,o=t.createInside.element(t.o.enter);Math.abs(n-r.top)<Math.abs(n-(r.height+r.top))&&t.editor.firstChild?t.editor.insertBefore(o,t.editor.firstChild):t.editor.appendChild(o),t.s.setCursorIn(o),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}},{key:"__onMouseMove",value:function(e){var t=this.j,r=t.ed.elementFromPoint(e.clientX,e.clientY);if(li.isHTMLElement(r)&&li.isOrContains(t.editor,r))if(t.editor===r||this.__isMatchedTag(r)||(r=li.closest(r,this.__isMatchedTag,t.editor)),r){if(this.__isMatchedTag(r)){var n=li.up(r,li.isBlock,t.editor);n&&n!==t.editor&&(r=n)}var o=Ji(r,this.j),i=!1,a=e.clientY,s=e.clientX;if(this.j.iframe){var l=Ji(this.j.iframe,this.j,!0);a+=l.top,s+=l.left}var c=this.j.o.addNewLineDeltaShow;Math.abs(a-o.top)<=c?(i=o.top,this.__isBeforeContent=!0):Math.abs(a-(o.top+o.height))<=c&&(i=o.top+o.height,this.__isBeforeContent=!1);var u=t.editor===r;!1!==i&&(u&&!this.__isBeforeContent||!u&&!so(this.__isBeforeContent?li.prev:li.next,r,this.__canGetFocus,t.editor))?(this.__line.style.top=i+"px",this.__current=r,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",s-o.left-10+"px")):(this.__current=!1,this.__hide())}else this.__hide()}},{key:"beforeDestruct",value:function(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),li.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+av).off(this.j.container,"."+av).off("."+av)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(nv($f));function lv(e,t,r){return lv=pv()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&dv(o,r.prototype),o},lv.apply(null,arguments)}function cv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uv(e)}function dv(e,t){return dv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dv(e,t)}function fv(e){var t="function"==typeof Map?new Map:void 0;return fv=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lv(e,arguments,uv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dv(n,e)},fv(e)}function pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pv=function(){return!!e})()}iv([va(":lock")],sv.prototype,"onLock",null),iv([jr],sv.prototype,"__hide",null),iv([va(":dblclick")],sv.prototype,"onDblClickEditor",null),iv([Va(function(e){return e.defaultTimeout})],sv.prototype,"__onMouseMove",null),Oa.add("addNewLine",sv),eo.prototype.controls.classSpan={command:"applyClassName",exec:po,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:function(e,t){var r=e.s.current();if(r){var n=li.closest(r,li.isElement,e.editor)||e.editor;return Boolean(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive:function(e,t){var r=e.s.current();if(r){var n=li.closest(r,li.isElement,e.editor)||e.editor,o=!1;return t.control.list&&Object.keys(t.control.list).forEach(function(e){n.classList.contains(e)&&(o=!0)}),Boolean(n&&n!==e.editor&&void 0!==t.control.list&&o)}return!1},childTemplate:function(e,t,r){return'<span class="'.concat(t,'">').concat(e.i18n(r),"</span>")},tooltip:"Insert className"};var hv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=uv(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,pv()?Reflect.construct(t,r||[],uv(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"classSpan",group:"script"}],e}var r;return function(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}}),t&&dv(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){e.registerCommand("applyClassName",function(t,r,n){return e.s.commitStyle({attributes:cv({},"class",n)}),!1})}},{key:"beforeDestruct",value:function(){}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(fv($f));function mv(e){var t=/([^[]*)\[([^\]]+)]/,r=/[\s]*,[\s]*/,n=/^(.*)[\s]*=[\s]*(.*)$/,o={};return Mr(e)?(e.split(r).map(function(e){e=hn(e);var i=t.exec(e),a={};if(i){var s=i[2].split(r);i[1]&&(s.forEach(function(e){e=hn(e);var t=n.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),o[i[1].toUpperCase()]=a)}else o[e.toUpperCase()]=!0}),o):!!e&&(Object.keys(e).forEach(function(t){o[t.toUpperCase()]=e[t]}),o)}function gv(e,t){var r=e.s,n=t;if(!n){n=e.createInside.fake();var o=r.range;li.safeInsertNode(o,n),o.collapse()}var i=li.furthest(n,yv,e.editor);if(i)if(r.cursorOnTheLeft(i))li.before(i,n);else if(r.cursorOnTheRight(i))li.after(i,n);else{var a=r.splitSelection(i);a&&li.after(a,n)}t||(r.setCursorBefore(n),li.safeRemove(n))}function yv(e){return li.isInlineBlock(e)&&!li.isTag(e,Rt)}function vv(e,t,r,n){if(n&&li.isElement(t)&&!0!==n[t.nodeName]){var o=t.attributes;if(o&&o.length){for(var i=[],a=0;a<o.length;a+=1){var s=n[t.nodeName][o[a].name];(!s||!0!==s&&s!==o[a].value)&&i.push(o[a].name)}i.length&&(r=!0),i.forEach(function(e){t.removeAttribute(e)})}}return r}Oa.add("classSpan",hv),ds.set("class-span",'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '),eo.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},eo.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},ds.set("eraser",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> ');var bv=new Set(["table","tbody","thead","tfoot","tr"]);function _v(e,t,r){if(e.o.cleanHTML.fillEmptyParagraph&&li.isBlock(t)&&li.isEmpty(t,Rt)&&!li.isTag(t,bv)){var n=e.createInside.element("br");return t.appendChild(n),!0}return r}function wv(e,t,r,n,o,i){return li.isText(t)&&!t.nodeValue?(t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),li.safeRemove(t),!0):r}function Sv(e,t,r,n,o,i){if(i===t||!li.isText(t)||null==t.nodeValue)return r;if(!_t().test(t.nodeValue))return r;var a=li.furthest(i,li.isBlock,e.editor);return!a||li.isOrContains(a,t)?r:(t.nodeValue=t.nodeValue.replace(_t(),""),t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||li.safeRemove(t),!0)}function Ev(e,t,r){var n=function(e,t,r){if(!r||!li.isHTMLElement(t))return t;var n=r[t.nodeName.toLowerCase()]||r[t.nodeName];return n?li.replace(t,n,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n?(t=n,!0):r}function kv(e,t,r){return!(!li.isElement(t)||!Ai(t,{safeJavaScriptLink:e.options.cleanHTML.safeJavaScriptLink,removeOnError:e.options.cleanHTML.removeOnError}))||r}function xv(e,t,r,n,o,i){return function(e,t,r,n,o){if(!li.isText(t)){if(n&&!n[t.nodeName])return!0;if(!n&&o&&o[t.nodeName])return!0}return!!e.o.cleanHTML.removeEmptyElements&&li.isElement(t)&&null!=t.nodeName.match(jt)&&!li.isTemporary(t)&&0===gn(t.innerHTML).length&&(null==r||!li.isOrContains(t,r))}(e,t,i,n,o)?(li.safeRemove(t),!0):r}var Tv=Object.keys(p);function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cv(e,t,r){return Cv=Av()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Pv(o,r.prototype),o},Cv.apply(null,arguments)}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jv(e)}function Pv(e,t){return Pv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pv(e,t)}function Iv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Rv(e){var t="function"==typeof Map?new Map:void 0;return Rv=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Cv(e,arguments,jv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Pv(n,e)},Rv(e)}function Av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Av=function(){return!!e})()}var Mv=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Iv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Dv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=jv(t),function(e,t){return!t||"object"!==Iv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Av()?Reflect.construct(t,r||[],jv(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"eraser",group:"font-style"}],e.currentSelectionNode=null,e.walker=new kn(e.j.async,{timeout:e.j.o.cleanHTML.timeout}),e}var r;return function(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}}),t&&Pv(e,t)}(t,e),r=[{key:"afterInit",value:function(e){}},{key:"isEditMode",get:function(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}},{key:"onChangeCleanHTML",value:function(){if(this.isEditMode){var e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}}},{key:"startWalker",value:function(){var e=this,t=this.jodit,r=mv(this.j.o.cleanHTML.allowTags),n=mv(this.j.o.cleanHTML.denyTags);this.walker.on("visit",function(o){return function(e,t,r,n,o){var i=!1,a=e.o.cleanHTML.disableCleanFilter,s=!0,l=!1,c=void 0;try{for(var u,d=Tv[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value;if(!a||!a.has(f)){var h=i;if(i=(0,p[f])(e,t,i,r,n,o),ft||h||!i||console.warn('CleanHTML: Effect "'.concat(f,'"')),!t.isConnected)return!0}}}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}return i}(t,o,r,n,e.currentSelectionNode)}).on("end",function(t){e.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}},{key:"beforeCommand",value:function(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?gv(this.j):function(e){var t=e.s,r=e.editor,n=e.createInside,o=t.range,i=o.cloneRange(),a=o.cloneRange(),s=n.fake(),l=n.fake();i.collapse(!0),a.collapse(!1),li.safeInsertNode(i,s),li.safeInsertNode(a,l),o.setStartBefore(s),o.collapse(!0),t.selectRange(o),gv(e,s),o.setEndAfter(l),o.collapse(!1),t.selectRange(o),gv(e,l);var c=[];li.between(s,l,function(e){yv(e)&&!li.isTag(e,"a")&&c.push(e),li.isElement(e)&&Xn(e,"style")&&Xn(e,"style",null)}),c.forEach(function(e){return li.unwrap(e)});var u=function(e,t){if(!li.findNotEmptySibling(e,t)){var n=e.parentNode;if(n&&n!==r&&Xn(n,"style"))return Xn(n,"style",null),u(n,t),!0}};u(s,!0)&&u(l,!1),o.setStartAfter(s),o.setEndBefore(l),t.selectRange(o),li.safeRemove(s),li.safeRemove(l)}(this.j),!1}},{key:"onBeforeSetNativeEditorValue",value:function(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Ov(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ov(e,2):void 0}}(e)||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.")}()}(this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()]),r=t[0],n=t[1];return r.innerHTML=e.value,this.onSafeHTML(r),e.value=r.innerHTML,Ri(r,{safeJavaScriptLink:!0,removeOnError:!0}),li.safeRemove(n),!1}},{key:"onSafeHTML",value:function(e){Ri(e,this.j.o.cleanHTML)}},{key:"beforeDestruct",value:function(){this.walker.destruct()}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Rv($f));Mv([va([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Dv.prototype,"onChangeCleanHTML",null),Mv([Ka("ready")],Dv.prototype,"startWalker",null),Mv([va(":beforeCommand")],Dv.prototype,"beforeCommand",null),Mv([va(":beforeSetNativeEditorValue")],Dv.prototype,"onBeforeSetNativeEditorValue",null),Mv([va(":safeHTML")],Dv.prototype,"onSafeHTML",null),Oa.add("cleanHtml",Dv),eo.prototype.controls.cut={command:"cut",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Cut selection"},eo.prototype.controls.copy={command:"copy",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Copy selection"},eo.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},ds.set("copy",'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> ').set("cut",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> ').set("paste",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> ').set("select-all",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> ');var Nv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}var t;return(t=[{key:"init",value:function(e){var t;null===(t=this.buttons)||void 0===t||t.forEach(function(t){return e.registerButton(t)}),e.e.off("copy.".concat(Sr," cut.").concat(Sr)).on("copy.".concat(Sr," cut.").concat(Sr),function(t){var r,n=e.s.html,o=ho(t)||ho(e.ew)||ho(t.originalEvent);o&&(o.setData(rr,Li(n)),o.setData(nr,n)),e.buffer.set(Sr,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||sr}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(r=null==e?void 0:e.events)||void 0===r||r.fire("afterCopy",n)})}},{key:"destruct",value:function(e){var t,r;null===(t=ci(e,"buffer"))||void 0===t||t.set(Sr,""),null===(r=null==e?void 0:e.events)||void 0===r||r.off("."+Sr)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();Oa.add("clipboard",Nv);const Lv={"copy-format":"نسخ التنسيق"},Bv={"copy-format":"Kopírovat formát"},Fv={"copy-format":"Format kopierenт"},zv={"copy-format":"Copiar formato"},Uv={"copy-format":"کپی کردن قالب"},Hv={"copy-format":"Kopioi muotoilu"},qv={"copy-format":"Format de copie"},Vv={"copy-format":"העתק עיצוב"},Wv={"copy-format":"Formátum másolás"},Gv={"copy-format":"salin format"},$v={"copy-format":"Copia il formato"},Kv={"copy-format":"copyformat"},Yv={"copy-format":"복사 형식"},Jv={"copy-format":"Формат хуулах"},Xv={"copy-format":"opmaak kopiëren"},Qv={"copy-format":"format kopii"},Zv={"copy-format":"Copiar formato"},eb={"copy-format":"Копировать формат"},tb={"copy-format":"Kopyalama Biçimi"},rb={"copy-format":"复制格式"},nb={"copy-format":"複製格式"};var ob="copy-format",ib=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],ab=function(e,t,r,n){var o=Rn(r,t);return o===n[t]&&(o=r.parentNode&&r!==e.editor&&r.parentNode!==e.editor?ab(e,t,r.parentNode,n):void 0),o};function sb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lb(e,t,r){return lb=pb()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ub(o,r.prototype),o},lb.apply(null,arguments)}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(e)}function ub(e,t){return ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ub(e,t)}function db(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function fb(e){var t="function"==typeof Map?new Map:void 0;return fb=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lb(e,arguments,cb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ub(n,e)},fb(e)}function pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pb=function(){return!!e})()}eo.prototype.controls.copyformat={exec:function(e,t,r){var n=r.button;if(t){if(e.buffer.exists(ob))e.buffer.delete(ob),e.e.off(e.editor,"mouseup."+ob);else{var o={},i=li.up(t,function(e){return e&&!li.isText(e)},e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),ib.forEach(function(e){o[e]=Rn(a,e)}),a!==e.editor&&li.safeRemove(a);var s=function(e,t,r){var n={};return t&&ib.forEach(function(o){n[o]=ab(e,o,t,r),o.match(/border(Style|Color)/)&&!n.borderWidth&&(n[o]=void 0)}),n}(e,i,o);e.e.on(e.editor,"mouseup."+ob,function(){e.buffer.delete(ob);var t=e.s.current();t&&(li.isTag(t,"img")?Rn(t,s):e.s.commitStyle({attributes:{style:s}})),e.e.off(e.editor,"mouseup."+ob)}),e.buffer.set(ob,!0)}n.update()}},isActive:function(e){return e.buffer.exists(ob)},tooltip:"Paint format"},Oa.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),ja(h)}),ds.set("copyformat",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> ');var hb=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":db(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},mb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=cb(t),function(e,t){return!t||"object"!==db(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,pb()?Reflect.construct(t,r||[],cb(e).constructor):t.apply(e,r))}(this,t,arguments)).isFragmentFromEditor=!1,e.isCopyMode=!1,e.startDragPoint={x:0,y:0},e.draggable=null,e.bufferRange=null,e.getText=function(e){var t=ho(e);return t?t.getData(nr)||t.getData(rr):null},e}var r;return function(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}}),t&&ub(e,t)}(t,e),r=[{key:"afterInit",value:function(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=li.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||So(e),this.isFragmentFromEditor){var r=this.j.s.sel,n=r&&r.rangeCount?r.getRangeAt(0):null;n&&(this.bufferRange=n.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,function(e){return li.isElement(e)&&e.classList.contains(jf.prototype.getFullElName("item"))}(t)&&(t=t.querySelector("img")),li.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),io(this.draggable,"target",t)),this.addDragListeners()}},{key:"addDragListeners",value:function(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"onDrag",value:function(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}},{key:"onDragEnd",value:function(){this.draggable&&(li.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}},{key:"onDrop",value:function(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=this.j.s.sel,r=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(r,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,r),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}},{key:"__getWorkFragment",value:function(e,t){var r=null;if(!this.draggable&&e)r=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return sb(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?sb(e,2):void 0}}(e)||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.")}()}("1"===Xn(this.draggable,"-is-file")?["a","href"]:["img","src"]),o=n[0],i=n[1];(r=this.j.createInside.element(o)).setAttribute(i,Xn(this.draggable,"data-src")||Xn(this.draggable,"src")||""),"a"===o&&(r.textContent=Xn(r,i)||"")}else r=io(this.draggable,"target");else this.getText(t)&&(r=this.j.createInside.fromHTML(this.getText(t)));return r}},{key:"__insertFragment",value:function(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),li.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(fb($f));function gb(e,t,r){return gb=wb()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&vb(o,r.prototype),o},gb.apply(null,arguments)}function yb(e){return yb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yb(e)}function vb(e,t){return vb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vb(e,t)}function bb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _b(e){var t="function"==typeof Map?new Map:void 0;return _b=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gb(e,arguments,yb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),vb(n,e)},_b(e)}function wb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wb=function(){return!!e})()}hb([jr],mb.prototype,"onDragStart",null),hb([Va(function(e){return e.defaultTimeout/10})],mb.prototype,"onDrag",null),hb([jr],mb.prototype,"onDragEnd",null),hb([jr],mb.prototype,"onDrop",null),Oa.add("dragAndDrop",mb),eo.prototype.draggableTags=["img","jodit-media","jodit"];var Sb,Eb=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":bb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"}(Sb||(Sb={}));var kb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=yb(t),function(e,t){return!t||"object"!==bb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,wb()?Reflect.construct(t,r||[],yb(e).constructor):t.apply(e,r))}(this,t,arguments)).dragList=[],e.draggable=null,e.isCopyMode=!1,e.diffStep=10,e.startX=0,e.startY=0,e.state=Sb.IDLE,e}var r;return function(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}}),t&&vb(e,t)}(t,e),(r=[{key:"afterInit",value:function(){this.dragList=this.j.o.draggableTags?Ti(this.j.o.draggableTags).filter(Boolean).map(function(e){return e.toLowerCase()}):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=this;if("dragstart"===e.type&&this.draggable)return!1;if(!(this.state>Sb.IDLE)){var r=e.target;if(this.dragList.length&&r){var n=function(e){return Boolean(e&&t.dragList.includes(e.nodeName.toLowerCase()))},o=li.furthest(r,n,this.j.editor)||(n(r)?r:null);o&&(li.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=So(e),this.draggable=o.cloneNode(!0),io(this.draggable,"target",o),this.state=Sb.WAIT_DRAGGING,this.addDragListeners())}}}},{key:"onDrag",value:function(e){var r,n;if(this.draggable&&this.state!==Sb.IDLE){var o=e.clientX,i=e.clientY;if(!(this.state===Sb.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(this.state===Sb.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=Sb.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var a=io(this.draggable,"target");Rn(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(r=null==a?void 0:a.offsetWidth)&&void 0!==r?r:100,height:null!==(n=null==a?void 0:a.offsetHeight)&&void 0!==n?n:100}),Ia(this.j,t).appendChild(this.draggable)}Rn(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}}},{key:"onDragEnd",value:function(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=Sb.IDLE,this.draggable&&(li.safeRemove(this.draggable),this.draggable=null))}},{key:"onDrop",value:function(){if(!this.draggable||this.state<Sb.DRAGGING)this.onDragEnd();else{var e=io(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));var t=e.parentElement;this.j.s.insertNode(e,!0,!1),t&&li.isEmpty(t)&&!li.isCell(t)&&li.safeRemove(t),li.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}}},{key:"addDragListeners",value:function(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(_b($f));Eb([jr],kb.prototype,"onDragStart",null),Eb([Va(function(e){return e.defaultTimeout/10})],kb.prototype,"onDrag",null),Eb([jr],kb.prototype,"onDragEnd",null),Eb([jr],kb.prototype,"onDrop",null),Oa.add("dragAndDropElement",kb),eo.prototype.controls.file={popup:function(e,t,r){var n=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.s.insertNode(e.createInside.fromHTML('<a href="'.concat(t,'" title="').concat(r,'">').concat(r||t,"</a>")))},o=null;return t&&(li.isTag(t,"a")||li.closest(t,"a",e.editor))&&(o=li.isTag(t,"a")?t:li.closest(t,"a",e.editor)),Km(e,{filebrowser:function(e){e.files&&e.files.forEach(function(t){return n(e.baseurl+t)}),r()},upload:!0,url:function(e,t){o?(o.setAttribute("href",e),o.setAttribute("title",t)):n(e,t),r()}},o,r,!1)},tags:["a"],tooltip:"Insert file"},Oa.add("file",function(e){e.registerButton({name:"file",group:"media"})}),eo.prototype.autofocus=!1,eo.prototype.cursorAfterAutofocus="end",eo.prototype.saveSelectionOnBlur=!0,Oa.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",function(){e.isEditorMode()&&e.s.save(!0)}).on("focus",function(){e.s.restore()});var t=function(){if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){var t=li.last(e.editor,function(e){return li.isText(e)});t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",function(){e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",function(){e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",function(t){e.isEditorMode()&&t.target&&li.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})}),eo.prototype.fullsize=!1,eo.prototype.globalFullSize=!0,ds.set("fullsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> ').set("shrink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '),eo.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},update:function(e,t){var r=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=r:t.state.icon.name=r},tooltip:"Open in fullsize",mode:Zt+Qt};var xb=new Set;function Tb(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ob(e,t,r){return Ob=Rb()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&jb(o,r.prototype),o},Ob.apply(null,arguments)}function Cb(e){return Cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cb(e)}function jb(e,t){return jb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jb(e,t)}function Pb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ib(e){var t="function"==typeof Map?new Map:void 0;return Ib=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ob(e,arguments,Cb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),jb(n,e)},Ib(e)}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rb=function(){return!!e})()}Oa.add("fullsize",function(e){e.registerButton({name:"fullsize"});var t=!1,r=0,n=0,o=!1,i=function(){var i=e.container;e.events&&(t?(r=Rn(i,"height",!0),n=Rn(i,"width",!0),Rn(i,{height:e.ow.innerHeight,width:e.ow.innerWidth}),o=!0):o&&Rn(i,{height:r||"auto",width:n||"auto"}))},a=function(r){var n,o=e.container,a=e.events;if(o){if(void 0===r&&(r=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",r),e.o.fullsize=r,t=r,o.classList.toggle("jodit_fullsize",r),e.toolbar&&(rn(e)&&(null===(n=e.toolbarContainer)||void 0===n||n.appendChild(e.toolbar.container)),Rn(e.toolbar.container,"width","auto")),r?xb.add(o):xb.delete(o),e.o.globalFullSize&&(1===xb.size&&r||0===xb.size&&!r)){for(var s=o.parentNode;s&&s.nodeType!==Node.DOCUMENT_NODE&&s.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)s.classList.toggle("jodit_fullsize-box_true",r),s=s.parentNode;i()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",i),e.e.on("afterInit afterOpen",function(){var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)}).on("toggleFullSize",a).on("beforeDestruct",function(){t&&a(!1)}).on("beforeDestruct",function(){e.events&&e.e.off(e.ow,"resize",i)})}),ds.set("hr",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '),eo.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},Oa.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",function(){var t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);var r=li.closest(t.parentElement,li.isBlock,e.editor);r&&li.isEmpty(r)&&r!==e.editor&&(li.after(r,t),li.safeRemove(r));var n=li.next(t,li.isBlock,e.editor,!1);return n||(n=e.createInside.element(e.o.enter),li.after(t,n)),e.s.setCursorIn(n),!1})}),eo.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};var Ab=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Pb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Mb="__jodit_imageprocessor_binded",Db=Mb+"blob-id",Nb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Cb(r=t),function(e,t){return!t||"object"!==Pb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Rb()?Reflect.construct(r,n||[],Cb(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&jb(e,t)}(t,e),r=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){var t=ci(e,"buffer"),r=null==t?void 0:t.get(Db);if(t&&r){var n=Object.keys(r),o=!0,i=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;URL.revokeObjectURL(c)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}t.delete(Db)}}},{key:"onAfterGetValueFromEditor",value:function(e,t){if(t!==Er)return this.onBeforeSetElementValue(e)}},{key:"onBeforeSetElementValue",value:function(e){var t=this.jodit;if(t.o.imageProcessor.replaceDataURIToBlobIdInView){var r=t.buffer.get(Db);if(r){var n=Object.keys(r),o=!0,i=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0)for(var c=s.value;e.value.includes(c);)e.value=e.value.replace(c,r[c])}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}}}},{key:"afterChange",value:function(e){var t,r=this;return(t=function(){var e;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return(e=r.jodit).editor?(Yo("img",e.editor).forEach(function(t){io(t,Mb)||(io(t,Mb,!0),t.complete||e.e.on(t,"load",function r(){var n;!e.isInDestruct&&(null===(n=e.e)||void 0===n||n.fire("resize")),e.e.off(t,"load",r)}),t.src&&/^data:/.test(t.src)&&function(e,t){if(e.o.imageProcessor.replaceDataURIToBlobIdInView&&"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof URL){var r=t.src,n=function(e){for(var t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([n],{type:r})}(r);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");var o=e.buffer.get(Db)||{};o[t.src]=r,e.buffer.set(Db,o)}}(e,t),e.e.on(t,"mousedown touchstart",function(){e.s.select(t)}))}),[2]):[2]})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){Tb(i,n,o,a,s,"next",e)}function s(e){Tb(i,n,o,a,s,"throw",e)}a(void 0)})})()}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Ib($f));function Lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bb(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Fb(e){return Fb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fb(e)}function zb(e,t){return zb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zb(e,t)}function Ub(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hb=function(){return!!e})()}Ab([va(":afterGetValueFromEditor")],Nb.prototype,"onAfterGetValueFromEditor",null),Ab([va(":beforeSetElementValue")],Nb.prototype,"onBeforeSetElementValue",null),Ab([va([":change",":afterInit",":changePlace"]),qa()],Nb.prototype,"afterChange",null),Oa.add("imageProcessor",Nb),eo.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var qb=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Ub(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Vb=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=Fb(t),function(e,t){return!t||"object"!==Ub(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Hb()?Reflect.construct(t,r||[],Fb(e).constructor):t.apply(e,r))}(this,t,[e])).state=r,o.handlers=n,o}var r;return function(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}}),t&&zb(e,t)}(t,e),r=[{key:"className",value:function(){return"UIImageMainTab"}},{key:"appendChildToContainer",value:function(){}},{key:"render",value:function(){return'<div class="jodit-form__group &__editSrc">\n\t\t\t<label>~Src~</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input class="jodit-input &__imageSrc" type="text"/>\n\t\t\t\t<div class="jodit-input_group-buttons &__fixImage">\n\t\t\t\t\t\t<a class="jodit-button &__changeImage">*image*</a>\n\t\t\t\t\t\t<a class="jodit-button &__editImage">*crop*</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editTitle">\n\t\t\t<label>~Title~</label>\n\t\t\t<input type="text" class="jodit-input &__imageTitle"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlt">\n\t\t\t<label>~Alternative~</label>\n\t\t\t<input type="text" class="jodit-input &__imageAlt"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLink">\n\t\t\t<label>~Link~</label>\n\t\t\t<input type="text" class="jodit-input &__imageLink"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLinkTarget">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n\t\t\t\t<span>~Open link in new tab~</span>\n\t\t\t</label>\n\t\t</div>'}},{key:"onStateImageSrcChange",value:function(){var e,t=this;return(e=function(){return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(e){return t.getElm("imageSrc").value=t.state.values.imageSrc,[2]})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Bb(i,n,o,a,s,"next",e)}function s(e){Bb(i,n,o,a,s,"throw",e)}a(void 0)})})()}},{key:"onImageSrcChange",value:function(){this.state.values.imageSrc=this.getElm("imageSrc").value}},{key:"onEditImageClick",value:function(e){this.handlers.openImageEditor(),e.stopPropagation()}},{key:"onChangeImageClick",value:function(e){this.handlers.openImagePopup(this.getElm("changeImage")),e.stopPropagation()}},{key:"onStateTitleChange",value:function(){this.getElm("imageTitle").value=this.state.values.imageTitle}},{key:"onTitleChange",value:function(){this.state.values.imageTitle=this.getElm("imageTitle").value}},{key:"onStateAltChange",value:function(){this.getElm("imageAlt").value=this.state.values.imageAlt}},{key:"onAltChange",value:function(){this.state.values.imageAlt=this.getElm("imageAlt").value}},{key:"onStateImageLinkChange",value:function(){this.getElm("imageLink").value=this.state.values.imageLink}},{key:"onImageLinkChange",value:function(){this.state.values.imageLink=this.getElm("imageLink").value}},{key:"onStateImageLinkOpenInNewTabChange",value:function(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}},{key:"onImageLinkOpenInNewTabChange",value:function(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o,r=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(function(t){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Lb(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Lb(e,2):void 0}}(e)||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.")}()}(t),o=n[0],i=n[1];Rn(e.getElm(i),"display",r[o]?null:"none")});var n=this.getElm("changeImage"),o=Boolean(t.filebrowser.ajax.url||t.uploader.url);Rn(n,"display",o?null:"none");var i=this.getElm("editImage"),a=Boolean(t.filebrowser.ajax.url)&&r.useImageEditor;Rn(i,"display",a?null:"none"),Rn(this.getElm("fixImage"),"display",o||a?null:"none")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);qb([va("state.values.imageSrc")],Vb.prototype,"onStateImageSrcChange",null),qb([va("imageSrc:change")],Vb.prototype,"onImageSrcChange",null),qb([va("editImage:click")],Vb.prototype,"onEditImageClick",null),qb([va("changeImage:click")],Vb.prototype,"onChangeImageClick",null),qb([va("state.values.imageTitle")],Vb.prototype,"onStateTitleChange",null),qb([va("imageTitle:change")],Vb.prototype,"onTitleChange",null),qb([va("state.values.imageAlt")],Vb.prototype,"onStateAltChange",null),qb([va("imageAlt:change")],Vb.prototype,"onAltChange",null),qb([va("state.values.imageLink")],Vb.prototype,"onStateImageLinkChange",null),qb([va("imageLink:change")],Vb.prototype,"onImageLinkChange",null),qb([va("state.values.imageLinkOpenInNewTab")],Vb.prototype,"onStateImageLinkOpenInNewTabChange",null),qb([va("imageLinkOpenInNewTab:change")],Vb.prototype,"onImageLinkOpenInNewTabChange",null),qb([Ka("ready")],Vb.prototype,"hideFieldByOptions",null),Vb=qb([gi],Vb);var Wb=function(e){return/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e},Gb=function(e){return an(e)?e?e+"px":e.toString():(e=hn(e),/^[0-9]+$/.test(e)?e+"px":e)};function $b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kb(e){return Kb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kb(e)}function Yb(e,t){return Yb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yb(e,t)}function Jb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xb=function(){return!!e})()}var Qb=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Jb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Zb=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=Kb(t),function(e,t){return!t||"object"!==Jb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Xb()?Reflect.construct(t,r||[],Kb(e).constructor):t.apply(e,r))}(this,t,[e,{availableClasses:e.o.image.availableClasses}])).state=r,o.handlers=n,o}var r;return function(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}}),t&&Yb(e,t)}(t,e),r=[{key:"className",value:function(){return"UIImagePositionTab"}},{key:"render",value:function(e){var t,r=e.availableClasses;return'<div class="jodit-form__group &__editMargins">\n\t\t\t<label>~Margins~</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>\n\t\t\t\t<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlign">\n\t\t\t<label>~Align~</label>\n\t\t\t<select class="jodit-select &__align">\n\t\t\t\t<option value="">~--Not Set--~</option>\n\t\t\t\t<option value="left">~Left~</option>\n\t\t\t\t<option value="center">~Center~</option>\n\t\t\t\t<option value="right">~Right~</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editStyle">\n\t\t\t<label>~Styles~</label>\n\t\t\t<input type="text" class="jodit-input &__style"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editClass">\n\t\t\t<label>~Classes~</label>\n\t\t\t'.concat((t=[],r&&r.length>0?(t.push('<select class="jodit-input jodit-select &__classes">'),r.forEach(function(e){Mr(e)?t.push('<option value="'.concat(e,'">').concat(e,"</option>")):t.push('<option value="'.concat(e[0],'">').concat(e[1],"</option>"))}),t.push("</select>")):t.push('<input type="text" class="jodit-input &__classes"/>'),t.join("")),'\n\t\t</div>\n\t\t<div class="jodit-form__group &__editId">\n\t\t\t<label>Id</label>\n\t\t\t<input type="text" class="jodit-input &__id"/>\n\t\t</div>\n\t\t<div\n\t\t\tclass="jodit-form__group &__editBorderRadius"\n\t\t>\n\t\t\t<label>~Border radius~</label>\n\t\t\t<input type="number" class="jodit-input &__borderRadius"/>\n\t\t</div>')}},{key:"onStateAlignChange",value:function(){this.getElm("align").value=this.state.values.align}},{key:"onChangeAlign",value:function(){var e=this.getElm("align");this.state.values.align=e.value}},{key:"onStateValuesBorderRadiusChange",value:function(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}},{key:"onChangeBorderRadius",value:function(){var e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}},{key:"onStateValuesIdChange",value:function(){this.getElm("id").value=this.state.values.id}},{key:"onChangeId",value:function(){var e=this.getElm("id");this.state.values.id=e.value}},{key:"onStateValuesStyleChange",value:function(){this.getElm("style").value=this.state.values.style}},{key:"onChangeStyle",value:function(){var e=this.getElm("style");this.state.values.style=e.value}},{key:"onStateValuesClassesChange",value:function(){this.getElm("classes").value=this.state.values.classes}},{key:"onChangClasses",value:function(){var e=this.getElm("classes");this.state.values.classes=e.value}},{key:"onLockMarginClick",value:function(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}},{key:"onChangeMarginIsLocked",value:function(){var e=this,t=this.getElm("marginBottom"),r=this.getElm("marginRight"),n=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([r,t,n].forEach(function(t){Xn(t,"disabled",e.state.marginIsLocked||null)}),o.innerHTML=ds.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){var i=this.state.values.marginTop;this.state.values.marginRight=i,this.state.values.marginBottom=i,this.state.values.marginLeft=i}}},{key:"onStateValuesMarginChange",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),r=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),r.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}},{key:"onChangeMargin",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),r=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=Wb(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=Wb(t.value),this.state.values.marginBottom=Wb(r.value),this.state.values.marginLeft=Wb(n.value))}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(function(r){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return $b(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$b(e,2):void 0}}(e)||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.")}()}(r),o=n[0],i=n[1];Rn(e.getElm(i),"display",t[o]?null:"none")})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function e_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t_(e,t,r){return t_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r_(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},t_(e,t,r||e)}function r_(e){return r_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r_(e)}function n_(e,t){return n_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n_(e,t)}function o_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i_=function(){return!!e})()}Qb([Ka("ready"),va("state.values.align")],Zb.prototype,"onStateAlignChange",null),Qb([va("align:change")],Zb.prototype,"onChangeAlign",null),Qb([Ka("ready"),va("state.values.borderRadius")],Zb.prototype,"onStateValuesBorderRadiusChange",null),Qb([va("borderRadius:change")],Zb.prototype,"onChangeBorderRadius",null),Qb([Ka("ready"),va("state.values.id")],Zb.prototype,"onStateValuesIdChange",null),Qb([va("id:change")],Zb.prototype,"onChangeId",null),Qb([Ka("ready"),va("state.values.style")],Zb.prototype,"onStateValuesStyleChange",null),Qb([va("style:change")],Zb.prototype,"onChangeStyle",null),Qb([Ka("ready"),va("state.values.classes")],Zb.prototype,"onStateValuesClassesChange",null),Qb([va("classes:change")],Zb.prototype,"onChangClasses",null),Qb([va("lockMargin:click")],Zb.prototype,"onLockMarginClick",null),Qb([Ka("ready"),va("state.marginIsLocked")],Zb.prototype,"onChangeMarginIsLocked",null),Qb([Ka("ready"),va(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],Zb.prototype,"onStateValuesMarginChange",null),Qb([va(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],Zb.prototype,"onChangeMargin",null),Qb([Ka("ready")],Zb.prototype,"hideFieldByOptions",null),Zb=Qb([gi],Zb);var a_=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":o_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s_=function(e){function t(e,r,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=r_(t),function(e,t){return!t||"object"!==o_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,i_()?Reflect.construct(t,r||[],r_(e).constructor):t.apply(e,r))}(this,t,[e])).state=r,i.handlers=o,i.__mainTab=new Vb(i.jodit,i.state,i.handlers),i.__positionTab=new Zb(i.jodit,i.state,i.handlers),i.getElm("tabsBox").appendChild($m(e,[{name:"Image",content:i.__mainTab},{name:"Advanced",content:i.__positionTab}],n)),i.setMod("lock-size",i.state.sizeIsLocked),i.append(i.__mainTab).append(i.__positionTab),i}var r;return function(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}}),t&&n_(e,t)}(t,e),r=[{key:"className",value:function(){return"UIImagePropertiesForm"}},{key:"appendChildToContainer",value:function(){}},{key:"getElm",value:function(e){var r=t_(r_(t.prototype),"getElm",this).call(this,e);if(r)return r;var n=!0,o=!1,i=void 0;try{for(var a,s=this.elements[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value.getElm(e);if(l)return l}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return null}},{key:"render",value:function(){return'<form>\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="&__view-box">\n\t\t\t\t\t<div class="&__imageView">\n\t\t\t\t\t\t<img class="&__imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="jodit-form__group &__imageSizes">\n\t\t\t\t\t\t<input type="text" class="jodit-input &__imageWidth"/>\n\t\t\t\t\t\t<a class="&__lockSize">'.concat(ds.get("lock"),'</a>\n\t\t\t\t\t\t<input type="text" class="&__imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>\n\t\t</div>\n\t</form>')}},{key:"onChangeSizeIsLocked",value:function(){var e=this.getElm("lockSize"),t=this.getElm("imageWidth");e.innerHTML=ds.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(t,"change")}},{key:"onLockSizeClick",value:function(){this.state.sizeIsLocked=!this.state.sizeIsLocked}},{key:"onStateValuesSizeChange",value:function(){var e=this.getElm("imageWidth"),t=this.getElm("imageHeight");e!==this.j.od.activeElement&&(e.value=this.state.values.imageWidth.toString()),t!==this.j.od.activeElement&&(t.value=this.state.values.imageHeight.toString())}},{key:"onImageWidthChange",value:function(e){var t=this.getElm("imageWidth"),r=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!Zr(t.value)||!Zr(r.value))return this.state.values.imageWidth=t.value,void(this.state.values.imageHeight=r.value);var n=parseFloat(t.value),o=parseFloat(r.value);e.target===t?(this.state.values.imageWidth=n,this.state.values.imageHeight=Math.round(n/this.state.ratio)):(this.state.values.imageWidth=Math.round(o*this.state.ratio),this.state.values.imageHeight=o)}},{key:"onStateValuesImageSrcChange",value:function(){var e=this.state.values.imageSrc;if(e){Xn(this.getElm("imageViewSrc"),"src",e);var t=new Image;t.src=e,this.state.image=t}}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(function(r){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return e_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e_(e,2):void 0}}(e)||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.")}()}(r),o=n[0],i=n[1];Rn(e.getElm(i),"display",t[o]?null:"none")})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(js);function l_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function c_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function u_(e,t,r){return d_.apply(this,arguments)}function d_(){var e;return e=function(e,t,r){var n,o,i,a,s,l;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(c){switch(c.label){case 0:return[4,e.decode()];case 1:return c.sent(),n=Rn(e,"width",!0)||Xn(e,"width")||!1,o=Rn(e,"height",!0)||Xn(e,"height")||!1,t.imageWidth=!1!==n?Wb(n):e.offsetWidth||e.naturalWidth,Zr(t.imageWidth)?t.imageHeight=!1!==o?Wb(o):e.offsetHeight||e.naturalHeight:t.imageHeight=o||"",i=t.imageWidth,a=t.imageHeight,s=parseFloat(i.toString()),Zr(i)&&Zr(a)?!1===o?(t.imageHeight=Math.round(s/r.ratio),r.sizeIsLocked=!0,[2]):(l=parseFloat(a.toString()),r.sizeIsLocked=Math.abs(s-l*r.ratio)<1,[2]):(r.sizeIsLocked=!1,[2])}})},d_=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){c_(i,n,o,a,s,"next",e)}function s(e){c_(i,n,o,a,s,"throw",e)}a(void 0)})},d_.apply(this,arguments)}function f_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function p_(){var e;return e=function(e,t){var r,n;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(o){return r=t.sourceImage,n=t.values,function(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=Rn(e,"float"):"block"===Rn(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}(r,n),n.borderRadius=parseInt(r.style.borderRadius||"0",10)||0,n.id=Xn(r,"id")||"",n.imageTitle=Xn(r,"title")||"",n.imageAlt=Xn(r,"alt")||"",n.style=Xn(r,"style")||"",n.classes=(Xn(r,"class")||"").replace(/jodit_focused_image[\s]*/,""),function(e,t,r){var n=!0,o=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(function(r){var i=e.style.getPropertyValue(Tn(r));if(!i)return o=!0,void(t[r]=0);/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),t[r]=i,(o&&t[r]||n&&"marginTop"!==r&&t[r]!==t.marginTop)&&(n=!1)}),r.marginIsLocked=n}(r,n,t),function(e,t,r){var n=li.closest(e.sourceImage,"a",t.editor);n?(r.imageLink=Xn(n,"href")||"",r.imageLinkOpenInNewTab="_blank"===Xn(n,"target")):(r.imageLink="",r.imageLinkOpenInNewTab=!1)}(t,e,n),n.imageSrc=Xn(r,"src")||"",[2,u_(r,n,t)]})},p_=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){f_(i,n,o,a,s,"next",e)}function s(e){f_(i,n,o,a,s,"throw",e)}a(void 0)})},p_.apply(this,arguments)}function h_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function m_(e,t,r){return m_=__()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&y_(o,r.prototype),o},m_.apply(null,arguments)}function g_(e){return g_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g_(e)}function y_(e,t){return y_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y_(e,t)}function v_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function b_(e){var t="function"==typeof Map?new Map:void 0;return b_=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m_(e,arguments,g_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y_(n,e)},b_(e)}function __(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(__=function(){return!!e})()}a_([Ka("ready"),va("state.sizeIsLocked")],s_.prototype,"onChangeSizeIsLocked",null),a_([va("lockSize:click")],s_.prototype,"onLockSizeClick",null),a_([Ka("ready"),va(["state.values.imageWidth","state.values.imageHeight"])],s_.prototype,"onStateValuesSizeChange",null),a_([va(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),qa()],s_.prototype,"onImageWidthChange",null),a_([Ka("ready"),va("state.values.imageSrc")],s_.prototype,"onStateValuesImageSrcChange",null),a_([Ka("ready")],s_.prototype,"hideFieldByOptions",null),s_=a_([gi],s_);var w_=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":v_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},S_=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=g_(t),function(e,t){return!t||"object"!==v_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,__()?Reflect.construct(t,r||[],g_(e).constructor):t.apply(e,r))}(this,t,arguments)).state={image:new Image,sourceImage:new Image,get ratio(){var e=this.image;return e.naturalWidth/e.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},e.activeTabState={activeTab:"Image"},e}var r;return function(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}}),t&&y_(e,t)}(t,e),r=[{key:"form",get:function(){var e=this;return new s_(this.j,this.state,this.activeTabState,{openImageEditor:function(){return function(e,t){var r=Xn(t.image,"src")||"",n=e.c.element("a"),o=function(){n.host===location.host||e.confirm("You can only edit your own images. Download this image on the host?",function(r){r&&e.uploader&&e.uploader.uploadRemoteImage(n.href.toString(),function(r){e.alert("The image has been successfully uploaded to the host!",function(){Mr(r.newfilename)&&(t.values.imageSrc=r.baseurl+r.newfilename)})},function(t){e.alert("There was an error loading %s",t.message)})})};n.href=r,e.filebrowser.dataProvider.getPathByUrl(n.href.toString()).then(function(o){hf.call(e.filebrowser,n.href,o.name,o.path,o.source,function(){var e=(new Date).getTime();t.values.imageSrc=r+(-1!==r.indexOf("?")?"":"?")+"&_tmp="+e.toString()},function(t){e.alert(t.message)})}).catch(function(t){e.alert(t.message,o)})}(e.j,e.state)},openImagePopup:function(t){return function(e,t,r,n){var o=new Uc(t),i=function(){o.close(),o.destruct()};o.setContent(Km(e,{upload:function(e){e.files&&e.files.length&&(r.values.imageSrc=e.baseurl+e.files[0]),i()},filebrowser:function(){var e,t=(e=function(e){return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return e&&Ar(e.files)&&e.files.length&&(r.values.imageSrc=e.files[0],i()),[2]})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){l_(i,n,o,a,s,"next",e)}function s(e){l_(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()},r.image,i)).open(function(){return Ji(n)})}(e.j,e.dialog,e.state,t)}})}},{key:"dialog",get:function(){var e=this,t=this.j,r=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(function(){(function(e,t,r){var n=t.values,o=n.style,i=n.imageSrc,a=n.borderRadius,s=n.imageTitle,l=n.imageAlt,c=n.imageLink,u=n.imageWidth,d=n.imageHeight,f=n.marginTop,p=n.marginRight,h=n.marginBottom,m=n.marginLeft,g=n.imageLinkOpenInNewTab,y=n.align,v=n.classes,b=n.id,_=e.o;_.image.editStyle&&Xn(r,"style",o||null),i?(Xn(r,"src",i),r.style.borderRadius=a?a+"px":"",Xn(r,"title",s||null),Xn(r,"alt",l||null),function(e,t,r,n){var o=li.closest(t,"a",e.editor);r?(o||(o=li.wrap(t,"a",e.createInside)),Xn(o,"href",r),Xn(o,"target",n?"_blank":null)):o&&o.parentNode&&o.parentNode.replaceChild(t,o)}(e,r,c,g),function(e,t,r,n){if(t!==e.offsetWidth||r!==e.offsetHeight){var o=t?Gb(t):null,i=r?Gb(r):null;Rn(e,{width:o,height:o&&n?null:i}),Xn(e,"width",o&&Zr(t)&&Xn(e,"width")?o:null),Xn(e,"width")&&!n||(i=null),Xn(e,"height",i)}}(r,u,d,t.sizeIsLocked),e.o.image.editMargins&&function(e,t,r,n,o,i,a){var s=[t,r,n,o],l=function(e,t){var r=Rn(i,e),n=Gb(t);r.toString()!==n.toString()&&Rn(i,e,n)};if(a)l("margin",t);else{var c=["margin-top","margin-right","margin-bottom","margin-left"];s.forEach(function(e,t){l(c[t],e)})}}(0,f,p,h,m,r,t.marginIsLocked),_.image.editClass&&Xn(r,"class",v||null),_.image.editId&&Xn(r,"id",b||null),_.image.editAlign&&Mn(r,y)):li.safeRemove(r)})(t,e.state,e.state.sourceImage),t.synchronizeValues(),r.close()}),n.remove.onAction(function(){t.s.removeNode(e.state.sourceImage),r.close()}),n.cancel.onAction(function(){r.close()}),r.setHeader(t.i18n("Image properties")),r.setContent(this.form),r.setFooter([[n.cancel,n.remove],n.check]),t.e.on(r,"afterClose",function(){e.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(e.state.sourceImage)}),r.setSize(t.o.image.dialogWidth),lo(t,r.container),r}},{key:"__buttons",get:function(){var e=this.j;return{check:cl(e,"ok","Apply","primary"),remove:cl(e,"bin","Delete"),cancel:cl(e,"cancel","Cancel")}}},{key:"open",value:function(){var e=this;return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise(function(t,r){return function(e,t){return p_.apply(this,arguments)}(e.j,e.state).then(t,r)}).catch(function(t){Hr(t)||e.dialog.message.error(t.message)}).finally(function(){return e.__unlock()}),!1}},{key:"__lock",value:function(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(function(e){return e.state.disabled=!0})}},{key:"__unlock",value:function(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(function(e){return e.state.disabled=!1})}},{key:"afterInit",value:function(e){var t=this,r=this;e.e.on("afterConstructor changePlace",function(){e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",function(n){var o=n.target;if(li.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===t.j.e.fire("openOnDblClick",o))return;r.state.sourceImage=o,r.state.image=o.cloneNode(!0),e.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),r.open())}else n.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",function(e){r.state.sourceImage=e,t.state.image=e.cloneNode(!0),t.open()})}},{key:"onStateValuesImageSrcChange",value:function(){var e,t=this;return(e=function(){var e,r,n,o,i;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(a){switch(a.label){case 0:if(e=t.state,r=e.image,n=e.values,!r.src)return[2];a.label=1;case 1:return a.trys.push([1,3,4,5]),t.__lock(),[4,r.decode()];case 2:return a.sent(),t.state.sizeIsLocked&&Zr(n.imageWidth)&&(o=parseFloat(n.imageWidth.toString()),n.imageHeight=Math.round(o/t.state.ratio)),t.j.e.fire("updateImageProperties.imageproperties",r),[3,5];case 3:return i=a.sent(),t.j.alert(i.message),[3,5];case 4:return t.__unlock(),[7];case 5:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h_(i,n,o,a,s,"next",e)}function s(e){h_(i,n,o,a,s,"throw",e)}a(void 0)})})()}},{key:"beforeDestruct",value:function(e){var t,r,n;Object.values(null!==(t=ci(this,"__buttons"))&&void 0!==t?t:{}).forEach(function(e){return e.destruct()}),null===(r=ci(this,"dialog"))||void 0===r||r.destruct(),null===(n=ci(this,"form"))||void 0===n||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(b_($f));w_([ui],S_.prototype,"form",null),w_([ui],S_.prototype,"dialog",null),w_([ui],S_.prototype,"__buttons",null),w_([va("state.image")],S_.prototype,"onStateValuesImageSrcChange",null),Oa.add("imageProperties",S_);var E_=function(e,t){return"".concat(li.isCell(t)?"padding":"margin").concat("rtl"===e?"Right":"Left")};ds.set("indent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("outdent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),eo.prototype.controls.indent={tooltip:"Increase Indent"},eo.prototype.controls.outdent={isDisabled:function(e){var t=e.s.current();if(t){var r=li.closest(t,li.isBlock,e.editor);if(r){var n=E_(e.o.direction,r);return!r.style[n]||parseInt(r.style[n],10)<=0}}return!0},tooltip:"Decrease Indent"},eo.prototype.indentMargin=10;var k_=function(e,t,r,n){if(t&&!e.has(t)){var o=E_(r.o.direction,t);e.add(t);var i=t.style[o]?parseInt(t.style[o],10):0;i+=r.o.indentMargin*("outdent"===n?-1:1),t.style[o]=i>0?i+"px":"",Xn(t,"style")||Xn(t,"style",null)}};function x_(e,t,r){return x_=P_()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&O_(o,r.prototype),o},x_.apply(null,arguments)}function T_(e){return T_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T_(e)}function O_(e,t){return O_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O_(e,t)}function C_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function j_(e){var t="function"==typeof Map?new Map:void 0;return j_=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return x_(e,arguments,T_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O_(n,e)},j_(e)}function P_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P_=function(){return!!e})()}Oa.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});var t=function(t){var r=new Set,n=e.o,o=n.enter,i=n.enterBlock,a=o.toLowerCase()===Jt,s=e.s.current();if(a&&e.s.isCollapsed()&&s){var l=li.wrapNextInline(s,i,e);return k_(r,l,e,t),!1}return e.s.eachSelection(function(n){e.s.save();var s=!!n&&li.up(n,li.isBlock,e.editor);if(!s&&n&&(s=so(a?li.wrapNextInline:li.wrapInline,n,a?i:o.toLowerCase(),e)),!s)return e.s.restore(),!1;k_(r,s,e,t),e.s.restore()}),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}),ds.set("justify",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '),eo.prototype.controls.align={name:"left",tooltip:"Align",update:function(e,t){var r=t.control,n=e.s.current();if(n){var o=Rn(li.closest(n,li.isBlock,e.editor)||e.editor,"text-align").toString();r.defaultValue&&-1!==r.defaultValue.indexOf(o)&&(o="left");var i=r.list,a=r.data;a&&a.currentValue!==o&&i&&(ln(i)?i[o]:i.includes(o))&&(e.o.textIcons||"select"===r.component?t.state.text=o:t.state.icon.name=o,a.currentValue=o)}},isActive:function(e,t){var r=e.s.current();if(!r||!t.control.defaultValue)return!1;var n=li.closest(r,li.isBlock,e.editor)||e.editor;return-1===t.control.defaultValue.indexOf(Rn(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},eo.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},eo.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},eo.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},eo.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},Oa.add("justify",function(e){e.registerButton({name:"align",group:"indent"});var t=function(t){return e.s.focus(),e.s.eachSelection(function(r){if(r){var n=li.up(r,li.isBlock,e.editor);n||(n=li.wrapInline(r,e.o.enterBlock,e)),Nn(t,n)}}),!1};e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)});var I_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=T_(r=t),function(e,t){return!t||"object"!==C_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,P_()?Reflect.construct(r,n||[],T_(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&O_(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"onKeyDownArrow",value:function(e){var t;if(e.key===Ht&&this.j.selection.isCollapsed()){var r=this.j.selection.range,n=r.endContainer,o=r.endOffset;if(li.isText(n)&&(null===(t=n.nodeValue)||void 0===t?void 0:t.length)===o){var i=n.parentNode;li.isInlineBlock(i)&&!li.findNotEmptyNeighbor(i,!1,this.j.editor)&&li.after(i,this.j.createInside.text(bt))}}}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(j_($f));function R_(e,t,r){return R_=L_()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&M_(o,r.prototype),o},R_.apply(null,arguments)}function A_(e){return A_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A_(e)}function M_(e,t){return M_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M_(e,t)}function D_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function N_(e){var t="function"==typeof Map?new Map:void 0;return N_=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return R_(e,arguments,A_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),M_(n,e)},N_(e)}function L_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L_=function(){return!!e})()}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":C_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([va(":keydown")],I_.prototype,"onKeyDownArrow",null),Oa.add("keyArrowOutside",I_),eo.prototype.limitWords=!1,eo.prototype.limitChars=!1,eo.prototype.limitHTML=!1;var B_=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":D_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=A_(r=t),function(e,t){return!t||"object"!==D_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,L_()?Reflect.construct(r,n||[],A_(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&M_(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this,r=e.o,n=r.limitWords,o=r.limitChars;if(e&&(n||o)){var i=null;e.e.off(".limit").on("beforePaste.limit",function(){i=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",function(){if(t.__shouldDenyInput(!0)&&i)return e.history.snapshot.restore(i),e.e.fire("denyPaste.limit"),!1})}}},{key:"shouldPreventInsertHTML",value:function(e){return(!e||!(Yt.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}},{key:"__shouldDenyInput",value:function(e){var t=this.jodit,r=t.o,n=r.limitWords,o=r.limitChars,i=t.o.limitHTML?t.value:t.text,a=this.__splitWords(i);if(n&&z_(a.length,n,e))return t.e.fire("denyWords.limit limit.limit"),!0;var s=Boolean(o&&z_(a.join("").length,o,e));return s&&t.e.fire("denyChars.limit limit.limit"),s}},{key:"checkPreventKeyPressOrPaste",value:function(e){if(this.shouldPreventInsertHTML(e))return!1}},{key:"checkPreventChanging",value:function(e,t){var r=this.jodit;this.__shouldDenyInput(!0)&&(r.value=t)}},{key:"__splitWords",value:function(e){return e.replace(_t(),"").split(Et()).filter(function(e){return e.length})}},{key:"beforeDestruct",value:function(e){e.e.off(".limit")}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(N_($f));function z_(e,t,r){return r?e>t:e>=t}B_([jr],F_.prototype,"checkPreventKeyPressOrPaste",null),B_([jr],F_.prototype,"checkPreventChanging",null),Oa.add("limit",F_),eo.prototype.defaultLineHeight=null,ds.set("line-height",'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '),eo.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:function(e,t,r){var n=r.control;return po(e,t,{control:n},function(e){return e})}};const U_={"Line height":"ارتفاع الخط"},H_={"Line height":"Výška čáry"},q_={"Line height":"Zeilenhöhe"},V_={"Line height":"Altura de la línea"},W_={"Line height":"ارتفاع خط"},G_={"Line height":"Rivin korkeus"},$_={"Line height":"Hauteur de ligne"},K_={"Line height":"גובה שורה"},Y_={"Line height":"Vonal magassága"},J_={"Line height":"Tinggi baris"},X_={"Line height":"Altezza linea"},Q_={"Line height":"ラインの高さ"},Z_={"Line height":"선 높이"},ew={"Line height":"Зураасны өндөр"},tw={"Line height":"Lijnhoogte"},rw={"Line height":"Wysokość linii"},nw={"Line height":"Altura da linha"},ow={"Line height":"Высота линии"},iw={"Line height":"Çizgi yüksekliği"},aw={"Line height":"Висота лінії"},sw={"Line height":"线高"},lw={"Line height":"行高"};function cw(e,t,r){return cw=hw()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&dw(o,r.prototype),o},cw.apply(null,arguments)}function uw(e){return uw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uw(e)}function dw(e,t){return dw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dw(e,t)}function fw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function pw(e){var t="function"==typeof Map?new Map:void 0;return pw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return cw(e,arguments,uw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dw(n,e)},pw(e)}function hw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hw=function(){return!!e})()}var mw=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=uw(t),function(e,t){return!t||"object"!==fw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,hw()?Reflect.construct(t,r||[],uw(e).constructor):t.apply(e,r))}(this,t,[e])).buttons=[{name:"lineHeight",group:"font"}],ja(L),r}var r;return function(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}}),t&&dw(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){Rn(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}},{key:"applyLineHeight",value:function(e,t,r){var n,o=this.j,i=o.s,a=o.createInside,s=o.editor,l=o.o;i.isFocused()||i.focus(),i.save();var c=function(e){var t=li.closest(e,li.isBlock,s);t||(t=li.wrap(e,l.enter,a));var o=Rn(t,"lineHeight");void 0===n&&(n=o.toString()!==r.toString()),Rn(t,"lineHeight",n?r:null)};try{if(i.isCollapsed()){var u=a.fake();i.insertNode(u,!1,!1),c(u),li.safeRemove(u)}else i.eachSelection(c)}finally{i.restore()}}},{key:"beforeDestruct",value:function(e){Rn(e.editor,{lineHeight:null})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(pw($f));function gw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yw(e,t,r){if(!t.isInDestruct){(function(e){return Boolean(e&&"drop"===e.type)})(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);var n=t.e.fire("beforePasteInsert",r);!Nr(n)&&(Mr(n)||an(n)||li.isNode(n))&&(r=n),Mr(r)&&(r=function(e){var t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));var r=e.search(/<!--EndFragment-->/i);return-1!==r&&(e=e.substring(0,r)),e}(r)),t.s.insertHTML(r)}}function vw(e,t,r,n,o){if(!1!==e.e.fire("beforeOpenPasteDialog",t,r,n,o)){var i=e.confirm('<div style="word-break: normal; white-space: normal">'.concat(e.i18n(t),"</div>"),e.i18n(r)),a=o.map(function(t){var r=t.text,o=t.value;return cl(e,{text:r,name:r.toLowerCase(),tabIndex:0}).onAction(function(){i.close(),n(o)})});i.e.one(i,"afterClose",function(){e.s.isFocused()||e.s.focus()});var s=cl(e,{text:"Cancel",tabIndex:0}).onAction(function(){i.close()});return i.setFooter(function(e){return function(e){if(Array.isArray(e))return gw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gw(e,t):void 0}}(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.")}()}(a).concat([s])),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",i,t,r,n,o),i}}function bw(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":fw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([jr],mw.prototype,"applyLineHeight",null),Oa.add("lineHeight",mw),eo.prototype.mediaFakeTag="jodit-media",eo.prototype.mediaInFakeBlock=!0,eo.prototype.mediaBlocks=["video","audio"],Oa.add("media",function(e){var t="jodit_fake_wrapper",r=e.options,n=r.mediaFakeTag,o=r.mediaBlocks;r.mediaInFakeBlock&&e.e.on("afterGetValueFromEditor",function(e){var r=new RegExp("<".concat(n,"[^>]+data-").concat(t,"[^>]+>([^]+?)</").concat(n,">"),"ig");r.test(e.value)&&(e.value=e.value.replace(r,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(function(){e.isDestructed||e.getMode()===Zt||Yo(o.join(","),e.editor).forEach(function(r){io(r,t)||(io(r,t,!0),function(r){if(r.parentNode&&Xn(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{var o=e.createInside.element(n,function(e,t){return t in e?Object.defineProperty(e,t,{value:1,enumerable:!0,configurable:!0,writable:!0}):e[t]=1,e}({"data-jodit-temp":1,contenteditable:!1,draggable:!0},"data-".concat(t)));Xn(o,"style",Xn(r,"style")),o.style.display="inline-block"===r.style.display?"inline-block":"block",o.style.width=r.offsetWidth+"px",o.style.height=r.offsetHeight+"px",r.parentNode&&r.parentNode.insertBefore(o,r),o.appendChild(r),r=o}e.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",function(){e.s.setCursorAfter(r)})}(r))})},e.defaultTimeout))}),eo.prototype.mobileTapTimeout=300,eo.prototype.toolbarAdaptive=!0,eo.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],eo.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],eo.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],eo.prototype.controls.dots={mode:Zt+Qt,popup:function(e,t,r,n){var o=n.control.data;return void 0===o&&(o={toolbar:nd(e),rebuild:function(){var t,r;if(n){var i=e.e.fire("getDiffButtons.mobile",n.closest(Tu));if(i&&o){o.toolbar.build(Ti(i));var a=(null===(r=null===(t=e.toolbar)||void 0===t?void 0:t.firstButton)||void 0===r?void 0:r.container.offsetWidth)||36;o.toolbar.container.style.width=3*(a+4)+"px"}}}},n.control.data=o),o.rebuild(),o.toolbar},tooltip:"Show all"},Oa.add("mobile",function(e){var t=0,r=Ti(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",function(r){if(r.changedTouches&&r.changedTouches.length){var n=(new Date).getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(r.clientX,r.clientY))}}),e.e.on("getDiffButtons.mobile",function(t){if(t===e.toolbar){var n=qs(Ti(e.o.buttons),e),o=qs(r,e);return zr(n).reduce(function(e,t){return o.has(t)||e.push(t),e},[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",function(){var t,n;if(e.o.toolbar){var o=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,i=e.isFullSize||o>=e.o.sizeLG?Ti(e.o.buttons):o>=e.o.sizeMD?Ti(e.o.buttonsMD):o>=e.o.sizeSM?Ti(e.o.buttonsSM):Ti(e.o.buttonsXS);i.toString()!==r.toString()&&(r=i,e.e.fire("closeAllPopups"),null===(n=e.toolbar)||void 0===n||n.setRemoveButtons(e.o.removeButtons).build(r.concat(e.o.extraButtons)))}}).on(e.ow,"load resize",function(){return e.e.fire("recalcAdaptive")})}),eo.prototype.askBeforePasteHTML=!0,eo.prototype.processPasteHTML=!0,eo.prototype.scrollToPastedContent=!0,eo.prototype.pasteExcludeStripTags=["br","hr"],eo.prototype.pasteHTMLActionList=[{value:sr,text:"Keep"},{value:cr,text:"Insert as Text"},{value:ur,text:"Insert only Text"}],eo.prototype.memorizeChoiceWhenPasteFragment=!1,eo.prototype.nl2brInPlainText=!0;var _w="pasteStorage";function ww(e,t,r){return ww=Tw()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Ew(o,r.prototype),o},ww.apply(null,arguments)}function Sw(e){return Sw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sw(e)}function Ew(e,t){return Ew=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ew(e,t)}function kw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function xw(e){var t="function"==typeof Map?new Map:void 0;return xw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ww(e,arguments,Sw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ew(n,e)},xw(e)}function Tw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tw=function(){return!!e})()}eo.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(e,t,r){var n,o=r.control;return(n=function(){var t,r,n,i,a,s,l;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(c){switch(c.label){case 0:if(o.name===_w)return e.execCommand("showPasteStorage"),[2];if(e.s.focus(),t="",r=!0,!navigator.clipboard)return[3,11];c.label=1;case 1:return c.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(n=c.sent())&&n.length?[4,n[0].getType(rr)]:[3,5];case 3:return i=c.sent(),[4,new Response(i).text()];case 4:t=c.sent(),c.label=5;case 5:return r=!1,[3,7];case 6:return a=c.sent(),ft||console.log(a),[3,7];case 7:if(!r)return[3,11];c.label=8;case 8:return c.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return t=c.sent(),r=!1,[3,11];case 10:return s=c.sent(),ft||console.log(s),[3,11];case 11:return r&&(t=e.buffer.get(Sr)||"",r=0===t.length),l=e.value,r?(e.ed.execCommand("paste"),!(r=l===e.value)&&e.e.fire("afterPaste")):t.length?(yw(null,e,t),e.e.fire("afterPaste")):r&&e.alert("Your browser doesn't support direct access to the clipboard.",function(){e.s.focus()}),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){bw(i,r,o,a,s,"next",e)}function s(e){bw(i,r,o,a,s,"throw",e)}a(void 0)})})()},list:function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},_w,"Paste Storage"),isChildDisabled:function(e){return e.e.fire("pasteStorageList")<2}};var Ow=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":kw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Cw=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Sw(t),function(e,t){return!t||"object"!==kw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Tw()?Reflect.construct(t,r||[],Sw(e).constructor):t.apply(e,r))}(this,t,arguments)).pasteStack=new oi(20),e._isDialogOpened=!1,e}var r;return function(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}}),t&&Ew(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",function(e){return t.pasteStack.push(e)}),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}},{key:"beforeDestruct",value:function(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}},{key:"onPaste",value:function(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}},{key:"customPasteProcess",value:function(e){if(this.j.o.processPasteHTML){var t=ho(e),r=[null==t?void 0:t.getData(rr),null==t?void 0:t.getData(nr),null==t?void 0:t.getData(or)],n=!0,o=!1,i=void 0;try{for(var a,s=r[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;if(Kr(l)&&(this.j.e.fire("processHTML",e,l,{plain:r[0],html:r[1],rtf:r[2]})||this.processHTML(e,l)))return!1}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}}}},{key:"defaultPasteProcess",value:function(e){var t=ho(e),r=(null==t?void 0:t.getData(nr))||(null==t?void 0:t.getData(rr));if(t&&r&&""!==hn(r)){var n=this.j.e.fire("processPaste",e,r,function(e){var t=e.types,r="";if(Ar(t)||"[object DOMStringList]"==={}.toString.call(t))for(var n=0;n<t.length;n+=1)r+=t[n]+";";else r=(t||rr).toString()+";";return r}(t));void 0!==n&&(r=n),(Mr(r)||li.isNode(r))&&this.__insertByType(e,r,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}},{key:"processHTML",value:function(e,t){var r=this;if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){var n=this.pasteStack.find(function(e){return e.html===t});if(n)return this.__insertByType(e,t,n.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;var o=vw(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",function(n){r._isDialogOpened=!1,r.__insertByType(e,t,n)},this.j.o.pasteHTMLActionList);return o&&(this._isDialogOpened=!0,o.e.on("beforeClose",function(){r._isDialogOpened=!1})),!0}},{key:"__insertByType",value:function(e,t,r){if(this.pasteStack.push({html:t,action:r}),Mr(t))switch(this.j.buffer.set(Sr,t),r){case lr:t=ji(t);break;case ur:t=Li(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case cr:t=Pi(t);break;default:var n=this.j.e.fire("onCustomPasteHTMLOption",r,t,e);"string"==typeof n&&(t=n)}yw(e,this.j,t)}},{key:"onProcessPasteReplaceNl2Br",value:function(e,t,r){if(r===rr+";"&&!Kr(t))return Ii(t)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(xw($f));function jw(e,t,r){return jw=Mw()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Iw(o,r.prototype),o},jw.apply(null,arguments)}function Pw(e){return Pw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pw(e)}function Iw(e,t){return Iw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Iw(e,t)}function Rw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Aw(e){var t="function"==typeof Map?new Map:void 0;return Aw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return jw(e,arguments,Pw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Iw(n,e)},Aw(e)}function Mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mw=function(){return!!e})()}Ow([jr],Cw.prototype,"onPaste",null),Ow([jr],Cw.prototype,"onProcessPasteReplaceNl2Br",null),Oa.add("paste",Cw),eo.prototype.askBeforePasteFromWord=!0,eo.prototype.processPasteFromWord=!0,eo.prototype.defaultActionOnPasteFromWord=null,eo.prototype.pasteFromWordActionList=[{value:sr,text:"Keep"},{value:cr,text:"Clean"},{value:ur,text:"Insert only Text"}];var Dw=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=Pw(r=t),function(e,t){return!t||"object"!==Rw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Mw()?Reflect.construct(r,n||[],Pw(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&Iw(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"processWordHTML",value:function(e,t,r){var n=this,o=this.j,i=o.o,a=i.processPasteFromWord,s=i.askBeforePasteFromWord,l=i.defaultActionOnPasteFromWord,c=i.defaultActionOnPaste,u=i.pasteFromWordActionList;return!(!a||!Yr(t)||(s?vw(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",function(o){n.insertFromWordByType(e,t,o,r)},u):this.insertFromWordByType(e,t,l||c,r),0))}},{key:"insertFromWordByType",value:function(e,t,r,n){var o;switch(r){case sr:t=Ci(t);var i=null===(o=this.j.events)||void 0===o?void 0:o.fire("beautifyHTML",t);Mr(i)&&(t=i);break;case cr:t=ji(t);break;case ur:t=Li(ji(t))}yw(e,this.j,t)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Aw($f));function Nw(e,t,r){return Nw=zw()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Bw(o,r.prototype),o},Nw.apply(null,arguments)}function Lw(e){return Lw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lw(e)}function Bw(e,t){return Bw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bw(e,t)}function Fw(e){var t="function"==typeof Map?new Map:void 0;return Fw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Nw(e,arguments,Lw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bw(n,e)},Fw(e)}function zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zw=function(){return!!e})()}Dw.requires=["paste"],function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Rw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)}([va(":processHTML")],Dw.prototype,"processWordHTML",null),Oa.add("pasteFromWord",Dw);var Uw=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Lw(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,zw()?Reflect.construct(t,r||[],Lw(e).constructor):t.apply(e,r))}(this,t,arguments)).currentIndex=0,e.list=[],e.container=null,e.listBox=null,e.previewBox=null,e.dialog=null,e.paste=function(){if(e.j.s.focus(),e.j.s.insertHTML(e.list[e.currentIndex]),0!==e.currentIndex){var t=e.list[0];e.list[0]=e.list[e.currentIndex],e.list[e.currentIndex]=t}e.dialog&&e.dialog.close(),e.j.synchronizeValues(),e.j.e.fire("afterPaste")},e.onKeyDown=function(t){var r=e.currentIndex;-1!==[Ut,qt,Lt].indexOf(t.key)&&(t.key===Ut&&(0===r?r=e.list.length-1:r-=1),t.key===qt&&(r===e.list.length-1?r=0:r+=1),t.key!==Lt?(r!==e.currentIndex&&e.selectIndex(r),t.stopImmediatePropagation(),t.preventDefault()):e.paste())},e.selectIndex=function(t){e.listBox&&zr(e.listBox.childNodes).forEach(function(r,n){r.classList.remove("jodit_active"),t===n&&e.previewBox&&(r.classList.add("jodit_active"),e.previewBox.innerHTML=e.list[t],r.focus())}),e.currentIndex=t},e.showDialog=function(){e.list.length<2||(e.dialog||e.createDialog(),e.listBox&&(e.listBox.innerHTML=""),e.previewBox&&(e.previewBox.innerHTML=""),e.list.forEach(function(t,r){var n=e.j.c.element("a");n.textContent=r+1+". "+t.replace(Et(),""),e.j.e.on(n,"keydown",e.onKeyDown),Xn(n,"href","#"),Xn(n,"data-index",r.toString()),Xn(n,"tab-index","-1"),e.listBox&&e.listBox.appendChild(n)}),e.dialog&&e.dialog.open(),e.j.async.setTimeout(function(){e.selectIndex(0)},100))},e}var r;return function(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}}),t&&Bw(e,t)}(t,e),r=[{key:"createDialog",value:function(){var e=this;this.dialog=this.j.dlg();var t=cl(this.j,"paste","Paste","primary");t.onAction(this.paste);var r=cl(this.j,"","Cancel");r.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,r]),this.j.e.on(this.listBox,"click dblclick",function(t){var r=t.target;return li.isTag(r,"a")&&r.hasAttribute("data-index")&&e.selectIndex(parseInt(Xn(r,"-index")||"0",10)),"dblclick"===t.type&&e.paste(),!1})}},{key:"afterInit",value:function(){var e=this;this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",function(){return e.list.length}).on("afterCopy.paste-storage",function(t){-1!==e.list.indexOf(t)&&e.list.splice(e.list.indexOf(t),1),e.list.unshift(t),e.list.length>5&&(e.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}},{key:"beforeDestruct",value:function(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),li.safeRemove(this.previewBox),li.safeRemove(this.listBox),li.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Fw($f));function Hw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qw(e,t):void 0}}(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 Ww(e,t,r){return Ww=Jw()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&$w(o,r.prototype),o},Ww.apply(null,arguments)}function Gw(e){return Gw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gw(e)}function $w(e,t){return $w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$w(e,t)}function Kw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Yw(e){var t="function"==typeof Map?new Map:void 0;return Yw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ww(e,arguments,Gw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$w(n,e)},Yw(e)}function Jw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jw=function(){return!!e})()}Oa.add("pasteStorage",Uw),eo.prototype.controls.preview={icon:"eye",command:"preview",mode:Zt+Qt,tooltip:"Preview"},Oa.add("preview",function(e){e.registerButton({name:"preview"}),e.registerCommand("preview",function(t,r,n){var o=e.dlg();o.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0);var i=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Hw(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hw(e,2):void 0}}(e)||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.")}()}(ei(e,n,"px",o.getElm("content")))[1];o.e.on(o,"afterClose",i)})}),ds.set("print",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg> '),eo.prototype.controls.print={exec:function(e){var t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),Ia(e,eo).appendChild(t);var r=function(){e.e.off(e.ow,"mousemove",r),li.safeRemove(t)},n=t.contentWindow;if(n){e.e.on(n,"onbeforeunload onafterprint",r).on(e.ow,"mousemove",r),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",n.document,e),n.document.body.innerHTML=e.value):(n.document.write('<!doctype html><html lang="'+Eo(e.o.language)+'"><head><title></title></head><style>'+function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.ownerDocument.styleSheets;return zr(t).map(function(e){try{return zr(e.cssRules)}catch(e){}return[]}).flat().filter(function(t){try{return Boolean(t&&e.matches(t.selectorText))}catch(e){}return!1})},r=function(){function r(n,o,i){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.css={};var s=i||{},l=function(t){var r=t.selectorText.split(",").map(function(e){return e.trim()}).sort().join(",");!1===Boolean(a.css[r])&&(a.css[r]={});for(var n=t.style.cssText.split(/;(?![A-Za-z0-9])/),o=0;o<n.length;o++)if(n[o]){var i=n[o].split(":");i[0]=i[0].trim(),i[1]=i[1].trim(),a.css[r][i[0]]=i[1].replace(/var\(([^)]+)\)/g,function(t,r){var n=Vw(r.split(","),2),o=n[0],i=n[1];return(e.ew.getComputedStyle(e.editor).getPropertyValue(o.trim())||i||t).trim()})}};!function(){for(var r=n.innerHeight,i=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,function(){return NodeFilter.FILTER_ACCEPT});i.nextNode();){var a=i.currentNode;if(a.getBoundingClientRect().top<r||s.scanFullPage){var c=t(a);if(c)for(var u=0;u<c.length;u++)l(c[u])}}}()}var n;return(n=[{key:"generateCSS",value:function(){var e="";for(var t in this.css)if(!/:not\(/.test(t)){for(var r in e+=t+" { ",this.css[t])e+=r+": "+this.css[t][r]+"; ";e+="}\n"}return e}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,n),r}();try{return new r(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch(e){}return""}(e)+"</style><body></body></html>"),n.document.close(),ei(e,void 0,"px",n.document.body));var o=n.document.createElement("style");o.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",n.document.head.appendChild(o),n.focus(),n.print()}},mode:Zt+Qt,tooltip:"Print"},Oa.add("print",function(e){e.registerButton({name:"print"})}),eo.prototype.tableAllowCellResize=!0;var Xw=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Kw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Qw="table_processor_observer-resize",Zw=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=Gw(t),function(e,t){return!t||"object"!==Kw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jw()?Reflect.construct(t,r||[],Gw(e).constructor):t.apply(e,r))}(this,t,arguments)).selectMode=!1,e.resizeDelta=0,e.createResizeHandle=function(){e.resizeHandler||(e.resizeHandler=e.j.c.div("jodit-table-resizer"),e.j.e.on(e.resizeHandler,"mousedown.table touchstart.table",e.onHandleMouseDown).on(e.resizeHandler,"mouseenter.table",function(){e.j.async.clearTimeout(e.hideTimeout)}))},e.hideTimeout=0,e.drag=!1,e.minX=0,e.maxX=0,e.startX=0,e}var r;return function(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}}),t&&$w(e,t)}(t,e),r=[{key:"module",get:function(){return this.j.getInstance("Table",this.j.o)}},{key:"isRTL",get:function(){return"rtl"===this.j.o.direction}},{key:"showResizeHandle",value:function(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}},{key:"hideResizeHandle",value:function(){var e=this;this.hideTimeout=this.j.async.setTimeout(function(){li.safeRemove(e.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}},{key:"onHandleMouseDown",value:function(e){var t=this;if(!this.j.isLocked){this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(Qw),this.resizeHandler.classList.add("jodit-table-resizer_moved");var r,n=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)n=this.workTable.parentNode.getBoundingClientRect(),this.minX=n.left,this.maxX=this.minX+n.width;else{var o=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,function(e,n,i){o[1]===i&&(r=e.getBoundingClientRect(),t.minX=Math.max(r.left+$t/2,t.minX)),o[1]+(t.isRTL?-1:1)===i&&(r=e.getBoundingClientRect(),t.maxX=Math.min(r.left+r.width-$t/2,t.maxX))})}return!1}}},{key:"onMouseMove",value:function(e){if(this.drag){this.j.e.fire("closeAllPopups");var t=e.clientX,r=Yi(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?r.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:r.left)+"px";var n=this.j.s.sel;n&&n.removeAllRanges()}}},{key:"onMouseUp",value:function(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}},{key:"resizeColumns",value:function(){var e=this.resizeDelta,t=[],r=this.module;r.setColumnWidthByDelta(this.workTable,r.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);var n=so(this.isRTL?li.prev:li.next,this.workCell,li.isCell,this.workCell.parentNode);r.setColumnWidthByDelta(this.workTable,r.formalCoordinate(this.workTable,n)[1],-e,!1,t)}},{key:"resizeTable",value:function(){var e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,r=Wi(this.workTable.parentNode,this.j.ew),n=!this.wholeTable;if(this.isRTL?!n:n)this.workTable.style.width=(t+e)/r*100+"%";else{var o=this.isRTL?"marginRight":"marginLeft",i=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(t-e)/r*100+"%",this.workTable.style[o]=(i+e)/r*100+"%"}}},{key:"setWorkCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.wholeTable=t,this.workCell=e,this.workTable=li.up(e,function(e){return li.isTag(e,"table")},this.j.editor)}},{key:"calcHandlePosition",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=Yi(t,this.j,this.j.ed);if(r>$t&&r<o.width-$t)this.hideResizeHandle();else{var i=Yi(this.j.workplace,this.j,this.j.od,!0),a=Yi(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(r<=$t?o.left:o.left+o.width)-i.left+n+"px",Object.assign(this.resizeHandler.style,{height:a.height+"px",top:a.top-i.top+"px"}),this.showResizeHandle(),r<=$t){var s=so(this.isRTL?li.next:li.prev,t,li.isCell,t.parentNode);this.setWorkCell(s||t,!s||null)}else{var l=so(this.isRTL?li.prev:li.next,t,li.isCell,t.parentNode);this.setWorkCell(t,!!l&&null)}}}},{key:"afterInit",value:function(e){var t=this;e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",function(){Yo("table",e.editor).forEach(t.observe)}).on(this.j.ow,"scroll.resize-cells",function(){if(t.drag){var r=li.up(t.workCell,function(e){return li.isTag(e,"table")},e.editor);if(r){var n=r.getBoundingClientRect();t.resizeHandler.style.top=n.top+"px"}}}).on("beforeSetMode.resize-cells",function(){var r=t.module;r.getAllSelectedCells().forEach(function(t){r.removeSelection(t),r.normalizeTable(li.closest(t,"table",e.editor))})})}},{key:"observe",value:function(e){var t=this;io(e,Qw)||(io(e,Qw,!0),this.j.e.on(e,"mouseleave.resize-cells",function(e){t.resizeHandler&&t.resizeHandler!==e.relatedTarget&&t.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(function(r){if(!t.j.isLocked){var n=li.up(r.target,li.isCell,e);n&&t.calcHandlePosition(e,n,r.offsetX)}},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}},{key:"beforeDestruct",value:function(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(Yw($f));function eS(e,t,r){return eS=iS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&rS(o,r.prototype),o},eS.apply(null,arguments)}function tS(e){return tS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tS(e)}function rS(e,t){return rS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rS(e,t)}function nS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function oS(e){var t="function"==typeof Map?new Map:void 0;return oS=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return eS(e,arguments,tS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rS(n,e)},oS(e)}function iS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(iS=function(){return!!e})()}Xw([jr],Zw.prototype,"onHandleMouseDown",null),Xw([jr],Zw.prototype,"onMouseMove",null),Xw([jr],Zw.prototype,"onMouseUp",null),Xw([jr],Zw.prototype,"observe",null),Oa.add("resizeCells",Zw),eo.prototype.allowResizeX=!1,eo.prototype.allowResizeY=!0;var aS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=tS(t),function(e,t){return!t||"object"!==nS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,iS()?Reflect.construct(t,r||[],tS(e).constructor):t.apply(e,r))}(this,t,arguments)).isResized=!1,e.start={x:0,y:0,w:0,h:0},e.handle=e.j.c.div("jodit-editor__resize",ds.get("resize_handler")),e}var r;return function(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}}),t&&rS(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this,r=e.o,n=r.height,o=r.width,i=r.allowResizeX,a=e.o.allowResizeY;"auto"===n&&"auto"!==o&&(a=!1),"auto"===n&&"auto"===o||!i&&!a||(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",function(){t.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}},{key:"onHandleResizeStart",value:function(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}},{key:"onHandleResize",value:function(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}},{key:"onHandleResizeEnd",value:function(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}},{key:"beforeDestruct",value:function(){li.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(oS($f));function sS(e,t,r){return sS=fS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&cS(o,r.prototype),o},sS.apply(null,arguments)}function lS(e){return lS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lS(e)}function cS(e,t){return cS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cS(e,t)}function uS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dS(e){var t="function"==typeof Map?new Map:void 0;return dS=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return sS(e,arguments,lS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),cS(n,e)},dS(e)}function fS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fS=function(){return!!e})()}aS.requires=["size"],aS=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":nS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([jr],aS),Oa.add("resizeHandler",aS),eo.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),eo.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])};var pS=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":uS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},hS="__jodit-resizer_binded",mS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=lS(t),function(e,t){return!t||"object"!==uS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,fS()?Reflect.construct(t,r||[],lS(e).constructor):t.apply(e,r))}(this,t,arguments)).LOCK_KEY="resizer",e.element=null,e.isResizeMode=!1,e.isShown=!1,e.startX=0,e.startY=0,e.width=0,e.height=0,e.ratio=0,e.rect=e.j.c.fromHTML('<div title="'.concat(e.j.i18n("Press Alt for custom resizing"),'" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>')),e.sizeViewer=e.rect.getElementsByTagName("span")[0],e.pointerX=0,e.pointerY=0,e.isAltMode=!1,e.onClickElement=function(t){e.isResizeMode||e.element===t&&e.isShown||(e.element=t,e.show(),li.isTag(e.element,"img")&&!e.element.complete&&e.j.e.one(e.element,"load",e.updateSize))},e.updateSize=function(){if(!e.isInDestruct&&e.isShown&&e.element&&e.rect){var t=e.getWorkplacePosition(),r=Yi(e.element,e.j,e.j.ed),n=parseInt(e.rect.style.left||"0",10),o=parseInt(e.rect.style.top||"0",10),i=e.rect.offsetWidth,a=e.rect.offsetHeight,s=r.top-t.top,l=r.left-t.left;o===s&&n===l&&i===e.element.offsetWidth&&a===e.element.offsetHeight||(Rn(e.rect,{top:s,left:l,width:e.element.offsetWidth,height:e.element.offsetHeight}),e.j.events&&(e.j.e.fire(e.element,"changesize"),isNaN(n)||e.j.e.fire("resize")))}},e.hideSizeViewer=function(){e.sizeViewer.style.opacity="0"},e}var r;return function(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}}),t&&cS(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;Yo("div",this.rect).forEach(function(r){e.e.on(r,"mousedown.resizer touchstart.resizer",t.onStartResizing.bind(t,r))}),Aa.on("hideHelpers",this.hide),e.e.on("readonly",function(e){e&&t.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",function(e){var t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}},{key:"onEditorClick",value:function(e){for(var t=e.target,r=this.j,n=r.editor,o=r.options.allowResizeTags;t&&t!==n;){if(li.isTag(t,o))return this.__bind(t),void this.onClickElement(t);t=t.parentNode}}},{key:"__afterInsertImage",value:function(e){if(!this.j.o.resizer.forImageChangeAttributes){var t=Xn(e,"width");t&&!Rn(e,"width",!0)&&(Rn(e,"width",t),Xn(e,"width",null))}}},{key:"addEventListeners",value:function(){var e=this,t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",function(t){e.isShown&&t.key===Wt&&e.element&&!li.isTag(e.element,"table")&&e.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",function(){e.isShown&&!e.isResizeMode&&e.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}},{key:"onStartResizing",value:function(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;var r=this.j;r.e.fire("hidePopup"),r.lock(this.LOCK_KEY),r.e.on(r.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onEndResizing",value:function(){var e=this.j;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onResize",value:function(e){if(this.isResizeMode){if(!this.element)return;var t,r;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){var n=this.getWorkplacePosition();t=e.clientX+n.left-this.startX,r=e.clientY+n.top-this.startY}else t=this.pointerX-this.startX,r=this.pointerY-this.startY;var o=this.handle.className,i=0,a=0,s=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===s||s&&li.isTag(this.element,s))?(t?(i=this.width+(o.match(/left/)?-1:1)*t,a=Math.round(i/this.ratio)):(a=this.height+(o.match(/top/)?-1:1)*r,i=Math.round(a*this.ratio)),i>$i(this.j.editor,this.j.ow)&&(i=$i(this.j.editor,this.j.ow),a=Math.round(i/this.ratio))):(i=this.width+(o.match(/left/)?-1:1)*t,a=this.height+(o.match(/top/)?-1:1)*r),i>this.j.o.resizer.min_width&&(i<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",i):this.applySize(this.element,"width","100%")),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}},{key:"onKeyDown",value:function(e){this.isAltMode=e.key===Ft,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}},{key:"onKeyUp",value:function(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}},{key:"onClickOutside",value:function(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}},{key:"getWorkplacePosition",value:function(){return Yi(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}},{key:"applySize",value:function(e,t,r){var n=li.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;n&&Xn(e,t,r),n&&!e.style[t]||Rn(e,t,r)}},{key:"onDelete",value:function(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(li.safeRemove(this.element),this.hide(),e.preventDefault()))}},{key:"__onChangeEditor",value:function(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),Yo("iframe",this.j.editor).forEach(this.__bind)}},{key:"__bind",value:function(e){var t=this;if(li.isHTMLElement(e)&&this.j.o.allowResizeTags.has(e.tagName.toLowerCase())&&!io(e,hS)){var r;if(io(e,hS,!0),li.isTag(e,"iframe")){var n=e;li.isHTMLElement(e.parentNode)&&Xn(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(Xn(r=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),"style",Xn(e,"style")),Rn(r,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(r,e),r.appendChild(e),this.j.e.on(r,"click",function(){Xn(r,"data-jodit-wrapper_active",!0)}),e=r),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",function(){t.j.s.select(e)}).off(e,"changesize").on(e,"changesize",function(){n.setAttribute("width",e.offsetWidth+"px"),n.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!dt&&tr&&this.j.e.on(e,"mousedown",function(t){li.isTag(e,"img")&&t.preventDefault()})}}},{key:"showSizeViewer",value:function(e,t){this.j.o.resizer.showSize&&(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent="".concat(e," x ").concat(t),this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}},{key:"show",value:function(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(lo(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=Rn(this.j.container,"zIndex").toString()),this.updateSize())}},{key:"hide",value:function(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,li.safeRemove(this.rect),Yo("[data-jodit-wrapper_active='true']",this.j.editor).forEach(function(e){return Xn(e,"data-jodit-wrapper_active",!1)}))}},{key:"beforeDestruct",value:function(e){this.hide(),Aa.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(dS($f));function gS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yS(e,t,r){return yS=_S()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&vS(o,r.prototype),o},yS.apply(null,arguments)}function vS(e,t){return vS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vS(e,t)}function bS(e){return function(e){if(Array.isArray(e))return gS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gS(e,t):void 0}}(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 _S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_S=function(){return!!e})()}pS([va(":click")],mS.prototype,"onEditorClick",null),pS([va(":afterInsertImage")],mS.prototype,"__afterInsertImage",null),pS([jr],mS.prototype,"onStartResizing",null),pS([jr],mS.prototype,"onEndResizing",null),pS([jr],mS.prototype,"onResize",null),pS([jr],mS.prototype,"onKeyDown",null),pS([jr],mS.prototype,"onKeyUp",null),pS([jr],mS.prototype,"onClickOutside",null),pS([va(":change")],mS.prototype,"__onChangeEditor",null),pS([jr],mS.prototype,"__bind",null),pS([jr,va(":hideResizer")],mS.prototype,"hide",null),Oa.add("resizer",mS),eo.prototype.useSearch=!0,eo.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:Tt&&void 0!==Tt.Highlight},ds.set("search",'<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg> '),eo.prototype.controls.find={tooltip:"Find",icon:"search",exec:function(e,t,r){var n=r.control;switch(n.args&&n.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:function(e,t,r){return r}};var wS="jd-tmp-selection";function SS(e,t,r,n,o){if(null!=t.startContainer.nodeValue&&null!=t.endContainer.nodeValue&&!function(e,t,r){if(e.o.search.useCustomHighlightAPI&&Tt&&void 0!==Tt.Highlight){var n=[t].concat(bS(r)).map(function(t){var r=e.selection.createRange();return r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset),r}),o=yS(Highlight,bS(n));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),r.length=0,!0}return!1}(e,t,r)){var i=n.element("span",function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},wS,!0));li.markTemporary(i),function(e,t,r){var n=e.startContainer.nodeValue,o=0;if(0!==e.startOffset){var i=r.text(n.substring(0,e.startOffset));e.startContainer.nodeValue=n.substring(e.startOffset),li.before(e.startContainer,i),e.startContainer===e.endContainer&&(o=e.startOffset,e.endOffset-=o),e.startOffset=0}var a=e.endContainer.nodeValue;if(e.endOffset!==a.length){var s=r.text(a.substring(e.endOffset));e.endContainer.nodeValue=a.substring(0,e.endOffset),li.after(e.endContainer,s);var l=!0,c=!1,u=void 0;try{for(var d,f=t[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(p.startContainer!==e.endContainer)break;p.startContainer=s,p.startOffset=p.startOffset-e.endOffset-o,p.endContainer===e.endContainer&&(p.endContainer=s,p.endOffset=p.endOffset-e.endOffset-o)}}catch(e){c=!0,u=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw u}}e.endOffset=e.endContainer.nodeValue.length}}(t,r,n);var a,s=t.startContainer;do{if(!s)break;if(!li.isText(s)||(a=s.parentNode,li.isElement(a)&&a.hasAttribute(wS))||li.wrap(s,i.cloneNode(),n),s===t.endContainer)break;var l=s.firstChild||s.nextSibling;if(!l){for(;s&&!s.nextSibling&&s!==o;)s=s.parentNode;l=null==s?void 0:s.nextSibling}s=l}while(s&&s!==o)}}function ES(e){return Yo("[".concat(wS,"]"),e)}function kS(e){ES(e.editor).forEach(function(e){return li.unwrap(e)}),function(e){e.o.search.useCustomHighlightAPI&&Tt&&void 0!==Tt.Highlight&&CSS.highlights.clear()}(e)}function xS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xS(e,t):void 0}}(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.")}()}var OS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xi;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.searchIndex=t,this.queue=[],this.value=""}var t;return t=[{key:"add",value:function(e){var t,r=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(r.length){var n=this.value.length;this.queue.push({startIndex:n,endIndex:n+r.length,node:e}),this.value+=r}}},{key:"ranges",value:function(e){var t=[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,o=0;do{var i;if(r=(i=TS(this.searchIndex(e,this.value,r),2))[0],n=i[1],-1!==r){for(var a=void 0,s=0,l=void 0,c=0,u=o;u<this.queue.length;u+=1)if(!a&&this.queue[u].endIndex>r&&(a=this.queue[u].node,s=r-this.queue[u].startIndex),a&&this.queue[u].endIndex>=r+n){l=this.queue[u].node,c=r+n-this.queue[u].startIndex,o=u;break}a&&l&&t.push({startContainer:a,startOffset:s,endContainer:l,endOffset:c}),r+=n}}while(-1!==r);return 0===t.length?null:t}}],t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function CS(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function jS(e){return jS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jS(e)}function PS(e,t){return PS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},PS(e,t)}function IS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function RS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RS=function(){return!!e})()}var AS=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":IS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},MS=function(e){function t(e){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=jS(t),function(e,t){return!t||"object"!==IS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,RS()?Reflect.construct(t,r||[],jS(e).constructor):t.apply(e,r))}(this,t,[e]),n=r,r.selInfo=null,r._currentIndex=0,r.isOpened=!1;var o=Xo(r.container),i=o.query,a=o.replace,s=o.cancel,l=o.next,c=o.prev,u=o.replaceBtn,d=o.current,f=o.count;return r.queryInput=i,r.replaceInput=a,r.closeButton=s,r.replaceButton=u,r.currentBox=d,r.countBox=f,e.e.on(r.closeButton,"pointerdown",function(){return r.close(),!1}).on(r.queryInput,"input",function(){r.currentIndex=0}).on(r.queryInput,"pointerdown",function(){e.s.isFocused()&&(e.s.removeMarkers(),r.selInfo=e.s.save())}).on(r.replaceButton,"pointerdown",function(){return e.e.fire(r,"pressReplaceButton"),!1}).on(l,"pointerdown",function(){return e.e.fire("searchNext"),!1}).on(c,"pointerdown",function(){return e.e.fire("searchPrevious"),!1}).on(r.queryInput,"input",function(){r.setMod("empty-query",!hn(r.queryInput.value).length)}).on(r.queryInput,"keydown",r.j.async.debounce(function(){var t,r=(t=function(t){return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(r){switch(r.label){case 0:return t.key===Lt?[3,1]:[3,3];case 1:return t.preventDefault(),t.stopImmediatePropagation(),[4,e.e.fire("searchNext")];case 2:return r.sent()&&n.close(),[3,4];case 3:return e.e.fire(n,"needUpdateCounters"),[3,4];case 4:return[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){CS(i,n,o,a,s,"next",e)}function s(e){CS(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return r.apply(this,arguments)}}(),r.j.defaultTimeout)),r}var r;return function(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}}),t&&PS(e,t)}(t,e),r=[{key:"className",value:function(){return"UISearch"}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">'.concat(ds.get("angle-down"),'</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">').concat(ds.get("angle-up"),'</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">').concat(ds.get("cancel"),'</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>')}},{key:"currentIndex",get:function(){return this._currentIndex},set:function(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}},{key:"count",set:function(e){this.countBox.innerText=e.toString()}},{key:"query",get:function(){return this.queryInput.value}},{key:"replace",get:function(){return this.replaceInput.value}},{key:"onEditorKeyDown",value:function(e){if(this.isOpened){var t=this.j;if(t.getRealMode()===Qt)switch(e.key){case Bt:this.close();break;case Gt:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}}},{key:"open",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",r);var n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}},{key:"close",value:function(){this.isOpened&&(this.j.s.restore(),li.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}},{key:"calcSticky",value:function(e){if(this.isOpened)if(this.setMod("sticky",e),e){var t=Ji(this.j.toolbarContainer);Rn(this.container,{top:t.top+t.height,left:t.left+t.width})}else Rn(this.container,{top:null,left:null})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);function DS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NS(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function LS(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){NS(i,n,o,a,s,"next",e)}function s(e){NS(i,n,o,a,s,"throw",e)}a(void 0)})}}function BS(e,t,r){return BS=qS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&zS(o,r.prototype),o},BS.apply(null,arguments)}function FS(e){return FS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},FS(e)}function zS(e,t){return zS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zS(e,t)}function US(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function HS(e){var t="function"==typeof Map?new Map:void 0;return HS=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return BS(e,arguments,FS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zS(n,e)},HS(e)}function qS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qS=function(){return!!e})()}function VS(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}AS([va([":keydown","queryInput:keydown"])],MS.prototype,"onEditorKeyDown",null),AS([jr],MS.prototype,"open",null),AS([jr],MS.prototype,"close",null),AS([va(":toggleSticky")],MS.prototype,"calcSticky",null),MS=AS([gi],MS);var WS=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":US(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},GS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=FS(t),function(e,t){return!t||"object"!==US(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,qS()?Reflect.construct(t,r||[],FS(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"find",group:"search"}],e.previousQuery="",e.drawPromise=null,e.walker=null,e.walkerCount=null,e.cache={},e.wrapFrameRequest=0,e}var r;return function(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}}),t&&zS(e,t)}(t,e),r=[{key:"ui",get:function(){return new MS(this.j)}},{key:"updateCounters",value:function(){var e=this;return LS(function(){var t;return VS(this,function(r){switch(r.label){case 0:return e.ui.isOpened?(t=e.ui,[4,e.calcCounts(e.ui.query)]):[2];case 1:return t.count=r.sent(),[2]}})})()}},{key:"onPressReplaceButton",value:function(){this.findAndReplace(this.ui.query),this.updateCounters()}},{key:"tryScrollToElement",value:function(e){var t=li.closest(e,li.isElement,this.j.editor);t||(t=li.prev(e,li.isElement,this.j.editor)),t&&t!==this.j.editor&&ri(t,this.j.editor,this.j.ed)}},{key:"calcCounts",value:function(e){var t=this;return LS(function(){return VS(this,function(r){switch(r.label){case 0:return[4,t.findQueryBounds(e,"walkerCount")];case 1:return[2,r.sent().length]}})})()}},{key:"findQueryBounds",value:function(e,t){var r=this;return LS(function(){var n;return VS(this,function(o){return(n=r[t])&&n.break(),n=new kn(r.j.async,{timeout:r.j.o.search.lazyIdleTimeout}),r[t]=n,[2,r.find(n,e).catch(function(e){return!ft&&console.error(e),[]})]})})()}},{key:"findAndReplace",value:function(e){var t=this;return LS(function(){var r,n,o,i,a;return VS(this,function(s){switch(s.label){case 0:return[4,t.findQueryBounds(e,"walker")];case 1:if(!(r=s.sent()).length)return[2,!1];if(-1===(n=t.findCurrentIndexInRanges(r,t.j.s.range))&&(n=0),!(o=r[n]))return[3,6];s.label=2;case 2:return s.trys.push([2,,4,5]),(i=t.j.ed.createRange()).setStart(o.startContainer,o.startOffset),i.setEnd(o.endContainer,o.endOffset),i.deleteContents(),a=t.j.createInside.text(t.ui.replace),li.safeInsertNode(i,a),kS(t.j),t.j.s.setCursorAfter(a),t.tryScrollToElement(a),t.cache={},t.ui.currentIndex=n,[4,t.findAndSelect(e,!0).catch(function(e){return!ft&&console.error(e),null})];case 3:return s.sent(),[3,5];case 4:return t.j.synchronizeValues(),[7];case 5:return t.j.e.fire("afterFindAndReplace"),[2,!0];case 6:return[2,!1]}})})()}},{key:"findAndSelect",value:function(e,t){var r=this;return LS(function(){var n,o,i,a,s;return VS(this,function(l){switch(l.label){case 0:return[4,r.findQueryBounds(e,"walker")];case 1:if(!(o=l.sent()).length)return[2,!1];if(r.previousQuery===e&&ES(r.j.editor).length||(null===(n=r.drawPromise)||void 0===n||n.rejectCallback(),r.j.async.cancelAnimationFrame(r.wrapFrameRequest),kS(r.j),r.drawPromise=r.__drawSelectionRanges(o)),r.previousQuery=e,i=-1==(i=r.ui.currentIndex-1)?0:t?i===o.length-1?0:i+1:0===i?o.length-1:i-1,r.ui.currentIndex=i+1,!(a=o[i]))return[3,4];s=r.j.ed.createRange();try{s.setStart(a.startContainer,a.startOffset),s.setEnd(a.endContainer,a.endOffset),r.j.s.selectRange(s)}catch(e){!ft&&console.error(e)}return r.tryScrollToElement(a.startContainer),[4,r.updateCounters()];case 2:return l.sent(),[4,r.drawPromise];case 3:return l.sent(),r.j.e.fire("afterFindAndSelect"),[2,!0];case 4:return[2,!1]}})})()}},{key:"findCurrentIndexInRanges",value:function(e,t){return e.findIndex(function(e){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset})}},{key:"isValidCache",value:function(e){return LS(function(){return VS(this,function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent().every(function(e){var t,r,n,o;return e.startContainer.isConnected&&e.startOffset<=(null!==(r=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==r?r:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(o=null===(n=e.endContainer.nodeValue)||void 0===n?void 0:n.length)&&void 0!==o?o:0)})]}})})()}},{key:"find",value:function(e,t){var r=this;return LS(function(){var n,o;return VS(this,function(i){switch(i.label){case 0:return t.length?(n=r.cache[t],(o=n)?[4,r.isValidCache(n)]:[3,2]):[2,[]];case 1:o=i.sent(),i.label=2;case 2:return o?[2,n]:(r.cache[t]=r.j.async.promise(function(n){var o=new OS(r.j.o.search.fuzzySearch);e.on("break",function(){n([])}).on("visit",function(e){return li.isText(e)&&o.add(e),!1}).on("end",function(){var e;n(null!==(e=o.ranges(t))&&void 0!==e?e:[])}).setWork(r.j.editor)}),[2,r.cache[t]])}})})()}},{key:"__drawSelectionRanges",value:function(e){var t=this,r=this.j,n=r.async,o=r.createInside,i=r.editor;n.cancelAnimationFrame(this.wrapFrameRequest);var a,s=function(e){return function(e){if(Array.isArray(e))return DS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return DS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?DS(e,t):void 0}}(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.")}()}(e),l=0;return n.promise(function(e){var r=function(){do{(a=s.shift())&&SS(t.j,a,s,o,i),l+=1}while(a&&l<=5);s.length?t.wrapFrameRequest=n.requestAnimationFrame(r):e()};r()})}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(RegExp("<span[^>]+".concat(wS,"[^>]+>(.*?)</span>"),"g"),"$1")}},{key:"afterInit",value:function(e){var t=this;if(e.o.useSearch){var r=this,n=this;e.e.on("beforeSetMode.search",function(){t.ui.close()}).on(this.ui,"afterClose",function(){kS(e),t.ui.currentIndex=0,t.ui.count=0,t.cache={},e.focus()}).on("click",function(){t.ui.currentIndex=0,kS(e)}).on("change.search",function(){t.cache={}}).on("keydown.search mousedown.search",e.async.debounce(function(){t.ui.selInfo&&(e.s.removeMarkers(),t.ui.selInfo=null),t.ui.isOpened&&t.updateCounters()},e.defaultTimeout)).on("searchNext.search searchPrevious.search",function(){return t.ui.isOpened||t.ui.open(),n.findAndSelect(n.ui.query,"searchNext"===e.e.current).catch(function(e){!ft&&console.error("Search error",e)})}).on("search.search",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r.ui.currentIndex=0,n.findAndSelect(e||"",t).catch(function(e){!ft&&console.error("Search error",e)})}),e.registerCommand("search",{exec:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t&&n.findAndSelect(t,r).catch(function(e){!ft&&console.error("Search error",e)}),!1}}).registerCommand("openSearchDialog",{exec:function(e,t){return n.ui.open(t),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:function(t,r,o){return e.o.readonly||n.ui.open(r,o,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}},{key:"beforeDestruct",value:function(e){var t;null===(t=ci(this,"ui"))||void 0===t||t.destruct(),e.e.off(".search")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(HS($f));function $S(e,t,r){return $S=QS()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&YS(o,r.prototype),o},$S.apply(null,arguments)}function KS(e){return KS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},KS(e)}function YS(e,t){return YS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YS(e,t)}function JS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function XS(e){var t="function"==typeof Map?new Map:void 0;return XS=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $S(e,arguments,KS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),YS(n,e)},XS(e)}function QS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(QS=function(){return!!e})()}WS([ui],GS.prototype,"ui",null),WS([va("ui:needUpdateCounters")],GS.prototype,"updateCounters",null),WS([va("ui:pressReplaceButton")],GS.prototype,"onPressReplaceButton",null),WS([jr],GS.prototype,"findQueryBounds",null),WS([jr],GS.prototype,"findAndReplace",null),WS([jr],GS.prototype,"findAndSelect",null),WS([jr],GS.prototype,"find",null),WS([va(":afterGetValueFromEditor")],GS.prototype,"onAfterGetValueFromEditor",null),Oa.add("search",GS),eo.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0};var ZS=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":JS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},eE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=KS(t),function(e,t){return!t||"object"!==JS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,QS()?Reflect.construct(t,r||[],KS(e).constructor):t.apply(e,r))}(this,t,arguments)).proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],e}var r;return function(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}}),t&&YS(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;this.proxyEventsList.forEach(function(r){e.e.on(r+".select",t.onStartSelection)})}},{key:"beforeDestruct",value:function(e){var t=this;this.proxyEventsList.forEach(function(r){e.e.on(r+".select",t.onStartSelection)})}},{key:"onStartSelection",value:function(e){for(var t,r=this.j,n=e.target;void 0===t&&n&&n!==r.editor;)t=r.e.fire(In(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===t&&n===r.editor&&r.e.fire(e.type+"Editor",n,e)}},{key:"onOutsideClick",value:function(e){var t=this,r=e.target;li.up(r,function(e){return e===t.j.editor})||bs.closestElement(r,Uc)||this.j.e.fire("outsideClick",e)}},{key:"beforeCommandCut",value:function(){var e=this.j.s;if(!e.isCollapsed()){var t=e.current();t&&li.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}},{key:"beforeCommandSelectAll",value:function(){var e=this.j.s;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}},{key:"onTripleClickNormalizeSelection",value:function(e){if(3===e.detail&&this.j.o.select.normalizeTripleClick){var t=this.j.s,r=t.range,n=r.startContainer;0===r.startOffset&&li.isText(n)&&t.select(li.closest(n,li.isBlock,this.j.editor)||n,!0)}}},{key:"onCopyNormalizeSelectionBound",value:function(e){var t=this.j,r=t.s,n=t.editor;t.o.select.normalizeSelectionBeforeCutAndCopy&&!r.isCollapsed()&&(!e||e.isTrusted&&li.isNode(e.target)&&li.isOrContains(n,e.target))&&this.jodit.s.expandSelection()}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(XS($f));function tE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rE(e,t,r){return rE=sE()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&oE(o,r.prototype),o},rE.apply(null,arguments)}function nE(e){return nE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nE(e)}function oE(e,t){return oE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oE(e,t)}function iE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function aE(e){var t="function"==typeof Map?new Map:void 0;return aE=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return rE(e,arguments,nE(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oE(n,e)},aE(e)}function sE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sE=function(){return!!e})()}ZS([jr],eE.prototype,"onStartSelection",null),ZS([va("ow:click")],eE.prototype,"onOutsideClick",null),ZS([va([":beforeCommandCut"])],eE.prototype,"beforeCommandCut",null),ZS([va([":beforeCommandSelectall"])],eE.prototype,"beforeCommandSelectAll",null),ZS([va([":click"])],eE.prototype,"onTripleClickNormalizeSelection",null),ZS([va([":copy",":cut"])],eE.prototype,"onCopyNormalizeSelectionBound",null),Oa.add("select",eE),eo.prototype.tableAllowCellSelection=!0;var lE=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":iE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},cE="table_processor_observer",uE="onMoveTableSelectCell",dE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=nE(t),function(e,t){return!t||"object"!==iE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,sE()?Reflect.construct(t,r||[],nE(e).constructor):t.apply(e,r))}(this,t,arguments)).__selectedCell=null,e.__isSelectionMode=!1,e}var r;return function(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}}),t&&oE(e,t)}(t,e),r=[{key:"__tableModule",get:function(){return this.j.getInstance(wp,this.j.o)}},{key:"afterInit",value:function(e){var t=this;e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",function(e){e.key===Nt&&t.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(function(e){return e+".select-cells"}).join(" "),this.onStartSelection).on("clickTr clickTbody",function(){var e,r=t.__tableModule.getAllSelectedCells().length;if(r)return r>1&&(null===(e=t.j.s.sel)||void 0===e||e.removeAllRanges()),!1})}},{key:"onStartSelection",value:function(e){if(!this.j.o.readonly&&(this.unselectCells(),e!==this.j.editor)){var t=li.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:uE,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}}},{key:"onOutsideClick",value:function(){this.__selectedCell=null,this.__onRemoveSelection()}},{key:"onChange",value:function(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}},{key:"__onMove",value:function(e,t){var r,n=this;if((!this.j.o.readonly||this.j.isLocked)&&!this.j.isLockedNotBy(cE)){var o=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(o){var i=li.closest(o,["td","th"],e);if(i&&this.__selectedCell){i!==this.__selectedCell&&this.j.lock(cE),this.unselectCells();for(var a=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=a[0][0];l<=a[1][0];l+=1)for(var c=a[0][1];c<=a[1][1];c+=1)this.__tableModule.addSelection(s[l][c]);var u;this.__tableModule.getAllSelectedCells().length>1&&(null===(r=this.j.s.sel)||void 0===r||r.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),u=n.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),i.appendChild(u),n.j.async.setTimeout(function(){var e;null===(e=u.parentNode)||void 0===e||e.removeChild(u)},n.j.defaultTimeout/5)}}}}},{key:"__onRemoveSelection",value:function(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}},{key:"__onStopSelection",value:function(e,t){var r=this;if(this.__selectedCell){this.__isSelectionMode=!1,this.j.unlock();var n=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(n){var o=li.closest(n,["td","th"],e);if(o){var i=li.closest(o,"table",e);if(!i||i===e){var a=this.__tableModule.getSelectedBound(e,[o,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=s[a[1][0]][a[1][1]],c=s[a[0][0]][a[0][1]];this.j.e.fire("showPopup",e,function(){var e=Ji(c,r.j),t=Ji(l,r.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),Yo("table",this.j.editor).forEach(function(e){r.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(uE)}}}}}},{key:"unselectCells",value:function(e){var t=this.__tableModule,r=t.getAllSelectedCells();r.length&&r.forEach(function(r){e&&e===r||t.removeSelection(r)})}},{key:"onExecCommand",value:function(e){var t=this;if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var r=this.__tableModule.getAllSelectedCells();if(r.length){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),1!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return tE(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tE(e,1):void 0}}(e)||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.")}()}(r)[0];if(!n)return;var o=li.closest(n,"table",this.j.editor);if(!o)return;switch(e){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":r.forEach(function(e){return li.detach(e)});break;case"bin":li.safeRemove(o);break;case"binrow":new Set(r.map(function(e){return e.parentNode})).forEach(function(e){t.__tableModule.removeRow(o,e.rowIndex)});break;case"bincolumn":var i=new Set;r.reduce(function(e,t){return i.has(t.cellIndex)||(e.push(t),i.add(t.cellIndex)),e},[]).forEach(function(e){t.__tableModule.removeColumn(o,e.cellIndex)});break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,n,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,n.parentNode,"addrowafter"===e)}}return!1}}},{key:"onAfterCommand",value:function(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(function(t){return Nn(e,t)})}},{key:"beforeDestruct",value:function(e){this.__onRemoveSelection(),e.e.off(".select-cells")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(aE($f));dE.requires=["select"],lE([jr],dE.prototype,"onStartSelection",null),lE([va(":outsideClick")],dE.prototype,"onOutsideClick",null),lE([va(":change")],dE.prototype,"onChange",null),lE([jr],dE.prototype,"__onRemoveSelection",null),lE([jr],dE.prototype,"__onStopSelection",null),lE([jr],dE.prototype,"onExecCommand",null),lE([jr],dE.prototype,"onAfterCommand",null),Oa.add("selectCells",dE),eo.prototype.beautifyHTML=!tr,eo.prototype.sourceEditor="ace",eo.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},eo.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],eo.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],ds.set("source",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '),eo.prototype.controls.source={mode:er,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===Zt},tooltip:"Change mode"};var fE=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,this.container=r,this.toWYSIWYG=n,this.fromWYSIWYG=o,this.className="",this.isReady=!1}var t;return(t=[{key:"j",get:function(){return this.jodit}},{key:"onReady",value:function(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}},{key:"onReadyAlways",value:function(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function pE(e){return pE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pE(e)}function hE(e,t){return hE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hE(e,t)}function mE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(mE=function(){return!!e})()}var gE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=pE(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,mE()?Reflect.construct(t,r||[],pE(e).constructor):t.apply(e,r))}(this,t,arguments)).className="jodit_ace_editor",e.proxyOnBlur=function(t){e.j.e.fire("blur",t)},e.proxyOnFocus=function(t){e.j.e.fire("focus",t)},e.proxyOnMouseDown=function(t){e.j.e.fire("mousedown",t)},e}var r;return function(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}}),t&&hE(e,t)}(t,e),(r=[{key:"aceExists",value:function(){return void 0!==this.j.ow.ace}},{key:"getLastColumnIndex",value:function(e){return this.instance.session.getLine(e).length}},{key:"getLastColumnIndices",value:function(){for(var e=this.instance.session.getLength(),t=[],r=0,n=0;n<e;n++)r+=this.getLastColumnIndex(n),n>0&&(r+=1),t[n]=r;return t}},{key:"getRowColumnIndices",value:function(e){var t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};for(var r=1,n=1;n<t.length;n++)e>t[n]&&(r=n+1);return{row:r,column:e-t[r-1]-1}}},{key:"setSelectionRangeIndices",value:function(e,t){var r=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:r,end:n})}},{key:"getIndexByRowColumn",value:function(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}},{key:"init",value:function(e){var t=this,r=function(){if(void 0===t.instance&&t.aceExists()){var r=t.j.c.div("jodit-source__mirror-fake");t.container.appendChild(r);var n=e.ow.ace;t.instance=n.edit(r),"rtl"===e.o.direction&&(t.instance.setOption("rtlText",!0),t.instance.setOption("rtl",!0)),t.instance.setTheme(e.o.sourceEditorNativeOptions.theme),t.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),t.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),t.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),t.instance.getSession().setUseWrapMode(!0),t.instance.setOption("indentedSoftWrap",!1),t.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),t.instance.getSession().setUseWorker(!1),t.instance.$blockScrolling=1/0,t.instance.on("change",t.toWYSIWYG),t.instance.on("focus",t.proxyOnFocus),t.instance.on("mousedown",t.proxyOnMouseDown),t.instance.on("blur",t.proxyOnBlur),e.getRealMode()!==Qt&&t.setValue(t.getValue());var o=t.j.async.throttle(function(){if(!e.isInDestruct&&e.getMode()!==Qt){var r=t.instance.isFocused();"auto"!==e.o.height?t.instance.setOption("maxLines",e.workplace.offsetHeight/t.instance.renderer.lineHeight):t.instance.setOption("maxLines",1/0),t.instance.resize(),r&&t.focus()}},2*t.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),t.onReady()}};e.e.on("afterSetMode",function(){e.getRealMode()!==Zt&&e.getMode()!==er||(t.fromWYSIWYG(),r())}),r(),this.aceExists()||Hn(e,e.o.sourceEditorCDNUrlsJS).then(function(){e.isInDestruct||r()}).catch(function(){return null})}},{key:"destruct",value:function(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}},{key:"setValue",value:function(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var t=this.j.e.fire("beautifyHTML",e);Mr(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}},{key:"getValue",value:function(){return this.instance.getValue()}},{key:"setReadOnly",value:function(e){this.instance.setReadOnly(e)}},{key:"isFocused",get:function(){return this.instance.isFocused()}},{key:"focus",value:function(){this.instance.container.focus(),this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"getSelectionStart",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}},{key:"getSelectionEnd",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}},{key:"selectAll",value:function(){this.instance.selection.selectAll()}},{key:"insertRaw",value:function(e){var t=this.instance.selection.getCursor(),r=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:r},!1)}},{key:"setSelectionRange",value:function(e,t){this.setSelectionRangeIndices(e,t)}},{key:"setPlaceHolder",value:function(e){}},{key:"replaceUndoManager",value:function(){var e=this.jodit.history;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:function(){e.redo()}})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(fE);function yE(e){return yE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yE(e)}function vE(e,t){return vE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vE(e,t)}function bE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bE=function(){return!!e})()}var _E=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=yE(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,bE()?Reflect.construct(t,r||[],yE(e).constructor):t.apply(e,r))}(this,t,arguments)).autosize=e.j.async.debounce(function(){e.instance.style.height="auto",e.instance.style.height=e.instance.scrollHeight+"px"},e.j.defaultTimeout),e}var r;return function(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}}),t&&vE(e,t)}(t,e),r=[{key:"init",value:function(e){var t=this;this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",function(e){Rn(t.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",function(t){e.e.fire(t.type,t)}),this.autosize(),this.onReady()}},{key:"destruct",value:function(){li.safeRemove(this.instance)}},{key:"getValue",value:function(){return this.instance.value}},{key:"setValue",value:function(e){this.instance.value=e}},{key:"insertRaw",value:function(e){var t=this.getValue();if(this.getSelectionStart()>=0){var r=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,r)+e+t.substring(n,t.length))}else this.setValue(t+e)}},{key:"getSelectionStart",value:function(){return this.instance.selectionStart}},{key:"getSelectionEnd",value:function(){return this.instance.selectionEnd}},{key:"setSelectionRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;this.instance.setSelectionRange(e,t)}},{key:"isFocused",get:function(){return this.instance===this.j.od.activeElement}},{key:"focus",value:function(){this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"setPlaceHolder",value:function(e){this.instance.setAttribute("placeholder",e)}},{key:"setReadOnly",value:function(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}},{key:"selectAll",value:function(){this.instance.select()}},{key:"replaceUndoManager",value:function(){var e=this,t=this.jodit.history;this.j.e.on(this.instance,"keydown",function(r){if((r.ctrlKey||r.metaKey)&&"z"===r.key)return r.shiftKey?t.redo():t.undo(),e.setSelectionRange(e.getValue().length),!1})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(fE);function wE(e,t,r,n,o){var i;if(Rr(e))i=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){i=new gE(t,r,n,o);break}default:i=new _E(t,r,n,o)}return i.init(t),i.onReadyAlways(function(){i.setReadOnly(t.o.readonly)}),i}function SE(e,t,r){return SE=OE()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&kE(o,r.prototype),o},SE.apply(null,arguments)}function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},EE(e)}function kE(e,t){return kE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kE(e,t)}function xE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function TE(e){var t="function"==typeof Map?new Map:void 0;return TE=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return SE(e,arguments,EE(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kE(n,e)},TE(e)}function OE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(OE=function(){return!!e})()}var CE=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":xE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},jE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=EE(t),function(e,t){return!t||"object"!==xE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,OE()?Reflect.construct(t,r||[],EE(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{name:"source",group:"source"}],e.__lock=!1,e.__oldMirrorValue="",e.tempMarkerStart="{start-jodit-selection}",e.tempMarkerStartReg=/{start-jodit-selection}/g,e.tempMarkerEnd="{end-jodit-selection}",e.tempMarkerEndReg=/{end-jodit-selection}/g,e.getSelectionStart=function(){var t,r;return null!==(r=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionStart())&&void 0!==r?r:0},e.getSelectionEnd=function(){var t,r;return null!==(r=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionEnd())&&void 0!==r?r:0},e}var r;return function(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}}),t&&kE(e,t)}(t,e),r=[{key:"onInsertHTML",value:function(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}},{key:"fromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.__lock||!0===e){this.__lock=!0;var t=this.j.getEditorValue(!1,Er);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}},{key:"toWYSIWYG",value:function(){if(!this.__lock){var e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}}},{key:"getNormalPosition",value:function(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,function(e){for(var t="",r=0;r<e.length;r+=1)t+=vt;return t});e>0&&t[e]===vt;)e--;for(var r=e;r>0;){if("<"===t[--r]&&void 0!==t[r+1]&&t[r+1].match(/[\w/]+/i))return r;if(">"===t[r])return e}return e}},{key:"clnInv",value:function(e){return e.replace(_t(),"")}},{key:"onSelectAll",value:function(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===Zt)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}},{key:"getMirrorValue",value:function(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}},{key:"setMirrorValue",value:function(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}},{key:"setFocusToMirror",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()}},{key:"saveSelection",value:function(){if(this.j.getRealMode()===Qt)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;var e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){var t=this.j.s.marker(!0),r=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,r)+this.clnInv(t.outerHTML)+e.substring(r))}else{var n=this.j.s.marker(!0),o=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),e),a=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,i)+this.clnInv(n.outerHTML)+e.slice(i,a)+this.clnInv(o.outerHTML)+e.slice(a))}this.toWYSIWYG()}}},{key:"removeSelection",value:function(){if(this.j.getRealMode()===Qt)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);var e=this.getMirrorValue(),t=0,r=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var n=this.j.e.fire("beautifyHTML",e);Mr(n)&&(e=n)}if(r=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){var o=e.indexOf(this.tempMarkerEnd);-1!==o&&(r=o)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,r),this.toWYSIWYG(),this.setFocusToMirror()}},{key:"setMirrorSelectionRange",value:function(e,t){var r;null===(r=this.sourceEditor)||void 0===r||r.setSelectionRange(e,t)}},{key:"onReadonlyReact",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}},{key:"afterInit",value:function(e){var t=this;if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",function(){e.workplace.appendChild(t.mirrorContainer)}),this.sourceEditor=wE("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",function(e){var r;e.key===Bt&&(null===(r=t.sourceEditor)||void 0===r?void 0:r.isFocused)&&t.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",function(e){var r;null===(r=t.sourceEditor)||void 0===r||r.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",function(e){return e}),e.o.beautifyHTML){var r=function(){var t;if(e.isInDestruct)return!1;var r=e.ow.html_beautify;return!(!r||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",function(e){return r(e)}),0))};r()||Hn(e,e.o.beautifyHTMLCDNUrlsJS).then(r,function(){return null})}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}},{key:"syncValueFromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.j;t.getMode()!==er&&t.getMode()!==Zt||this.fromWYSIWYG(e)}},{key:"initSourceEditor",value:function(e){var t,r=this;if("area"!==e.o.sourceEditor){var n=wE(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);n.onReadyAlways(function(){var t,o;null===(t=r.sourceEditor)||void 0===t||t.destruct(),r.sourceEditor=n,r.syncValueFromWYSIWYG(!0),null===(o=e.events)||void 0===o||o.fire("sourceEditorReady",e)})}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways(function(){var t;r.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)})}},{key:"beforeDestruct",value:function(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),li.safeRemove(this.mirrorContainer)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(TE($f));CE([va(":insertHTML.source")],jE.prototype,"onInsertHTML",null),CE([jr],jE.prototype,"fromWYSIWYG",null),CE([jr],jE.prototype,"toWYSIWYG",null),CE([jr],jE.prototype,"getNormalPosition",null),CE([va(":beforeCommand.source")],jE.prototype,"onSelectAll",null),CE([va(":beforeSetMode.source")],jE.prototype,"saveSelection",null),CE([va(":afterSetMode.source")],jE.prototype,"removeSelection",null),CE([jr],jE.prototype,"setMirrorSelectionRange",null),CE([va(":readonly.source")],jE.prototype,"onReadonlyReact",null),CE([jr],jE.prototype,"syncValueFromWYSIWYG",null),Oa.add("source",jE);const PE='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> ';eo.prototype.spellcheck=!1,ds.set("spellcheck",PE),eo.prototype.controls.spellcheck={isActive:function(e){return e.o.spellcheck},icon:PE,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};const IE={Spellcheck:"التدقيق الإملائي"},RE={Spellcheck:"Kontrola pravopisu"},AE={Spellcheck:"Rechtschreibprüfung"},ME={Spellcheck:"Corrección ortográfica"},DE={Spellcheck:"غلطیابی املایی"},NE={Spellcheck:"Oikeinkirjoituksen tarkistus"},LE={Spellcheck:"Vérification Orthographique"},BE={Spellcheck:"בדיקת איות"},FE={Spellcheck:"Helyesírás-ellenőrzés"},zE={Spellcheck:"Spellchecking"},UE={Spellcheck:"Controllo ortografico"},HE={Spellcheck:"スペルチェック"},qE={Spellcheck:"맞춤법 검사"},VE={Spellcheck:"Дүрмийн алдаа шалгах"},WE={Spellcheck:"Spellingcontrole"},GE={Spellcheck:"Stavekontroll"},$E={Spellcheck:"Sprawdzanie pisowni"},KE={Spellcheck:"Verificação ortográfica"},YE={Spellcheck:"Проверка орфографии"},JE={Spellcheck:"Yazım denetimi"},XE={Spellcheck:"Перевірка орфографії"},QE={Spellcheck:"拼写检查"},ZE={Spellcheck:"拼字檢查"};function ek(e,t,r){return ek=ik()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&rk(o,r.prototype),o},ek.apply(null,arguments)}function tk(e){return tk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tk(e)}function rk(e,t){return rk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rk(e,t)}function nk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ok(e){var t="function"==typeof Map?new Map:void 0;return ok=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ek(e,arguments,tk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rk(n,e)},ok(e)}function ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ik=function(){return!!e})()}var ak=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=tk(t),function(e,t){return!t||"object"!==nk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ik()?Reflect.construct(t,r||[],tk(e).constructor):t.apply(e,r))}(this,t,[e])).buttons=[{group:"state",name:"spellcheck"}],ja(se),r}var r;return function(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}}),t&&rk(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",function(){t.jodit.o.spellcheck=!t.jodit.o.spellcheck,t.toggleSpellcheck(),t.j.e.fire("updateToolbar")})}},{key:"toggleSpellcheck",value:function(){Xn(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(ok($f));function sk(e,t,r){return sk=fk()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ck(o,r.prototype),o},sk.apply(null,arguments)}function lk(e){return lk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lk(e)}function ck(e,t){return ck=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ck(e,t)}function uk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dk(e){var t="function"==typeof Map?new Map:void 0;return dk=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return sk(e,arguments,lk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ck(n,e)},dk(e)}function fk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fk=function(){return!!e})()}(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":nk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([jr],ak.prototype,"toggleSpellcheck",null),Oa.add("spellcheck",ak),eo.prototype.toolbarSticky=!0,eo.prototype.toolbarDisableStickyForMobile=!0,eo.prototype.toolbarStickyOffset=0;var pk=!dt&&tr,hk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=lk(t),function(e,t){return!t||"object"!==uk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,fk()?Reflect.construct(t,r||[],lk(e).constructor):t.apply(e,r))}(this,t,arguments)).__isToolbarStuck=!1,e.__createDummy=function(t){e.__dummyBox=e.j.c.div(),e.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),e.j.container.insertBefore(e.__dummyBox,t)},e.addSticky=function(t){e.__isToolbarStuck||(pk&&!e.__dummyBox&&e.__createDummy(t),e.j.container.classList.add("jodit_sticky"),e.__isToolbarStuck=!0),Rn(t,{top:e.j.o.toolbarStickyOffset||null,width:e.j.container.offsetWidth-2}),e.__dummyBox&&Rn(e.__dummyBox,{height:t.offsetHeight})},e.removeSticky=function(t){e.__isToolbarStuck&&(Rn(t,{width:"",top:""}),e.j.container.classList.remove("jodit_sticky"),e.__isToolbarStuck=!1)},e}var r;return function(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}}),t&&ck(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){var t=this;e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",function(){return t.__isToolbarStuck})}},{key:"__onScroll",value:function(){var e=this.jodit;if(e.o.toolbarSticky&&e.o.toolbar){var t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,r=Yi(e.container,e,e.od,!0),n=e.getMode()===Qt&&t+e.o.toolbarStickyOffset>r.top&&t+e.o.toolbarStickyOffset<r.top+r.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck!==n){var o=e.toolbarContainer;o&&(n?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",n)}}}},{key:"__isMobile",value:function(){var e=this.j;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}},{key:"beforeDestruct",value:function(e){li.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(dk($f));(function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":uk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);i>3&&a&&Object.defineProperty(t,r,a)})([Va()],hk.prototype,"__onScroll",null),Oa.add("sticky",hk),eo.prototype.usePopupForSpecialCharacters=!1,eo.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],ds.set("symbols",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '),eo.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(e,t,r){var n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){var o=e.c.div();return o.classList.add("jodit-symbols"),o.appendChild(n),e.e.on(n,"close_dialog",r),o}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);var i=n.querySelector("a");i&&i.focus()}}};const mk={symbols:"رمز"},gk={symbols:"symbol"},yk={symbols:"Symbol"},vk={symbols:"Símbolo"},bk={symbols:"سمبل"},_k={symbols:"Symbolit"},wk={symbols:"caractère"},Sk={symbols:"תו מיוחד"},Ek={symbols:"Szimbólum"},kk={symbols:"simbol"},xk={symbols:"Simbolo"},Tk={symbols:"symbol"},Ok={symbols:"기호"},Ck={symbols:"тэмдэгт"},jk={symbols:"symbool"},Pk={symbols:"symbol"},Ik={symbols:"Símbolo"},Rk={symbols:"символ"},Ak={symbols:"Sembol"},Mk={symbols:"символ"},Dk={symbols:"符号"},Nk={symbols:"符號"};function Lk(e,t,r){return Lk=Uk()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Fk(o,r.prototype),o},Lk.apply(null,arguments)}function Bk(e){return Bk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bk(e)}function Fk(e,t){return Fk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fk(e,t)}function zk(e){var t="function"==typeof Map?new Map:void 0;return zk=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Lk(e,arguments,Bk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fk(n,e)},zk(e)}function Uk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Uk=function(){return!!e})()}var Hk=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Bk(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Uk()?Reflect.construct(t,r||[],Bk(e).constructor):t.apply(e,r))}(this,t,[e])).buttons=[{name:"symbols",group:"insert"}],r.__countInRow=17,ja(Pe),r}var r;return function(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}}),t&&Fk(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this;e.e.on("generateSpecialCharactersTable.symbols",function(){for(var r=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),n=r.querySelector(".jodit-symbols__preview"),o=r.querySelector("table").tBodies[0],i=[],a=0;a<e.o.specialCharacters.length;){for(var s=e.c.element("tr"),l=0;l<t.__countInRow&&a<e.o.specialCharacters.length;l+=1,a+=1){var c=e.c.element("td"),u=e.c.fromHTML('<a\n\t\t\t\t\t\t\t\t\tdata-index="'.concat(a,'"\n\t\t\t\t\t\t\t\t\tdata-index-j="').concat(l,'"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>').concat(e.o.specialCharacters[a],"</a>"));i.push(u),c.appendChild(u),s.appendChild(c)}o.appendChild(s)}var d=t;return e.e.on(i,"focus",function(){n.innerHTML=this.innerHTML}).on(i,"mousedown",function(t){li.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(i,"mouseenter",function(){li.isTag(this,"a")&&this.focus()}).on(i,"keydown",function(t){var r=t.target;if(li.isTag(r,"a")){var n,o=parseInt(Xn(r,"-index")||"0",10),a=parseInt(Xn(r,"data-index-j")||"0",10);switch(t.key){case Ut:case qt:n=t.key===Ut?o-d.__countInRow:o+d.__countInRow,void 0===i[n]&&(n=t.key===Ut?Math.floor(i.length/d.__countInRow)*d.__countInRow+a:a)>i.length-1&&(n-=d.__countInRow),i[n]&&i[n].focus();break;case Ht:case zt:n=t.key===zt?o-1:o+1,void 0===i[n]&&(n=t.key===zt?i.length-1:0),i[n]&&i[n].focus();break;case Lt:e.e.fire(r,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),r})}},{key:"beforeDestruct",value:function(e){e.e.off("generateSpecialCharactersTable.symbols")}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(zk($f));function qk(e){return qk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qk(e)}function Vk(e,t){return Vk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vk(e,t)}function Wk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gk=function(){return!!e})()}Oa.add("symbols",Hk),eo.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},ds.set("ai-assistant",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg> '),ds.set("ai-commands",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg> '),eo.prototype.controls["ai-commands"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec:function(e,t,r){var n=r.control;e.e.fire("generateAiAssistantForm.ai-assistant",n.name)}},eo.prototype.controls["ai-assistant"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec:function(e,t,r){e.e.fire("generateAiAssistantForm.ai-assistant")}};var $k=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Wk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Kk=function(e){function t(e,r){var n,o=r.onInsert,i=r.onInsertAfter;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=qk(t),function(e,t){return!t||"object"!==Wk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Gk()?Reflect.construct(t,r||[],qk(e).constructor):t.apply(e,r))}(this,t,[e])).__aiResult="",n.__error=n.getElm("error"),n.__body=n.getElm("body"),n.__buttons=n.getElm("buttons"),n.__results=n.getElm("results"),n.__spinner=n.getElm("spinner"),n.__insertButton=cl(e,"","Insert","primary").onAction(function(){return o(n.__aiResult)}),n.__insertAfterButton=cl(e,"","Insert After","initial").onAction(function(){return i(n.__aiResult)});var a=function(){n.__formAiAssistant.validate()&&(n.__formAiAssistant.submit(),n.__toggleInsertButton(!0),n.__toggleSubmitButton(!0))};n.__submitButton=cl(e,"ai-assistant","").onAction(a),n.__tryAgainButton=cl(e,"update","","initial").onAction(a),n.promptInput=new fc(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:n.getFullElName("prompt-row-input")});var s=new Pl(e,[n.__insertButton,n.__insertAfterButton,n.__tryAgainButton],{className:n.getFullElName("prompt-row")});return n.__formAiAssistant=new nc(e,[new Pl(e,[n.promptInput,n.__submitButton],{className:n.getFullElName("prompt-row")})]).onSubmit(function(t){n.__error.textContent="",n.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);var r=n.getFullElName("","hide","true");n.__results.classList.remove(r),n.__buttons.classList.remove(r),li.detach(n.__results),n.__results.appendChild(n.__spinner),n.__insertButton.focus()}),n.__buttons.appendChild(s.container),n.__body.appendChild(n.__formAiAssistant.container),n.onChangePromptValue(),n}var r;return function(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}}),t&&Vk(e,t)}(t,e),r=[{key:"className",value:function(){return"UIAiAssistant"}},{key:"render",value:function(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}},{key:"setPrompt",value:function(e){if(e){var t=this.jodit,r=t.o.aiAssistant[e],n=t.o.aiAssistant,o=n.aiCommonPrefixPrompt,i=n.aiCommonSuffixPrompt;this.promptInput.value=[o,Mr(r)?r:"",i].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}},{key:"onAiAssistentResponse",value:function(e){this.setMod("loading",!1),li.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}},{key:"onAiAssistentError",value:function(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,li.detach(this.__results),this.__toggleSubmitButton(!1);var t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}},{key:"onChangePromptValue",value:function(){this.__toggleSubmitButton(!this.promptInput.value)}},{key:"__toggleSubmitButton",value:function(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}},{key:"__toggleInsertButton",value:function(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(bs);$k([va(":ai-assistant-response")],Kk.prototype,"onAiAssistentResponse",null),$k([va(":ai-assistant-error")],Kk.prototype,"onAiAssistentError",null),$k([va("promptInput:change")],Kk.prototype,"onChangePromptValue",null),Kk=$k([gi],Kk);const Yk={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"},Jk={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"};function Xk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Qk(e,t,r){return Qk=nx()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ex(o,r.prototype),o},Qk.apply(null,arguments)}function Zk(e){return Zk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zk(e)}function ex(e,t){return ex=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ex(e,t)}function tx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rx(e){var t="function"==typeof Map?new Map:void 0;return rx=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qk(e,arguments,Zk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ex(n,e)},rx(e)}function nx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nx=function(){return!!e})()}var ox=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":tx(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ix=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=Zk(t),function(e,t){return!t||"object"!==tx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nx()?Reflect.construct(t,r||[],Zk(e).constructor):t.apply(e,r))}(this,t,[e])).buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],ja(Ae),r}var r;return function(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}}),t&&ex(e,t)}(t,e),r=[{key:"__dialog",get:function(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}},{key:"__container",get:function(){var e=this.jodit,t=this.__dialog;return new Kk(e,{onInsertAfter:function(r){e.s.focus(),e.s.setCursorAfter(e.s.current()),e.s.insertHTML(r),t.close()},onInsert:function(r){e.s.focus(),e.s.insertHTML(r),t.close()}})}},{key:"afterInit",value:function(){}},{key:"onGenerateAiAssistantForm",value:function(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}},{key:"onInvokeAiAssistant",value:function(e){var t=this.jodit;t.s.focus();var r=t.s.html;t.async.promise(function(){var n,o=(n=function(n,o){var i,a;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,t.o.aiAssistant.aiAssistantCallback(e,r)];case 1:return i=s.sent(),n(i),[3,3];case 2:return a=s.sent(),o(a),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){Xk(i,r,o,a,s,"next",e)}function s(e){Xk(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e,t){return o.apply(this,arguments)}}()).then(function(e){t.e.fire("ai-assistant-response",e)}).catch(function(e){Hr(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}},{key:"beforeDestruct",value:function(e){var t,r;null===(t=ci(this,"__container"))||void 0===t||t.destruct(),null===(r=ci(this,"__dialog"))||void 0===r||r.destruct()}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(rx($f));function ax(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sx(e,t,r){return sx=fx()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&cx(o,r.prototype),o},sx.apply(null,arguments)}function lx(e){return lx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lx(e)}function cx(e,t){return cx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cx(e,t)}function ux(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dx(e){var t="function"==typeof Map?new Map:void 0;return dx=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return sx(e,arguments,lx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),cx(n,e)},dx(e)}function fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fx=function(){return!!e})()}ox([ui],ix.prototype,"__dialog",null),ox([ui],ix.prototype,"__container",null),ox([va(":generateAiAssistantForm.ai-assistant")],ix.prototype,"onGenerateAiAssistantForm",null),ox([va(":invokeAiAssistant")],ix.prototype,"onInvokeAiAssistant",null),Oa.add("ai-assistant",ix),eo.prototype.tab={tabInsideLiInsertNewList:!0};var px=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":ux(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},hx=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,r=lx(r=t),function(e,t){return!t||"object"!==ux(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,fx()?Reflect.construct(r,n||[],lx(e).constructor):r.apply(e,n));var e,r,n}var r;return function(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}}),t&&cx(e,t)}(t,e),(r=[{key:"afterInit",value:function(e){}},{key:"__onTab",value:function(e){if(e.key===Nt&&this.__onShift(e.shiftKey))return!1}},{key:"__onCommand",value:function(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}},{key:"__onShift",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.o.tab.tabInsideLiInsertNewList)return!1;var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return ax(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ax(e,2):void 0}}(e)||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(e){var t=e.createInside.fake(),r=e.createInside.fake(),n=e.s.range.cloneRange();n.collapse(!0),n.insertNode(t);var o=e.s.range.cloneRange();return o.collapse(!1),o.insertNode(r),[t,r]}(e)),n=r[0],o=r[1];try{var i=function(e,t,r){var n=li.closest(t,"li",e.editor);return!!n&&!(!r&&!li.isLeaf(n.previousElementSibling))&&!(r&&!li.closest(n,"li",e.editor))&&n}(e,n,t);if(!i)return!1;if(!function(e,t,r){var n=li.closest(r,"li",t.editor);return!(!n||n!==e&&!e.contains(n))}(i,e,n))return!1;var a=li.closest(i,["ol","ul"],e.editor);return!(!a||t&&!li.closest(a,"li",e.editor)||(t?function(e,t,r){var n=li.closest(t,"li",e.editor);Jn(n,"tab parentLi is null");var o=Array.from(t.children).filter(function(e){return li.isLeaf(e)});li.after(n,r);var i=o.indexOf(r);if(0!==i&&1!==o.length||li.safeRemove(t),i!==o.length-1){var a=t.cloneNode();li.append(r,a);for(var s=i+1;s<o.length;s+=1)li.append(a,o[s])}}(e,a,i):function(e,t,r){var n=r.previousElementSibling;Jn(n,"tab previousElementSibling is null");var o=n.lastElementChild,i=li.isTag(o,t.tagName)?o:e.createInside.element(t.tagName,Array.from(t.attributes).reduce(function(e,t){return e[t.name]=t.value,e},{}));i.appendChild(r),o!==i&&n.appendChild(i)}(e,a,i),0))}finally{var s=e.s.createRange();s.setStartAfter(n),s.setEndBefore(o),e.s.selectRange(s),li.safeRemove(n),li.safeRemove(o)}}(this.j,e);return t&&this.j.e.fire("afterTab",e),t}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(dx($f));function mx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}px([va(":keydown.tab")],hx.prototype,"__onTab",null),px([va(":beforeCommand.tab")],hx.prototype,"__onCommand",null),Oa.add("tab",hx);var gx=new Set([Nt,zt,Ht,Ut,qt]);function yx(e,t,r){return yx=Sx()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_x(o,r.prototype),o},yx.apply(null,arguments)}function vx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bx(e){return bx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bx(e)}function _x(e,t){return _x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_x(e,t)}function wx(e){var t="function"==typeof Map?new Map:void 0;return wx=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return yx(e,arguments,bx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_x(n,e)},wx(e)}function Sx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sx=function(){return!!e})()}Oa.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",function(t){var r=t.key,n=function(e,t){if(gx.has(t)){var r=e.s.current();if(r){var n=li.up(r,li.isCell,e.editor);if(n){var o=e.s.range;if(t!==Nt&&r!==n){var i=t===Ht||t===qt,a=so(i?li.next:li.prev,r,function(e){return t===Ut||t===qt?li.isTag(e,"br"):Boolean(e)},n);if(!i&&(a||t!==Ut&&li.isText(r)&&0!==o.startOffset)||i&&(a||t!==qt&&li.isText(r)&&r.nodeValue&&o.startOffset!==r.nodeValue.length))return}return n}}}}(e,r);if(n){var o=e.getInstance(wp,e.o),i=li.closest(n,"table",e.editor),a=null,s=r===zt||t.shiftKey,l=function(){return so(s?li.prev:li.next,n,li.isCell,i)};switch(r){case Nt:case zt:(a=l())||(o.appendRow(i,!!s&&i.querySelector("tr"),!s),a=l());break;case Ut:case qt:var c=o.formalMatrix(i),u=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return mx(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mx(e,2):void 0}}(e)||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.")}()}(o.formalCoordinate(i,n)),d=u[0],f=u[1];r===Ut?void 0!==c[d-1]&&(a=c[d-1][f]):void 0!==c[d+1]&&(a=c[d+1][f])}if(a){if(e.e.fire("hidePopup hideResizer"),a.firstChild)r===Nt?e.s.select(a,!0):e.s.setCursorIn(a,r===Ht||r===qt);else{var p=e.createInside.element("br");a.appendChild(p),e.s.setCursorBefore(p)}return e.synchronizeValues(),!1}}})}),eo.prototype.video={parseUrlToVideoEmbed:wo,defaultWidth:400,defaultHeight:345},ds.set("video",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '),eo.prototype.controls.video={popup:function(e,t,r){var n=new nc(e,[new Pl(e,[new Hl(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new Pl(e,[cl(e,"","Insert","primary").onAction(function(){return n.submit()})])]),o=new nc(e,[new Pl(e,[new fc(e,{name:"code",required:!0,label:"Embed code"})]),new Pl(e,[cl(e,"","Insert","primary").onAction(function(){return o.submit()})])]),i=[],a=function(t){e.s.restore(),e.s.insertHTML(t),r()};return e.s.save(),i.push({icon:"link",name:"Link",content:n.container},{icon:"source",name:"Code",content:o.container}),n.onSubmit(function(t){var r,n,o,i;a(so(null!==(n=null===(r=e.o.video)||void 0===r?void 0:r.parseUrlToVideoEmbed)&&void 0!==n?n:wo,t.url,{width:null===(o=e.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=e.o.video)||void 0===i?void 0:i.defaultHeight}))}),o.onSubmit(function(e){a(e.code)}),$m(e,i)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},Oa.add("video",function(e){e.registerButton({name:"video",group:"media"})}),eo.prototype.showXPathInStatusbar=!0;var Ex=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=bx(t),function(e,t){return!t||"object"!=((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var r}(e,Sx()?Reflect.construct(t,r||[],bx(e).constructor):t.apply(e,r))}(this,t,arguments)).onContext=function(t,r){return e.menu||(e.menu=new Ad(e.j)),e.menu.show(r.clientX,r.clientY,[{icon:"bin",title:t===e.j.editor?"Clear":"Remove",exec:function(){t!==e.j.editor?li.safeRemove(t):e.j.value="",e.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:function(){e.j.s.select(t)}}]),!1},e.onSelectPath=function(t,r){e.j.s.focus();var n=Xn(r.target,"-path")||"/";if("/"===n)return e.j.execCommand("selectall"),!1;try{var o=e.j.ed.evaluate(n,e.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(o)return e.j.s.select(o),!1}catch(e){}return e.j.s.select(t),!1},e.tpl=function(t,r,n,o){var i=e.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(r,'" title="').concat(o,'" tabindex="-1"\'>').concat(hn(n),"</a></span>")),a=i.firstChild;return e.j.e.on(a,"click",e.onSelectPath.bind(e,t)).on(a,"contextmenu",e.onContext.bind(e,t)),i},e.removeSelectAll=function(){e.selectAllButton&&(e.selectAllButton.destruct(),delete e.selectAllButton)},e.appendSelectAll=function(){e.removeSelectAll(),e.selectAllButton=od(e.j,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){vx(e,t,r[t])})}return e}({name:"selectall"},e.j.o.controls.selectall)),e.selectAllButton.state.size="tiny",e.container&&e.container.insertBefore(e.selectAllButton.container,e.container.firstChild)},e.calcPathImd=function(){if(!e.isDestructed){var t,r,n,o=e.j.s.current();e.container&&(e.container.innerHTML=vt),o&&li.up(o,function(o){!o||e.j.editor===o||li.isText(o)||li.isComment(o)||(t=o.nodeName.toLowerCase(),r=Jo(o,e.j.editor).replace(/^\//,""),n=e.tpl(o,r,t,e.j.i18n("Select %s",t)),e.container&&e.container.insertBefore(n,e.container.firstChild))},e.j.editor),e.appendSelectAll()}},e.calcPath=e.j.async.debounce(e.calcPathImd,2*e.j.defaultTimeout),e}var r;return function(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}}),t&&_x(e,t)}(t,e),(r=[{key:"afterInit",value:function(){var e=this;this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",function(){e.j.o.showXPathInStatusbar&&e.container&&(e.j.statusbar.append(e.container),e.j.getRealMode()===Qt?e.calcPath():(e.container&&(e.container.innerHTML=vt),e.appendSelectAll()))}),this.calcPath())}},{key:"beforeDestruct",value:function(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),li.safeRemove(this.container),delete this.menu,delete this.container}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(wx($f));Oa.add("xpath",Ex);var kx=Tt?Tt.SpeechRecognition||Tt.webkitSpeechRecognition:void 0;function xx(e,t,r){return xx="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Tx(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r||e):o.value}},xx(e,t,r||e)}function Tx(e){return Tx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tx(e)}function Ox(e,t){return Ox=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ox(e,t)}function Cx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function jx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jx=function(){return!!e})()}var Px,Ix=Px=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Tx(t),function(e,t){return!t||"object"!==Cx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,jx()?Reflect.construct(t,[],Tx(e).constructor):t.apply(e,r))}(this,t)).async=e,n._continuous=!1,n._interimResults=!1,n.sound=!0,n._isEnabled=!1,n._restartTimeout=0,n._onSpeechStart=function(e){n._isEnabled&&(n.async.clearTimeout(n._restartTimeout),n._restartTimeout=n.async.setTimeout(function(){n.restart(),n.emit("pulse",!1),n._makeSound(940)},5e3),n.emit("pulse",!0))},n.__interimResults="",n._api=r,Px._instances.add(n),n}var r;return function(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}}),t&&Ox(e,t)}(t,e),r=[{key:"lang",get:function(){return this._lang},set:function(e){this._lang=e,this._api.lang=e}},{key:"continuous",get:function(){return this._continuous},set:function(e){this._continuous=e,this._api.continuous=e}},{key:"interimResults",get:function(){return this._interimResults},set:function(e){this._interimResults=e,this._api.interimResults=e}},{key:"destruct",value:function(){this.stop(),Px._instances.delete(this),xx(Tx(t.prototype),"destruct",this).call(this)}},{key:"isEnabled",get:function(){return this._isEnabled}},{key:"start",value:function(){var e=this;if(!this._isEnabled){this._isEnabled=!0,Px._instances.forEach(function(t){t!==e&&t.stop()});try{this._api.start()}catch(e){return this._onError(e),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}},{key:"stop",value:function(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}},{key:"toggle",value:function(){this._isEnabled?this.stop():this.start()}},{key:"restart",value:function(){this.stop(),this.start()}},{key:"__on",value:function(e,t){return this._api.addEventListener(e,t),this}},{key:"__off",value:function(e,t){return this._api.removeEventListener(e,t),this}},{key:"_onResults",value:function(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}},{key:"_onProgress",value:function(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(var t=0;t<e.results.length;t++){var r=e.results.item(t);if(r.length){var n=r.item(0).transcript;this.__interimResults+=n}}this.__interimResults&&this.emit("progress",this.__interimResults)}}},{key:"_onError",value:function(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),"language-unavailable"!==e.error&&"language-not-supported"!==e.error||this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}},{key:"_makeSound",value:function(e){this.sound&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sec,r=void 0===t?.1:t,n=e.frequency,o=void 0===n?440:n,i=e.gain,a=void 0===i?.1:i,s=e.type,l=void 0===s?"sine":s;if(Tt&&(void 0!==Tt.AudioContext||void 0!==Tt.webkitAudioContext)){var c=new(Tt.AudioContext||Tt.webkitAudioContext),u=c.createGain(),d=c.createOscillator();d.type=l,d.frequency.value=o,d.connect(u),u.connect(c.destination),d.start(),d.stop(c.currentTime+r),u.gain.value=a}}({frequency:e})}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(vn);function Rx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Ix._instances=new Set,Ix=Px=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Cx(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}([jr],Ix),eo.prototype.speechRecognize={api:void 0!==kx?kx:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},ds.set("speech-recognize",'<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '),eo.prototype.controls.speechRecognize={isVisible:function(e){return Boolean(e.o.speechRecognize.api)},isActive:function(e,t){var r=io(e,"speech");return Boolean(null==r?void 0:r.isEnabled)},isDisabled:function(e){return!e.o.speechRecognize.api},exec:function(e,t,r){var n,o=r.button,i=r.control,a=e.o.speechRecognize,s=a.api,l=a.lang,c=a.continuous,u=a.interimResults,d=a.sound;if(s){var f=io(e,"speech");if(!f){var p=new s;(f=new Ix(e.async,p)).lang=Mr(l)?l:null!==(n=Xn(e.od.documentElement,"lang"))&&void 0!==n?n:void 0,f.continuous=c,f.interimResults=u,f.sound=d,io(e,"speech",f),f.on("pulse",function(e){o.setMod("pulse",e)}),f.on("result",function(t){return e.e.fire("speechRecognizeResult",t)}),f.on("progress",function(t){return e.e.fire("speechRecognizeProgressResult",t)}),f.on("error",function(t){return e.message.error(t)}),o.hookStatus("beforeDestruct",function(){io(e,"speech",null),f.destruct()})}if(i.args){var h=i.args[0];if(qr(f[h]))return f[h]=!f[h],void(f.isEnabled&&f.restart())}f.toggle(),f.isEnabled&&o.setMod("pulse",!0),o.state.activated=f.isEnabled}else e.alert("Speech recognize API unsupported in your browser")},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate:function(e,t,r){var n,o=io(e,"speech"),i=null!==(n=null==o?void 0:o[t])&&void 0!==n?n:e.o.speechRecognize[t];return"<span class='jodit-speech-recognize__list-item'><input ".concat(i?"checked":""," class='jodit-checkbox' type='checkbox'> ").concat(r,"</span>")},mods:{stroke:!1}};const Ax={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"},Mx={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"},Dx={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"},Nx={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"},Lx={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"},Bx={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"},Fx={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"},zx={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"},Ux={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"},Hx={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"},qx={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"},Vx={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"},Wx={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"},Gx={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"},$x={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"},Kx={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"},Yx={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"},Jx={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"},Xx={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"},Qx={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"},Zx={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"},eT={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"},tT={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"};function rT(e,t,r){return rT=sT()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&oT(o,r.prototype),o},rT.apply(null,arguments)}function nT(e){return nT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nT(e)}function oT(e,t){return oT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oT(e,t)}function iT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function aT(e){var t="function"==typeof Map?new Map:void 0;return aT=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return rT(e,arguments,nT(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oT(n,e)},aT(e)}function sT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sT=function(){return!!e})()}var lT=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":iT(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},cT=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=nT(t),function(e,t){return!t||"object"!==iT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,sT()?Reflect.construct(t,r||[],nT(e).constructor):t.apply(e,r))}(this,t,arguments)).buttons=[{group:"state",name:"speechRecognize"}],e._commandToWord={},e}var r;return function(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}}),t&&oT(e,t)}(t,e),r=[{key:"afterInit",value:function(e){var t=this,r=e.o.speechRecognize.commands;r&&(ja(nt),fo(r,!1).forEach(function(n){n.split("|").forEach(function(o){o=o.trim().toLowerCase(),t._commandToWord[o]=r[n];var i=e.i18n(o);i!==o&&i.split("|").forEach(function(e){t._commandToWord[e.trim().toLowerCase()]=r[n].trim()})})}))}},{key:"beforeDestruct",value:function(e){li.safeRemove(this.messagePopup)}},{key:"onSpeechRecognizeProgressResult",value:function(e){var t=this;this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(function(){li.safeRemove(t.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}},{key:"onSpeechRecognizeResult",value:function(e){this.j.async.clearTimeout(this.__hidePopupTimeout),li.safeRemove(this.messagePopup);var t=this.j,r=t.s;if(!this._checkCommand(e)){var n=r.range,o=r.current();if(r.isCollapsed()&&li.isText(o)&&li.isOrContains(t.editor,o)&&o.nodeValue){var i=o.nodeValue;o.nodeValue=i+(/[\u00A0 ]\uFEFF*$/.test(i)?"":" ")+e,n.setStartAfter(o),r.selectRange(n),t.synchronizeValues()}else r.insertHTML(e)}}},{key:"_checkCommand",value:function(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&(function(e,t){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Rx(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Rx(e,2):void 0}}(e)||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.")}()}(t.split("::")),n=r[0],o=r[1];e.execCommand(n,null,o)}(this.j,this._commandToWord[e]),!0)}}],r&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(aT($f));lT([va(":speechRecognizeProgressResult")],cT.prototype,"onSpeechRecognizeProgressResult",null),lT([va(":speechRecognizeResult")],cT.prototype,"onSpeechRecognizeResult",null),Vh.plugins.add("speech-recognize",cT);var uT=Vh,dT=(0,ot.forwardRef)(function(e,t){var r=e.JoditConstructor,n=void 0===r?uT:r,o=e.className,i=e.config,a=e.id,s=e.name,l=e.onBlur,c=e.onChange,u=e.tabIndex,d=e.value,f=e.editorRef,p=(0,ot.useRef)(null),h=(0,ot.useRef)(null);(0,ot.useEffect)(function(){var e=p.current,t=n.make(e,i);return h.current=t,"function"==typeof f&&f(t),function(){t.isReady?t.destruct():t.waitForReady().then(function(e){return e.destruct()})}},[n,i,f]),(0,ot.useEffect)(function(){t&&("function"==typeof t?t(h.current):t.current=h.current)},[p,t,h]);var m=function(e){var t=(0,ot.useRef)("");return(0,ot.useEffect)(function(){t.current=e},[e]),t.current}(null!=o?o:"");return(0,ot.useEffect)(function(){var e,t,r=null===(t=h.current)||void 0===t||null===(e=t.container)||void 0===e?void 0:e.classList;m!==o&&"string"==typeof m&&m.split(/\s+/).filter(Boolean).forEach(function(e){return null==r?void 0:r.remove(e)}),o&&"string"==typeof o&&o.split(/\s+/).filter(Boolean).forEach(function(e){return null==r?void 0:r.add(e)})},[o,m]),(0,ot.useEffect)(function(){var e;(null===(e=h.current)||void 0===e?void 0:e.workplace)&&(h.current.workplace.tabIndex=u||-1)},[u]),(0,ot.useEffect)(function(){var e=h.current;if((null==e?void 0:e.events)&&(l||c)){var t=function(e){var t,r;return l&&l(null!==(r=null==h||null===(t=h.current)||void 0===t?void 0:t.value)&&void 0!==r?r:"",e)},r=function(e){return c&&c(e)};return e.events.on("blur",t).on("change",r),function(){var n;null===(n=e.events)||void 0===n||n.off("blur",t).off("change",r)}}},[l,c]),(0,ot.useEffect)(function(){var e=h.current,t=function(){e&&void 0!==d&&e.value!==d&&(e.value=d)};e&&(e.isReady?t():e.waitForReady().then(t))},[d]),it().createElement("div",{className:"jodit-react-container"},it().createElement("textarea",{defaultValue:d,name:s,id:a,ref:p}))});dT.displayName="JoditEditor";const fT=dT;return o})(),e.exports=n(r(296))}]]); //# sourceMappingURL=vendors.js.map