/*! For license information please see main.06df306a.js.LICENSE.txt */
!function(e){function t(t){for(var n,o,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&c.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=i);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(e){return o.p+"static/js/"+({}[e]||e)+"."+{1:"a4f9e358"}[e]+".chunk.js"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpopenai-template"]=this["webpackJsonpopenai-template"]||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=a;o(o.s=522)}([function(e,t,n){"use strict";e.exports=n(175)},function(e,t,n){"use strict";e.exports=n(166)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(99);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return V})),n.d(t,"b",(function(){return wt})),n.d(t,"c",(function(){return Ve})),n.d(t,"d",(function(){return ut})),n.d(t,"e",(function(){return ct})),n.d(t,"f",(function(){return Mt})),n.d(t,"g",(function(){return $e})),n.d(t,"h",(function(){return Qt})),n.d(t,"i",(function(){return Y})),n.d(t,"j",(function(){return en})),n.d(t,"k",(function(){return In})),n.d(t,"l",(function(){return Fn})),n.d(t,"m",(function(){return Xn})),n.d(t,"n",(function(){return On})),n.d(t,"o",(function(){return De})),n.d(t,"p",(function(){return Gt})),n.d(t,"q",(function(){return $t})),n.d(t,"r",(function(){return at}));function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"===typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var o={};function i(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:o}var a=Object.assign,s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var p="undefined"!==typeof Proxy,f=Object.toString();function h(){p||r("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function b(e){return"function"===typeof e}function v(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"===typeof e}function x(e){if(!y(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n.toString()===f}function O(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function E(e,t,n){l(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function w(e,t,n){l(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function j(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function S(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function T(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var k="undefined"!==typeof Object.getOwnPropertySymbols;var C="undefined"!==typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:k?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function _(e){return null===e?null:"object"===typeof e?""+e:e}function N(e,t){return c.hasOwnProperty.call(e,t)}var A=Object.getOwnPropertyDescriptors||function(e){var t={};return C(e).forEach((function(n){t[n]=s(e,n)})),t};function R(e,t){return!!(e&t)}function I(e,t,n){return n?e|=t:e&=~t,e}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function L(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(null,arguments)}function $(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,B(e,t)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function U(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var H=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(W(n))return e.decorate_20223_(t,n);G(t,n,e)}),e)}function G(e,t,n){N(e,H)||E(e,H,F({},e[H])),function(e){return e.annotationType_===J}(n)||(e[H][t]=n)}function W(e){return"object"==typeof e&&"string"==typeof e.kind}var V=Symbol("mobx administration"),q=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Ot(this)},t.reportChanged=function(){yt(),Et(this),xt()},t.toString=function(){return this.name_},L(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=I(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=I(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();q.isBeingObservedMask_=1,q.isPendingUnobservationMask_=2,q.diffValueMask_=4;var K=j("Atom",q);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r,o=new q(e);return t!==g&&Kt(Wt,o,t,r),n!==g&&qt(o,n),o}var X={identity:function(e,t){return e===t},structural:function(e,t){return gr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return gr(e,t,1)}};function Z(e,t,n){return dn(e)?e:Array.isArray(e)?De.array(e,{name:n}):x(e)?De.object(e,void 0,{name:n}):S(e)?De.map(e,{name:n}):T(e)?De.set(e,{name:n}):"function"!==typeof e||Bt(e)||cn(e)?e:O(e)?sn(e):Ft(n,e)}function Q(e){return e}var J="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne,decorate_20223_:re}}function te(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Bt(n.value))return 1;var i=oe(e,this,t,n,!1);return l(r,t,i),2}function ne(e,t,n,r){var o=oe(e,this,t,n);return e.defineProperty_(t,o,r)}function re(e,t){var n,o=t.kind,i=t.name,a=t.addInitializer,s=this,l=function(e){var t,n,r,o;return Ge(null!=(t=null==(n=s.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=s.options_)?void 0:o.autoAction)&&r)};return"field"==o?function(e){var t,n=e;return Bt(n)||(n=l(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==o?(Bt(e)||(e=l(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e):void r("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+o+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,o){var i,a,s,l,c,u,d,p;void 0===o&&(o=mt.safeDescriptors),p=r,t.annotationType_,p.value;var f,h=r.value;null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(f=e.proxy_)?f:e.target_));return{value:Ge(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),h,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se,decorate_20223_:le}}function ae(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!N(e.target_,t)||!cn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(cn(n.value))return 1;var i=ce(e,this,t,n,!1,!1);return l(r,t,i),2}function se(e,t,n,r){var o,i=ce(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function le(e,t){var n;var r=t.name,o=t.addInitializer;return cn(e)||(e=sn(e)),null!=(n=this.options_)&&n.bound&&o((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function ce(e,t,n,r,o,i){var a;void 0===i&&(i=mt.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;(cn(l)||(l=sn(l)),o)&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:l,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:de,extend_:pe,decorate_20223_:fe}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function pe(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,F({},this.options_,{get:n.get,set:n.set}),r)}function fe(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=qn(this)[V],o=F({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new Xe(o))})),function(){return this[V].getObservablePropValue_(r)}}function he(e,t){return{annotationType_:e,options_:t,make_:me,extend_:ge,decorate_20223_:be}}function me(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ge(e,t,n,r){var o,i;return function(e,t){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Z,r)}function be(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=qn(e)[V],l=new Ye(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:Z,"ObservableObject."+o.toString(),!1);s.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[V].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[V].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var ve="true",ye=xe();function xe(e){return{annotationType_:ve,options_:e,make_:Oe,extend_:Ee,decorate_20223_:we}}function Oe(e,t,n,r){var o,i,a,s;if(n.get)return $e.make_(e,t,n,r);if(n.set){var c=Ge(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!mt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"===typeof n.value)return O(n.value)?(null!=(s=this.options_)&&s.autoBind?sn.bound:sn).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Ft.bound:Ft).make_(e,t,n,r);var u,d=!1===(null==(o=this.options_)?void 0:o.deep)?De.ref:De;"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return d.make_(e,t,n,r)}function Ee(e,t,n,r){var o,i,a;if(n.get)return $e.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!mt.safeDescriptors||e.isPlainObject_,set:Ge(t.toString(),n.set)},r);"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?De.ref:De).extend_(e,t,n,r)}function we(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var je={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Se(e){return e||je}Object.freeze(je);var Te=he("observable"),ke=he("observable.ref",{enhancer:Q}),Ce=he("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||Xn(e)||In(e)||Fn(e)||Hn(e)?e:Array.isArray(e)?De.array(e,{name:n,deep:!1}):x(e)?De.object(e,void 0,{name:n,deep:!1}):S(e)?De.map(e,{name:n,deep:!1}):T(e)?De.set(e,{name:n,deep:!1}):void 0}}),_e=he("observable.struct",{enhancer:function(e,t){return gr(e,t)?t:e}}),Ne=z(Te);function Ae(e){return!0===e.deep?Z:!1===e.deep?Q:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Z}(e.defaultDecorator)}function Re(e,t,n){return W(t)?Te.decorate_20223_(e,t):v(t)?void G(e,t,Te):dn(e)?e:x(e)?De.object(e,t,n):Array.isArray(e)?De.array(e,t):S(e)?De.map(e,t):T(e)?De.set(e,t):"object"===typeof e&&null!==e?e:De.box(e,t)}a(Re,Ne);var Ie,Pe,De=a(Re,{box:function(e,t){var n=Se(t);return new Ye(e,Ae(n),n.name,!0,n.equals)},array:function(e,t){var n=Se(t);return(!1===mt.useProxies||!1===n.proxy?cr:Tn)(e,Ae(n),n.name)},map:function(e,t){var n=Se(t);return new Mn(e,Ae(n),n.name)},set:function(e,t){var n=Se(t);return new Un(e,Ae(n),n.name)},object:function(e,t,n){return fr((function(){return Jt(!1===mt.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return h(),e=qn(e,t),null!=(r=(n=e[V]).proxy_)?r:n.proxy_=new Proxy(e,hn)}({},n),e,t)}))},ref:z(ke),shallow:z(Ce),deep:Ne,struct:z(_e)}),Le="computed",Me=ue(Le),Fe=ue("computed.struct",{equals:X.structural}),$e=function(e,t){if(W(t))return Me.decorate_20223_(e,t);if(v(t))return G(e,t,Me);if(x(e))return z(ue(Le,e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Xe(n)};Object.assign($e,Me),$e.struct=z(Fe);var Be=0,Ue=1,He=null!=(Ie=null==(Pe=s((function(){}),"name"))?void 0:Pe.configurable)&&Ie,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ge(e,t,n,r){function o(){return We(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},He&&(ze.value=e,l(o,"name",ze)),o}function We(e,t,n,o,i){var a=function(e,t){var n=!1,r=0;0;var o=mt.trackingDerivation,i=!t||!o;yt();var a=mt.allowStateChanges;i&&(st(),a=qe(!0));var s=ct(!0),l={runAsAction_:i,prevDerivation_:o,prevAllowStateChanges_:a,prevAllowStateReads_:s,notifySpy_:n,startTime_:r,actionId_:Ue++,parentActionId_:Be};return Be=l.actionId_,l}(0,t);try{return n.apply(o,i)}catch(s){throw a.error_=s,s}finally{!function(e){Be!==e.actionId_&&r(30);Be=e.parentActionId_,void 0!==e.error_&&(mt.suppressReactionErrors=!0);Ke(e.prevAllowStateChanges_),ut(e.prevAllowStateReads_),xt(),e.runAsAction_&&lt(e.prevDerivation_);0;mt.suppressReactionErrors=!1}(a)}}function Ve(e,t){var n=qe(e);try{return t()}finally{Ke(n)}}function qe(e){var t=mt.allowStateChanges;return mt.allowStateChanges=e,t}function Ke(e){mt.allowStateChanges=e}var Ye=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=X.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}$(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==mt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(rt(this),mn(this)){var t=bn(this,{object:this,type:wn,newValue:e});if(!t)return mt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?mt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),vn(this)&&xn(this,{type:wn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return gn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:wn,newValue:this.value_,oldValue:void 0}),yn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return _(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(q),Xe=function(){function e(e){this.dependenciesState_=Ze.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ge("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?X.structural:X.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Ze.UP_TO_DATE_)return;e.lowestObserverState_=Ze.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ze.UP_TO_DATE_&&(e.dependenciesState_=Ze.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==mt.inBatch||0!==this.observers_.size||this.keepAlive_){if(Ot(this),nt(this)){var e=mt.trackingContext;this.keepAlive_&&!e&&(mt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Ze.STALE_)return;e.lowestObserverState_=Ze.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ze.POSSIBLY_STALE_?t.dependenciesState_=Ze.STALE_:t.dependenciesState_===Ze.UP_TO_DATE_&&(e.lowestObserverState_=Ze.UP_TO_DATE_)}))}(this),mt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),yt(),this.value_=this.computeValue_(!1),xt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ze.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=qe(!1);if(e)t=ot(this,this.derivation,this.scope_);else if(!0===mt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new et(r)}return Ke(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(it(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return Ut((function(){var i=n.get();if(!r||t){var a=st();e({observableKind:"computed",debugObjectName:n.name_,type:wn,object:n,newValue:i,oldValue:o}),lt(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return _(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},L(e,[{key:"isComputing",get:function(){return R(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=I(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=I(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=I(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=I(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();Xe.isComputingMask_=1,Xe.isRunningSetterMask_=2,Xe.isBeingObservedMask_=4,Xe.isPendingUnobservationMask_=8,Xe.diffValueMask_=16;var Ze,Qe,Je=j("ComputedValue",Xe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ze||(Ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qe||(Qe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Ze.UP_TO_DATE_:return!1;case Ze.NOT_TRACKING_:case Ze.STALE_:return!0;case Ze.POSSIBLY_STALE_:for(var t=ct(!0),n=st(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Je(a)){if(mt.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return lt(n),ut(t),!0}if(e.dependenciesState_===Ze.STALE_)return lt(n),ut(t),!0}}return dt(e),lt(n),ut(t),!1}}function rt(e){}function ot(e,t,n){var r=ct(!0);dt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++mt.runId;var o,i=mt.trackingDerivation;if(mt.trackingDerivation=e,mt.inBatch++,!0===mt.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(a){o=new et(a)}return mt.inBatch--,mt.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ze.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var l=t[i];0===l.diffValue&&bt(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,gt(c,e))}r!==Ze.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ut(r),o}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)bt(t[n],e);e.dependenciesState_=Ze.NOT_TRACKING_}function at(e){var t=st();try{return e()}finally{lt(t)}}function st(){var e=mt.trackingDerivation;return mt.trackingDerivation=null,e}function lt(e){mt.trackingDerivation=e}function ct(e){var t=mt.allowStateReads;return mt.allowStateReads=e,t}function ut(e){mt.allowStateReads=e}function dt(e){if(e.dependenciesState_!==Ze.UP_TO_DATE_){e.dependenciesState_=Ze.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ze.UP_TO_DATE_}}var pt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ft=!0,ht=!1,mt=function(){var e=i();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new pt).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new pt):(setTimeout((function(){ht||r(35)}),1),new pt)}();function gt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function bt(e,t){e.observers_.delete(t),0===e.observers_.size&&vt(e)}function vt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,mt.pendingUnobservations.push(e))}function yt(){mt.inBatch++}function xt(){if(0===--mt.inBatch){Tt();for(var e=mt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Xe&&n.suspend_())}mt.pendingUnobservations=[]}}function Ot(e){var t=mt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&mt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&mt.inBatch>0&&vt(e),!1)}function Et(e){e.lowestObserverState_!==Ze.STALE_&&(e.lowestObserverState_=Ze.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ze.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ze.STALE_})))}var wt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ze.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Qe.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,mt.pendingReactions.push(this),Tt())},t.runReaction_=function(){if(!this.isDisposed){yt(),this.isScheduled=!1;var e=mt.trackingContext;if(mt.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}mt.trackingContext=e,xt()}},t.track=function(e){if(!this.isDisposed){yt();0,this.isRunning=!0;var t=mt.trackingContext;mt.trackingContext=this;var n=ot(this,e,void 0);mt.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),xt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(mt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";mt.suppressReactionErrors||console.error(n,e),mt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(yt(),it(this),xt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[V]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},L(e,[{key:"isDisposed",get:function(){return R(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=I(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=I(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=I(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=I(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var jt=100,St=function(e){return e()};function Tt(){mt.inBatch>0||mt.isRunningReactions||St(kt)}function kt(){mt.isRunningReactions=!0;for(var e=mt.pendingReactions,t=0;e.length>0;){++t===jt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}mt.isRunningReactions=!1}var Ct=j("Reaction",wt);var _t="action",Nt="autoAction",At="<unnamed action>",Rt=ee(_t),It=ee("action.bound",{bound:!0}),Pt=ee(Nt,{autoAction:!0}),Dt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Lt(e){return function(t,n){return b(t)?Ge(t.name||At,t,e):b(n)?Ge(t,n,e):W(n)?(e?Pt:Rt).decorate_20223_(t,n):v(n)?G(t,n,e?Pt:Rt):v(t)?z(ee(e?Nt:_t,{name:t,autoAction:e})):void 0}}var Mt=Lt(!1);Object.assign(Mt,Rt);var Ft=Lt(!0);function $t(e){return We(e.name,!1,e,this,void 0)}function Bt(e){return b(e)&&!0===e.isMobxAction}function Ut(e,t){var n,r,o,i;void 0===t&&(t=d);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)a=new wt(s,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var l=zt(t),c=!1;a=new wt(s,(function(){c||(c=!0,l((function(){c=!1,a.isDisposed||a.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(a)}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}Object.assign(Ft,Pt),Mt.bound=z(It),Ft.bound=z(Dt);var Ht=function(e){return e()};function zt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Ht}function Gt(e,t,n){var r,o,i;void 0===n&&(n=d);var a,s,l,c=null!=(r=n.name)?r:"Reaction",u=Mt(c,n.onError?(a=n.onError,s=t,function(){try{return s.apply(this,arguments)}catch(e){a.call(this,e)}}):t),p=!n.scheduler&&!n.delay,f=zt(n),h=!0,m=!1,g=n.compareStructural?X.structural:n.equals||X.default,b=new wt(c,(function(){h||p?v():m||(m=!0,f(v))}),n.onError,n.requiresObservable);function v(){if(m=!1,!b.isDisposed){var t=!1,r=l;b.track((function(){var n=Ve(!1,(function(){return e(b)}));t=h||!g(l,n),l=n})),(h&&n.fireImmediately||!h&&t)&&u(l,r,b),h=!1}}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||b.schedule_(),b.getDisposer_(null==(i=n)?void 0:i.signal)}var Wt="onBO",Vt="onBUO";function qt(e,t,n){return Kt(Vt,e,t,n)}function Kt(e,t,n,r){var o="function"===typeof r?ur(t,n):ur(t),i=b(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Yt="never",Xt="always",Zt="observed";function Qt(e){!0===e.isolateGlobalState&&function(){if((mt.pendingReactions.length||mt.inBatch||mt.isRunningReactions)&&r(36),ht=!0,ft){var e=i();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),mt=new pt}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(mt.useProxies=t===Xt||t!==Yt&&"undefined"!==typeof Proxy),"ifavailable"===t&&(mt.verifyProxies=!0),void 0!==n){var o=n===Xt?Xt:n===Zt;mt.enforceActions=o,mt.allowStateChanges=!0!==o&&o!==Xt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(mt[t]=!!e[t])})),mt.allowStateReads=!mt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=St;St=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Jt(e,t,n,r){var o=A(t);return fr((function(){var t=qn(e,r)[V];C(o).forEach((function(e){t.extend_(e,o[e],!n||(!(e in n)||n[e]))}))})),e}function en(e,t){return tn(ur(e,t))}function tn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(tn)),n}var nn=0;function rn(){this.message="FLOW_CANCELLED"}rn.prototype=Object.create(Error.prototype);var on=ie("flow"),an=ie("flow.bound",{bound:!0}),sn=Object.assign((function(e,t){if(W(t))return on.decorate_20223_(e,t);if(v(t))return G(e,t,on);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++nn,i=Mt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=Mt(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(l){return n(l)}u(t)}function c(e){var t;a=void 0;try{t=Mt(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(l){return n(l)}u(t)}function u(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)}));return s.cancel=Mt(r+" - runid: "+o+" - cancel",(function(){try{a&&ln(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(g,g),ln(n),e(new rn)}catch(r){e(r)}})),s};return o.isMobXFlow=!0,o}),on);function ln(e){b(e.cancel)&&e.cancel()}function cn(e){return!0===(null==e?void 0:e.isMobXFlow)}function un(e,t){return!!e&&(void 0!==t?!!Xn(e)&&e[V].values_.has(t):Xn(e)||!!e[V]||K(e)||Ct(e)||Je(e))}function dn(e){return un(e)}function pn(e,t){void 0===t&&(t=void 0),yt();try{return e.apply(t)}finally{xt()}}function fn(e){return e[V]}sn.bound=z(an);var hn={has:function(e,t){return fn(e).has_(t)},get:function(e,t){return fn(e).get_(t)},set:function(e,t,n){var r;return!!v(t)&&(null==(r=fn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!v(t)&&(null==(n=fn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=fn(e).defineProperty_(t,n))||r},ownKeys:function(e){return fn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function mn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function gn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function bn(e,t){var n=st();try{for(var o=[].concat(e.interceptors_||[]),i=0,a=o.length;i<a&&((t=o[i](t))&&!t.type&&r(14),t);i++);return t}finally{lt(n)}}function vn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function yn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function xn(e,t){var n=st(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);lt(n)}}function On(e,t,n){return fr((function(){var r=qn(e,n)[V];null!=t||(t=function(e){return N(e,H)||E(e,H,F({},e[H])),e[H]}(e)),C(t).forEach((function(e){return r.make_(e,t[e])}))})),e}var En="splice",wn="update",jn={get:function(e,t){var n=e[V];return t===V?n:"length"===t?n.getArrayLength_():"string"!==typeof t||isNaN(t)?N(kn,t)?kn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[V];return"length"===t&&r.setArrayLength_(n),"symbol"===typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Sn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new q(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return gn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),yn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),o=0;o<e-t;o++)n[o]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&lr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),mn(this)){var i=bn(this,{object:this.proxy_,type:En,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=vn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:wn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&xn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=vn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:En,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&xn(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var o=n[e];if(mn(this)){var i=bn(this,{type:wn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,o))!==o&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,o))}else{for(var a=new Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function Tn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h(),fr((function(){var o=new Sn(n,t,r,!1);w(o.values_,V,o);var i=new Proxy(o.values_,jn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i}))}var kn={clear:function(){return this.splice(0)},replace:function(e){var t=this[V];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[V];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[V].spliceWithArray_(e,t,n)},push:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return mt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){mt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[V],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Cn(e,t){"function"===typeof Array.prototype[e]&&(kn[e]=t(e))}function _n(e){return function(){var t=this[V];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Nn(e){return function(t,n){var r=this,o=this[V];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function An(e){return function(){var t=this,n=this[V];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}Cn("at",_n),Cn("concat",_n),Cn("flat",_n),Cn("includes",_n),Cn("indexOf",_n),Cn("join",_n),Cn("lastIndexOf",_n),Cn("slice",_n),Cn("toString",_n),Cn("toLocaleString",_n),Cn("toSorted",_n),Cn("toSpliced",_n),Cn("with",_n),Cn("every",Nn),Cn("filter",Nn),Cn("find",Nn),Cn("findIndex",Nn),Cn("findLast",Nn),Cn("findLastIndex",Nn),Cn("flatMap",Nn),Cn("forEach",Nn),Cn("map",Nn),Cn("some",Nn),Cn("toReversed",Nn),Cn("reduce",An),Cn("reduceRight",An);var Rn=j("ObservableArrayAdministration",Sn);function In(e){return y(e)&&Rn(e[V])}var Pn={},Dn="add",Ln="delete",Mn=function(){function e(e,t,n){var o=this;void 0===t&&(t=Z),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=Pn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,b(Map)||r(18),fr((function(){o.keysAtom_=Y("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,e&&o.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!mt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ye(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),qt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(mn(this)){var r=bn(this,{type:n?wn:Dn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,mn(this))&&!bn(this,{type:Ln,object:this,name:e}))return!1;if(this.has_(e)){var n=vn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Ln,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return pn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&xn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==mt.UNCHANGED){var r=vn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:wn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&xn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,pn((function(){var r,o=new Ye(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=vn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Dn,object:this,name:e,newValue:t}:null;r&&xn(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=M(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return Fn(e)&&(e=new Map(e)),pn((function(){x(e)?function(e){var t=Object.keys(e);if(!k)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return c.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):S(e)?(function(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return null===Object.getPrototypeOf(n)}(e)||r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&r(20,e)})),this},t.clear=function(){var e=this;pn((function(){at((function(){for(var t,n=M(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return pn((function(){for(var n,o=function(e){if(S(e)||Fn(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),i=new Map,a=!1,s=M(t.data_.keys());!(n=s()).done;){var l=n.value;if(!o.has(l))if(t.delete(l))a=!0;else{var c=t.data_.get(l);i.set(l,c)}}for(var u,d=M(o.entries());!(u=d()).done;){var p=u.value,f=p[0],h=p[1],m=t.data_.has(f);if(t.set(f,h),t.data_.has(f)){var g=t.data_.get(f);i.set(f,g),m||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var b=t.data_.keys(),v=i.keys(),y=b.next(),O=v.next();!y.done;){if(y.value!==O.value){t.keysAtom_.reportChanged();break}y=b.next(),O=v.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return yn(this,e)},t.intercept_=function(e){return gn(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Fn=j("ObservableMap",Mn);function $n(e){return e[Symbol.toStringTag]="MapIterator",xr(e)}var Bn={},Un=function(){function e(e,t,n){var o=this;void 0===t&&(t=Z),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[V]=Bn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,b(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},fr((function(){o.atom_=Y(o.name_),e&&o.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;pn((function(){at((function(){for(var t,n=M(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=M(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if((this.atom_,mn(this))&&!bn(this,{type:Dn,object:this,newValue:e}))return this;if(!this.has(e)){pn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=vn(this),o=r?{observableKind:"set",debugObjectName:this.name_,type:Dn,object:this,newValue:e}:null;n,r&&xn(this,o)}return this},t.delete=function(e){var t=this;if(mn(this)&&!bn(this,{type:Ln,object:this,oldValue:e}))return!1;if(this.has(e)){var n=vn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Ln,object:this,oldValue:e}:null;return pn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&xn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return zn({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return zn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return T(e)&&!Hn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return T(e)&&!Hn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return T(e)&&!Hn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return T(e)&&!Hn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Hn(e)&&(e=new Set(e)),pn((function(){Array.isArray(e)||T(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!==e&&void 0!==e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return yn(this,e)},t.intercept_=function(e){return gn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Hn=j("ObservableSet",Un);function zn(e){return e[Symbol.toStringTag]="SetIterator",xr(e)}var Gn=Object.create(null),Wn="remove",Vn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=ye),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new q("ObservableObject.keys"),this.isPlainObject_=x(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Xe)return n.set(t),!0;if(mn(this)){var r=bn(this,{type:wn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==mt.UNCHANGED){var o=vn(this),i=o?{type:wn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),o&&xn(this,i)}return!0},t.get_=function(e){return mt.trackingDerivation&&!N(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),N(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!mt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ye(e in this.target_,Q,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Qn(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[H])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var o=this.target_;o&&o!==c;){var i=s(o,e);if(i){var a=t.make_(this,e,i,o);if(0===a)return;if(1===a)break}o=Object.getPrototypeOf(o)}Zn(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);Qn(this,n,e);var o=n.extend_(this,e,t,r);return o&&Zn(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{yt();var r=this.delete_(e);if(!r)return r;if(mn(this)){var o=bn(this,{object:this.proxy_||this.target_,name:e,type:Dn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=F({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else l(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{xt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{yt();var o=this.delete_(e);if(!o)return o;if(mn(this)){var i=bn(this,{object:this.proxy_||this.target_,name:e,type:Dn,newValue:t});if(!i)return null;t=i.newValue}var a=Yn(e),s={configurable:!mt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else l(this.target_,e,s);var c=new Ye(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{xt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{yt();var r=this.delete_(e);if(!r)return r;if(mn(this))if(!bn(this,{object:this.proxy_||this.target_,name:e,type:Dn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Yn(e),i={configurable:!mt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else l(this.target_,e,i);this.values_.set(e,new Xe(t)),this.notifyPropertyAddition_(e,void 0)}finally{xt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!N(this.target_,e))return!0;if(mn(this)&&!bn(this,{object:this.proxy_||this.target_,name:e,type:Wn}))return null;try{var n;yt();var r,o=vn(this),i=this.values_.get(e),a=void 0;if(!i&&o)a=null==(r=s(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ye&&(a=i.value_),Et(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var l={type:Wn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,o&&xn(this,l)}}finally{xt()}return!0},t.observe_=function(e,t){return yn(this,e)},t.intercept_=function(e){return gn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=vn(this);if(r){var o=r?{type:Dn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,r&&xn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),C(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(N(e,V))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Vn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:xe(e):void 0}(t));return E(e,V,o),e}var Kn=j("ObservableObjectAdministration",Vn);function Yn(e){return Gn[e]||(Gn[e]={get:function(){return this[V].getObservablePropValue_(e)},set:function(t){return this[V].setObservablePropValue_(e,t)}})}function Xn(e){return!!y(e)&&Kn(e[V])}function Zn(e,t,n){var r;null==(r=e.target_[H])||delete r[n]}function Qn(e,t,n){}var Jn,er,tr=ar(0),nr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),rr=0,or=function(){};Jn=or,er=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Jn.prototype,er):void 0!==Jn.prototype.__proto__?Jn.prototype.__proto__=er:Jn.prototype=er;var ir=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,fr((function(){var e=new Sn(r,n,o,!0);e.proxy_=i,w(i,V,e),t&&t.length&&i.spliceWithArray(0,0,t),nr&&Object.defineProperty(i,"0",tr)})),i}$(t,e);var n=t.prototype;return n.concat=function(){this[V].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return In(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return xr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(t,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(e){this[V].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(or);function ar(e){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(e)},set:function(t){this[V].set_(e,t)}}}function sr(e){l(ir.prototype,""+e,ar(e))}function lr(e){if(e>rr){for(var t=rr;t<e+100;t++)sr(t);rr=e}}function cr(e,t,n){return new ir(e,t,n)}function ur(e,t){if("object"===typeof e&&null!==e){if(In(e))return void 0!==t&&r(23),e[V].atom_;if(Hn(e))return e.atom_;if(Fn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,pr(e)),n}if(Xn(e)){if(!t)return r(26);var o=e[V].values_.get(t);return o||r(27,t,pr(e)),o}if(K(e)||Je(e)||Ct(e))return e}else if(b(e)&&Ct(e[V]))return e[V];r(28)}function dr(e,t){return e||r(29),void 0!==t?dr(ur(e,t)):K(e)||Je(e)||Ct(e)||Fn(e)||Hn(e)?e:e[V]?e[V]:void r(24,e)}function pr(e,t){var n;if(void 0!==t)n=ur(e,t);else{if(Bt(e))return e.name;n=Xn(e)||Fn(e)||Hn(e)?dr(e):ur(e)}return n.name_}function fr(e){var t=st(),n=qe(!0);yt();try{return e()}finally{xt(),Ke(n),lt(t)}}Object.entries(kn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&E(ir.prototype,t,n)})),lr(1e3);var hr,mr=c.toString;function gr(e,t,n){return void 0===n&&(n=-1),br(e,t,n)}function br(e,t,n,r,o){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=mr.call(e);if(a!==mr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=vr(e),t=vr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(b(l)&&l instanceof l&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!br(e[u],t[u],n-1,r,o))return!1}else{var d,p=Object.keys(e);if(u=p.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!N(t,d=p[u])||!br(e[d],t[d],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function vr(e){return In(e)?e.slice():S(e)||Fn(e)||T(e)||Hn(e)?Array.from(e.entries()):e}var yr=(null==(hr=i().Iterator)?void 0:hr.prototype)||{};function xr(e){return e[Symbol.iterator]=Or,Object.assign(Object.create(yr),e)}function Or(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof i()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:pr},$mobx:V})}).call(this,n(49))},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}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)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(91);var o=n(70),i=n(92);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){"use strict";(function(e,r,o){var i=n(88);const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,l=(c=Object.create(null),e=>{const t=a.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const u=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,f=d("undefined");const h=u("ArrayBuffer");const m=d("string"),g=d("function"),b=d("number"),v=e=>null!==e&&"object"===typeof e,y=e=>{if("object"!==l(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=u("Date"),O=u("File"),E=u("Blob"),w=u("FileList"),j=u("URLSearchParams"),[S,T,k,C]=["ReadableStream","Request","Response","Headers"].map(u);function _(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function N(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const A="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:e,R=e=>!f(e)&&e!==A;const I=(P="undefined"!==typeof Uint8Array&&s(Uint8Array),e=>P&&e instanceof P);var P;const D=u("HTMLFormElement"),L=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),M=u("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},$="abcdefghijklmnopqrstuvwxyz",B="0123456789",U={DIGIT:B,ALPHA:$,ALPHA_DIGIT:$+$.toUpperCase()+B};const H=u("AsyncFunction"),z=((e,t)=>{return e?r:t?(n=`axios@${Math.random()}`,o=[],A.addEventListener("message",(e=>{let{source:t,data:r}=e;t===A&&r===n&&o.length&&o.shift()()}),!1),e=>{o.push(e),A.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"===typeof r,g(A.postMessage)),G="undefined"!==typeof queueMicrotask?queueMicrotask.bind(A):"undefined"!==typeof o&&o.nextTick||z;t.a={isArray:p,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=l(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:y,isReadableStream:S,isRequest:T,isResponse:k,isHeaders:C,isUndefined:f,isDate:x,isFile:O,isBlob:E,isRegExp:M,isFunction:g,isStream:e=>v(e)&&g(e.pipe),isURLSearchParams:j,isTypedArray:I,isFileList:w,forEach:_,merge:function e(){const{caseless:t}=R(this)&&this||{},n={},r=(r,o)=>{const i=t&&N(n,o)||o;y(n[i])&&y(r)?n[i]=e(n[i],r):y(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&_(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _(t,((t,r)=>{n&&g(t)?e[r]=Object(i.a)(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:N,global:A,isContextDefined:R,ALPHABET:U,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return _(e,((e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(v(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:z,asap:G}}).call(this,n(49),n(176).setImmediate,n(82))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ce}));var r=n(11),o=n.n(r),i=n(150),a=n.n(i),s=n(151),l=n.n(s),c=n(1),u=n.n(c),d=n(76),p=n.n(d),f="bodyAttributes",h="htmlAttributes",m="titleAttributes",g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},b=(Object.keys(g).map((function(e){return g[e]})),"charset"),v="cssText",y="href",x="http-equiv",O="innerHTML",E="itemprop",w="name",j="property",S="rel",T="src",k="target",C={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_="defaultTitle",N="defer",A="encodeSpecialCharacters",R="onChangeClientState",I="titleTemplate",P=Object.keys(C).reduce((function(e,t){return e[C[t]]=t,e}),{}),D=[g.NOSCRIPT,g.SCRIPT,g.STYLE],L="data-react-helmet",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},F=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},U=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},H=function(e){var t=q(e,g.TITLE),n=q(e,I);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=q(e,_);return t||r||void 0},z=function(e){return q(e,R)||function(){}},G=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return $({},e,t)}),{})},W=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},V=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&Q("Helmet: "+e+' should be of type "Array". Instead found type "'+M(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||n===S&&"canonical"===e[n].toLowerCase()||l===S&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==O&&s!==v&&s!==E||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=p()({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},K=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){K(t)}),0)}}(),Y=function(e){return clearTimeout(e)},X="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||K:e.requestAnimationFrame||K,Z="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Y:e.cancelAnimationFrame||Y,Q=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},J=null,ee=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;re(g.BODY,r),re(g.HTML,o),ne(d,p);var f={baseTag:oe(g.BASE,n),linkTags:oe(g.LINK,i),metaTags:oe(g.META,a),noscriptTags:oe(g.NOSCRIPT,s),scriptTags:oe(g.SCRIPT,c),styleTags:oe(g.STYLE,u)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),l(e,h,m)},te=function(e){return Array.isArray(e)?e.join(""):e},ne=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=te(e)),re(g.TITLE,t)},re=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(L),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(L):n.getAttribute(L)!==a.join(",")&&n.setAttribute(L,a.join(","))}},oe=function(e,t){var n=document.head||document.querySelector(g.HEAD),r=n.querySelectorAll(e+"["+L+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===O)n.innerHTML=t.innerHTML;else if(r===v)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(L,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},ie=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[C[n]||n]=e[n],t}),t)},se=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[L]=!0,r),i=ae(n,o);return[u.a.createElement(g.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=ie(n),i=te(t);return o?"<"+e+" "+L+'="true" '+o+">"+U(i,r)+"</"+e+">":"<"+e+" "+L+'="true">'+U(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case f:case h:return{toComponent:function(){return ae(t)},toString:function(){return ie(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[L]=!0,r);return Object.keys(t).forEach((function(e){var n=C[e]||e;if(n===O||n===v){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),u.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===O||e===v)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+U(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===D.indexOf(e);return t+"<"+e+" "+L+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},le=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:se(g.BASE,t,r),bodyAttributes:se(f,n,r),htmlAttributes:se(h,o,r),link:se(g.LINK,i,r),meta:se(g.META,a,r),noscript:se(g.NOSCRIPT,s,r),script:se(g.SCRIPT,l,r),style:se(g.STYLE,c,r),title:se(g.TITLE,{title:d,titleAttributes:p},r)}},ce=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!l()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return $({},r,((t={})[n.type]=[].concat(r[n.type]||[],[$({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case g.TITLE:return $({},o,((t={})[r.type]=a,t.titleAttributes=$({},i),t));case g.BODY:return $({},o,{bodyAttributes:$({},i)});case g.HTML:return $({},o,{htmlAttributes:$({},i)})}return $({},o,((n={})[r.type]=$({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=$({},t);return Object.keys(e).forEach((function(t){var r;n=$({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return u.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[P[n]||n]=e[n],t}),t)}(B(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=B(t,["children"]),o=$({},r);return n&&(o=this.mapChildrenToProps(n,o)),u.a.createElement(e,o)},F(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(u.a.Component),t.propTypes={base:o.a.object,bodyAttributes:o.a.object,children:o.a.oneOfType([o.a.arrayOf(o.a.node),o.a.node]),defaultTitle:o.a.string,defer:o.a.bool,encodeSpecialCharacters:o.a.bool,htmlAttributes:o.a.object,link:o.a.arrayOf(o.a.object),meta:o.a.arrayOf(o.a.object),noscript:o.a.arrayOf(o.a.object),onChangeClientState:o.a.func,script:o.a.arrayOf(o.a.object),style:o.a.arrayOf(o.a.object),title:o.a.string,titleAttributes:o.a.object,titleTemplate:o.a.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=le({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:W([y,k],e),bodyAttributes:G(f,e),defer:q(e,N),encode:q(e,A),htmlAttributes:G(h,e),linkTags:V(g.LINK,[S,y],e),metaTags:V(g.META,[w,b,x,j,E],e),noscriptTags:V(g.NOSCRIPT,[O],e),onChangeClientState:z(e),scriptTags:V(g.SCRIPT,[T,O],e),styleTags:V(g.STYLE,[v],e),title:H(e),titleAttributes:G(m,e)}}),(function(e){J&&Z(J),e.defer?J=X((function(){ee(e,(function(){J=null}))})):(ee(e),J=null)}),le)((function(){return null})));ce.renderStatic=ce.rewind}).call(this,n(49))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(78);var o=n(90),i=n(70);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(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,n){e.exports=n(185)()},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(37);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){},function(e,t,n){"use strict";(function(e){n.d(t,"g",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return E}));var r=n(3),o=n(12),i=n(17),a=n(16),s=n(18),l=n(24),c=n(35),u=n(162),d=n(2),p=n(10),f=/%[sdj%]/g,h=function(){};function m(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(f,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function b(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function v(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}"undefined"!==typeof e&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0});var y=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(a.a)(this,n),o=t.call(this,"Async Validation Error"),Object(d.a)(Object(s.a)(o),"errors",void 0),Object(d.a)(Object(s.a)(o),"fields",void 0),o.errors=e,o.fields=r,o}return Object(i.a)(n)}(Object(u.a)(Error));function x(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Object(p.a)(e[n]||[]))})),t}(e);v(a,n,(function(e){return r(e),e.length?i(new y(e,m(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new y(u,m(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?v(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Object(p.a)(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function O(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function E(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===Object(o.a)(i)&&"object"===Object(o.a)(e[n])?e[n]=Object(r.a)(Object(r.a)({},e[n]),i):e[n]=i}return e}}).call(this,n(82))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(99);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Object(r.a)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(8);function o(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}r.a.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.status}}});const i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=(e,t,n,a,s,l)=>{const c=Object.create(i);return r.a.toFlatObject(e,c,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),o.call(c,e.message,t,n,a,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},t.a=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n(12),o=n(1),i=n(66),a=n(51),s=function(e,t){"function"===typeof e?e(t):"object"===Object(r.a)(e)&&e&&"current"in e&&(e.current=t)},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){s(t,e)}))}},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)((function(){return l.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},u=function(e){var t,n,r=Object(i.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===i.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===i.ForwardRef)};function d(e){return Object(o.isValidElement)(e)&&!Object(i.isFragment)(e)}Number(o.version.split(".")[0])},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Ne})),n.d(t,"b",(function(){return De})),n.d(t,"c",(function(){return ve})),n.d(t,"e",(function(){return Le}));var r=n(77),o=n(1),i=n.n(o),a=n(148),s=n.n(a),l=n(149),c=n(68),u=n(118),d=n(50),p=n.n(d);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),b=Object.freeze({});function v(e){return"function"==typeof e}function y(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var O="undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_ATTR)||"data-styled",E="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})&&(void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY:void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY))),j={};function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),k=new Map,C=new Map,_=1,N=function(e){if(k.has(e))return k.get(e);for(;C.has(_);)_++;var t=_++;return k.set(e,t),C.set(t,e),t},A=function(e){return C.get(e)},R=function(e,t){t>=_&&(_=t+1),k.set(e,t),C.set(t,e)},I="style["+O+'][data-styled-version="5.3.11"]',P=new RegExp("^"+O+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(P);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(R(c,l),D(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},M=function(){return n.nc},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(O))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(O,"active"),r.setAttribute("data-styled-version","5.3.11");var a=M();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},$=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=E,z={isServer:!E,useCSSOMInjection:!w},G=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=f({},z,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&E&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(I),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(O)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return N(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(f({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new U(o):r?new $(o):new B(o),new T(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=A(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=O+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,V=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V(t%52)+n;return(V(t%52)+n).replace(W,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return K(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!x(n))return!1}return!0}var Z=Y("5.3.11"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&X(e),this.componentId=t,this.baseHash=K(Z,t),this.baseStyle=n,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=q(K(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=K(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=ge(p,e,t,n),h=Array.isArray(f)?f.join(""):f;c=K(c,h+d),u+=h}}if(u){var m=q(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,i=void 0===e?b:e,a=i.options,s=void 0===a?b:a,c=i.plugins,u=void 0===c?g:c,d=new l.a(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,r,i){return 0===r&&-1!==ee.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var l=e.replace(J,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,c)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||S(15),K(e,t.name)}),5381).toString():"",m}var ne=i.a.createContext(),re=(ne.Consumer,i.a.createContext()),oe=(re.Consumer,new G),ie=te();function ae(){return Object(o.useContext)(ne)||oe}function se(){return Object(o.useContext)(re)||ie}function le(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ae(),l=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(ne.Provider,{value:l},i.a.createElement(re.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,pe=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function he(e){return ue.test(e)?e.replace(de,fe).replace(pe,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return me(e)?"":x(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||v(t[a])?i.push(he(a)+":",t[a],";"):m(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in c.a||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?be(ge(h(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ge(h(e,n)))}new Set;var ye=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oe=/(^-|-$)/g;function Ee(e){return e.replace(xe,"-").replace(Oe,"")}var we=function(e){return q(Y(e)>>>0)};function je(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ke(e,t,n){var r=e[n];Se(t)&&Se(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var s in a)Te(s)&&ke(e,a[s],s)}return e}var _e=i.a.createContext();_e.Consumer;function Ne(e){var t=Object(o.useContext)(_e),n=Object(o.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?S(8):t?f({},t,{},e):e:S(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.a.createElement(_e.Provider,{value:n},e.children):null}var Ae={};function Re(e,t,n){var r=x(e),a=!je(e),s=t.attrs,l=void 0===s?g:s,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Ae[n]=(Ae[n]||0)+1;var r=n+"-"+we("5.3.11"+n+Ae[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,h=t.displayName,m=void 0===h?function(e){return je(e)?"styled."+e:"Styled("+y(e)+")"}(e):h,O=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||d,E=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,w=t.shouldForwardProp;r&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var j,S=new Q(n,O,r?e.componentStyle:void 0),T=S.isStatic&&0===l.length,k=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,h=function(e,t,n){void 0===e&&(e=b);var r=f({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in v(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(ye(t,Object(o.useContext)(_e),s)||b,t,i),m=h[0],g=h[1],y=function(e,t,n){var r=ae(),o=se();return t?e.generateAndInjectStyles(b,r,o):e.generateAndInjectStyles(n,r,o)}(a,r,m),x=n,O=g.$as||t.$as||g.as||t.as||p,E=je(O),w=g!==t?f({},t,{},g):t,j={};for(var S in w)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?j.as=w[S]:(c?c(S,u.a,O):!E||Object(u.a)(S))&&(j[S]=w[S]));return t.style&&g.style!==t.style&&(j.style=f({},t.style,{},g.style)),j.className=Array.prototype.concat(l,d,y!==d?y:null,t.className,g.className).filter(Boolean).join(" "),j.ref=x,Object(o.createElement)(O,j)}(j,e,t,T)};return k.displayName=m,(j=i.a.forwardRef(k)).attrs=E,j.componentStyle=S,j.displayName=m,j.shouldForwardProp=w,j.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,j.styledComponentId=O,j.target=r?e.target:e,j.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(je(e)?e:Ee(y(e)));return Re(e,f({},o,{attrs:E,componentId:i}),n)},Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ce({},e.defaultProps,t):t}}),Object.defineProperty(j,"toString",{value:function(){return"."+j.styledComponentId}}),a&&p()(j,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),j}var Ie=function(e){return function e(t,n,o){if(void 0===o&&(o=b),!Object(r.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,o,ve.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,f({},o,{},r))},i.attrs=function(r){return e(t,n,f({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Re,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Pe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ve.apply(void 0,[e].concat(n)),s="sc-global-"+we(JSON.stringify(a)),l=new Pe(a,s);function c(e){var t=ae(),n=se(),r=Object(o.useContext)(_e),i=Object(o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,r,n),Object(o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,r,n),function(){return l.removeStyles(i,t)}}),[i,e,t,r,n]),null}function u(e,t,n,r,o){if(l.isStatic)l.renderStyles(e,j,n,o);else{var i=f({},t,{theme:ye(t,r,c.defaultProps)});l.renderStyles(e,i,n,o)}}return i.a.memo(c)}function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ve.apply(void 0,[e].concat(n)).join(""),i=we(o);return new ce(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=M();return"<style "+[n&&'nonce="'+n+'"',O+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[O]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=M();return r&&(n.nonce=r),[i.a.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();t.d=Ie}).call(this,n(82))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s}));var r={},o=[];function i(e,t){}function a(e,t){}function s(){r={}}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){l(i,e,t)}c.preMessage=function(e){o.push(e)},c.resetWarned=s,c.noteOnce=function(e,t){l(a,e,t)},t.a=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(1),o=n(34),i=Object(o.a)()?r.useLayoutEffect:r.useEffect,a=function(e,t){var n=r.useRef(!0);i((function(){return e(n.current)}),t),i((function(){return n.current=!1,function(){n.current=!0}}),[])},s=function(e,t){a((function(t){if(!t)return e()}),t)};t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(60);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function s(e){a.delete(e)}var l=function(e){var t=i+=1;return function n(o){if(0===o)s(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=a.get(e);return s(e),o(t)},t.a=l},function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(167)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}},function(e,t,n){"use strict";function r(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g}));var r=n(3),o=n(34),i=n(154),a="data-rc-order",s="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):l}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function p(e){return Array.from((c.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(o.a)())return null;var n=t.csp,r=t.prepend,i=t.priority,l=void 0===i?0:i,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===c,f=document.createElement("style");f.setAttribute(a,c),u&&l&&f.setAttribute(s,"".concat(l)),null!==n&&void 0!==n&&n.nonce&&(f.nonce=null===n||void 0===n?void 0:n.nonce),f.innerHTML=e;var h=d(t),m=h.firstChild;if(r){if(u){var g=(t.styles||p(h)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(s)||0);return l>=t}));if(g.length)return h.insertBefore(f,g[g.length-1].nextSibling),f}h.insertBefore(f,m)}else h.appendChild(f);return f}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||p(n)).find((function(n){return n.getAttribute(u(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t);n&&d(t).removeChild(n)}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=d(n),a=p(o),s=Object(r.a)(Object(r.a)({},n),{},{styles:a});!function(e,t){var n=c.get(e);if(!n||!Object(i.a)(document,n)){var r=f("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}(o,s);var l=h(t,s);if(l){var m,g,b;if(null!==(m=s.csp)&&void 0!==m&&m.nonce&&l.nonce!==(null===(g=s.csp)||void 0===g?void 0:g.nonce))l.nonce=null===(b=s.csp)||void 0===b?void 0:b.nonce;return l.innerHTML!==e&&(l.innerHTML=e),l}var v=f(e,s);return v.setAttribute(u(s),t),v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),o=n(29),i=n(23),a=n(52);function s(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,c=n.value,u=n.onChange,d=n.postState,p=Object(a.a)((function(){return s(c)?c:s(l)?"function"===typeof l?l():l:"function"===typeof e?e():e})),f=Object(r.a)(p,2),h=f[0],m=f[1],g=void 0!==c?c:h,b=d?d(g):g,v=Object(o.a)(u),y=Object(a.a)([g]),x=Object(r.a)(y,2),O=x[0],E=x[1];return Object(i.b)((function(){var e=O[0];h!==e&&v(h,e)}),[O]),Object(i.b)((function(){s(c)||m(c)}),[c]),[b,Object(o.a)((function(e,t){m(e,t),E([g],t)}))]}},function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(79),o=n(93),i=n(152);function a(e){var t=Object(o.a)();return function(){var n,o=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(i.a)(this,n)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return he}));var r=n(2),o=n(3),i=n(7),a=n(12),s=n(6),l=n.n(s),c=n(45),u=n(20),d=n(1),p=n(13),f=["children"],h=d.createContext({});function m(e){var t=e.children,n=Object(p.a)(e,f);return d.createElement(h.Provider,{value:n},t)}var g=n(16),b=n(17),v=n(24),y=n(35),x=function(e){Object(v.a)(n,e);var t=Object(y.a)(n);function n(){return Object(g.a)(this,n),t.apply(this,arguments)}return Object(b.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),O=x,E=n(56),w=n(52),j=n(29);var S="none",T="appear",k="enter",C="leave",_="none",N="prepare",A="start",R="active",I="end",P="prepared",D=n(34);function L(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var M=function(e,t){var n={animationend:L("Animation","AnimationEnd"),transitionend:L("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Object(D.a)(),"undefined"!==typeof window?window:{}),F={};if(Object(D.a)()){var $=document.createElement("div");F=$.style}var B={};function U(e){if(B[e])return B[e];var t=M[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in F)return B[e]=t[i],B[e]}return""}var H=U("animationend"),z=U("transitionend"),G=!(!H||!z),W=H||"animationend",V=z||"transitionend";function q(e,t){return e?"object"===Object(a.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var K=Object(D.a)()?d.useLayoutEffect:d.useEffect,Y=n(25),X=[N,A,R,I],Z=[N,P],Q=!1;function J(e){return e===R||e===I}var ee=function(e,t,n){var r=Object(w.a)(_),o=Object(i.a)(r,2),a=o[0],s=o[1],l=function(){var e=d.useRef(null);function t(){Y.a.cancel(e.current)}return d.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Object(Y.a)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=Object(i.a)(l,2),u=c[0],p=c[1];var f=t?Z:X;return K((function(){if(a!==_&&a!==I){var e=f.indexOf(a),t=f[e+1],r=n(a);r===Q?s(t,!0):t&&u((function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){p()}}),[]),[function(){s(N,!0)},a]};function te(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,c=a.motionAppear,u=void 0===c||c,p=a.motionLeave,f=void 0===p||p,h=a.motionDeadline,m=a.motionLeaveImmediately,g=a.onAppearPrepare,b=a.onEnterPrepare,v=a.onLeavePrepare,y=a.onAppearStart,x=a.onEnterStart,O=a.onLeaveStart,_=a.onAppearActive,I=a.onEnterActive,D=a.onLeaveActive,L=a.onAppearEnd,M=a.onEnterEnd,F=a.onLeaveEnd,$=a.onVisibleChanged,B=Object(w.a)(),U=Object(i.a)(B,2),H=U[0],z=U[1],G=function(e){var t=d.useReducer((function(e){return e+1}),0),n=Object(i.a)(t,2)[1],r=d.useRef(e);return[Object(j.a)((function(){return r.current})),Object(j.a)((function(e){r.current="function"===typeof e?e(r.current):e,n()}))]}(S),q=Object(i.a)(G,2),Y=q[0],X=q[1],Z=Object(w.a)(null),te=Object(i.a)(Z,2),ne=te[0],re=te[1],oe=Y(),ie=Object(d.useRef)(!1),ae=Object(d.useRef)(null);function se(){return n()}var le=Object(d.useRef)(!1);function ce(){X(S),re(null,!0)}var ue=Object(E.a)((function(e){var t=Y();if(t!==S){var n=se();if(!e||e.deadline||e.target===n){var r,o=le.current;t===T&&o?r=null===L||void 0===L?void 0:L(n,e):t===k&&o?r=null===M||void 0===M?void 0:M(n,e):t===C&&o&&(r=null===F||void 0===F?void 0:F(n,e)),o&&!1!==r&&ce()}}})),de=function(e){var t=Object(d.useRef)();function n(t){t&&(t.removeEventListener(V,e),t.removeEventListener(W,e))}return d.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(V,e),r.addEventListener(W,e),t.current=r)},n]}(ue),pe=Object(i.a)(de,1)[0],fe=function(e){switch(e){case T:return Object(r.a)(Object(r.a)(Object(r.a)({},N,g),A,y),R,_);case k:return Object(r.a)(Object(r.a)(Object(r.a)({},N,b),A,x),R,I);case C:return Object(r.a)(Object(r.a)(Object(r.a)({},N,v),A,O),R,D);default:return{}}},he=d.useMemo((function(){return fe(oe)}),[oe]),me=ee(oe,!e,(function(e){if(e===N){var t=he[N];return t?t(se()):Q}var n;ve in he&&re((null===(n=he[ve])||void 0===n?void 0:n.call(he,se(),null))||null);return ve===R&&oe!==S&&(pe(se()),h>0&&(clearTimeout(ae.current),ae.current=setTimeout((function(){ue({deadline:!0})}),h))),ve===P&&ce(),true})),ge=Object(i.a)(me,2),be=ge[0],ve=ge[1],ye=J(ve);le.current=ye,K((function(){z(t);var n,r=ie.current;ie.current=!0,!r&&t&&u&&(n=T),r&&t&&l&&(n=k),(r&&!t&&f||!r&&m&&!t&&f)&&(n=C);var o=fe(n);n&&(e||o[N])?(X(n),be()):X(S)}),[t]),Object(d.useEffect)((function(){(oe===T&&!u||oe===k&&!l||oe===C&&!f)&&X(S)}),[u,l,f]),Object(d.useEffect)((function(){return function(){ie.current=!1,clearTimeout(ae.current)}}),[]);var xe=d.useRef(!1);Object(d.useEffect)((function(){H&&(xe.current=!0),void 0!==H&&oe===S&&((xe.current||H)&&(null===$||void 0===$||$(H)),xe.current=!0)}),[H,oe]);var Oe=ne;return he[N]&&ve===A&&(Oe=Object(o.a)({transition:"none"},Oe)),[oe,ve,Oe,null!==H&&void 0!==H?H:t]}var ne=function(e){var t=e;"object"===Object(a.a)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,s=void 0===a||a,p=e.removeOnLeave,f=void 0===p||p,m=e.forceRender,g=e.children,b=e.motionName,v=e.leavedClassName,y=e.eventProps,x=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(h).motion),E=Object(d.useRef)(),w=Object(d.useRef)();var j=te(x,s,(function(){try{return E.current instanceof HTMLElement?E.current:Object(c.a)(w.current)}catch(e){return null}}),e),T=Object(i.a)(j,4),k=T[0],C=T[1],_=T[2],R=T[3],I=d.useRef(R);R&&(I.current=!0);var P,D=d.useCallback((function(e){E.current=e,Object(u.b)(n,e)}),[n]),L=Object(o.a)(Object(o.a)({},y),{},{visible:s});if(g)if(k===S)P=R?g(Object(o.a)({},L),D):!f&&I.current&&v?g(Object(o.a)(Object(o.a)({},L),{},{className:v}),D):m||!f&&!v?g(Object(o.a)(Object(o.a)({},L),{},{style:{display:"none"}}),D):null;else{var M;C===N?M="prepare":J(C)?M="active":C===A&&(M="start");var F=q(b,"".concat(k,"-").concat(M));P=g(Object(o.a)(Object(o.a)({},L),{},{className:l()(q(b,k),Object(r.a)(Object(r.a)({},F,F&&M),b,"string"===typeof b)),style:_}),D)}else P=null;d.isValidElement(P)&&Object(u.c)(P)&&(P.ref||(P=d.cloneElement(P,{ref:D})));return d.createElement(O,{ref:w},P)}));return n.displayName="CSSMotion",n}(G),re=n(5),oe=n(18),ie="add",ae="keep",se="remove",le="removed";function ce(e){var t;return t=e&&"object"===Object(a.a)(e)&&"key"in e?e:{key:e},Object(o.a)(Object(o.a)({},t),{},{key:String(t.key)})}function ue(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ce)}var de=["component","children","onVisibleChanged","onAllRemoved"],pe=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var he=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne,t=function(t){Object(v.a)(i,t);var n=Object(y.a)(i);function i(){var e;Object(g.a)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=n.call.apply(n,[this].concat(a)),Object(r.a)(Object(oe.a)(e),"state",{keyEntities:[]}),Object(r.a)(Object(oe.a)(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Object(o.a)(Object(o.a)({},e),{},{status:le})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==le})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Object(b.a)(i,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=(r.onAllRemoved,Object(p.a)(r,de)),c=i||d.Fragment,u={};return fe.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,d.createElement(c,l,n.map((function(n,r){var i=n.status,l=Object(p.a)(n,pe),c=i===ie||i===ae;return d.createElement(e,Object(re.a)({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null===s||void 0===s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(e,t){return a(Object(o.a)(Object(o.a)({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=ue(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=ue(e),s=ue(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var l=s[a];if(l.key===e.key){r<a&&(n=n.concat(s.slice(r,a).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:ie})}))),r=a),n.push(Object(o.a)(Object(o.a)({},l),{},{status:ae})),r+=1,t=!0;break}}t||n.push(Object(o.a)(Object(o.a)({},e),{},{status:se}))})),r<i&&(n=n.concat(s.slice(r).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:ie})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==se}))).forEach((function(t){t.key===e&&(t.status=ae)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==le||e.status!==se}))}}}]),i}(d.Component);return Object(r.a)(t,"defaultProps",{component:"div"}),t}(G);t.c=ne},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(60);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(12);function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new R(r||[]);return a(i,"_invoke",{value:C(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="suspendedYield",g="executing",b="completed",v={};function y(){}function x(){}function O(){}var E={};d(E,l,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(I([])));j&&j!==n&&i.call(j,l)&&(E=j);var S=O.prototype=y.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(r.a)(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var o=h;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=_(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=f(t,n,r);if("normal"===c.type){if(o=r.done?b:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=b,r.method="throw",r.arg=c.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Object(r.a)(t)+" is not iterable")}return x.prototype=O,a(S,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:x,configurable:!0}),x.displayName=d(O,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(k.prototype),d(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(S),d(S,u,"Generator"),d(S,l,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r),i=n(66);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):Object(i.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"===typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var l=0;l<s.length&&!(o>=i.length);l++){var c=s[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var u=i[o],d=n.tokenStack[u],p="string"===typeof c?c:c.content,f=t(r,u),h=p.indexOf(f);if(h>-1){++o;var m=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(h+f.length),v=[];m&&v.push.apply(v,a([m])),v.push(g),b&&v.push.apply(v,a([b])),"string"===typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(e)}e.exports=r,r.displayName="markupTemplating",r.aliases=[]},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p}));var r=n(12),o=n(3),i=n(10),a=n(153),s=n(57);function l(e,t,n,r){if(!t.length)return n;var s,c=Object(a.a)(t),u=c[0],d=c.slice(1);return s=e||"number"!==typeof u?Array.isArray(e)?Object(i.a)(e):Object(o.a)({},e):[],r&&void 0===n&&1===d.length?delete s[u][d[0]]:s[u]=l(s[u],d,n,r),s}function c(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Object(s.a)(e,t.slice(0,-1))?e:l(e,t,n,r)}function u(e){return Array.isArray(e)?[]:{}}var d="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=u(t[0]);return t.forEach((function(e){!function t(n,a){var l,p=new Set(a),f=Object(s.a)(e,n),h=Array.isArray(f);if(h||(l=f,"object"===Object(r.a)(l)&&null!==l&&Object.getPrototypeOf(l)===Object.prototype)){if(!p.has(f)){p.add(f);var m=Object(s.a)(o,n);h?o=c(o,n,[]):m&&"object"===Object(r.a)(m)||(o=c(o,n,u(f))),d(f).forEach((function(e){t([].concat(Object(i.a)(n),[e]),p)}))}}else o=c(o,n,f)}([])})),o}},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(41),a=(n(22),n(3)),s=n(12),l=n(45),c=n(20),u=o.createContext(null);var d=n(156),p=new Map;var f=new d.a((function(e){e.forEach((function(e){var t,n=e.target;null===(t=p.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var h=n(16),m=n(17),g=n(24),b=n(35),v=function(e){Object(g.a)(n,e);var t=Object(b.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),h=o.useContext(u),m="function"===typeof n,g=m?n(i):n,b=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&o.isValidElement(g)&&Object(c.c)(g),x=y?g.ref:null,O=Object(c.d)(x,i),E=function(){var e;return Object(l.a)(i.current)||(i.current&&"object"===Object(s.a)(i.current)?Object(l.a)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Object(l.a)(d.current)};o.useImperativeHandle(t,(function(){return E()}));var w=o.useRef(e);w.current=e;var j=o.useCallback((function(e){var t=w.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(i),d=Math.floor(s);if(b.current.width!==u||b.current.height!==d||b.current.offsetWidth!==l||b.current.offsetHeight!==c){var p={width:u,height:d,offsetWidth:l,offsetHeight:c};b.current=p;var f=l===Math.round(i)?i:l,m=c===Math.round(s)?s:c,g=Object(a.a)(Object(a.a)({},p),{},{offsetWidth:f,offsetHeight:m});null===h||void 0===h||h(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o.useEffect((function(){var e,t,n=E();return n&&!r&&(e=n,t=j,p.has(e)||(p.set(e,new Set),f.observe(e)),p.get(e).add(t)),function(){return function(e,t){p.has(e)&&(p.get(e).delete(t),p.get(e).size||(f.unobserve(e),p.delete(e)))}(n,j)}}),[i.current,r]),o.createElement(v,{ref:d},y?o.cloneElement(g,{ref:O}):g)}var x=o.forwardRef(y);function O(e,t){var n=e.children;return("function"===typeof n?[n]:Object(i.a)(n)).map((function(n,i){var a=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(x,Object(r.a)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var E=o.forwardRef(O);E.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:s},t)};t.a=E},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(12),o=n(1),i=n.n(o),a=n(27),s=n.n(a);function l(e){return e instanceof HTMLElement||e instanceof SVGElement}function c(e){return e&&"object"===Object(r.a)(e)&&l(e.nativeElement)?e.nativeElement:l(e)?e:null}function u(e){var t,n=c(e);return n||(e instanceof i.a.Component?null===(t=s.a.findDOMNode)||void 0===t?void 0:t.call(s.a,e):null)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function b(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],x=!1;function O(e,t){var n,r,o,i=y.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)c(o=t[r=y[n]])||(e[r]=o);return e}function E(e){O(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function w(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function j(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,a,l=[],c=arguments.length;for(i=0;i<c;i++){if(o="","object"===typeof arguments[i]){for(a in o+="\n["+i+"] ",arguments[0])s(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];l.push(o)}j(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,k={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(j(t),k[e]=!0)}function _(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,n;for(n in e)s(e,n)&&(_(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function R(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},$={};function B(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&($[e]=o),t&&($[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),n&&($[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(L);for(t=0,n=r.length;t<n;t++)$[r[t]]?r[t]=$[r[t]]:r[t]=U(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=_(r[o])?r[o].call(t,e):r[o];return i}}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),F[t]=F[t]||H(t),F[t](e)):e.localeData().invalidDate()}function G(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(L).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function K(){return this._invalidDate}var Y="%d",X=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return _(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ie(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var ae,se=/\d/,le=/\d\d/,ce=/\d{3}/,ue=/\d{4}/,de=/[+-]?\d{6}/,pe=/\d\d?/,fe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,be=/[+-]?\d{1,6}/,ve=/\d+/,ye=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Oe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ee=/[+-]?\d+(\.\d{1,3})?/,we=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,je=/^[1-9]\d?/,Se=/^([1-9]\d|\d)/;function Te(e,t,n){ae[e]=_(t)?t:function(e,r){return e&&n?n:t}}function ke(e,t){return s(ae,e)?ae[e](t._strict,t._locale):new RegExp(Ce(e))}function Ce(e){return _e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ne(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ne(t)),n}ae={};var Re={};function Ie(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),u(t)&&(o=function(e,n){n[t]=Ae(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=o}function Pe(e,t){Ie(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function De(e,t,n){null!=t&&s(Re,e)&&Re[e](t,n._a,n,e)}function Le(e){return e%4===0&&e%100!==0||e%400===0}var Me=0,Fe=1,$e=2,Be=3,Ue=4,He=5,ze=6,Ge=7,We=8;function Ve(e){return Le(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Te("Y",ye),Te("YY",pe,le),Te("YYYY",ge,ue),Te("YYYYY",be,de),Te("YYYYYY",be,de),Ie(["YYYYY","YYYYYY"],Me),Ie("YYYY",(function(e,t){t[Me]=2===e.length?r.parseTwoDigitYear(e):Ae(e)})),Ie("YY",(function(e,t){t[Me]=r.parseTwoDigitYear(e)})),Ie("Y",(function(e,t){t[Me]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ae(e)+(Ae(e)>68?1900:2e3)};var qe,Ke=Xe("FullYear",!0);function Ye(){return Le(this.year())}function Xe(e,t){return function(n){return null!=n?(Qe(this,e,n),r.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qe(e,t,n){var r,o,i,a,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=29!==(s=e.date())||1!==a||Le(i)?s:28,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function Je(e){return _(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"===typeof e){var n,r=ie(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(_(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Le(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Te("M",pe,je),Te("MM",pe,le),Te("MMM",(function(e,t){return t.monthsShortRegex(e)})),Te("MMMM",(function(e,t){return t.monthsRegex(e)})),Ie(["M","MM"],(function(e,t){t[Fe]=Ae(e)-1})),Ie(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Fe]=o:g(n).invalidMonth=e}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=we,st=we;function lt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ct(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))||-1!==(o=qe.call(this._longMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))||-1!==(o=qe.call(this._shortMonthsParse,a))?o:null}function dt(e,t,n){var r,o,i;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function pt(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=Ae(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function ft(e){return null!=e?(pt(this,e),r.updateOffset(this,!0),this):Ze(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,r,o,i=[],a=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=_e(this.monthsShort(n,"")),o=_e(this.months(n,"")),i.push(r),a.push(o),s.push(o),s.push(r);i.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function vt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function yt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+yt(e,0,r).getUTCDay()-t)%7+r-1}function Ot(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+xt(e,r,o);return s<=0?a=Ve(i=e-1)+s:s>Ve(e)?(i=e+1,a=s-Ve(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Et(e,t,n){var r,o,i=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+wt(o=e.year()-1,t,n):a>wt(e.year(),t,n)?(r=a-wt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function wt(e,t,n){var r=xt(e,t,n),o=xt(e+1,t,n);return(Ve(e)-r+o)/7}function jt(e){return Et(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Te("w",pe,je),Te("ww",pe,le),Te("W",pe,je),Te("WW",pe,le),Pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ae(e)}));var St={dow:0,doy:6};function Tt(){return this._week.dow}function kt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function _t(e){var t=Et(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Rt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Te("d",pe),Te("e",pe),Te("E",pe),Te("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Te("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Te("dddd",(function(e,t){return t.weekdaysRegex(e)})),Pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e})),Pe(["d","e","E"],(function(e,t,n,r){t[r]=Ae(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=we,Mt=we,Ft=we;function $t(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Rt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Rt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Rt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null}function zt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Lt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),o=_e(this.weekdaysShort(n,"")),i=_e(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function Jt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Zt),B("k",["kk",2],0,Qt),B("hmm",0,0,(function(){return""+Zt.apply(this)+D(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Zt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),Te("a",en),Te("A",en),Te("H",pe,Se),Te("h",pe,je),Te("k",pe,je),Te("HH",pe,le),Te("hh",pe,le),Te("kk",pe,le),Te("hmm",fe),Te("hmmss",he),Te("Hmm",fe),Te("Hmmss",he),Ie(["H","HH"],Be),Ie(["k","kk"],(function(e,t,n){var r=Ae(e);t[Be]=24===r?0:r})),Ie(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ie(["h","hh"],(function(e,t,n){t[Be]=Ae(e),g(n).bigHour=!0})),Ie("hmm",(function(e,t,n){var r=e.length-2;t[Be]=Ae(e.substr(0,r)),t[Ue]=Ae(e.substr(r)),g(n).bigHour=!0})),Ie("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Be]=Ae(e.substr(0,r)),t[Ue]=Ae(e.substr(r,2)),t[He]=Ae(e.substr(o)),g(n).bigHour=!0})),Ie("Hmm",(function(e,t,n){var r=e.length-2;t[Be]=Ae(e.substr(0,r)),t[Ue]=Ae(e.substr(r))})),Ie("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Be]=Ae(e.substr(0,r)),t[Ue]=Ae(e.substr(r,2)),t[He]=Ae(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=Xe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:I,longDateFormat:W,invalidDate:q,ordinal:Y,dayOfMonthOrdinalParse:X,relativeTime:Q,months:rt,monthsShort:ot,week:St,weekdays:It,weekdaysMin:Dt,weekdaysShort:Pt,meridiemParse:nn},ln={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(o,n)>=t-1)break;t--}i++}return an}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&"undefined"!==typeof e&&e&&e.exports&&fn(t))try{n=an._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),mn(n)}catch(r){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=c(t)?vn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new R(A(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),mn(e),ln[e]}return delete ln[e],null}function bn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(A(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=A(o,t),null==r&&(t.abbr=e),(n=new R(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=hn(e))return t;e=[e]}return pn(e)}function yn(){return T(ln)}function xn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Fe]<0||n[Fe]>11?Fe:n[$e]<1||n[$e]>nt(n[Me],n[Fe])?$e:n[Be]<0||n[Be]>24||24===n[Be]&&(0!==n[Ue]||0!==n[He]||0!==n[ze])?Be:n[Ue]<0||n[Ue]>59?Ue:n[He]<0||n[He]>59?He:n[ze]<0||n[ze]>999?ze:-1,g(e)._overflowDayOfYear&&(t<Me||t>$e)&&(t=$e),g(e)._overflowWeeks&&-1===t&&(t=Ge),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var On=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,jn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(e){var t,n,r,o,i,a,s=e._i,l=On.exec(s)||En.exec(s),c=jn.length,u=Sn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(jn[t][1].exec(l[1])){o=jn[t][0],r=!1!==jn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[3])){i=(l[2]||" ")+Sn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!wn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Un(e)}else e._isValid=!1}function Nn(e,t,n,r,o,i){var a=[An(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Rn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Cn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function Dn(e){var t,n=kn.exec(Rn(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!In(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Ln(e){var t=Tn.exec(e._i);null===t?(_n(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Mn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $n(e){var t,n,r,o,i,a=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[$e]&&null==e._a[Fe]&&Bn(e),null!=e._dayOfYear&&(i=Mn(e._a[Me],r[Me]),(e._dayOfYear>Ve(i)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=yt(i,0,e._dayOfYear),e._a[Fe]=n.getUTCMonth(),e._a[$e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[Ue]&&0===e._a[He]&&0===e._a[ze]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?yt:vt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,o,i,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Mn(t.GG,e._a[Me],Et(Yn(),1,4).year),r=Mn(t.W,1),((o=Mn(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Et(Yn(),i,a),n=Mn(t.gg,e._a[Me],c.year),r=Mn(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>wt(n,i,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=Ot(n,r,o,i,a),e._a[Me]=s.year,e._dayOfYear=s.dayOfYear)}function Un(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,i,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(o=G(e._f,e._locale).match(L)||[]).length,t=0;t<l;t++)i=o[t],(n=(c.match(ke(i,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),$[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),De(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[Be]<=12&&!0===g(e).bigHour&&e._a[Be]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Be]=Hn(e._locale,e._a[Be],e._meridiem),null!==(s=g(e).era)&&(e._a[Me]=e._locale.erasConvertYear(s,e._a[Me])),$n(e),xn(e)}else Dn(e);else _n(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function zn(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,a=!1,t=O({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Un(t),b(t)&&(a=!0),i+=g(t).charsLeftOver,i+=10*g(t).unusedTokens.length,g(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));f(e,n||t)}function Gn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),$n(e)}}function Wn(e){var t=new E(xn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new E(xn(t)):(d(t)?e._d=t:i(n)?zn(e):n?Un(e):qn(e),b(e)||(e._d=null),e))}function qn(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Ln(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),$n(e)):a(t)?Gn(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Yn(e,t,n,r){return Kn(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Zn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Yn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Qn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Yn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Ae(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ir(){return Cr(NaN)}function ar(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Ae(e[r])!==Ae(t[r]))&&a++;return a+i}function ur(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Te("Z",Oe),Te("ZZ",Oe),Ie(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(Oe,e)}));var dr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Ae(n[2]))?0:"+"===n[0]?r:-r}function fr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(w(e)||d(e)?e.valueOf():Yn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Yn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=pr(Oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Ir(this,Cr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:hr(this)}function gr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=pr(xe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xr(e){return!!this.isValid()&&(e=e?Yn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Or(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Er(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return O(t,this),(t=Vn(t))._a?(e=t._isUTC?h(t._a):Yn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function jr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var n,r,o,i=e,a=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:Ae(a[$e])*n,h:Ae(a[Be])*n,m:Ae(a[Ue])*n,s:Ae(a[He])*n,ms:Ae(lr(1e3*a[ze]))*n}):(a=kr.exec(e))?(n="-"===a[1]?-1:1,i={y:_r(a[2],n),M:_r(a[3],n),w:_r(a[4],n),d:_r(a[5],n),h:_r(a[6],n),m:_r(a[7],n),s:_r(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Ar(Yn(i.from),Yn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ar(i),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function _r(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Nr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Nr(e,t):((n=Nr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Rr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Ir(this,Cr(n,r),e),this}}function Ir(e,t,n,o){var i=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&pt(e,Ze(e,"Month")+s*n),a&&Qe(e,"Date",Ze(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}Cr.fn=ar.prototype,Cr.invalid=ir;var Pr=Rr(1,"add"),Dr=Rr(-1,"subtract");function Lr(e){return"string"===typeof e||e instanceof String}function Mr(e){return w(e)||d(e)||Lr(e)||u(e)||$r(e)||Fr(e)||null===e||void 0===e}function Fr(e){var t,n,r=a(e)&&!l(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=i.length;for(t=0;t<c;t+=1)n=i[t],o=o||s(e,n);return r&&o}function $r(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Lr(e)})).length),t&&n}function Br(e){var t,n,r=a(e)&&!l(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],o=o||s(e,n);return r&&o}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Mr(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Yn(),o=fr(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(_(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Yn(n)))}function zr(){return new E(this)}function Gr(e,t){var n=w(e)?e:Yn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=w(e)?e:Yn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var o=w(e)?e:Yn(e),i=w(t)?t:Yn(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function qr(e,t){var n,r=w(e)?e:Yn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":i=Zr(this,r)/12;break;case"month":i=Zr(this,r);break;case"quarter":i=Zr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Ne(i)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(w(e)&&e.isValid()||Yn(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Yn(),e)}function oo(e,t){return this.isValid()&&(w(e)&&e.isValid()||Yn(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function io(e){return this.to(Yn(),e)}function ao(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function lo(){return this._locale}var co=1e3,uo=60*co,po=60*uo,fo=3506328*po;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fo:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fo:Date.UTC(e,t,n)}function bo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*uo),po);break;case"minute":t=this._d.valueOf(),t-=ho(t,uo);break;case"second":t=this._d.valueOf(),t-=ho(t,co)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=po-ho(t+(this._isUTC?0:this.utcOffset()*uo),po)-1;break;case"minute":t=this._d.valueOf(),t+=uo-ho(t,uo)-1;break;case"second":t=this._d.valueOf(),t+=co-ho(t,co)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function xo(){return Math.floor(this.valueOf()/1e3)}function Oo(){return new Date(this.valueOf())}function Eo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function jo(){return this.isValid()?this.toISOString():null}function So(){return b(this)}function To(){return f({},g(this))}function ko(){return g(this).overflow}function Co(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _o(e,t){var n,o,i,a=this._eras||vn("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"===typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a}function No(e,t,n){var r,o,i,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(i=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,a,s].indexOf(e)>=0)return l[r]}function Ao(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ro(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Io(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Po(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Do(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function Lo(e){return s(this,"_erasNameRegex")||zo.call(this),e?this._erasNameRegex:this._erasRegex}function Mo(e){return s(this,"_erasAbbrRegex")||zo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fo(e){return s(this,"_erasNarrowRegex")||zo.call(this),e?this._erasNarrowRegex:this._erasRegex}function $o(e,t){return t.erasAbbrRegex(e)}function Bo(e,t){return t.erasNameRegex(e)}function Uo(e,t){return t.erasNarrowRegex(e)}function Ho(e,t){return t._eraYearOrdinalRegex||ve}function zo(){var e,t,n,r,o,i=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=_e(c[e].name),r=_e(c[e].abbr),o=_e(c[e].narrow),a.push(n),i.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Go(e,t){B(0,[e,e.length],0,t)}function Wo(e){return Zo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Vo(e){return Zo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return wt(this.year(),1,4)}function Ko(){return wt(this.isoWeekYear(),1,4)}function Yo(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function Xo(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Zo(e,t,n,r,o){var i;return null==e?Et(this,r,o).year:(t>(i=wt(e,r,o))&&(t=i),Qo.call(this,e,t,n,r,o))}function Qo(e,t,n,r,o){var i=Ot(e,t,n,r,o),a=yt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Te("N",$o),Te("NN",$o),Te("NNN",$o),Te("NNNN",Bo),Te("NNNNN",Uo),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e})),Te("y",ve),Te("yy",ve),Te("yyy",ve),Te("yyyy",ve),Te("yo",Ho),Ie(["y","yy","yyy","yyyy"],Me),Ie(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Me]=n._locale.eraYearOrdinalParse(e,o):t[Me]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Go("gggg","weekYear"),Go("ggggg","weekYear"),Go("GGGG","isoWeekYear"),Go("GGGGG","isoWeekYear"),Te("G",ye),Te("g",ye),Te("GG",pe,le),Te("gg",pe,le),Te("GGGG",ge,ue),Te("gggg",ge,ue),Te("GGGGG",be,de),Te("ggggg",be,de),Pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ae(e)})),Pe(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),Te("Q",se),Ie("Q",(function(e,t){t[Fe]=3*(Ae(e)-1)})),B("D",["DD",2],"Do","date"),Te("D",pe,je),Te("DD",pe,le),Te("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],$e),Ie("Do",(function(e,t){t[$e]=Ae(e.match(pe)[0])}));var ei=Xe("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Te("DDD",me),Te("DDDD",ce),Ie(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ae(e)})),B("m",["mm",2],0,"minute"),Te("m",pe,Se),Te("mm",pe,le),Ie(["m","mm"],Ue);var ni=Xe("Minutes",!1);B("s",["ss",2],0,"second"),Te("s",pe,Se),Te("ss",pe,le),Ie(["s","ss"],He);var ri,oi,ii=Xe("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Te("S",me,se),Te("SS",me,le),Te("SSS",me,ce),ri="SSSS";ri.length<=9;ri+="S")Te(ri,ve);function ai(e,t){t[ze]=Ae(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Ie(ri,ai);function si(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}oi=Xe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ci=E.prototype;function ui(e){return Yn(1e3*e)}function di(){return Yn.apply(null,arguments).parseZone()}function pi(e){return e}ci.add=Pr,ci.calendar=Hr,ci.clone=zr,ci.diff=Xr,ci.endOf=vo,ci.format=to,ci.from=no,ci.fromNow=ro,ci.to=oo,ci.toNow=io,ci.get=Je,ci.invalidAt=ko,ci.isAfter=Gr,ci.isBefore=Wr,ci.isBetween=Vr,ci.isSame=qr,ci.isSameOrAfter=Kr,ci.isSameOrBefore=Yr,ci.isValid=So,ci.lang=so,ci.locale=ao,ci.localeData=lo,ci.max=Zn,ci.min=Xn,ci.parsingFlags=To,ci.set=et,ci.startOf=bo,ci.subtract=Dr,ci.toArray=Eo,ci.toObject=wo,ci.toDate=Oo,ci.toISOString=Jr,ci.inspect=eo,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ci[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ci.toJSON=jo,ci.toString=Qr,ci.unix=xo,ci.valueOf=yo,ci.creationData=Co,ci.eraName=Ro,ci.eraNarrow=Io,ci.eraAbbr=Po,ci.eraYear=Do,ci.year=Ke,ci.isLeapYear=Ye,ci.weekYear=Wo,ci.isoWeekYear=Vo,ci.quarter=ci.quarters=Jo,ci.month=ft,ci.daysInMonth=ht,ci.week=ci.weeks=Ct,ci.isoWeek=ci.isoWeeks=_t,ci.weeksInYear=Yo,ci.weeksInWeekYear=Xo,ci.isoWeeksInYear=qo,ci.isoWeeksInISOWeekYear=Ko,ci.date=ei,ci.day=ci.days=Gt,ci.weekday=Wt,ci.isoWeekday=Vt,ci.dayOfYear=ti,ci.hour=ci.hours=rn,ci.minute=ci.minutes=ni,ci.second=ci.seconds=ii,ci.millisecond=ci.milliseconds=oi,ci.utcOffset=mr,ci.utc=br,ci.local=vr,ci.parseZone=yr,ci.hasAlignedHourOffset=xr,ci.isDST=Or,ci.isLocal=wr,ci.isUtcOffset=jr,ci.isUtc=Sr,ci.isUTC=Sr,ci.zoneAbbr=si,ci.zoneName=li,ci.dates=S("dates accessor is deprecated. Use date instead.",ei),ci.months=S("months accessor is deprecated. Use month instead",ft),ci.years=S("years accessor is deprecated. Use year instead",Ke),ci.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ci.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Er);var fi=R.prototype;function hi(e,t,n,r){var o=vn(),i=h().set(r,t);return o[n](i,e)}function mi(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hi(e,r,n,"month");return o}function gi(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=vn(),a=e?i._week.dow:0,s=[];if(null!=n)return hi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=hi(t,(o+a)%7,r,"day");return s}function bi(e,t){return mi(e,t,"months")}function vi(e,t){return mi(e,t,"monthsShort")}function yi(e,t,n){return gi(e,t,n,"weekdays")}function xi(e,t,n){return gi(e,t,n,"weekdaysShort")}function Oi(e,t,n){return gi(e,t,n,"weekdaysMin")}fi.calendar=P,fi.longDateFormat=V,fi.invalidDate=K,fi.ordinal=Z,fi.preparse=pi,fi.postformat=pi,fi.relativeTime=J,fi.pastFuture=ee,fi.set=N,fi.eras=_o,fi.erasParse=No,fi.erasConvertYear=Ao,fi.erasAbbrRegex=Mo,fi.erasNameRegex=Lo,fi.erasNarrowRegex=Fo,fi.months=lt,fi.monthsShort=ct,fi.monthsParse=dt,fi.monthsRegex=gt,fi.monthsShortRegex=mt,fi.week=jt,fi.firstDayOfYear=kt,fi.firstDayOfWeek=Tt,fi.weekdays=$t,fi.weekdaysMin=Ut,fi.weekdaysShort=Bt,fi.weekdaysParse=zt,fi.weekdaysRegex=qt,fi.weekdaysShortRegex=Kt,fi.weekdaysMinRegex=Yt,fi.isPM=tn,fi.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ae(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ei=Math.abs;function wi(){var e=this._data;return this._milliseconds=Ei(this._milliseconds),this._days=Ei(this._days),this._months=Ei(this._months),e.milliseconds=Ei(e.milliseconds),e.seconds=Ei(e.seconds),e.minutes=Ei(e.minutes),e.hours=Ei(e.hours),e.months=Ei(e.months),e.years=Ei(e.years),this}function ji(e,t,n,r){var o=Cr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Si(e,t){return ji(this,e,t,1)}function Ti(e,t){return ji(this,e,t,-1)}function ki(e){return e<0?Math.floor(e):Math.ceil(e)}function Ci(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*ki(Ni(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=Ne(i/1e3),l.seconds=e%60,t=Ne(e/60),l.minutes=t%60,n=Ne(t/60),l.hours=n%24,a+=Ne(n/24),s+=o=Ne(_i(a)),a-=ki(Ni(o)),r=Ne(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function _i(e){return 4800*e/146097}function Ni(e){return 146097*e/4800}function Ai(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_i(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ni(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ri(e){return function(){return this.as(e)}}var Ii=Ri("ms"),Pi=Ri("s"),Di=Ri("m"),Li=Ri("h"),Mi=Ri("d"),Fi=Ri("w"),$i=Ri("M"),Bi=Ri("Q"),Ui=Ri("y"),Hi=Ii;function zi(){return Cr(this)}function Gi(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vi=Wi("milliseconds"),qi=Wi("seconds"),Ki=Wi("minutes"),Yi=Wi("hours"),Xi=Wi("days"),Zi=Wi("months"),Qi=Wi("years");function Ji(){return Ne(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var o=Cr(e).abs(),i=ea(o.as("s")),a=ea(o.as("m")),s=ea(o.as("h")),l=ea(o.as("d")),c=ea(o.as("M")),u=ea(o.as("w")),d=ea(o.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,na.apply(null,p)}function oa(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function ia(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ra(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=sa(this._milliseconds)/1e3,c=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=Ne(l/60),t=Ne(e/60),l%=60,e%=60,n=Ne(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=or,ua.abs=wi,ua.add=Si,ua.subtract=Ti,ua.as=Ai,ua.asMilliseconds=Ii,ua.asSeconds=Pi,ua.asMinutes=Di,ua.asHours=Li,ua.asDays=Mi,ua.asWeeks=Fi,ua.asMonths=$i,ua.asQuarters=Bi,ua.asYears=Ui,ua.valueOf=Hi,ua._bubble=Ci,ua.clone=zi,ua.get=Gi,ua.milliseconds=Vi,ua.seconds=qi,ua.minutes=Ki,ua.hours=Yi,ua.days=Xi,ua.weeks=Ji,ua.months=Zi,ua.years=Qi,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ao,ua.localeData=lo,ua.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=so,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Te("x",ye),Te("X",Ee),Ie("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,t,n){n._d=new Date(Ae(e))})),r.version="2.30.1",o(Yn),r.fn=ci,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ui,r.months=bi,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Cr,r.isMoment=w,r.weekdays=yi,r.parseZone=di,r.localeData=vn,r.isDuration=sr,r.monthsShort=vi,r.weekdaysMin=Oi,r.defineLocale=gn,r.updateLocale=bn,r.locales=yn,r.weekdaysShort=xi,r.normalizeUnits=ne,r.relativeTimeRounding=oa,r.relativeTimeThreshold=ia,r.calendarFormat=Ur,r.prototype=ci,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(509)(e))},function(e,t,n){const r=n(170).words,o=n(171).array;e.exports=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this,{list:e.emptyList&&[]||Array.prototype.concat.apply(r,[o,e.list||[]]),exclude:e.exclude||[],splitRegex:e.splitRegex||/\b/,placeHolder:e.placeHolder||"*",regex:e.regex||/[^a-zA-Z0-9|\$|\@]|\^/g,replaceRegex:e.replaceRegex||/\w/g})}isProfane(e){return this.list.filter((t=>{const n=new RegExp(`\\b${t.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(t.toLowerCase())&&n.test(e)})).length>0||!1}replaceWord(e){return e.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(e){return e.split(this.splitRegex).map((e=>this.isProfane(e)?this.replaceWord(e):e)).join(this.splitRegex.exec(e)[0])}addWords(){let e=Array.from(arguments);this.list.push(...e),e.map((e=>e.toLowerCase())).forEach((e=>{this.exclude.includes(e)&&this.exclude.splice(this.exclude.indexOf(e),1)}))}removeWords(){this.exclude.push(...Array.from(arguments).map((e=>e.toLowerCase())))}}},function(e,t,n){"use strict";var r=n(12),o=n(22);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=i.has(t);if(Object(o.a)(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;i.add(t);var c=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],a[u],c))return!1;return!0}if(t&&a&&"object"===Object(r.a)(t)&&"object"===Object(r.a)(a)){var d=Object.keys(t);return d.length===Object.keys(a).length&&d.every((function(n){return e(t[n],a[n],c)}))}return!1}(e,t)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(183),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var b=a[g];if(!i[b]&&(!r||!r[b])&&(!m||!m[b])&&(!s||!s[b])){var v=p(n,b);try{c(t,b,v)}catch(y){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7),o=n(1);function i(e){var t=o.useRef(!1),n=o.useState(e),i=Object(r.a)(n,2),a=i[0],s=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||s(e)}]}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return!(!e.addonBefore&&!e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function a(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=i(t,e,r)):n(o=i(t,e,""))}}function s(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}))},function(e,t,n){"use strict";class r{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"===typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}r.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let o=0;o<e.__mixins.length;o++)if(e.__mixins[o].constructor===t)return e.__mixins[o];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=r},function(e,t,n){"use strict";var r=n(29);n.d(t,"a",(function(){return r.a}));var o=n(33);n.d(t,"b",(function(){return o.a}));n(20),n(57),n(43),n(22)},function(e,t,n){"use strict";function r(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}n.d(t,"a",(function(){return r}))},function(e,t){e.exports={connectedSockets:{},setCurrentSocketId:function(e){sessionStorage.setItem("currentSocketId",e)},getCurrentSocketId:function(){return sessionStorage.getItem("currentSocketId")}}},function(e,t,n){"use strict";(function(e){var r=n(8),o=n(19),i=n(89);function a(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function s(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map((function(e,t){return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const c=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,u){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(i.a||FormData);const d=(u=r.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,p=u.visitor||b,f=u.dots,h=u.indexes,m=(u.Blob||"undefined"!==typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(p))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new o.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"===typeof Blob?new Blob([t]):e.from(t):t}function b(e,t,o){let i=e;if(e&&!o&&"object"===typeof e)if(r.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(a)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(i=r.a.toArray(e)))return t=s(t),i.forEach((function(e,o){!r.a.isUndefined(e)&&null!==e&&n.append(!0===h?l([t],o,f):null===h?t:t+"[]",g(e))})),!1;return!!a(e)||(n.append(l(o,t,f),g(e)),!1)}const v=[],y=Object.assign(c,{defaultVisitor:b,convertValue:g,isVisitable:a});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,o){if(!r.a.isUndefined(t)){if(-1!==v.indexOf(t))throw Error("Circular reference detected in "+o.join("."));v.push(t),r.a.forEach(t,(function(t,i){!0===(!(r.a.isUndefined(t)||null===t)&&p.call(n,t,r.a.isString(i)?i.trim():i,o,y))&&e(t,o?o.concat(i):[i])})),v.pop()}}(t),n}}).call(this,n(178).Buffer)},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(7),a=n(13),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(44),p=n(23),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],h=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,l=e.item,c=e.renderItem,p=e.responsive,m=e.responsiveDisabled,g=e.registerSize,b=e.itemKey,v=e.className,y=e.style,x=e.children,O=e.display,E=e.order,w=e.component,j=void 0===w?"div":w,S=Object(a.a)(e,f),T=p&&!O;function k(e){g(b,e)}s.useEffect((function(){return function(){k(null)}}),[]);var C,_=c&&l!==h?c(l):x;i||(C={opacity:T?0:1,height:T?0:h,overflowY:T?"hidden":h,order:p?E:h,pointerEvents:T?"none":h,position:T?"absolute":h});var N={};T&&(N["aria-hidden"]=!0);var A=s.createElement(j,Object(r.a)({className:u()(!i&&n,v),style:Object(o.a)(Object(o.a)({},C),y)},N,S,{ref:t}),_);return p&&(A=s.createElement(d.a,{onResize:function(e){k(e.offsetWidth)},disabled:m},A)),A}var g=s.forwardRef(m);g.displayName="Item";var b=g,v=n(29),y=n(27),x=n(25);function O(){var e=s.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)Object(x.a)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){Object(y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function E(e,t){var n=s.useState(t),r=Object(i.a)(n,2),o=r[0],a=r[1];return[o,Object(v.a)((function(t){e((function(){a(t)}))}))]}var w=l.a.createContext(null),j=["component"],S=["className"],T=["className"],k=function(e,t){var n=s.useContext(w);if(!n){var o=e.component,i=void 0===o?"div":o,l=Object(a.a)(e,j);return s.createElement(i,Object(r.a)({},l,{ref:t}))}var c=n.className,d=Object(a.a)(n,S),p=e.className,f=Object(a.a)(e,T);return s.createElement(w.Provider,{value:null},s.createElement(b,Object(r.a)({ref:t,className:u()(c,p)},d,f)))},C=s.forwardRef(k);C.displayName="RawItem";var _=C,N=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],A="responsive",R="invalidate";function I(e){return"+ ".concat(e.length," ...")}function P(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,c=e.data,f=void 0===c?[]:c,h=e.renderItem,m=e.renderRawItem,g=e.itemKey,v=e.itemWidth,y=void 0===v?10:v,x=e.ssr,j=e.style,S=e.className,T=e.maxCount,k=e.renderRest,C=e.renderRawRest,_=e.suffix,P=e.component,D=void 0===P?"div":P,L=e.itemComponent,M=e.onVisibleChange,F=Object(a.a)(e,N),$="full"===x,B=O(),U=E(B,null),H=Object(i.a)(U,2),z=H[0],G=H[1],W=z||0,V=E(B,new Map),q=Object(i.a)(V,2),K=q[0],Y=q[1],X=E(B,0),Z=Object(i.a)(X,2),Q=Z[0],J=Z[1],ee=E(B,0),te=Object(i.a)(ee,2),ne=te[0],re=te[1],oe=E(B,0),ie=Object(i.a)(oe,2),ae=ie[0],se=ie[1],le=Object(s.useState)(null),ce=Object(i.a)(le,2),ue=ce[0],de=ce[1],pe=Object(s.useState)(null),fe=Object(i.a)(pe,2),he=fe[0],me=fe[1],ge=s.useMemo((function(){return null===he&&$?Number.MAX_SAFE_INTEGER:he||0}),[he,z]),be=Object(s.useState)(!1),ve=Object(i.a)(be,2),ye=ve[0],xe=ve[1],Oe="".concat(l,"-item"),Ee=Math.max(Q,ne),we=T===A,je=f.length&&we,Se=T===R,Te=je||"number"===typeof T&&f.length>T,ke=Object(s.useMemo)((function(){var e=f;return je?e=null===z&&$?f:f.slice(0,Math.min(f.length,W/y)):"number"===typeof T&&(e=f.slice(0,T)),e}),[f,y,z,T,je]),Ce=Object(s.useMemo)((function(){return je?f.slice(ge+1):f.slice(ke.length)}),[f,ke,je,ge]),_e=Object(s.useCallback)((function(e,t){var n;return"function"===typeof g?g(e):null!==(n=g&&(null===e||void 0===e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Ne=Object(s.useCallback)(h||function(e){return e},[h]);function Ae(e,t,n){(he!==e||void 0!==t&&t!==ue)&&(me(e),n||(xe(e<f.length-1),null===M||void 0===M||M(e)),void 0!==t&&de(t))}function Re(e,t){Y((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Ie(e){return K.get(_e(ke[e],e))}Object(p.a)((function(){if(W&&"number"===typeof Ee&&ke){var e=ae,t=ke.length,n=t-1;if(!t)return void Ae(0,null);for(var r=0;r<t;r+=1){var o=Ie(r);if($&&(o=o||0),void 0===o){Ae(r-1,void 0,!0);break}if(e+=o,0===n&&e<=W||r===n-1&&e+Ie(n)<=W){Ae(n,null);break}if(e+Ee>W){Ae(r-1,e-o-ae+ne);break}}_&&Ie(0)+ae>W&&de(null)}}),[W,K,ne,ae,_e,ke]);var Pe=ye&&!!Ce.length,De={};null!==ue&&je&&(De={position:"absolute",left:ue,top:0});var Le,Me={prefixCls:Oe,responsive:je,component:L,invalidate:Se},Fe=m?function(e,t){var n=_e(e,t);return s.createElement(w.Provider,{key:n,value:Object(o.a)(Object(o.a)({},Me),{},{order:t,item:e,itemKey:n,registerSize:Re,display:t<=ge})},m(e,t))}:function(e,t){var n=_e(e,t);return s.createElement(b,Object(r.a)({},Me,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Re,display:t<=ge}))},$e={order:Pe?ge:Number.MAX_SAFE_INTEGER,className:"".concat(Oe,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Pe};if(C)C&&(Le=s.createElement(w.Provider,{value:Object(o.a)(Object(o.a)({},Me),$e)},C(Ce)));else{var Be=k||I;Le=s.createElement(b,Object(r.a)({},Me,$e),"function"===typeof Be?Be(Ce):Be)}var Ue=s.createElement(D,Object(r.a)({className:u()(!Se&&l,S),style:j,ref:t},F),ke.map(Fe),Te?Le:null,_&&s.createElement(b,Object(r.a)({},Me,{responsive:we,responsiveDisabled:!je,order:ge,className:"".concat(Oe,"-suffix"),registerSize:function(e,t){se(t)},display:!0,style:De}),_));return we&&(Ue=s.createElement(d.a,{onResize:function(e,t){G(t.clientWidth)},disabled:!je},Ue)),Ue}var D=s.forwardRef(P);D.displayName="Overflow",D.Item=_,D.RESPONSIVE=A,D.INVALIDATE=R;var L=D;t.a=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(510),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=r,r.displayName="c",r.aliases=[]},function(e,t,n){"use strict";function r(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";e.exports=n(192)},function(e,t,n){"use strict";const r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const o=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[r.HTML]:{[o.ADDRESS]:!0,[o.APPLET]:!0,[o.AREA]:!0,[o.ARTICLE]:!0,[o.ASIDE]:!0,[o.BASE]:!0,[o.BASEFONT]:!0,[o.BGSOUND]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.BUTTON]:!0,[o.CAPTION]:!0,[o.CENTER]:!0,[o.COL]:!0,[o.COLGROUP]:!0,[o.DD]:!0,[o.DETAILS]:!0,[o.DIR]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EMBED]:!0,[o.FIELDSET]:!0,[o.FIGCAPTION]:!0,[o.FIGURE]:!0,[o.FOOTER]:!0,[o.FORM]:!0,[o.FRAME]:!0,[o.FRAMESET]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HEADER]:!0,[o.HGROUP]:!0,[o.HR]:!0,[o.HTML]:!0,[o.IFRAME]:!0,[o.IMG]:!0,[o.INPUT]:!0,[o.LI]:!0,[o.LINK]:!0,[o.LISTING]:!0,[o.MAIN]:!0,[o.MARQUEE]:!0,[o.MENU]:!0,[o.META]:!0,[o.NAV]:!0,[o.NOEMBED]:!0,[o.NOFRAMES]:!0,[o.NOSCRIPT]:!0,[o.OBJECT]:!0,[o.OL]:!0,[o.P]:!0,[o.PARAM]:!0,[o.PLAINTEXT]:!0,[o.PRE]:!0,[o.SCRIPT]:!0,[o.SECTION]:!0,[o.SELECT]:!0,[o.SOURCE]:!0,[o.STYLE]:!0,[o.SUMMARY]:!0,[o.TABLE]:!0,[o.TBODY]:!0,[o.TD]:!0,[o.TEMPLATE]:!0,[o.TEXTAREA]:!0,[o.TFOOT]:!0,[o.TH]:!0,[o.THEAD]:!0,[o.TITLE]:!0,[o.TR]:!0,[o.TRACK]:!0,[o.UL]:!0,[o.WBR]:!0,[o.XMP]:!0},[r.MATHML]:{[o.MI]:!0,[o.MO]:!0,[o.MN]:!0,[o.MS]:!0,[o.MTEXT]:!0,[o.ANNOTATION_XML]:!0},[r.SVG]:{[o.TITLE]:!0,[o.FOREIGN_OBJECT]:!0,[o.DESC]:!0}}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(78);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),i="aria-",a="data-";function s(e,t){return 0===e.indexOf(t)}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var l={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||s(n,i))||t.data&&s(n,a)||t.attr&&o.includes(n))&&(l[n]=e[n])})),l}},function(e,t,n){(function(n){var r,o,i;o=[],void 0===(i="function"===typeof(r=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):o(l.href)?r(e,t,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(o(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var i="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,o):r)||(e.exports=i)}).call(this,n(49))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(13),a=n(124),s=n(6),l=n.n(s),c=n(44),u=n(45),d=n(65),p=n(29),f=n(157),h=n(23),m=n(94),g=n(1),b=n(5),v=n(36),y=n(20);function x(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=void 0===c?0:c,d=o.y,p=void 0===d?0:d,f=g.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],b=n.points[1],v=m[0],y=m[1],x=b[0],O=b[1];v!==x&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,y!==O&&["l","r"].includes(y)?"l"===y?h.left=0:h.right=0:h.left=u}return g.createElement("div",{ref:f,className:l()("".concat(t,"-arrow"),a),style:h},s)}function O(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(v.c,Object(b.a)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var E=g.memo((function(e){return e.children}),(function(e,t){return t.cache}));var w=g.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,m=e.fresh,w=e.onClick,j=e.mask,S=e.arrow,T=e.arrowPos,k=e.align,C=e.motion,_=e.maskMotion,N=e.forceRender,A=e.getPopupContainer,R=e.autoDestroy,I=e.portal,P=e.zIndex,D=e.onMouseEnter,L=e.onMouseLeave,M=e.onPointerEnter,F=e.ready,$=e.offsetX,B=e.offsetY,U=e.offsetR,H=e.offsetB,z=e.onAlign,G=e.onPrepare,W=e.stretch,V=e.targetWidth,q=e.targetHeight,K="function"===typeof n?n():n,Y=p||f,X=(null===A||void 0===A?void 0:A.length)>0,Z=g.useState(!A||!X),Q=Object(o.a)(Z,2),J=Q[0],ee=Q[1];if(Object(h.a)((function(){!J&&X&&u&&ee(!0)}),[J,X,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(F||!p){var re,oe=k.points,ie=k.dynamicInset||(null===(re=k._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],se=ie&&"b"===oe[0][0];ae?(ne.right=U,ne.left=te):(ne.left=$,ne.right=te),se?(ne.bottom=H,ne.top=te):(ne.top=B,ne.bottom=te)}var le={};return W&&(W.includes("height")&&q?le.height=q:W.includes("minHeight")&&q&&(le.minHeight=q),W.includes("width")&&V?le.width=V:W.includes("minWidth")&&V&&(le.minWidth=V)),p||(le.pointerEvents="none"),g.createElement(I,{open:N||Y,getContainer:A&&function(){return A(u)},autoDestroy:R},g.createElement(O,{prefixCls:a,open:p,zIndex:P,mask:j,motion:_}),g.createElement(c.a,{onResize:z,disabled:!p},(function(e){return g.createElement(v.c,Object(b.a)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(a,"-hidden")},C,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null===C||void 0===C||null===(t=C.onVisibleChanged)||void 0===t||t.call(C,e),d(e)}}),(function(n,o){var c=n.className,u=n.style,d=l()(a,c,i);return g.createElement("div",{ref:Object(y.a)(e,t,o),className:d,style:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"--arrow-x":"".concat(T.x||0,"px"),"--arrow-y":"".concat(T.y||0,"px")},ne),le),u),{},{boxSizing:"border-box",zIndex:P},s),onMouseEnter:D,onMouseLeave:L,onPointerEnter:M,onClick:w},S&&g.createElement(x,{prefixCls:a,arrow:S,arrowPos:T,align:k}),g.createElement(E,{cache:!p&&!m},K))}))})))}));var j=g.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Object(y.c)(n),i=g.useCallback((function(e){Object(y.b)(t,r?r(e):e)}),[r]),a=Object(y.d)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n})),S=g.createContext(null);function T(e){return e?Array.isArray(e)?e:[e]:[]}var k=n(61);function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function N(e){return e.ownerDocument.defaultView}function A(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=N(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function I(e){return R(parseFloat(e),0)}function P(e,t){var n=Object(r.a)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=N(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=I(i),m=I(a),g=I(s),b=I(l),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),x=(p-f-g-b)*v,O=(u-d-h-m)*y,E=h*y,w=m*y,j=g*v,S=b*v,T=0,k=0;if("clip"===r){var C=I(o);T=C*v,k=C*y}var _=c.x+j-T,A=c.y+E-k,P=_+c.width+2*T-j-S-x,D=A+c.height+2*k-E-w-O;n.left=Math.max(n.left,_),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,D)}})),n}function D(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function L(e,t){var n=t||[],r=Object(o.a)(n,2),i=r[0],a=r[1];return[D(e.width,i),D(e.height,a)]}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function F(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function $(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var B=n(10);n(22);var U=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a,t=g.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,b=t.children,v=t.action,y=void 0===v?"hover":v,x=t.showAction,O=t.hideAction,E=t.popupVisible,I=t.defaultPopupVisible,D=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,z=t.mouseEnterDelay,G=t.mouseLeaveDelay,W=void 0===G?.1:G,V=t.focusDelay,q=t.blurDelay,K=t.mask,Y=t.maskClosable,X=void 0===Y||Y,Z=t.getPopupContainer,Q=t.forceRender,J=t.autoDestroy,ee=t.destroyPopupOnHide,te=t.popup,ne=t.popupClassName,re=t.popupStyle,oe=t.popupPlacement,ie=t.builtinPlacements,ae=void 0===ie?{}:ie,se=t.popupAlign,le=t.zIndex,ce=t.stretch,ue=t.getPopupClassNameFromAlign,de=t.fresh,pe=t.alignPoint,fe=t.onPopupClick,he=t.onPopupAlign,me=t.arrow,ge=t.popupMotion,be=t.maskMotion,ve=t.popupTransitionName,ye=t.popupAnimation,xe=t.maskTransitionName,Oe=t.maskAnimation,Ee=t.className,we=t.getTriggerDOMNode,je=Object(i.a)(t,U),Se=J||ee||!1,Te=g.useState(!1),ke=Object(o.a)(Te,2),Ce=ke[0],_e=ke[1];Object(h.a)((function(){_e(Object(m.a)())}),[]);var Ne=g.useRef({}),Ae=g.useContext(S),Re=g.useMemo((function(){return{registerSubPopup:function(e,t){Ne.current[e]=t,null===Ae||void 0===Ae||Ae.registerSubPopup(e,t)}}}),[Ae]),Ie=Object(f.a)(),Pe=g.useState(null),De=Object(o.a)(Pe,2),Le=De[0],Me=De[1],Fe=g.useRef(null),$e=Object(p.a)((function(e){Fe.current=e,Object(u.c)(e)&&Le!==e&&Me(e),null===Ae||void 0===Ae||Ae.registerSubPopup(Ie,e)})),Be=g.useState(null),Ue=Object(o.a)(Be,2),He=Ue[0],ze=Ue[1],Ge=g.useRef(null),We=Object(p.a)((function(e){Object(u.c)(e)&&He!==e&&(ze(e),Ge.current=e)})),Ve=g.Children.only(b),qe=(null===Ve||void 0===Ve?void 0:Ve.props)||{},Ke={},Ye=Object(p.a)((function(e){var t,n,r=He;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Object(d.a)(r))||void 0===t?void 0:t.host)===e||e===r||(null===Le||void 0===Le?void 0:Le.contains(e))||(null===(n=Object(d.a)(Le))||void 0===n?void 0:n.host)===e||e===Le||Object.values(Ne.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),Xe=_(s,ge,ye,ve),Ze=_(s,be,Oe,xe),Qe=g.useState(I||!1),Je=Object(o.a)(Qe,2),et=Je[0],tt=Je[1],nt=null!==E&&void 0!==E?E:et,rt=Object(p.a)((function(e){void 0===E&&tt(e)}));Object(h.a)((function(){tt(E||!1)}),[E]);var ot=g.useRef(nt);ot.current=nt;var it=g.useRef([]);it.current=[];var at=Object(p.a)((function(e){var t;rt(e),(null!==(t=it.current[it.current.length-1])&&void 0!==t?t:nt)!==e&&(it.current.push(e),null===D||void 0===D||D(e))})),st=g.useRef(),lt=function(){clearTimeout(st.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;lt(),0===t?at(e):st.current=setTimeout((function(){at(e)}),1e3*t)};g.useEffect((function(){return lt}),[]);var ut=g.useState(!1),dt=Object(o.a)(ut,2),pt=dt[0],ft=dt[1];Object(h.a)((function(e){e&&!nt||ft(!0)}),[nt]);var ht=g.useState(null),mt=Object(o.a)(ht,2),gt=mt[0],bt=mt[1],vt=g.useState(null),yt=Object(o.a)(vt,2),xt=yt[0],Ot=yt[1],Et=function(e){Ot([e.clientX,e.clientY])},wt=function(e,t,n,i,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=Object(o.a)(c,2),f=d[0],m=d[1],b=g.useRef(0),v=g.useMemo((function(){return t?A(t):[]}),[t]),y=g.useRef({});e||(y.current={});var x=Object(p.a)((function(){if(t&&n&&e){var c,d,p,f,h,g=t,b=g.ownerDocument,x=N(g).getComputedStyle(g),O=x.width,E=x.height,w=x.position,j=g.style.left,S=g.style.top,T=g.style.right,C=g.style.bottom,_=g.style.overflow,A=Object(r.a)(Object(r.a)({},a[i]),s),I=b.createElement("div");if(null===(c=g.parentElement)||void 0===c||c.appendChild(I),I.style.left="".concat(g.offsetLeft,"px"),I.style.top="".concat(g.offsetTop,"px"),I.style.position=w,I.style.height="".concat(g.offsetHeight,"px"),I.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var D,B,U=n.getBoundingClientRect();U.x=null!==(D=U.x)&&void 0!==D?D:U.left,U.y=null!==(B=U.y)&&void 0!==B?B:U.top,h={x:U.x,y:U.y,width:U.width,height:U.height}}var H=g.getBoundingClientRect();H.x=null!==(d=H.x)&&void 0!==d?d:H.left,H.y=null!==(p=H.y)&&void 0!==p?p:H.top;var z=b.documentElement,G=z.clientWidth,W=z.clientHeight,V=z.scrollWidth,q=z.scrollHeight,K=z.scrollTop,Y=z.scrollLeft,X=H.height,Z=H.width,Q=h.height,J=h.width,ee={left:0,top:0,right:G,bottom:W},te={left:-Y,top:-K,right:V-Y,bottom:q-K},ne=A.htmlRegion,re="visible",oe="visibleFirst";"scroll"!==ne&&ne!==oe&&(ne=re);var ie=ne===oe,ae=P(te,v),se=P(ee,v),le=ne===re?se:ae,ce=ie?se:le;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ue=g.getBoundingClientRect();g.style.left=j,g.style.top=S,g.style.right=T,g.style.bottom=C,g.style.overflow=_,null===(f=g.parentElement)||void 0===f||f.removeChild(I);var de=R(Math.round(Z/parseFloat(O)*1e3)/1e3),pe=R(Math.round(X/parseFloat(E)*1e3)/1e3);if(0===de||0===pe||Object(u.c)(n)&&!Object(k.a)(n))return;var fe=A.offset,he=A.targetOffset,me=L(H,fe),ge=Object(o.a)(me,2),be=ge[0],ve=ge[1],ye=L(h,he),xe=Object(o.a)(ye,2),Oe=xe[0],Ee=xe[1];h.x-=Oe,h.y-=Ee;var we=A.points||[],je=Object(o.a)(we,2),Se=je[0],Te=M(je[1]),ke=M(Se),Ce=F(h,Te),_e=F(H,ke),Ne=Object(r.a)({},A),Ae=Ce.x-_e.x+be,Re=Ce.y-_e.y+ve;function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le,r=H.x+e,o=H.y+t,i=r+Z,a=o+X,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ie,Pe,De,Le,Me=St(Ae,Re),Fe=St(Ae,Re,se),$e=F(h,["t","l"]),Be=F(H,["t","l"]),Ue=F(h,["b","r"]),He=F(H,["b","r"]),ze=A.overflow||{},Ge=ze.adjustX,We=ze.adjustY,Ve=ze.shiftX,qe=ze.shiftY,Ke=function(e){return"boolean"===typeof e?e:e>=0};function Tt(){Ie=H.y+Re,Pe=Ie+X,De=H.x+Ae,Le=De+Z}Tt();var Ye=Ke(We),Xe=ke[0]===Te[0];if(Ye&&"t"===ke[0]&&(Pe>ce.bottom||y.current.bt)){var Ze=Re;Xe?Ze-=X-Q:Ze=$e.y-He.y-ve;var Qe=St(Ae,Ze),Je=St(Ae,Ze,se);Qe>Me||Qe===Me&&(!ie||Je>=Fe)?(y.current.bt=!0,Re=Ze,ve=-ve,Ne.points=[$(ke,0),$(Te,0)]):y.current.bt=!1}if(Ye&&"b"===ke[0]&&(Ie<ce.top||y.current.tb)){var et=Re;Xe?et+=X-Q:et=Ue.y-Be.y-ve;var tt=St(Ae,et),nt=St(Ae,et,se);tt>Me||tt===Me&&(!ie||nt>=Fe)?(y.current.tb=!0,Re=et,ve=-ve,Ne.points=[$(ke,0),$(Te,0)]):y.current.tb=!1}var rt=Ke(Ge),ot=ke[1]===Te[1];if(rt&&"l"===ke[1]&&(Le>ce.right||y.current.rl)){var it=Ae;ot?it-=Z-J:it=$e.x-He.x-be;var at=St(it,Re),st=St(it,Re,se);at>Me||at===Me&&(!ie||st>=Fe)?(y.current.rl=!0,Ae=it,be=-be,Ne.points=[$(ke,1),$(Te,1)]):y.current.rl=!1}if(rt&&"r"===ke[1]&&(De<ce.left||y.current.lr)){var lt=Ae;ot?lt+=Z-J:lt=Ue.x-Be.x-be;var ct=St(lt,Re),ut=St(lt,Re,se);ct>Me||ct===Me&&(!ie||ut>=Fe)?(y.current.lr=!0,Ae=lt,be=-be,Ne.points=[$(ke,1),$(Te,1)]):y.current.lr=!1}Tt();var dt=!0===Ve?0:Ve;"number"===typeof dt&&(De<se.left&&(Ae-=De-se.left-be,h.x+J<se.left+dt&&(Ae+=h.x-se.left+J-dt)),Le>se.right&&(Ae-=Le-se.right-be,h.x>se.right-dt&&(Ae+=h.x-se.right+dt)));var pt=!0===qe?0:qe;"number"===typeof pt&&(Ie<se.top&&(Re-=Ie-se.top-ve,h.y+Q<se.top+pt&&(Re+=h.y-se.top+Q-pt)),Pe>se.bottom&&(Re-=Pe-se.bottom-ve,h.y>se.bottom-pt&&(Re+=h.y-se.bottom+pt)));var ft=H.x+Ae,ht=ft+Z,mt=H.y+Re,gt=mt+X,bt=h.x,vt=bt+J,yt=h.y,xt=yt+Q,Ot=(Math.max(ft,bt)+Math.min(ht,vt))/2-ft,Et=(Math.max(mt,yt)+Math.min(gt,xt))/2-mt;null===l||void 0===l||l(t,Ne);var wt=ue.right-H.x-(Ae+H.width),jt=ue.bottom-H.y-(Re+H.height);1===de&&(Ae=Math.round(Ae),wt=Math.round(wt)),1===pe&&(Re=Math.round(Re),jt=Math.round(jt)),m({ready:!0,offsetX:Ae/de,offsetY:Re/pe,offsetR:wt/de,offsetB:jt/pe,arrowX:Ot/de,arrowY:Et/pe,scaleX:de,scaleY:pe,align:Ne})}})),O=function(){m((function(e){return Object(r.a)(Object(r.a)({},e),{},{ready:!1})}))};return Object(h.a)(O,[i]),Object(h.a)((function(){e||O()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){b.current+=1;var e=b.current;Promise.resolve().then((function(){b.current===e&&x()}))}]}(nt,Le,pe&&null!==xt?xt:He,oe,ae,se,he),jt=Object(o.a)(wt,11),St=jt[0],Tt=jt[1],kt=jt[2],Ct=jt[3],_t=jt[4],Nt=jt[5],At=jt[6],Rt=jt[7],It=jt[8],Pt=jt[9],Dt=jt[10],Lt=function(e,t,n,r){return g.useMemo((function(){var o=T(null!==n&&void 0!==n?n:t),i=T(null!==r&&void 0!==r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(Ce,y,x,O),Mt=Object(o.a)(Lt,2),Ft=Mt[0],$t=Mt[1],Bt=Ft.has("click"),Ut=$t.has("click")||$t.has("contextMenu"),Ht=Object(p.a)((function(){pt||Dt()}));!function(e,t,n,r,o){Object(h.a)((function(){if(e&&t&&n){var i=n,a=A(t),s=A(i),l=N(i),c=new Set([l].concat(Object(B.a)(a),Object(B.a)(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(nt,He,Le,Ht,(function(){ot.current&&pe&&Ut&&ct(!1)})),Object(h.a)((function(){Ht()}),[xt,oe]),Object(h.a)((function(){!nt||null!==ae&&void 0!==ae&&ae[oe]||Ht()}),[JSON.stringify(se)]);var zt=g.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(C(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(ae,s,Pt,pe);return l()(e,null===ue||void 0===ue?void 0:ue(Pt))}),[Pt,ue,ae,s,pe]);g.useImperativeHandle(n,(function(){return{nativeElement:Ge.current,popupElement:Fe.current,forceAlign:Ht}}));var Gt=g.useState(0),Wt=Object(o.a)(Gt,2),Vt=Wt[0],qt=Wt[1],Kt=g.useState(0),Yt=Object(o.a)(Kt,2),Xt=Yt[0],Zt=Yt[1],Qt=function(){if(ce&&He){var e=He.getBoundingClientRect();qt(e.width),Zt(e.height)}};function Jt(e,t,n,r){Ke[e]=function(o){var i;null===r||void 0===r||r(o),ct(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=qe[e])||void 0===i||i.call.apply(i,[qe,o].concat(s))}}Object(h.a)((function(){gt&&(Dt(),gt(),bt(null))}),[gt]),(Bt||Ut)&&(Ke.onClick=function(e){var t;ot.current&&Ut?ct(!1):!ot.current&&Bt&&(Et(e),ct(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=qe.onClick)||void 0===t||t.call.apply(t,[qe,e].concat(r))}),function(e,t,n,r,o,i,a,s){var l=g.useRef(e);l.current=e,g.useEffect((function(){if(t&&r&&(!o||i)){var e=function(e){var t;l.current&&!a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&s(!1)},c=N(r);c.addEventListener("mousedown",e,!0),c.addEventListener("contextmenu",e,!0);var u=Object(d.a)(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,o,i])}(nt,Ut,He,Le,K,X,Ye,ct);var en,tn,nn=Ft.has("hover"),rn=$t.has("hover");nn&&(Jt("onMouseEnter",!0,z,(function(e){Et(e)})),Jt("onPointerEnter",!0,z,(function(e){Et(e)})),en=function(e){(nt||pt)&&null!==Le&&void 0!==Le&&Le.contains(e.target)&&ct(!0,z)},pe&&(Ke.onMouseMove=function(e){var t;null===(t=qe.onMouseMove)||void 0===t||t.call(qe,e)})),rn&&(Jt("onMouseLeave",!1,W),Jt("onPointerLeave",!1,W),tn=function(){ct(!1,W)}),Ft.has("focus")&&Jt("onFocus",!0,V),$t.has("focus")&&Jt("onBlur",!1,q),Ft.has("contextMenu")&&(Ke.onContextMenu=function(e){var t;ot.current&&$t.has("contextMenu")?ct(!1):(Et(e),ct(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=qe.onContextMenu)||void 0===t||t.call.apply(t,[qe,e].concat(r))}),Ee&&(Ke.className=l()(qe.className,Ee));var on=Object(r.a)(Object(r.a)({},qe),Ke),an={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){je[e]&&(an[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=on[e])||void 0===t||t.call.apply(t,[on].concat(r)),je[e].apply(je,r)})}));var sn=g.cloneElement(Ve,Object(r.a)(Object(r.a)({},on),an)),ln={x:Nt,y:At},cn=me?Object(r.a)({},!0!==me?me:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.a,{disabled:!nt,ref:We,onResize:function(){Qt(),Ht()}},g.createElement(j,{getTriggerDOMNode:we},sn)),g.createElement(S.Provider,{value:Re},g.createElement(w,{portal:e,ref:$e,prefixCls:s,popup:te,className:l()(ne,zt),style:re,target:He,onMouseEnter:en,onMouseLeave:tn,onPointerEnter:en,zIndex:le,open:nt,keepDom:pt,fresh:de,onClick:fe,mask:K,motion:Xe,maskMotion:Ze,onVisibleChanged:function(e){ft(!1),Dt(),null===H||void 0===H||H(e)},onPrepare:function(){return new Promise((function(e){Qt(),bt((function(){return e}))}))},forceRender:Q,autoDestroy:Se,getPopupContainer:Z,align:Pt,arrow:cn,arrowPos:ln,ready:St,offsetX:Tt,offsetY:kt,offsetR:Ct,offsetB:_t,onAlign:Ht,stretch:ce,targetWidth:Vt/Rt,targetHeight:Xt/It})))}));return t}(a.a)},,function(e,t,n){"use strict";var r=n(102),o=n(128),i=n(129);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,a)}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))o.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){"use strict";e.exports=n(182)},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,"a",(function(){return r}))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),u=RegExp(l(o+" "+i+" "+a+" "+s)),d=l(i+" "+a+" "+s),p=l(o+" "+i+" "+s),f=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,v]),O=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[O,b,v]),w={keyword:u,punctuation:/[<>()?,.:[\]]/},j=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,E]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:w},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:w},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:w},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,m]),inside:w}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,b]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:w}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,E,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(E),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var k=S+"|"+j,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[k]),_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,_]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[_]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,R]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[k]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function M(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:M(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:M(L,D)}],char:{pattern:RegExp(j),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=r,r.displayName="csharp",r.aliases=["dotnet","cs"]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}e.exports=r,r.displayName="ruby",r.aliases=["rb"]},function(e,t,n){"use strict";function r(e){!function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){"string"===typeof t&&(t=[t]),t.forEach((function(t){!function(t,n){var r="doc-comment",o=e.languages[t];if(o){var i=o[r];if(!i){var a={};a[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(o=e.languages.insertBefore(t,"comment",a))[r]}if(i instanceof RegExp&&(i=o[r]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),n(i[s]);else n(i)}}(t,(function(e){e.inside||(e.inside={}),e.inside.rest=n}))}))}}),t.addSupport(["java","javascript","php"],t)}(e)}e.exports=r,r.displayName="javadoclike",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(e)}e.exports=o,o.displayName="php",o.aliases=[]},function(e,t,n){"use strict";const r=n(481),o=n(112),i=n(482),a=n(113),s=o.CODE_POINTS,l=o.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},u="DATA_STATE",d="RCDATA_STATE",p="RAWTEXT_STATE",f="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",b="TAG_NAME_STATE",v="RCDATA_LESS_THAN_SIGN_STATE",y="RCDATA_END_TAG_OPEN_STATE",x="RCDATA_END_TAG_NAME_STATE",O="RAWTEXT_LESS_THAN_SIGN_STATE",E="RAWTEXT_END_TAG_OPEN_STATE",w="RAWTEXT_END_TAG_NAME_STATE",j="SCRIPT_DATA_LESS_THAN_SIGN_STATE",S="SCRIPT_DATA_END_TAG_OPEN_STATE",T="SCRIPT_DATA_END_TAG_NAME_STATE",k="SCRIPT_DATA_ESCAPE_START_STATE",C="SCRIPT_DATA_ESCAPE_START_DASH_STATE",_="SCRIPT_DATA_ESCAPED_STATE",N="SCRIPT_DATA_ESCAPED_DASH_STATE",A="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",R="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",I="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",P="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",D="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",$="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",H="ATTRIBUTE_NAME_STATE",z="AFTER_ATTRIBUTE_NAME_STATE",G="BEFORE_ATTRIBUTE_VALUE_STATE",W="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",V="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_UNQUOTED_STATE",K="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Y="SELF_CLOSING_START_TAG_STATE",X="BOGUS_COMMENT_STATE",Z="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",oe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ie="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",le="DOCTYPE_STATE",ce="BEFORE_DOCTYPE_NAME_STATE",ue="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",pe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",fe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ge="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",be="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ve="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",ye="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xe="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Oe="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Ee="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="BOGUS_DOCTYPE_STATE",je="CDATA_SECTION_STATE",Se="CDATA_SECTION_BRACKET_STATE",Te="CDATA_SECTION_END_STATE",ke="CHARACTER_REFERENCE_STATE",Ce="NAMED_CHARACTER_REFERENCE_STATE",_e="AMBIGUOS_AMPERSAND_STATE",Ne="NUMERIC_CHARACTER_REFERENCE_STATE",Ae="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Re="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ie="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Pe="DECIMAL_CHARACTER_REFERENCE_STATE",De="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Le(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Me(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function Fe(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function $e(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function Be(e){return $e(e)||Fe(e)}function Ue(e){return Be(e)||Me(e)}function He(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function ze(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function Ge(e){return e+32}function We(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Ve(e){return String.fromCharCode(Ge(e))}function qe(e,t){const n=i[++e];let r=++e,o=r+n-1;for(;r<=o;){const e=r+o>>>1,a=i[e];if(a<t)r=e+1;else{if(!(a>t))return i[e+n];o=e-1}}return-1}class Ke{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ke.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,o=!0;const i=e.length;let a,l=0,c=t;for(;l<i;l++){if(l>0&&(c=this._consume(),r++),c===s.EOF){o=!1;break}if(a=e[l],c!==a&&(n||c!==Ge(a))){o=!1;break}}if(!o)for(;r--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==l.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Ke.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ke.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ke.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ke.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ke.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ke.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Ke.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ke.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ke.CHARACTER_TOKEN;Le(e)?t=Ke.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ke.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,We(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ke.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=qe(0,e);for(this.tempBuff.push(e);r>-1;){const e=i[r],o=e<7;o&&1&e&&(t=2&e?[i[++r],i[++r]]:[i[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=o?4&e?qe(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===W||this.returnState===V||this.returnState===q}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||Ue(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=We(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[u](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=m:e===s.AMPERSAND?(this.returnState=u,this.state=ke):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=ke):e===s.LESS_THAN_SIGN?this.state=v:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=O:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=j:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=Z:e===s.SOLIDUS?this.state=g:Be(e)?(this._createStartTagToken(),this._reconsumeInState(b)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(X)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(u))}[g](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(b)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=u):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(X))}[b](e){Le(e)?this.state=U:e===s.SOLIDUS?this.state=Y:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):Fe(e)?this.currentToken.tagName+=Ve(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=We(e)}[v](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=y):(this._emitChars("<"),this._reconsumeInState(d))}[y](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(x)):(this._emitChars("</"),this._reconsumeInState(d))}[x](e){if(Fe(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if($e(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this.state=u,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[O](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=E):(this._emitChars("<"),this._reconsumeInState(p))}[E](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChars("</"),this._reconsumeInState(p))}[w](e){if(Fe(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if($e(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}}[j](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=S):e===s.EXCLAMATION_MARK?(this.state=k,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(f))}[S](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(T)):(this._emitChars("</"),this._reconsumeInState(f))}[T](e){if(Fe(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if($e(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[k](e){e===s.HYPHEN_MINUS?(this.state=C,this._emitChars("-")):this._reconsumeInState(f)}[C](e){e===s.HYPHEN_MINUS?(this.state=A,this._emitChars("-")):this._reconsumeInState(f)}[_](e){e===s.HYPHEN_MINUS?(this.state=N,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=R:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[N](e){e===s.HYPHEN_MINUS?(this.state=A,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=R:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=_,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=_,this._emitCodePoint(e))}[A](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=R:e===s.GREATER_THAN_SIGN?(this.state=f,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=_,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=_,this._emitCodePoint(e))}[R](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=I):Be(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(D)):(this._emitChars("<"),this._reconsumeInState(_))}[I](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(P)):(this._emitChars("</"),this._reconsumeInState(_))}[P](e){if(Fe(e))this.currentToken.tagName+=Ve(e),this.tempBuff.push(e);else if($e(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Y);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(_)}}[D](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?L:_,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):$e(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(_)}[L](e){e===s.HYPHEN_MINUS?(this.state=M,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=$,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[M](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=$,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[F](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=$,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=f,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[$](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=B,this._emitChars("/")):this._reconsumeInState(L)}[B](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?_:L,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):$e(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(L)}[U](e){Le(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(z):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=H):(this._createAttr(""),this._reconsumeInState(H)))}[H](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(z),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(G):Fe(e)?this.currentAttr.name+=Ve(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=We(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=o.REPLACEMENT_CHARACTER):this.currentAttr.name+=We(e)}[z](e){Le(e)||(e===s.SOLIDUS?this.state=Y:e===s.EQUALS_SIGN?this.state=G:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(H)))}[G](e){Le(e)||(e===s.QUOTATION_MARK?this.state=W:e===s.APOSTROPHE?this.state=V:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=u,this._emitCurrentToken()):this._reconsumeInState(q))}[W](e){e===s.QUOTATION_MARK?this.state=K:e===s.AMPERSAND?(this.returnState=W,this.state=ke):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[V](e){e===s.APOSTROPHE?this.state=K:e===s.AMPERSAND?(this.returnState=V,this.state=ke):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[q](e){Le(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=q,this.state=ke):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=We(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[K](e){Le(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue(Y):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[Y](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(U))}[X](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):this.currentToken.data+=We(e)}[Z](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=le:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=je:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=X):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(X))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ie:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=We(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=oe:this._reconsumeInState(ie)}[oe](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[ie](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ie):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[le](e){Le(e)?this.state=ce:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ce):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ce))}[ce](e){Le(e)||(Fe(e)?(this._createDoctypeToken(Ve(e)),this.state=ue):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(o.REPLACEMENT_CHARACTER),this.state=ue):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(We(e)),this.state=ue))}[ue](e){Le(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):Fe(e)?this.currentToken.name+=Ve(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=We(e)}[de](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=pe:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=ve:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[pe](e){Le(e)?this.state=fe:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[fe](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[he](e){e===s.QUOTATION_MARK?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[me](e){e===s.APOSTROPHE?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[ge](e){Le(e)?this.state=be:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=xe):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Oe):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[be](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=xe):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=Oe):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[ve](e){Le(e)?this.state=ye:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=xe):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Oe):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[ye](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=xe):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=Oe):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[xe](e){e===s.QUOTATION_MARK?this.state=Ee:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[Oe](e){e===s.APOSTROPHE?this.state=Ee:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[Ee](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(we)))}[we](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[je](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Se:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Se](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Te:(this._emitChars("]"),this._reconsumeInState(je))}[Te](e){e===s.GREATER_THAN_SIGN?this.state=u:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(je))}[ke](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Ne):Ue(e)?this._reconsumeInState(Ce):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ce](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=_e}[_e](e){Ue(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=We(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Ne](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ae):this._reconsumeInState(Re)}[Ae](e){!function(e){return Me(e)||He(e)||ze(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Ie)}[Re](e){Me(e)?this._reconsumeInState(Pe):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ie](e){He(e)?this.charRefCode=16*this.charRefCode+e-55:ze(e)?this.charRefCode=16*this.charRefCode+e-87:Me(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=De:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(De))}[Pe](e){Me(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=De:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(De))}[De](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(o.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ke.CHARACTER_TOKEN="CHARACTER_TOKEN",Ke.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ke.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ke.START_TAG_TOKEN="START_TAG_TOKEN",Ke.END_TAG_TOKEN="END_TAG_TOKEN",Ke.COMMENT_TOKEN="COMMENT_TOKEN",Ke.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ke.EOF_TOKEN="EOF_TOKEN",Ke.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ke.MODE={DATA:u,RCDATA:d,RAWTEXT:p,SCRIPT_DATA:f,PLAINTEXT:h},Ke.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ke},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(3),i=n(12),a=n(1),s=["show"];function l(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===Object(i.a)(t)&&t.formatter?t.formatter:!!t);var a=n=Object(o.a)(Object(o.a)({},n),e),l=a.show,c=Object(r.a)(a,s);return Object(o.a)(Object(o.a)({},c),{},{show:!!l,showFormatter:"function"===typeof l?l:void 0,strategy:c.strategy||function(e){return e.length}})}),[e,t])}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=p(i),s=p(n(2)),l=p(n(10)),c=p(n(12)),u=p(n(13)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(14));function p(e){return e&&e.__esModule?e:{default:e}}var f=["\ud83d\udd19","\u23f0"],h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={textLines:[],isDone:!1},n.onTypingDone=function(){n.mounted&&(n.setState({isDone:!0}),n.props.onTypingDone())},n.delayGenerator=function(e,t,r,o){var i=n.props.avgTypingDelay,a=n.props.stdTypingDelay;return n.props.delayGenerator(i,a,{line:e,lineIdx:t,character:r,charIdx:o,defDelayGenerator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return d.gaussianRnd(e,t)}})},n.typeLine=function(e,t){if(!n.mounted)return Promise.resolve();var r=e,o=n.props.onLineTyped;return d.isBackspaceElement(e)?(e.props.delay>0&&(n.introducedDelay=e.props.delay),r=String("\ud83d\udd19").repeat(e.props.count)):d.isDelayElement(e)&&(n.introducedDelay=e.props.ms,r="\u23f0"),new Promise((function(e,i){n.setState({textLines:n.state.textLines.concat([""])},(function(){d.eachPromise(r,n.typeCharacter,r,t).then((function(){return o(r,t)})).then(e).catch(i)}))}))},n.typeCharacter=function(e,t,r,o){if(!n.mounted)return Promise.resolve();var i=n.props.onCharacterTyped;return new Promise((function(a){var s=n.state.textLines.slice();d.sleep(n.introducedDelay).then((function(){n.introducedDelay=null;var l="\ud83d\udd19"===e;if("\u23f0"===e)a();else{if(l&&o>0){for(var c=o-1,u=s[c],d=c;d>=0&&(!(u.length>0)||f.includes(u[0]));d--)u=s[c=d];s[c]=u.substr(0,u.length-1)}else s[o]+=e;n.setState({textLines:s},(function(){var s=n.delayGenerator(r,o,e,t);i(e,t),setTimeout(a,s)}))}}))}))},n.mounted=!1,n.linesToType=[],n.introducedDelay=null,e.children&&(n.linesToType=d.extractTextFromElement(e.children)),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.props,t=e.children,n=e.startDelay;t?n>0&&"undefined"!==typeof window?setTimeout(this.typeAllLines.bind(this),n):this.typeAllLines():this.onTypingDone()}},{key:"shouldComponentUpdate",value:function(e,t){if(t.textLines.length!==this.state.textLines.length)return!0;for(var n=0;n<t.textLines.length;n++){if(this.state.textLines[n]!==t.textLines[n])return!0}return this.state.isDone!==t.isDone}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"typeAllLines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.linesToType;return d.eachPromise(t,this.typeLine).then((function(){return e.onTypingDone()}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cursor,o=this.state.isDone,i=d.cloneElementWithSpecifiedText({element:this.props.children,textLines:this.state.textLines});return a.default.createElement("div",{className:"Typist "+t},i,a.default.createElement(l.default,r({isDone:o},n)))}}]),t}(i.Component);h.propTypes={children:s.default.node,className:s.default.string,avgTypingDelay:s.default.number,stdTypingDelay:s.default.number,startDelay:s.default.number,cursor:s.default.object,onCharacterTyped:s.default.func,onLineTyped:s.default.func,onTypingDone:s.default.func,delayGenerator:s.default.func},h.defaultProps={className:"",avgTypingDelay:70,stdTypingDelay:25,startDelay:0,cursor:{},onCharacterTyped:function(){},onLineTyped:function(){},onTypingDone:function(){},delayGenerator:d.gaussianRnd},t.default=h,h.Backspace=c.default,h.Delay=u.default},function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(9)()},function(e,t,n){"use strict";var r=n(4),o=n(5),i=n(6),a=n(7),s=n(8);e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator;var l="<<anonymous>>",c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(r.thatReturnsNull),arrayOf:function(e){return p((function(t,n,r,o,i){if("function"!==typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new d("Invalid "+o+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,o,i+"["+l+"]",a);if(c instanceof Error)return c}return null}))},element:p((function(t,n,r,o,i){var a=t[n];return e(a)?null:new d("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return p((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||l;return new d("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:p((function(e,t,n,r,o){return h(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return p((function(t,n,r,o,i){if("function"!==typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new d("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(s.hasOwnProperty(c)){var u=e(s,c,r,o,i+"."+c,a);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return r.thatReturnsNull;return p((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(u(a,e[s]))return null;return new d("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return r.thatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",b(n),t),r.thatReturnsNull}return p((function(t,n,r,o,i){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,i,a))return null;return new d("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return p((function(t,n,r,o,i){var s=t[n],l=m(s);if("object"!==l)return new d("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var p=u(s,c,r,o,i+"."+c,a);if(p)return p}}return null}))}};function u(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){this.message=e,this.stack=""}function p(e){function n(n,r,i,s,c,u,p){(s=s||l,u=u||i,p!==a)&&(t&&o(!1,"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"));return null==r[i]?n?null===r[i]?new d("The "+c+" `"+u+"` is marked as required in `"+s+"`, but its value is `null`."):new d("The "+c+" `"+u+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(r,i,s,c,u)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(e){return p((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new d("Invalid "+o+" `"+i+"` of type `"+g(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if("undefined"===typeof e||null===e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,c.checkPropTypes=s,c.PropTypes=c,c}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(4);e.exports=r},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){}},function(e,t,n){"use strict";var r=n(4),o=n(5),i=n(7);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),i=s(o),a=s(n(2));function s(e){return e&&e.__esModule?e:{default:e}}n(11);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._isReRenderingCursor=!1,n.state={shouldRender:n.props.show},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;!this.props.isDone&&e.isDone&&this.props.hideWhenDone&&setTimeout((function(){return t.setState({shouldRender:!1})}),this.props.hideWhenDoneDelay)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.show,n=e.isDone;t&&(n||this._isReRenderingCursor||this._reRenderCursor())}},{key:"_reRenderCursor",value:function(){var e=this;this._isReRenderingCursor=!0,this.setState({shouldRender:!1},(function(){e.setState({shouldRender:!0},(function(){e._isReRenderingCursor=!1}))}))}},{key:"render",value:function(){if(this.state.shouldRender){var e=this.props.blink?" Cursor--blinking":"";return i.default.createElement("span",{className:"Cursor"+e},this.props.element)}return null}}]),t}(o.Component);l.propTypes={blink:a.default.bool,show:a.default.bool,element:a.default.node,hideWhenDone:a.default.bool,hideWhenDoneDelay:a.default.number,isDone:a.default.bool},l.defaultProps={blink:!0,show:!0,element:"|",hideWhenDone:!1,hideWhenDoneDelay:1e3,isDone:!1},t.default=l},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),o=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(){return r.default.createElement("noscript",null)};a.componentName="Backspace",a.propTypes={count:o.default.number,delay:o.default.number},a.defaultProps={count:1,delay:0},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),o=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(){return r.default.createElement("noscript",null)};a.componentName="Delay",a.propTypes={ms:o.default.number.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.gaussianRnd=function(e,t){for(var n=0,r=0;r<12;r++)n+=Math.random();return n-=6,Math.round(n*t)+e},t.eachPromise=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Array.from(e).reduce((function(e,n,o){return e.then((function(){return t.apply(void 0,[n,o].concat(r))}))}),Promise.resolve())},t.exclude=s,t.isBackspaceElement=l,t.isDelayElement=c,t.extractTextFromElement=function(e){var t=e?[e]:[],n=[];for(;t.length>0;){var r=t.pop();if(a.default.isValidElement(r))l(r)||c(r)?n.unshift(r):a.default.Children.forEach(r.props.children,(function(e){t.push(e)}));else if(Array.isArray(r)){var o=!0,i=!1,s=void 0;try{for(var u,d=r[Symbol.iterator]();!(o=(u=d.next()).done);o=!0){var p=u.value;t.push(p)}}catch(f){i=!0,s=f}finally{try{!o&&d.return&&d.return()}finally{if(i)throw s}}}else n.unshift(r)}return n},t.cloneElement=u,t.cloneElementWithSpecifiedText=function(e){var t=e.element,n=e.textLines;if(!t)return;return d(t,n,0)[0]};var o,i=n(1),a=(o=i)&&o.__esModule?o:{default:o};t.sleep=function(e){return new Promise((function(t){return null!=e?setTimeout(t,e):t()}))};function s(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&(n[r]=e[r]);return n}function l(e){return e&&e.type&&"Backspace"===e.type.componentName}function c(e){return e&&e.type&&"Delay"===e.type.componentName}function u(e,t){var n=e.type,r=s(e.props,["children"]),o=(new Date).getUTCMilliseconds()+Math.random()+Math.random();return r.key="Typist-element-"+n+"-"+o,a.default.createElement.apply(a.default,[n,r].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t)))}function d(e,t,n){if(n>=t.length)return[null,n];var o=n,i=function(e){var n=d(e,t,o),i=r(n,2),a=i[0],s=i[1];return o=s,a};return a.default.isValidElement(e)&&!(l(e)||c(e))?[u(e,a.default.Children.map(e.props.children,i)||[]),o]:Array.isArray(e)?[e.map(i),o]:[t[o],o+1]}}])},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),o=n(5),i=n(2),a=n(12),s=n(6),l=n.n(s),c=n(1),u=n.n(c),d=n(54),p=u.a.forwardRef((function(e,t){var n,s,p=e.inputElement,f=e.children,h=e.prefixCls,m=e.prefix,g=e.suffix,b=e.addonBefore,v=e.addonAfter,y=e.className,x=e.style,O=e.disabled,E=e.readOnly,w=e.focused,j=e.triggerFocus,S=e.allowClear,T=e.value,k=e.handleReset,C=e.hidden,_=e.classes,N=e.classNames,A=e.dataAttrs,R=e.styles,I=e.components,P=e.onClear,D=null!==f&&void 0!==f?f:p,L=(null===I||void 0===I?void 0:I.affixWrapper)||"span",M=(null===I||void 0===I?void 0:I.groupWrapper)||"span",F=(null===I||void 0===I?void 0:I.wrapper)||"span",$=(null===I||void 0===I?void 0:I.groupAddon)||"span",B=Object(c.useRef)(null),U=Object(d.b)(e),H=Object(c.cloneElement)(D,{value:T,className:l()(D.props.className,!U&&(null===N||void 0===N?void 0:N.variant))||null}),z=Object(c.useRef)(null);if(u.a.useImperativeHandle(t,(function(){return{nativeElement:z.current||B.current}})),U){var G=null;if(S){var W=!O&&!E&&T,V="".concat(h,"-clear-icon"),q="object"===Object(a.a)(S)&&null!==S&&void 0!==S&&S.clearIcon?S.clearIcon:"\u2716";G=u.a.createElement("span",{onClick:function(e){null===k||void 0===k||k(e),null===P||void 0===P||P()},onMouseDown:function(e){return e.preventDefault()},className:l()(V,Object(i.a)(Object(i.a)({},"".concat(V,"-hidden"),!W),"".concat(V,"-has-suffix"),!!g)),role:"button",tabIndex:-1},q)}var K="".concat(h,"-affix-wrapper"),Y=l()(K,Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},"".concat(h,"-disabled"),O),"".concat(K,"-disabled"),O),"".concat(K,"-focused"),w),"".concat(K,"-readonly"),E),"".concat(K,"-input-with-clear-btn"),g&&S&&T),null===_||void 0===_?void 0:_.affixWrapper,null===N||void 0===N?void 0:N.affixWrapper,null===N||void 0===N?void 0:N.variant),X=(g||S)&&u.a.createElement("span",{className:l()("".concat(h,"-suffix"),null===N||void 0===N?void 0:N.suffix),style:null===R||void 0===R?void 0:R.suffix},G,g);H=u.a.createElement(L,Object(o.a)({className:Y,style:null===R||void 0===R?void 0:R.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null===j||void 0===j||j())}},null===A||void 0===A?void 0:A.affixWrapper,{ref:B}),m&&u.a.createElement("span",{className:l()("".concat(h,"-prefix"),null===N||void 0===N?void 0:N.prefix),style:null===R||void 0===R?void 0:R.prefix},m),H,X)}if(Object(d.a)(e)){var Z="".concat(h,"-group"),Q="".concat(Z,"-addon"),J="".concat(Z,"-wrapper"),ee=l()("".concat(h,"-wrapper"),Z,null===_||void 0===_?void 0:_.wrapper,null===N||void 0===N?void 0:N.wrapper),te=l()(J,Object(i.a)({},"".concat(J,"-disabled"),O),null===_||void 0===_?void 0:_.group,null===N||void 0===N?void 0:N.groupWrapper);H=u.a.createElement(M,{className:te,ref:z},u.a.createElement(F,{className:ee},b&&u.a.createElement($,{className:Q},b),H,v&&u.a.createElement($,{className:Q},v)))}return u.a.cloneElement(H,{className:l()(null===(n=H.props)||void 0===n?void 0:n.className,y)||null,style:Object(r.a)(Object(r.a)({},null===(s=H.props)||void 0===s?void 0:s.style),x),hidden:C})})),f=n(10),h=n(7),m=n(13),g=n(33),b=n(30),v=n(95),y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],x=Object(c.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,s=e.onFocus,x=e.onBlur,O=e.onPressEnter,E=e.onKeyDown,w=e.onKeyUp,j=e.prefixCls,S=void 0===j?"rc-input":j,T=e.disabled,k=e.htmlSize,C=e.className,_=e.maxLength,N=e.suffix,A=e.showCount,R=e.count,I=e.type,P=void 0===I?"text":I,D=e.classes,L=e.classNames,M=e.styles,F=e.onCompositionStart,$=e.onCompositionEnd,B=Object(m.a)(e,y),U=Object(c.useState)(!1),H=Object(h.a)(U,2),z=H[0],G=H[1],W=Object(c.useRef)(!1),V=Object(c.useRef)(!1),q=Object(c.useRef)(null),K=Object(c.useRef)(null),Y=function(e){q.current&&Object(d.d)(q.current,e)},X=Object(g.a)(e.defaultValue,{value:e.value}),Z=Object(h.a)(X,2),Q=Z[0],J=Z[1],ee=void 0===Q||null===Q?"":String(Q),te=Object(c.useState)(null),ne=Object(h.a)(te,2),re=ne[0],oe=ne[1],ie=Object(v.a)(R,A),ae=ie.max||_,se=ie.strategy(ee),le=!!ae&&se>ae;Object(c.useImperativeHandle)(t,(function(){var e;return{focus:Y,blur:function(){var e;null===(e=q.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=q.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=q.current)||void 0===e||e.select()},input:q.current,nativeElement:(null===(e=K.current)||void 0===e?void 0:e.nativeElement)||q.current}})),Object(c.useEffect)((function(){G((function(e){return(!e||!T)&&e}))}),[T]);var ce=function(e,t,n){var r,o,i=t;if(!W.current&&ie.exceedFormatter&&ie.max&&ie.strategy(t)>ie.max)t!==(i=ie.exceedFormatter(t,{max:ie.max}))&&oe([(null===(r=q.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=q.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;J(i),q.current&&Object(d.c)(q.current,e,a,i)};Object(c.useEffect)((function(){var e;re&&(null===(e=q.current)||void 0===e||e.setSelectionRange.apply(e,Object(f.a)(re)))}),[re]);var ue=function(e){ce(e,e.target.value,{source:"change"})},de=function(e){W.current=!1,ce(e,e.currentTarget.value,{source:"compositionEnd"}),null===$||void 0===$||$(e)},pe=function(e){O&&"Enter"===e.key&&!V.current&&(V.current=!0,O(e)),null===E||void 0===E||E(e)},fe=function(e){"Enter"===e.key&&(V.current=!1),null===w||void 0===w||w(e)},he=function(e){G(!0),null===s||void 0===s||s(e)},me=function(e){G(!1),null===x||void 0===x||x(e)},ge=le&&"".concat(S,"-out-of-range");return u.a.createElement(p,Object(o.a)({},B,{prefixCls:S,className:l()(C,ge),handleReset:function(e){J(""),Y(),q.current&&Object(d.c)(q.current,e,a)},value:ee,focused:z,triggerFocus:Y,suffix:function(){var e=Number(ae)>0;if(N||ie.show){var t=ie.showFormatter?ie.showFormatter({value:ee,count:se,maxLength:ae}):"".concat(se).concat(e?" / ".concat(ae):"");return u.a.createElement(u.a.Fragment,null,ie.show&&u.a.createElement("span",{className:l()("".concat(S,"-show-count-suffix"),Object(i.a)({},"".concat(S,"-show-count-has-suffix"),!!N),null===L||void 0===L?void 0:L.count),style:Object(r.a)({},null===M||void 0===M?void 0:M.count)},t),N)}return null}(),disabled:T,classes:D,classNames:L,styles:M}),function(){var t=Object(b.a)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return u.a.createElement("input",Object(o.a)({autoComplete:n},t,{onChange:ue,onFocus:he,onBlur:me,onKeyDown:pe,onKeyUp:fe,className:l()(S,Object(i.a)({},"".concat(S,"-disabled"),T),null===L||void 0===L?void 0:L.input),style:null===M||void 0===M?void 0:M.input,ref:q,size:k,type:P,onCompositionStart:function(e){W.current=!0,null===F||void 0===F||F(e)},onCompositionEnd:de}))}())}));t.b=x},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(12);function o(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:t+""}},,,function(e,t,n){"use strict";e.exports=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";var r=0;function o(){return Math.pow(2,++r)}t.boolean=o(),t.booleanish=o(),t.overloadedBoolean=o(),t.number=o(),t.spaceSeparated=o(),t.commaSeparated=o(),t.commaOrSpaceSeparated=o()},function(e,t,n){"use strict";function r(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}e.exports=r,r.displayName="sql",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=o,o.displayName="cpp",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=r,r.displayName="haskell",r.aliases=["hs"]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=r,r.displayName="java",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}e.exports=r,r.displayName="typescript",r.aliases=["ts"]},function(e,t,n){"use strict";function r(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=r,r.displayName="json",r.aliases=["webmanifest"]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(e)}e.exports=r,r.displayName="scheme",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],o="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,o),"class-feature":t("\\+",r,o),standard:t("",r,o)}}}}})}(e)}e.exports=r,r.displayName="t4Templating",r.aliases=[]},function(e,t,n){"use strict";const r=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||r.indexOf(e)>-1}},function(e,t,n){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},function(e,t,n){"use strict";const r=n(55);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},function(e,t){function n(t){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(515);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=l(i),s=l(n(11));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!==e&&void 0!==e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(69),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=Object(r.a)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(39),a=n(11),s=n.n(a),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};var u=o.a.createContext||function(e,t){var n,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):l,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);u.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[a]=s.a.object,o),{Provider:u,Consumer:d}};t.a=u}).call(this,n(49))},function(e,t,n){var r=n(187);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(l+=e.slice(s,f),s=f+d.length,p)l+=p[1];else{var h=e[s],m=n[2],g=n[3],b=n[4],v=n[5],y=n[6],x=n[7];l&&(r.push(l),l="");var O=null!=m&&null!=h&&h!==m,E="+"===y||"*"===y,w="?"===y||"*"===y,j=m||c,S=b||v,T=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:m||"",delimiter:j,optional:w,repeat:E,partial:O,asterisk:!!x,pattern:S?u(S):x?".*":a(j,T)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",a=t||{},l=(o||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,p=a[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),f="(?:"+l.pattern+")";t.push(l),l.repeat&&(f+="(?:"+u+f+")*"),a+=f=l.optional?l.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,p(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},c=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,a,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=u(d,n),d!==(o=u(t,n))&&(h&&o&&(l(o)||(i=s(o)))?(i?(i=!1,a=r&&s(r)?r:[]):a=r&&l(r)?r:{},c(d,{name:n,newValue:e(h,a,o)})):"undefined"!==typeof o&&c(d,{name:n,newValue:o}));return d}},function(e,t,n){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function t(n,r){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=e({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=t+"="+n.write(o,t)+a}}function i(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},o=0;o<t.length;o++){var i=t[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=n.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}}return Object.create({set:o,get:i,remove:function(t,n){o(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}return t({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return ye}));var r=n(5),o=n(2),i=n(3),a=n(10),s=n(7),l=n(13),c=n(6),u=n.n(c),d=n(62),p=n(33),f=n(48),h=n(22),m=n(1),g=n(27),b=m.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(m.useContext(b),e)}var x=n(51),O=["children","locked"],E=m.createContext(null);function w(e){var t=e.children,n=e.locked,r=Object(l.a)(e,O),o=m.useContext(E),a=Object(x.a)((function(){return function(e,t){var n=Object(i.a)({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(o,r)}),[o,r],(function(e,t){return!n&&(e[0]!==t[0]||!Object(f.a)(e[1],t[1],!0))}));return m.createElement(E.Provider,{value:a},t)}var j=[],S=m.createContext(null);function T(){return m.useContext(S)}var k=m.createContext(j);function C(e){var t=m.useContext(k);return m.useMemo((function(){return void 0!==e?[].concat(Object(a.a)(t),[e]):t}),[t,e])}var _=m.createContext(null),N=m.createContext({}),A=n(61);function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(A.a)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(a.a)(e.querySelectorAll("*")).filter((function(e){return R(e,t)}));return R(e,t)&&n.unshift(e),n}var P=n(26),D=n(25),L=P.a.LEFT,M=P.a.RIGHT,F=P.a.UP,$=P.a.DOWN,B=P.a.ENTER,U=P.a.ESC,H=P.a.HOME,z=P.a.END,G=[F,$,L,M];function W(e,t){return I(e,!0).filter((function(e){return t.has(e)}))}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=W(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var q=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(v(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function K(e,t,n,r,i,a,s,l,c,u){var d=m.useRef(),p=m.useRef();p.current=t;var f=function(){D.a.cancel(d.current)};return m.useEffect((function(){return function(){f()}}),[]),function(h){var m=h.which;if([].concat(G,[B,U,H,z]).includes(m)){var g=a(),b=q(g,r),v=b,y=v.elements,x=v.key2element,O=v.element2key,E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(x.get(t),y),w=O.get(E),j=function(e,t,n,r){var i,a="prev",s="next",l="children",c="parent";if("inline"===e&&r===B)return{inlineTrigger:!0};var u=Object(o.a)(Object(o.a)({},F,a),$,s),d=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},L,n?s:a),M,n?a:s),$,l),B,l),p=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},F,a),$,s),B,l),U,c),L,n?l:c),M,n?c:l);switch(null===(i={inline:u,horizontal:d,vertical:p,inlineSub:u,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[r]){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===s(w,!0).length,n,m);if(!j&&m!==H&&m!==z)return;(G.includes(m)||[H,z].includes(m))&&h.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=O.get(e);l(r),f(),d.current=Object(D.a)((function(){p.current===r&&t.focus()}))}};if([H,z].includes(m)||j.sibling||!E){var T,k,C=W(T=E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):i.current,y);k=m===H?C[0]:m===z?C[C.length-1]:V(T,y,E,j.offset),S(k)}else if(j.inlineTrigger)c(w);else if(j.offset>0)c(w,!0),f(),d.current=Object(D.a)((function(){b=q(g,r);var e=E.getAttribute("aria-controls"),t=V(document.getElementById(e),b.elements);S(t)}),5);else if(j.offset<0){var _=s(w,!0),N=_[_.length-2],A=x.get(N);c(N,!1),S(A)}}null===u||void 0===u||u(h)}}var Y="__RC_UTIL_PATH_SPLIT__",X=function(e){return e.join(Y)},Z="rc-menu-more";function Q(){var e=m.useState({}),t=Object(s.a)(e,2)[1],n=Object(m.useRef)(new Map),r=Object(m.useRef)(new Map),o=m.useState([]),i=Object(s.a)(o,2),l=i[0],c=i[1],u=Object(m.useRef)(0),d=Object(m.useRef)(!1),p=Object(m.useCallback)((function(e,o){var i=X(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,s=u.current;a=function(){s===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),f=Object(m.useCallback)((function(e,t){var o=X(t);r.current.delete(o),n.current.delete(e)}),[]),h=Object(m.useCallback)((function(e){c(e)}),[]),g=Object(m.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Y);return t&&l.includes(o[0])&&o.unshift(Z),o}),[l]),b=Object(m.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return g(e,!0).includes(t)}))}),[g]),v=Object(m.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Y),o=new Set;return Object(a.a)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:f,refreshOverflowKeys:h,isSubPathKey:b,getKeyPath:g,getKeys:function(){var e=Object(a.a)(n.current.keys());return l.length&&e.push(Z),e},getSubPathKeys:v}}function J(e){var t=m.useRef(e);t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ee=Math.random().toFixed(5).toString().slice(2),te=0;var ne=n(16),re=n(17),oe=n(24),ie=n(35),ae=n(30),se=n(20);function le(e,t,n,r){var o=m.useContext(E),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),s(e)}),l}function ce(e){var t=m.useContext(E),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function ue(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"===typeof n?t=m.createElement(n,Object(i.a)({},r)):"boolean"!==typeof n&&(t=n),t||o||null)}var de=["item"];function pe(e){var t=e.item,n=Object(l.a)(e,de);return Object.defineProperty(n,"item",{get:function(){return Object(h.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var fe=["title","attribute","elementRef"],he=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],me=["active"],ge=function(e){Object(oe.a)(n,e);var t=Object(ie.a)(n);function n(){return Object(ne.a)(this,n),t.apply(this,arguments)}return Object(re.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Object(l.a)(e,fe),a=Object(ae.a)(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Object(h.a)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(d.a.Item,Object(r.a)({},n,{title:"string"===typeof t?t:void 0},a,{ref:o}))}}]),n}(m.Component),be=m.forwardRef((function(e,t){var n=e.style,s=e.className,c=e.eventKey,d=(e.warnKey,e.disabled),p=e.itemIcon,f=e.children,h=e.role,g=e.onMouseEnter,b=e.onMouseLeave,v=e.onClick,x=e.onKeyDown,O=e.onFocus,w=Object(l.a)(e,he),j=y(c),S=m.useContext(E),T=S.prefixCls,k=S.onItemClick,_=S.disabled,A=S.overflowDisabled,R=S.itemIcon,I=S.selectedKeys,D=S.onActive,L=m.useContext(N)._internalRenderMenuItem,M="".concat(T,"-item"),F=m.useRef(),$=m.useRef(),B=_||d,U=Object(se.d)(t,$),H=C(c);var z=function(e){return{key:c,keyPath:Object(a.a)(H).reverse(),item:F.current,domEvent:e}},G=p||R,W=le(c,B,g,b),V=W.active,q=Object(l.a)(W,me),K=I.includes(c),Y=ce(H.length),X={};"option"===e.role&&(X["aria-selected"]=K);var Z=m.createElement(ge,Object(r.a)({ref:F,elementRef:U,role:null===h?"none":h||"menuitem",tabIndex:d?null:-1,"data-menu-id":A&&j?null:j},w,q,X,{component:"li","aria-disabled":d,style:Object(i.a)(Object(i.a)({},Y),n),className:u()(M,Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(M,"-active"),V),"".concat(M,"-selected"),K),"".concat(M,"-disabled"),B),s),onClick:function(e){if(!B){var t=z(e);null===v||void 0===v||v(pe(t)),k(t)}},onKeyDown:function(e){if(null===x||void 0===x||x(e),e.which===P.a.ENTER){var t=z(e);null===v||void 0===v||v(pe(t)),k(t)}},onFocus:function(e){D(c),null===O||void 0===O||O(e)}}),f,m.createElement(ue,{props:Object(i.a)(Object(i.a)({},e),{},{isSelected:K}),icon:G}));return L&&(Z=L(Z,e,{selected:K})),Z}));function ve(e,t){var n=e.eventKey,o=T(),i=C(n);return m.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:m.createElement(be,Object(r.a)({},e,{ref:t}))}var ye=m.forwardRef(ve),xe=["className","children"],Oe=function(e,t){var n=e.className,o=e.children,i=Object(l.a)(e,xe),a=m.useContext(E),s=a.prefixCls,c=a.mode,d=a.rtl;return m.createElement("ul",Object(r.a)({className:u()(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Ee=m.forwardRef(Oe);Ee.displayName="SubMenuList";var we=Ee,je=n(41);function Se(e,t){return Object(je.a)(e).map((function(e,n){if(m.isValidElement(e)){var r,o,i=e.key,s=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;(null===s||void 0===s)&&(s="tmp_key-".concat([].concat(Object(a.a)(t),[n]).join("-")));var l={key:s,eventKey:s};return m.cloneElement(e,l)}return e}))}var Te=n(73),ke={adjustX:1,adjustY:1},Ce={topLeft:{points:["bl","tl"],overflow:ke},topRight:{points:["br","tr"],overflow:ke},bottomLeft:{points:["tl","bl"],overflow:ke},bottomRight:{points:["tr","br"],overflow:ke},leftTop:{points:["tr","tl"],overflow:ke},leftBottom:{points:["br","bl"],overflow:ke},rightTop:{points:["tl","tr"],overflow:ke},rightBottom:{points:["bl","br"],overflow:ke}},_e={topLeft:{points:["bl","tl"],overflow:ke},topRight:{points:["br","tr"],overflow:ke},bottomLeft:{points:["tl","bl"],overflow:ke},bottomRight:{points:["tr","br"],overflow:ke},rightTop:{points:["tr","tl"],overflow:ke},rightBottom:{points:["br","bl"],overflow:ke},leftTop:{points:["tl","tr"],overflow:ke},leftBottom:{points:["bl","br"],overflow:ke}};function Ne(e,t,n){return t||(n?n[e]||n.other:void 0)}var Ae={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Re(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,c=e.popupClassName,d=e.popupOffset,p=e.disabled,f=e.mode,h=e.onVisibleChange,g=m.useContext(E),b=g.getPopupContainer,v=g.rtl,y=g.subMenuOpenDelay,x=g.subMenuCloseDelay,O=g.builtinPlacements,w=g.triggerSubMenuAction,j=g.forceSubMenuRender,S=g.rootClassName,T=g.motion,k=g.defaultMotions,C=m.useState(!1),_=Object(s.a)(C,2),N=_[0],A=_[1],R=v?Object(i.a)(Object(i.a)({},_e),O):Object(i.a)(Object(i.a)({},Ce),O),I=Ae[f],P=Ne(f,T,k),L=m.useRef(P);"inline"!==f&&(L.current=P);var M=Object(i.a)(Object(i.a)({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=m.useRef();return m.useEffect((function(){return F.current=Object(D.a)((function(){A(n)})),function(){D.a.cancel(F.current)}}),[n]),m.createElement(Te.a,{prefixCls:t,popupClassName:u()("".concat(t,"-popup"),Object(o.a)({},"".concat(t,"-rtl"),v),c,S),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:b,builtinPlacements:R,popupPlacement:I,popupVisible:N,popup:a,popupStyle:l,popupAlign:d&&{offset:d},action:p?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:x,onPopupVisibleChange:h,forceRender:j,popupMotion:M,fresh:!0},r)}var Ie=n(36);function Pe(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,l="inline",c=m.useContext(E),u=c.prefixCls,d=c.forceSubMenuRender,p=c.motion,f=c.defaultMotions,h=c.mode,g=m.useRef(!1);g.current=h===l;var b=m.useState(!g.current),v=Object(s.a)(b,2),y=v[0],x=v[1],O=!!g.current&&n;m.useEffect((function(){g.current&&x(!1)}),[h]);var j=Object(i.a)({},Ne(l,p,f));o.length>1&&(j.motionAppear=!1);var S=j.onVisibleChanged;return j.onVisibleChanged=function(e){return g.current||e||x(!0),null===S||void 0===S?void 0:S(e)},y?null:m.createElement(w,{mode:l,locked:!g.current},m.createElement(Ie.c,Object(r.a)({visible:O},j,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,r=e.style;return m.createElement(we,{id:t,className:n,style:r},a)})))}var De=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Le=["active"],Me=m.forwardRef((function(e,t){var n=e.style,a=e.className,c=e.title,p=e.eventKey,f=(e.warnKey,e.disabled),h=e.internalPopupClose,g=e.children,b=e.itemIcon,v=e.expandIcon,x=e.popupClassName,O=e.popupOffset,j=e.popupStyle,S=e.onClick,T=e.onMouseEnter,k=e.onMouseLeave,A=e.onTitleClick,R=e.onTitleMouseEnter,I=e.onTitleMouseLeave,P=Object(l.a)(e,De),D=y(p),L=m.useContext(E),M=L.prefixCls,F=L.mode,$=L.openKeys,B=L.disabled,U=L.overflowDisabled,H=L.activeKey,z=L.selectedKeys,G=L.itemIcon,W=L.expandIcon,V=L.onItemClick,q=L.onOpenChange,K=L.onActive,Y=m.useContext(N)._internalRenderSubMenuItem,X=m.useContext(_).isSubPathKey,Z=C(),Q="".concat(M,"-submenu"),ee=B||f,te=m.useRef(),ne=m.useRef();var re=null!==b&&void 0!==b?b:G,oe=null!==v&&void 0!==v?v:W,ie=$.includes(p),ae=!U&&ie,se=X(z,p),de=le(p,ee,R,I),fe=de.active,he=Object(l.a)(de,Le),me=m.useState(!1),ge=Object(s.a)(me,2),be=ge[0],ve=ge[1],ye=function(e){ee||ve(e)},xe=m.useMemo((function(){return fe||"inline"!==F&&(be||X([H],p))}),[F,fe,H,be,p,X]),Oe=ce(Z.length),Ee=J((function(e){null===S||void 0===S||S(pe(e)),V(e)})),je=D&&"".concat(D,"-popup"),Se=m.createElement("div",Object(r.a)({role:"menuitem",style:Oe,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"===typeof c?c:null,"data-menu-id":U&&D?null:D,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":ee,onClick:function(e){ee||(null===A||void 0===A||A({key:p,domEvent:e}),"inline"===F&&q(p,!ie))},onFocus:function(){K(p)}},he),c,m.createElement(ue,{icon:"horizontal"!==F?oe:void 0,props:Object(i.a)(Object(i.a)({},e),{},{isOpen:ae,isSubMenu:!0})},m.createElement("i",{className:"".concat(Q,"-arrow")}))),Te=m.useRef(F);if("inline"!==F&&Z.length>1?Te.current="vertical":Te.current=F,!U){var ke=Te.current;Se=m.createElement(Re,{mode:ke,prefixCls:Q,visible:!h&&ae&&"inline"!==F,popupClassName:x,popupOffset:O,popupStyle:j,popup:m.createElement(w,{mode:"horizontal"===ke?"vertical":ke},m.createElement(we,{id:je,ref:ne},g)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&q(p,e)}},Se)}var Ce=m.createElement(d.a.Item,Object(r.a)({ref:t,role:"none"},P,{component:"li",style:n,className:u()(Q,"".concat(Q,"-").concat(F),a,Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(Q,"-open"),ae),"".concat(Q,"-active"),xe),"".concat(Q,"-selected"),se),"".concat(Q,"-disabled"),ee)),onMouseEnter:function(e){ye(!0),null===T||void 0===T||T({key:p,domEvent:e})},onMouseLeave:function(e){ye(!1),null===k||void 0===k||k({key:p,domEvent:e})}}),Se,!U&&m.createElement(Pe,{id:je,open:ae,keyPath:Z},g));return Y&&(Ce=Y(Ce,e,{selected:se,active:xe,open:ae,disabled:ee})),m.createElement(w,{onItemClick:Ee,mode:"horizontal"===F?"vertical":F,itemIcon:re,expandIcon:oe},Ce)}));var Fe=m.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=C(o),s=Se(i,a),l=T();return m.useEffect((function(){if(l)return l.registerPath(o,a),function(){l.unregisterPath(o,a)}}),[a]),n=l?s:m.createElement(Me,Object(r.a)({ref:t},e),s),m.createElement(k.Provider,{value:a},n)})),$e=n(12);function Be(e){var t=e.className,n=e.style,r=m.useContext(E).prefixCls;return T()?null:m.createElement("li",{role:"separator",className:u()("".concat(r,"-item-divider"),t),style:n})}var Ue=["className","title","eventKey","children"],He=m.forwardRef((function(e,t){var n=e.className,o=e.title,i=(e.eventKey,e.children),a=Object(l.a)(e,Ue),s=m.useContext(E).prefixCls,c="".concat(s,"-item-group");return m.createElement("li",Object(r.a)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:u()(c,n)}),m.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"===typeof o?o:void 0},o),m.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}));var ze=m.forwardRef((function(e,t){var n=e.eventKey,o=Se(e.children,C(n));return T()?o:m.createElement(He,Object(r.a)({ref:t},Object(ae.a)(e,["warnKey"])),o)})),Ge=["label","children","key","type","extra"];function We(e,t,n){var o=t.item,i=t.group,a=t.submenu,s=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===Object($e.a)(e)){var u=e,d=u.label,p=u.children,f=u.key,h=u.type,g=u.extra,b=Object(l.a)(u,Ge),v=null!==f&&void 0!==f?f:"tmp-".concat(c);return p||"group"===h?"group"===h?m.createElement(i,Object(r.a)({key:v},b,{title:d}),We(p,t,n)):m.createElement(a,Object(r.a)({key:v},b,{title:d}),We(p,t,n)):"divider"===h?m.createElement(s,Object(r.a)({key:v},b)):m.createElement(o,Object(r.a)({key:v},b),d,(!!g||0===g)&&m.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null})).filter((function(e){return e}))}function Ve(e,t,n,r,o){var a=e,s=Object(i.a)({divider:Be,item:ye,group:ze,submenu:Fe},r);return t&&(a=We(t,s,o)),Se(a,n)}var qe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ke=[],Ye=m.forwardRef((function(e,t){var n,c=e,h=c.prefixCls,v=void 0===h?"rc-menu":h,y=c.rootClassName,x=c.style,O=c.className,E=c.tabIndex,j=void 0===E?0:E,T=c.items,k=c.children,C=c.direction,A=c.id,R=c.mode,I=void 0===R?"vertical":R,P=c.inlineCollapsed,D=c.disabled,L=c.disabledOverflow,M=c.subMenuOpenDelay,F=void 0===M?.1:M,$=c.subMenuCloseDelay,B=void 0===$?.1:$,U=c.forceSubMenuRender,H=c.defaultOpenKeys,z=c.openKeys,G=c.activeKey,V=c.defaultActiveFirst,Y=c.selectable,X=void 0===Y||Y,ne=c.multiple,re=void 0!==ne&&ne,oe=c.defaultSelectedKeys,ie=c.selectedKeys,ae=c.onSelect,se=c.onDeselect,le=c.inlineIndent,ce=void 0===le?24:le,ue=c.motion,de=c.defaultMotions,fe=c.triggerSubMenuAction,he=void 0===fe?"hover":fe,me=c.builtinPlacements,ge=c.itemIcon,be=c.expandIcon,ve=c.overflowedIndicator,xe=void 0===ve?"...":ve,Oe=c.overflowedIndicatorPopupClassName,Ee=c.getPopupContainer,we=c.onClick,je=c.onOpenChange,Se=c.onKeyDown,Te=(c.openAnimation,c.openTransitionName,c._internalRenderMenuItem),ke=c._internalRenderSubMenuItem,Ce=c._internalComponents,_e=Object(l.a)(c,qe),Ne=m.useMemo((function(){return[Ve(k,T,Ke,Ce,v),Ve(k,T,Ke,{},v)]}),[k,T,Ce]),Ae=Object(s.a)(Ne,2),Re=Ae[0],Ie=Ae[1],Pe=m.useState(!1),De=Object(s.a)(Pe,2),Le=De[0],Me=De[1],$e=m.useRef(),Be=function(e){var t=Object(p.a)(e,{value:e}),n=Object(s.a)(t,2),r=n[0],o=n[1];return m.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);o("rc-menu-uuid-".concat(e))}),[]),r}(A),Ue="rtl"===C;var He=Object(p.a)(H,{value:z,postState:function(e){return e||Ke}}),ze=Object(s.a)(He,2),Ge=ze[0],We=ze[1],Ye=function(e){function t(){We(e),null===je||void 0===je||je(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Object(g.flushSync)(t):t()},Xe=m.useState(Ge),Ze=Object(s.a)(Xe,2),Qe=Ze[0],Je=Ze[1],et=m.useRef(!1),tt=m.useMemo((function(){return"inline"!==I&&"vertical"!==I||!P?[I,!1]:["vertical",P]}),[I,P]),nt=Object(s.a)(tt,2),rt=nt[0],ot=nt[1],it="inline"===rt,at=m.useState(rt),st=Object(s.a)(at,2),lt=st[0],ct=st[1],ut=m.useState(ot),dt=Object(s.a)(ut,2),pt=dt[0],ft=dt[1];m.useEffect((function(){ct(rt),ft(ot),et.current&&(it?We(Qe):Ye(Ke))}),[rt,ot]);var ht=m.useState(0),mt=Object(s.a)(ht,2),gt=mt[0],bt=mt[1],vt=gt>=Re.length-1||"horizontal"!==lt||L;m.useEffect((function(){it&&Je(Ge)}),[Ge]),m.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var yt=Q(),xt=yt.registerPath,Ot=yt.unregisterPath,Et=yt.refreshOverflowKeys,wt=yt.isSubPathKey,jt=yt.getKeyPath,St=yt.getKeys,Tt=yt.getSubPathKeys,kt=m.useMemo((function(){return{registerPath:xt,unregisterPath:Ot}}),[xt,Ot]),Ct=m.useMemo((function(){return{isSubPathKey:wt}}),[wt]);m.useEffect((function(){Et(vt?Ke:Re.slice(gt+1).map((function(e){return e.key})))}),[gt,vt]);var _t=Object(p.a)(G||V&&(null===(n=Re[0])||void 0===n?void 0:n.key),{value:G}),Nt=Object(s.a)(_t,2),At=Nt[0],Rt=Nt[1],It=J((function(e){Rt(e)})),Pt=J((function(){Rt(void 0)}));Object(m.useImperativeHandle)(t,(function(){return{list:$e.current,focus:function(e){var t,n,r=St(),o=q(r,Be),i=o.elements,a=o.key2element,s=o.element2key,l=W($e.current,i),c=null!==At&&void 0!==At?At:l[0]?s.get(l[0]):null===(t=Re.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Dt=Object(p.a)(oe||[],{value:ie,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Ke:[e]}}),Lt=Object(s.a)(Dt,2),Mt=Lt[0],Ft=Lt[1],$t=J((function(e){null===we||void 0===we||we(pe(e)),function(e){if(X){var t,n=e.key,r=Mt.includes(n);t=re?r?Mt.filter((function(e){return e!==n})):[].concat(Object(a.a)(Mt),[n]):[n],Ft(t);var o=Object(i.a)(Object(i.a)({},e),{},{selectedKeys:t});r?null===se||void 0===se||se(o):null===ae||void 0===ae||ae(o)}!re&&Ge.length&&"inline"!==lt&&Ye(Ke)}(e)})),Bt=J((function(e,t){var n=Ge.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var r=Tt(e);n=n.filter((function(e){return!r.has(e)}))}Object(f.a)(Ge,n,!0)||Ye(n,!0)})),Ut=K(lt,At,Ue,Be,$e,St,jt,Rt,(function(e,t){var n=null!==t&&void 0!==t?t:!Ge.includes(e);Bt(e,n)}),Se);m.useEffect((function(){Me(!0)}),[]);var Ht=m.useMemo((function(){return{_internalRenderMenuItem:Te,_internalRenderSubMenuItem:ke}}),[Te,ke]),zt="horizontal"!==lt||L?Re:Re.map((function(e,t){return m.createElement(w,{key:e.key,overflowDisabled:t>gt},e)})),Gt=m.createElement(d.a,Object(r.a)({id:A,ref:$e,prefixCls:"".concat(v,"-overflow"),component:"ul",itemComponent:ye,className:u()(v,"".concat(v,"-root"),"".concat(v,"-").concat(lt),O,Object(o.a)(Object(o.a)({},"".concat(v,"-inline-collapsed"),pt),"".concat(v,"-rtl"),Ue),y),dir:C,style:x,role:"menu",tabIndex:j,data:zt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Re.slice(-t):null;return m.createElement(Fe,{eventKey:Z,title:xe,disabled:vt,internalPopupClose:0===t,popupClassName:Oe},n)},maxCount:"horizontal"!==lt||L?d.a.INVALIDATE:d.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){bt(e)},onKeyDown:Ut},_e));return m.createElement(N.Provider,{value:Ht},m.createElement(b.Provider,{value:Be},m.createElement(w,{prefixCls:v,rootClassName:y,mode:lt,openKeys:Ge,rtl:Ue,disabled:D,motion:Le?ue:null,defaultMotions:Le?de:null,activeKey:At,onActive:It,onInactive:Pt,selectedKeys:Mt,inlineIndent:ce,subMenuOpenDelay:F,subMenuCloseDelay:B,forceSubMenuRender:U,builtinPlacements:me,triggerSubMenuAction:he,getPopupContainer:Ee,itemIcon:ge,expandIcon:be,onItemClick:$t,onOpenChange:Bt},m.createElement(_.Provider,{value:Ct},Gt),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(S.Provider,{value:kt},Ie)))))})),Xe=Ye;Xe.Item=ye,Xe.SubMenu=Fe,Xe.ItemGroup=ze,Xe.Divider=Be;t.b=Xe},function(e,t,n){"use strict";var r=n(7),o=n(1),i=n(27),a=n(34),s=(n(22),n(20)),l=o.createContext(null),c=n(10),u=n(23),d=[];var p=n(32),f=n(155);var h="rc-util-locker-".concat(Date.now()),m=0;function g(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(h,"_").concat(m)})),i=Object(r.a)(n,1)[0];Object(u.a)((function(){if(t){var e=Object(f.a)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Object(p.b)("\nhtml body {\n  overflow-y: hidden;\n  ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else Object(p.a)(i);return function(){Object(p.a)(i)}}),[t,i])}var b=!1;var v=function(e){return!1!==e&&(Object(a.a)()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)};var y=o.forwardRef((function(e,t){var n=e.open,p=e.autoLock,f=e.getContainer,h=(e.debug,e.autoDestroy),m=void 0===h||h,y=e.children,x=o.useState(n),O=Object(r.a)(x,2),E=O[0],w=O[1],j=E||n;o.useEffect((function(){(m||n)&&w(n)}),[n,m]);var S=o.useState((function(){return v(f)})),T=Object(r.a)(S,2),k=T[0],C=T[1];o.useEffect((function(){var e=v(f);C(null!==e&&void 0!==e?e:null)}));var _=function(e){var t=o.useState((function(){return Object(a.a)()?document.createElement("div"):null})),n=Object(r.a)(t,1)[0],i=o.useRef(!1),s=o.useContext(l),p=o.useState(d),f=Object(r.a)(p,2),h=f[0],m=f[1],g=s||(i.current?void 0:function(e){m((function(t){return[e].concat(Object(c.a)(t))}))});function b(){n.parentElement||document.body.appendChild(n),i.current=!0}function v(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),i.current=!1}return Object(u.a)((function(){return e?s?s(b):b():v(),v}),[e]),Object(u.a)((function(){h.length&&(h.forEach((function(e){return e()})),m(d))}),[h]),[n,g]}(j&&!k),N=Object(r.a)(_,2),A=N[0],R=N[1],I=null!==k&&void 0!==k?k:A;g(p&&n&&Object(a.a)()&&(I===A||I===document.body));var P=null;y&&Object(s.c)(y)&&t&&(P=y.ref);var D=Object(s.d)(P,t);if(!j||!Object(a.a)()||void 0===k)return null;var L,M=!1===I||("boolean"===typeof L&&(b=L),b),F=y;return t&&(F=o.cloneElement(y,{ref:D})),o.createElement(l.Provider,{value:R},M?F:Object(i.createPortal)(F,I))}));t.a=y},,,function(e,t,n){},function(e,t,n){"use strict";e.exports=o;var r=o.prototype;function o(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}r.space=null,r.normal={},r.property={}},function(e,t,n){"use strict";var r=n(130),o=n(103);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function s(e,t,n,s){var c,u=-1;for(l(this,"space",s),r.call(this,e,t);++u<a;)l(this,c=i[u],(n&o[c])===o[c])}function l(e,t,n){n&&(e[t]=n)}},function(e,t,n){"use strict";e.exports=o;var r=o.prototype;function o(e,t){this.property=e,this.attribute=t}r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1},function(e,t,n){"use strict";var r=n(209);e.exports=function(e,t){return r(e,t.toLowerCase())}},function(e,t,n){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){"use strict";function r(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(e)}e.exports=r,r.displayName="bash",r.aliases=["shell"]},function(e,t,n){"use strict";function r(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}e.exports=r,r.displayName="basic",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=r,r.displayName="lua",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!==typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"===typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(o);r<t.length-1&&("string"===typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"===typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}o.content&&"string"!==typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(e)}e.exports=r,r.displayName="jsx",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=r,r.displayName="turtle",r.aliases=[]},function(e,t,n){"use strict";var r=n(134);function o(e){e.register(r),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}e.exports=o,o.displayName="vbnet",o.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=r,r.displayName="yaml",r.aliases=["yml"]},function(e,t,n){"use strict";const r=n(55),o=n(87),i=n(141);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,i),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===o.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(o.MODE).forEach((r=>{const i=o.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}})),n}}},function(e,t,n){"use strict";const r=n(55);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(l)};var r="none",o="contents",i=/input|select|textarea|button|object|iframe/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),i=n.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):i===r}catch(a){return console.warn("Failed to inspect element style"),!1}}function s(e,t){var n=e.nodeName.toLowerCase();return(i.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}function l(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&s(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(a){n=!0,r=a}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(a){n=!0,r=a}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=n(514),i=(r=o)&&r.__esModule?r:{default:r},a=n(116);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e,t){let n=!1;e.exports={black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},get lightBlue(){return n||(console.log("warn - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`."),console.log("warn - Please update your color palette to eliminate this warning."),n=!0),{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"}},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},warmGray:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},trueGray:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},gray:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},coolGray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},blueGray:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"}}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,r,l,c,p){for(var f,h,m,g,x,E=0,w=0,j=0,S=0,T=0,R=0,P=m=f=0,L=0,M=0,F=0,$=0,B=l.length,U=B-1,H="",z="",G="",W="";L<B;){if(h=l.charCodeAt(L),L===U&&0!==w+S+j+E&&(0!==w&&(h=47===w?10:47),S=j=E=0,B++,U++),0===w+S+j+E){if(L===U&&(0<M&&(H=H.replace(d,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(L)}h=59}switch(h){case 123:for(f=(H=H.trim()).charCodeAt(0),m=1,$=++L;L<B;){switch(h=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(L+1)){case 42:case 47:e:{for(P=L+1;P<U;++P)switch(l.charCodeAt(P)){case 47:if(42===h&&42===l.charCodeAt(P-1)&&L+2!==P){L=P+1;break e}break;case 10:if(47===h){L=P+1;break e}}L=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&l.charCodeAt(L)!==h;);}if(0===m)break;L++}if(m=l.substring($,L),0===f&&(f=(H=H.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<M&&(H=H.replace(d,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=A}if($=(m=t(r,M,m,h,p+1)).length,0<I&&(x=s(3,m,M=n(A,H,F),r,C,k,$,h,p,c),H=M.join(""),void 0!==x&&0===($=(m=x.trim()).length)&&(h=0,m="")),0<$)switch(h){case 115:H=H.replace(O,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(b,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,H,F),m,c,p+1);G+=m,m=F=M=P=f=0,H="",h=l.charCodeAt(++L);break;case 125:case 59:if(1<($=(H=(0<M?H.replace(d,""):H).trim()).length))switch(0===P&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&($=(H=H.replace(" ",":")).length),0<I&&void 0!==(x=s(1,H,r,e,C,k,z.length,c,p,c))&&0===($=(H=x.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),h=H.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){W+=H+l.charAt(L);break}default:58!==H.charCodeAt($-1)&&(z+=o(H,f,h,H.charCodeAt(2)))}F=M=P=f=0,H="",h=l.charCodeAt(++L)}}switch(h){case 13:case 10:47===w?w=0:0===1+f&&107!==c&&0<H.length&&(M=1,H+="\0"),0<I*D&&s(0,H,r,e,C,k,z.length,c,p,c),k=1,C++;break;case 59:case 125:if(0===w+S+j+E){k++;break}default:switch(k++,g=l.charAt(L),h){case 9:case 32:if(0===S+E+w)switch(T){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+w+E&&(M=F=1,g="\f"+g);break;case 108:if(0===S+w+E+_&&0<P)switch(L-P){case 2:112===T&&58===l.charCodeAt(L-3)&&(_=T);case 8:111===R&&(_=R)}break;case 58:0===S+w+E&&(P=L);break;case 44:0===w+j+S+E&&(M=1,g+="\r");break;case 34:case 39:0===w&&(S=S===h?0:0===S?h:S);break;case 91:0===S+w+j&&E++;break;case 93:0===S+w+j&&E--;break;case 41:0===S+w+E&&j--;break;case 40:if(0===S+w+E){if(0===f)if(2*T+3*R===533);else f=1;j++}break;case 64:0===w+j+S+E+P+m&&(m=1);break;case 42:case 47:if(!(0<S+E+j))switch(w){case 0:switch(2*h+3*l.charCodeAt(L+1)){case 235:w=47;break;case 220:$=L,w=42}break;case 42:47===h&&42===T&&$+2!==L&&(33===l.charCodeAt($+2)&&(z+=l.substring($,L+1)),g="",w=0)}}0===w&&(H+=g)}R=T,T=h,L++}if(0<($=z.length)){if(M=r,0<I&&(void 0!==(x=s(2,z,M,e,C,k,$,c,p,c))&&0===(z=x).length))return W+z+G;if(z=M.join(",")+"{"+z+"}",0!==N*_){switch(2!==N||i(z,2)||(_=0),_){case 111:z=z.replace(y,":-moz-$1")+z;break;case 112:z=z.replace(v,"::-webkit-input-$1")+z.replace(v,"::-moz-$1")+z.replace(v,":-ms-input-$1")+z}_=0}}return W+z+G}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===N||2===N&&i(l,1)?"-webkit-"+l+l:l}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(j,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<I;++p)switch(d=R[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!==typeof e?N=1:(N=2,P=e):N=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var o=s(-1,n,r,r,C,k,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(A,r,n,0,0);return 0<I&&(void 0!==(o=s(-2,i,r,r,C,k,i.length,0,0,0))&&(i=o)),_=0,k=C=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,w=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,k=1,C=1,_=0,N=1,A=[],R=[],I=0,P=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:I=R.length=0;break;default:if("function"===typeof t)R[I++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}},function(e,t,n){"use strict";var r,o=n(1),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,o="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=t.length)return!1;for(l=s;0!==l--;)if(!a(e[l],t[l]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!t.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],t.get(l.value[0])))return!1;return!0}if(o&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!t.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((s=e.length)!=t.length)return!1;for(l=s;0!==l--;)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof t.toString)return e.toString()===t.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(t,c[l]))return!1;if(n&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],t[c[l]]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(12),o=n(18);function i(e,t){if(t&&("object"==Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(o.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(91),o=n(90),i=n(70),a=n(92);function s(e){return Object(r.a)(e)||Object(o.a)(e)||Object(i.a)(e)||Object(a.a)()}},function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(32);function o(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,i,a=n.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var s=getComputedStyle(e);a.scrollbarColor=s.scrollbarColor,a.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",p=u?"height: ".concat(l.height,";"):"";Object(r.b)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(d,"\n").concat(p,"\n}"),t)}catch(m){console.error(m),o=c,i=u}}document.body.appendChild(n);var f=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Object(r.a)(t),{width:f,height:h}}function i(e){return"undefined"!==typeof document&&e&&e instanceof Element?o(e):{width:0,height:0}}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}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 n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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 n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o="undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),i="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,l=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 n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function s(){i(a)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!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_,n=t.indexOf(e);~n&&t.splice(n,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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=b(0,0,0,0);function p(e){return parseFloat(e)||0}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=f(r,"left","right")+i),Math.round(l+a)!==n&&(l-=f(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+i)-t,h=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(h)&&(l-=h)}return b(o.left,o.top,s,l)}var m="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"===typeof e.getBBox};function g(e){return r?m(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):h(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(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}(),y=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return c(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);c(this,{target:e,contentRect:n})},x=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 u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(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 u(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 y(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}(),O="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 n=l.getInstance(),r=new x(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));var w="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:E;t.a=w}).call(this,n(49))},function(e,t,n){"use strict";var r=n(7),o=n(3),i=n(1);var a=0;var s=Object(o.a)({},i).useId;t.a=s?function(e){var t=s();return e||t}:function(e){var t=i.useState("ssr-id"),n=Object(r.a)(t,2),o=n[0],s=n[1];return i.useEffect((function(){var e=a;a+=1,s("rc_unique_".concat(e))}),[]),e||o}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";const r=n(194),o=n(198),i=n(199);e.exports=e=>{return(e=e||{}).alias&&i.alias(e.alias),e=>{r(e,"element",t)};function t(t,n,r){if(!r||"pre"!==r.tagName||"code"!==t.tagName)return;const a=function(e){const t=e.properties.className||[];for(const n of t)if("language-"===n.slice(0,9))return n.slice(9).toLowerCase();return null}(t);if(null===a)return;let s;try{r.properties.className=(r.properties.className||[]).concat("language-"+a),s=i.highlight(o(t),a)}catch(l){if(e.ignoreMissing&&/Unknown language/.test(l.message))return;throw l}t.children=s}}},function(e,t,n){"use strict";const r=n(87),o=n(483),i=n(484),a=n(485),s=n(487),l=n(55),c=n(490),u=n(491),d=n(492),p=n(493),f=n(113),h=n(112),m=n(67),g=m.TAG_NAMES,b=m.NAMESPACES,v=m.ATTRS,y={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},x="hidden",O="INITIAL_MODE",E="BEFORE_HTML_MODE",w="BEFORE_HEAD_MODE",j="IN_HEAD_MODE",S="IN_HEAD_NO_SCRIPT_MODE",T="AFTER_HEAD_MODE",k="IN_BODY_MODE",C="TEXT_MODE",_="IN_TABLE_MODE",N="IN_TABLE_TEXT_MODE",A="IN_CAPTION_MODE",R="IN_COLUMN_GROUP_MODE",I="IN_TABLE_BODY_MODE",P="IN_ROW_MODE",D="IN_CELL_MODE",L="IN_SELECT_MODE",M="IN_SELECT_IN_TABLE_MODE",F="IN_TEMPLATE_MODE",$="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",H="AFTER_AFTER_BODY_MODE",z="AFTER_AFTER_FRAMESET_MODE",G={[g.TR]:P,[g.TBODY]:I,[g.THEAD]:I,[g.TFOOT]:I,[g.CAPTION]:A,[g.COLGROUP]:R,[g.TABLE]:_,[g.BODY]:k,[g.FRAMESET]:B},W={[g.CAPTION]:_,[g.COLGROUP]:_,[g.TBODY]:_,[g.TFOOT]:_,[g.THEAD]:_,[g.COL]:R,[g.TR]:I,[g.TD]:P,[g.TH]:P},V={[O]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(f.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=E},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[E]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,b.HTML),e.insertionMode=w):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||se(e,t)},[r.EOF_TOKEN]:se},[w]:{[r.CHARACTER_TOKEN]:le,[r.NULL_CHARACTER_TOKEN]:le,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.HEAD?(e._insertElement(t,b.HTML),e.headElement=e.openElements.current,e.insertionMode=j):le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?le(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:le},[j]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:ue,[r.EOF_TOKEN]:de},[S]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?ce(e,t):n===g.NOSCRIPT?e._err(f.nestedNoscriptInHead):pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=j):n===g.BR?pe(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:pe},[T]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BODY?(e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=k):n===g.FRAMESET?(e._insertElement(t,b.HTML),e.insertionMode=B):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(f.abandonedHeadElementChild),e.openElements.push(e.headElement),ce(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(f.misplacedStartTagForHeadElement):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?fe(e,t):n===g.TEMPLATE?ue(e,t):e._err(f.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[k]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Te,[r.END_TAG_TOKEN]:Ne,[r.EOF_TOKEN]:Ae},[C]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:oe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(f.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[_]:{[r.CHARACTER_TOKEN]:Re,[r.NULL_CHARACTER_TOKEN]:Re,[r.WHITESPACE_CHARACTER_TOKEN]:Re,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Ie,[r.END_TAG_TOKEN]:Pe,[r.EOF_TOKEN]:Ae},[N]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:Le,[r.DOCTYPE_TOKEN]:Le,[r.START_TAG_TOKEN]:Le,[r.END_TAG_TOKEN]:Le,[r.EOF_TOKEN]:Le},[A]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,e._processToken(t)):Te(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Ne(e,t)},[r.EOF_TOKEN]:Ae},[R]:{[r.CHARACTER_TOKEN]:Me,[r.NULL_CHARACTER_TOKEN]:Me,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.COL?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?ce(e,t):Me(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_):n===g.TEMPLATE?ue(e,t):n!==g.COL&&Me(e,t)},[r.EOF_TOKEN]:Ae},[I]:{[r.CHARACTER_TOKEN]:Re,[r.NULL_CHARACTER_TOKEN]:Re,[r.WHITESPACE_CHARACTER_TOKEN]:Re,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,b.HTML),e.insertionMode=P):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=P,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):Ie(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&Pe(e,t)},[r.EOF_TOKEN]:Ae},[P]:{[r.CHARACTER_TOKEN]:Re,[r.NULL_CHARACTER_TOKEN]:Re,[r.WHITESPACE_CHARACTER_TOKEN]:Re,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,b.HTML),e.insertionMode=D,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):Ie(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&Pe(e,t)},[r.EOF_TOKEN]:Ae},[D]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):Te(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&Ne(e,t)},[r.EOF_TOKEN]:Ae},[L]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Fe,[r.END_TAG_TOKEN]:$e,[r.EOF_TOKEN]:Ae},[M]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):$e(e,t)},[r.EOF_TOKEN]:Ae},[F]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)ce(e,t);else{const r=W[n]||k;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&ue(e,t)},[r.EOF_TOKEN]:Be},[$]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Te(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=H):Ue(e,t)},[r.EOF_TOKEN]:ie},[B]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.FRAMESET?e._insertElement(t,b.HTML):n===g.FRAME?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:ie},[U]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=z)},[r.EOF_TOKEN]:ie},[H]:{[r.CHARACTER_TOKEN]:He,[r.NULL_CHARACTER_TOKEN]:He,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Te(e,t):He(e,t)},[r.END_TAG_TOKEN]:He,[r.EOF_TOKEN]:ie},[z]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ie}};function q(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):_e(e,t),n}function K(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o)&&(n=o)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){o=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=X(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function X(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Z(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&o===b.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),o=n.token,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function J(e,t){let n;for(let r=0;r<8&&(n=q(e,t),n);r++){const t=K(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=Y(e,t,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),Z(e,o,r),Q(e,t,n)}}function ee(){}function te(e){e._err(f.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function oe(e,t){e._insertCharacters(t)}function ie(e){e.stopped=!0}function ae(e,t){e._err(f.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=E,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=w,e._processToken(t)}function le(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=j,e._processToken(t)}function ce(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,b.HTML),e.insertionMode=S):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F,e._pushTmplInsertionMode(F)):n===g.HEAD?e._err(f.misplacedStartTagForHeadElement):de(e,t)}function ue(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=T):n===g.BODY||n===g.BR||n===g.HTML?de(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(f.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(f.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=T,e._processToken(t)}function pe(e,t){const n=t.type===r.EOF_TOKEN?f.openElementsLeftAfterEof:f.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=j,e._processToken(t)}function fe(e,t){e._insertFakeElement(g.BODY),e.insertionMode=k,e._processToken(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ge(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML)}function be(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ve(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function xe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oe(e,t){e._appendElement(t,b.HTML),t.ackSelfClosing=!0}function Ee(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function we(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function je(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,b.HTML)}function Se(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function Te(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ve(e,t):n===g.P?ge(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Se(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ge(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,b.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.items[r],o=e.treeAdapter.getTagName(t);let i=null;if(n===g.LI&&o===g.LI?i=g.LI:n!==g.DD&&n!==g.DT||o!==g.DD&&o!==g.DT||(i=o),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(t))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t):n===g.EM||n===g.TT?ve(e,t):n===g.BR?xe(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===g.RB?je(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,b.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&Se(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ge(e,t):n===g.PRE?be(e,t):n===g.BIG?ve(e,t):n===g.IMG||n===g.WBR?xe(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),p.adjustTokenSVGAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.SVG):e._insertElement(t,b.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?je(e,t):n!==g.COL&&Se(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?ce(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ge(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?ve(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?xe(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),p.adjustTokenMathMLAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.MATHML):e._insertElement(t,b.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t):n!==g.HEAD&&Se(e,t);break;case 5:n===g.STYLE||n===g.TITLE?ce(e,t):n===g.ASIDE?ge(e,t):n===g.SMALL?ve(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=_}(e,t):n===g.EMBED?xe(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML);const n=r.getTokenAttr(t,v.TYPE);n&&n.toLowerCase()===x||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?Oe(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,xe(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&Se(e,t);break;case 6:n===g.SCRIPT?ce(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ge(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?ve(e,t):n===g.APPLET||n===g.OBJECT?ye(e,t):n===g.KEYGEN?xe(e,t):n===g.SOURCE?Oe(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode===_||e.insertionMode===A||e.insertionMode===I||e.insertionMode===P||e.insertionMode===D?e.insertionMode=M:e.insertionMode=L}(e,t):n===g.OPTION?we(e,t):Se(e,t);break;case 7:n===g.BGSOUND?ce(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ge(e,t):n===g.LISTING?be(e,t):n===g.MARQUEE?ye(e,t):n===g.NOEMBED?Ee(e,t):n!==g.CAPTION&&Se(e,t);break;case 8:n===g.BASEFONT?ce(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,b.HTML),e.insertionMode=B)}(e,t):n===g.FIELDSET?ge(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C}(e,t):n===g.TEMPLATE?ce(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?Ee(e,t):Se(e,t):n===g.OPTGROUP?we(e,t):n!==g.COLGROUP&&Se(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):Se(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ge(e,t):Se(e,t);break;default:Se(e,t)}}function ke(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ce(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _e(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const t=e.openElements.items[r];if(e.treeAdapter.getTagName(t)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(t);break}if(e._isSpecialElement(t))break}}function Ne(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?J(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):_e(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?ke(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?J(e,t):_e(e,t);break;case 3:n===g.BIG?J(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?ke(e,t):_e(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=$)}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=$,e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?J(e,t):n===g.MAIN||n===g.MENU?ke(e,t):_e(e,t);break;case 5:n===g.ASIDE?ke(e,t):n===g.SMALL?J(e,t):_e(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ke(e,t):n===g.APPLET||n===g.OBJECT?Ce(e,t):n===g.STRIKE||n===g.STRONG?J(e,t):_e(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?ke(e,t):n===g.MARQUEE?Ce(e,t):_e(e,t);break;case 8:n===g.FIELDSET?ke(e,t):n===g.TEMPLATE?ue(e,t):_e(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ke(e,t):_e(e,t);break;default:_e(e,t)}}function Ae(e,t){e.tmplInsertionModeStackTop>-1?Be(e,t):e.stopped=!0}function Re(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N,e._processToken(t)):De(e,t)}function Ie(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=I,e._processToken(t)}(e,t):De(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=R,e._processToken(t)}(e,t):De(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,b.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):De(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?ce(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=I}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,v.TYPE);n&&n.toLowerCase()===x?e._appendElement(t,b.HTML):De(e,t),t.ackSelfClosing=!0}(e,t):De(e,t);break;case 6:n===g.SCRIPT?ce(e,t):De(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,b.HTML),e.insertionMode=A}(e,t):De(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=R}(e,t):n===g.TEMPLATE?ce(e,t):De(e,t);break;default:De(e,t)}}function Pe(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?ue(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&De(e,t)}function De(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Le(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)De(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Me(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_,e._processToken(t))}function Fe(e,t){const n=t.tagName;n===g.HTML?Te(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,b.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,b.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||ce(e,t)}function $e(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&ue(e,t)}function Be(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ue(e,t){e.insertionMode=k,e._processToken(t)}function He(e,t){e.insertionMode=k,e._processToken(t)}e.exports=class{constructor(e){this.options=u(y,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,a),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,b.HTML,[]));const n=this.treeAdapter.createElement("documentmock",b.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(F),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=O,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new o(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==b.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,b.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=C}switchToPlaintextParsing(){this.insertionMode=C,this.originalInsertionMode=k,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===b.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,b.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,b.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,b.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===b.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===b.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const o=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK)&&!o||!this._isIntegrationPoint(t,b.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!o||!this._isIntegrationPoint(t,b.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){V[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){V[k][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?oe(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(p.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==b.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===b.MATHML?p.adjustTokenMathMLAttrs(t):r===b.SVG&&(p.adjustTokenSVGTagName(t),p.adjustTokenSVGAttrs(t)),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===b.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(f.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return p.isIntegrationPoint(n,r,o,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),o=G[r];if(o){this.insertionMode=o;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode=D;break}if(!t&&r===g.HEAD){this.insertionMode=j;break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?T:w;break}if(t){this.insertionMode=k;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode=M)}this.insertionMode=L}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&o===b.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},function(e,t,n){"use strict";var r,o=n(5),i=n(2),a=n(3),s=n(10),l=n(7),c=n(13),u=n(6),d=n.n(u),p=n(98),f=n(95),h=n(54),m=n(33),g=n(1),b=n.n(g),v=n(12),y=n(44),x=n(23),O=n(25),E=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],w={};function j(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),r.setAttribute("name","hiddenTextarea"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&w[n])return w[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:E.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(w[n]=s),s}(e,t),a=i.paddingSize,s=i.borderSize,l=i.boxSizing,c=i.sizingStyle;r.setAttribute("style","".concat(c,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var u,d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===l?f+=s:"content-box"===l&&(f-=a),null!==n||null!==o){r.value=" ";var h=r.scrollHeight-a;null!==n&&(d=h*n,"border-box"===l&&(d=d+a+s),f=Math.max(d,f)),null!==o&&(p=h*o,"border-box"===l&&(p=p+a+s),u=f>p?"":"hidden",f=Math.min(p,f))}var m={height:f,overflowY:u,resize:"none"};return d&&(m.minHeight=d),p&&(m.maxHeight=p),m}var S=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],T=g.forwardRef((function(e,t){var n=e,r=n.prefixCls,s=n.defaultValue,u=n.value,p=n.autoSize,f=n.onResize,h=n.className,b=n.style,E=n.disabled,w=n.onChange,T=(n.onInternalAutoSize,Object(c.a)(n,S)),k=Object(m.a)(s,{value:u,postState:function(e){return null!==e&&void 0!==e?e:""}}),C=Object(l.a)(k,2),_=C[0],N=C[1],A=g.useRef();g.useImperativeHandle(t,(function(){return{textArea:A.current}}));var R=g.useMemo((function(){return p&&"object"===Object(v.a)(p)?[p.minRows,p.maxRows]:[]}),[p]),I=Object(l.a)(R,2),P=I[0],D=I[1],L=!!p,M=g.useState(2),F=Object(l.a)(M,2),$=F[0],B=F[1],U=g.useState(),H=Object(l.a)(U,2),z=H[0],G=H[1],W=function(){B(0)};Object(x.a)((function(){L&&W()}),[u,P,D,L]),Object(x.a)((function(){if(0===$)B(1);else if(1===$){var e=j(A.current,!1,P,D);B(2),G(e)}else!function(){try{if(document.activeElement===A.current){var e=A.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;A.current.setSelectionRange(t,n),A.current.scrollTop=r}}catch(o){}}()}),[$]);var V=g.useRef(),q=function(){O.a.cancel(V.current)};g.useEffect((function(){return q}),[]);var K=L?z:null,Y=Object(a.a)(Object(a.a)({},b),K);return 0!==$&&1!==$||(Y.overflowY="hidden",Y.overflowX="hidden"),g.createElement(y.a,{onResize:function(e){2===$&&(null===f||void 0===f||f(e),p&&(q(),V.current=Object(O.a)((function(){W()}))))},disabled:!(p||f)},g.createElement("textarea",Object(o.a)({},T,{ref:A,style:Y,className:d()(r,h,Object(i.a)({},"".concat(r,"-disabled"),E)),disabled:E,value:_,onChange:function(e){N(e.target.value),null===w||void 0===w||w(e)}})))})),k=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],C=b.a.forwardRef((function(e,t){var n,r=e.defaultValue,u=e.value,v=e.onFocus,y=e.onBlur,x=e.onChange,O=e.allowClear,E=e.maxLength,w=e.onCompositionStart,j=e.onCompositionEnd,S=e.suffix,C=e.prefixCls,_=void 0===C?"rc-textarea":C,N=e.showCount,A=e.count,R=e.className,I=e.style,P=e.disabled,D=e.hidden,L=e.classNames,M=e.styles,F=e.onResize,$=e.onClear,B=e.onPressEnter,U=e.readOnly,H=e.autoSize,z=e.onKeyDown,G=Object(c.a)(e,k),W=Object(m.a)(r,{value:u,defaultValue:r}),V=Object(l.a)(W,2),q=V[0],K=V[1],Y=void 0===q||null===q?"":String(q),X=b.a.useState(!1),Z=Object(l.a)(X,2),Q=Z[0],J=Z[1],ee=b.a.useRef(!1),te=b.a.useState(null),ne=Object(l.a)(te,2),re=ne[0],oe=ne[1],ie=Object(g.useRef)(null),ae=Object(g.useRef)(null),se=function(){var e;return null===(e=ae.current)||void 0===e?void 0:e.textArea},le=function(){se().focus()};Object(g.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:ae.current,focus:le,blur:function(){se().blur()},nativeElement:(null===(e=ie.current)||void 0===e?void 0:e.nativeElement)||se()}})),Object(g.useEffect)((function(){J((function(e){return!P&&e}))}),[P]);var ce=b.a.useState(null),ue=Object(l.a)(ce,2),de=ue[0],pe=ue[1];b.a.useEffect((function(){var e;de&&(e=se()).setSelectionRange.apply(e,Object(s.a)(de))}),[de]);var fe,he=Object(f.a)(A,N),me=null!==(n=he.max)&&void 0!==n?n:E,ge=Number(me)>0,be=he.strategy(Y),ve=!!me&&be>me,ye=function(e,t){var n=t;!ee.current&&he.exceedFormatter&&he.max&&he.strategy(t)>he.max&&t!==(n=he.exceedFormatter(t,{max:he.max}))&&pe([se().selectionStart||0,se().selectionEnd||0]),K(n),Object(h.c)(e.currentTarget,e,x,n)},xe=S;he.show&&(fe=he.showFormatter?he.showFormatter({value:Y,count:be,maxLength:me}):"".concat(be).concat(ge?" / ".concat(me):""),xe=b.a.createElement(b.a.Fragment,null,xe,b.a.createElement("span",{className:d()("".concat(_,"-data-count"),null===L||void 0===L?void 0:L.count),style:null===M||void 0===M?void 0:M.count},fe)));var Oe=!H&&!N&&!O;return b.a.createElement(p.a,{ref:ie,value:Y,allowClear:O,handleReset:function(e){K(""),le(),Object(h.c)(se(),e,x)},suffix:xe,prefixCls:_,classNames:Object(a.a)(Object(a.a)({},L),{},{affixWrapper:d()(null===L||void 0===L?void 0:L.affixWrapper,Object(i.a)(Object(i.a)({},"".concat(_,"-show-count"),N),"".concat(_,"-textarea-allow-clear"),O))}),disabled:P,focused:Q,className:d()(R,ve&&"".concat(_,"-out-of-range")),style:Object(a.a)(Object(a.a)({},I),re&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof fe?fe:void 0}},hidden:D,readOnly:U,onClear:$},b.a.createElement(T,Object(o.a)({},G,{autoSize:H,maxLength:E,onKeyDown:function(e){"Enter"===e.key&&B&&B(e),null===z||void 0===z||z(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){J(!0),null===v||void 0===v||v(e)},onBlur:function(e){J(!1),null===y||void 0===y||y(e)},onCompositionStart:function(e){ee.current=!0,null===w||void 0===w||w(e)},onCompositionEnd:function(e){ee.current=!1,ye(e,e.currentTarget.value),null===j||void 0===j||j(e)},className:d()(null===L||void 0===L?void 0:L.textarea),style:Object(a.a)(Object(a.a)({},null===M||void 0===M?void 0:M.textarea),{},{resize:null===I||void 0===I?void 0:I.resize}),disabled:P,prefixCls:_,onResize:function(e){var t;null===F||void 0===F||F(e),null!==(t=se())&&void 0!==t&&t.style.height&&oe(!0)},ref:ae,readOnly:U})))}));t.a=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(79),o=n(60);var i=n(93);function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;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 function(e,t,n){if(Object(i.a)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Object(o.a)(a,n.prototype),a}(e,arguments,Object(r.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(n,e)},a(e)}},,,,function(e,t,n){"use strict";var r=n(76),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var y=v.prototype=new b;y.constructor=v,r(y,g.prototype),y.isPureReactComponent=!0;var x={current:null},O=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:x.current}}function j(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+T(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),k(a,t,n,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+T(s=e[c],c);l+=k(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=k(s=s.value,t,n,u=r+T(s,c++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function C(e,t,n){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function _(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function A(){var e=N.current;if(null===e)throw Error(f(321));return e}var R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error(f(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)O.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(1),o=n(76),i=n(168);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function x(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(m,e)||!f.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var O=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,w=60106,j=60107,S=60108,T=60114,k=60109,C=60110,_=60112,N=60113,A=60120,R=60115,I=60116,P=60121,D=60128,L=60129,M=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var $=Symbol.for;E=$("react.element"),w=$("react.portal"),j=$("react.fragment"),S=$("react.strict_mode"),T=$("react.profiler"),k=$("react.provider"),C=$("react.context"),_=$("react.forward_ref"),N=$("react.suspense"),A=$("react.suspense_list"),R=$("react.memo"),I=$("react.lazy"),P=$("react.block"),$("react.scope"),D=$("react.opaque.id"),L=$("react.debug_trace_mode"),M=$("react.offscreen"),F=$("react.legacy_hidden")}var B,U="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function z(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var G=!1;function W(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function V(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case w:return"Portal";case T:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return q(e.type);case P:return q(e._render);case I:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,be=(ge=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Oe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var we=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function je(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ce=null,_e=null;function Ne(e){if(e=ro(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),ke(e.stateNode,e.type,t))}}function Ae(e){Ce?_e?_e.push(e):_e=[e]:Ce=e}function Re(){if(Ce){var e=Ce,t=_e;if(_e=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Ie(e,t){return e(t)}function Pe(e,t,n,r,o){return e(t,n,r,o)}function De(){}var Le=Ie,Me=!1,Fe=!1;function $e(){null===Ce&&null===_e||(De(),Re())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ge){Ue=!1}function ze(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ge=!1,We=null,Ve=!1,qe=null,Ke={onError:function(e){Ge=!0,We=e}};function Ye(e,t,n,r,o,i,a,s,l){Ge=!1,We=null,ze.apply(Ke,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(Xe(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Qe(o),e;if(i===r)return Qe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,pt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function bt(e){var t=no(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function xt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),null!==ct&&vt(ct)&&(ct=null),ut.forEach(yt),dt.forEach(yt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xt)))}function Et(e){function t(t){return Ot(t,e)}if(0<at.length){Ot(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&Ot(st,e),null!==lt&&Ot(lt,e),null!==ct&&Ot(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)bt(n),null===n.blockedOn&&pt.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jt={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},St={},Tt={};function kt(e){if(St[e])return St[e];if(!jt[e])return e;var t,n=jt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return St[e]=n[t];return e}d&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete jt.animationend.animation,delete jt.animationiteration.animation,delete jt.animationstart.animation),"TransitionEvent"in window||delete jt.transitionend.transition);var Ct=kt("animationend"),_t=kt("animationiteration"),Nt=kt("animationstart"),At=kt("transitionend"),Rt=new Map,It=new Map,Pt=["abort","abort",Ct,"animationEnd",_t,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",At,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),It.set(r,t),Rt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Lt=8;function Mt(e){if(0!==(1&e))return Lt=15,1;if(0!==(2&e))return Lt=14,2;if(0!==(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!==(32&e)?(Lt=11,32):0!==(t=192&e)?(Lt=10,t):0!==(256&e)?(Lt=9,256):0!==(t=3584&e)?(Lt=8,t):0!==(4096&e)?(Lt=7,4096):0!==(t=4186112&e)?(Lt=6,t):0!==(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!==(134217728&e)?(Lt=3,134217728):0!==(t=805306368&e)?(Lt=2,t):0!==(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Lt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Mt(l),o=Lt):0!==(s&=i)&&(r=Mt(s),o=Lt)}else 0!==(i=n&~a)?(r=Mt(i),o=Lt):0!==s&&(r=Mt(s),o=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Gt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Mt(t),o<=Lt)return t;Lt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Gt(t)),r|=e[n],t&=~o;return r}function $t(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Bt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Bt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=n}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Vt|0)|0},Wt=Math.log,Vt=Math.LN2;var qt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,Yt=!0;function Xt(e,t,n,r){Me||De();var o=Qt,i=Me;Me=!0;try{Pe(o,e,t,n,r)}finally{(Me=i)||$e()}}function Zt(e,t,n,r){Kt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Yt)if((o=0===(4&t))&&0<at.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<ft.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=gt(st,e,t,n,r,o),!0;case"dragenter":return lt=gt(lt,e,t,n,r,o),!0;case"mouseover":return ct=gt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Te(r);if(null!==(o=no(o))){var i=Xe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ze(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(pn),hn=o({},pn,{view:0,detail:0}),mn=ln(hn),gn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),bn=ln(gn),vn=ln(o({},gn,{dataTransfer:0})),yn=ln(o({},hn,{relatedTarget:0})),xn=ln(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=ln(On),wn=ln(o({},pn,{data:0})),jn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tn[e])&&!!t[e]}function Cn(){return kn}var _n=o({},hn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=ln(_n),An=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=ln(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=ln(Pn),Ln=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var $n=d&&"TextEvent"in window&&!Fn,Bn=d&&(!Mn||Fn&&8<Fn&&11>=Fn),Un=String.fromCharCode(32),Hn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Xn=null;function Zn(e){_r(e,0)}function Qn(e){if(Z(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Yn&&(Yn.detachEvent("onpropertychange",ir),Xn=Yn=null)}function ir(e){if("value"===e.propertyName&&Qn(Xn)){var t=[];if(Kn(t,Xn,e,Te(e)),e=Zn,Me)e(t);else{Me=!0;try{Ie(e,t)}finally{Me=!1,$e()}}}}function ar(e,t,n){"focusin"===e?(or(),Xn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Xn)}function lr(e,t){if("click"===e)return Qn(t)}function cr(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,xr=null,Or=null,Er=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==yr||yr!==Q(r)||("selectionStart"in(r=yr)&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Or&&pr(Or,r)||(Or=r,0<(r=Mr(xr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(Pt,2);for(var jr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<jr.length;Sr++)It.set(jr[Sr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ye.apply(this,arguments),Ge){if(!Ge)throw Error(a(198));var u=We;Ge=!1,We=null,Ve||(Ve=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Cr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Cr(o,s,c),i=l}}}if(Ve)throw e=qe,Ve=!1,qe=null,e}function Nr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){kr.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)})))}function Ir(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Pr(i,e,o,t),a.add(s))}function Pr(e,t,n,r){var o=It.get(t);switch(void 0===o?2:o){case 0:o=Xt;break;case 1:o=Zt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Le(e,t,n)}finally{Fe=!1,$e()}}((function(){var r=i,o=Te(n),a=[];e:{var s=Rt.get(e);if(void 0!==s){var l=fn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":c="focus",l=yn;break;case"focusout":c="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=bn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Ct:case _t:case Nt:l=xn;break;case At:l=In;break;case"scroll":l=mn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Be(h,p))&&u.push(Lr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(d=Xe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=bn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:oo(l),f=null==c?s:oo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,no(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Fr(f))h++;for(f=0,m=p;m;m=Fr(m))f++;for(;0<h-f;)u=Fr(u),h--;for(;0<f-h;)p=Fr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Fr(u),p=Fr(p)}u=null}else u=null;null!==l&&$r(a,s,l,u,!1),null!==c&&null!==d&&$r(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(qn(s))if(er)g=cr;else{g=sr;var b=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=lr);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&oe(s,"number",s.value)),b=r?oo(r):window,e){case"focusin":(qn(b)||"true"===b.contentEditable)&&(yr=b,xr=r,Or=null);break;case"focusout":Or=xr=yr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var v;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(v=rn()):(tn="value"in(en=o)?en.value:en.textContent,Wn=!0)),0<(b=Mr(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=Gn(n))&&(y.data=v))),(v=$n?function(e,t){switch(e){case"compositionend":return Gn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Un);case"textInput":return(e=t.data)===Un&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Mn&&zn(e,t)?(e=rn(),nn=tn=en=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}_r(a,t)}))}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,n))&&r.unshift(Lr(e,i,o)),null!=(i=Be(e,t))&&r.push(Lr(e,i,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Be(n,i))&&a.unshift(Lr(n,l,s)):o||null!=(l=Be(n,i))&&a.push(Lr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Ur=null,Hr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Gr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wr="function"===typeof setTimeout?setTimeout:void 0,Vr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xr=0;var Zr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Zr,Jr="__reactProps$"+Zr,eo="__reactContainer$"+Zr,to="__reactEvents$"+Zr;function no(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Qr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Qr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Jr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function po(e,t){lo++,so[lo]=e.current,e.current=t}var fo={},ho=co(fo),mo=co(!1),go=fo;function bo(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yo(){uo(mo),uo(ho)}function xo(e,t,n){if(ho.current!==fo)throw Error(a(168));po(ho,t),po(mo,n)}function Oo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,go=ho.current,po(ho,e),po(mo,mo.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Oo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(ho),po(ho,e)):uo(mo),po(mo,n)}var jo=null,So=null,To=i.unstable_runWithPriority,ko=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,_o=i.unstable_shouldYield,No=i.unstable_requestPaint,Ao=i.unstable_now,Ro=i.unstable_getCurrentPriorityLevel,Io=i.unstable_ImmediatePriority,Po=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Lo=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,Fo={},$o=void 0!==No?No:function(){},Bo=null,Uo=null,Ho=!1,zo=Ao(),Go=1e4>zo?Ao:function(){return Ao()-zo};function Wo(){switch(Ro()){case Io:return 99;case Po:return 98;case Do:return 97;case Lo:return 96;case Mo:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return Io;case 98:return Po;case 97:return Do;case 96:return Lo;case 95:return Mo;default:throw Error(a(332))}}function qo(e,t){return e=Vo(e),To(e,t)}function Ko(e,t,n){return e=Vo(e),ko(e,t,n)}function Yo(){if(null!==Uo){var e=Uo;Uo=null,Co(e)}Xo()}function Xo(){if(!Ho&&null!==Bo){Ho=!0;var e=0;try{var t=Bo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(n){throw null!==Bo&&(Bo=Bo.slice(e+1)),ko(Io,Yo),n}finally{Ho=!1}}}var Zo=O.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Jo.current;uo(Jo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=i.baseState,s=0,d=u=c=null;;){l=a.lane;var f=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,f=n,m.tag){case 1:if("function"===typeof(h=m.payload)){p=h.call(f,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(f,p,l):h)||void 0===l)break e;p=o({},p,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=f,c=p):d=d.next=f,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Hs|=s,e.lanes=s,e.memoizedState=p}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var gi=(new r.Component).refs;function bi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),o=hl(e),i=di(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),pi(e,i),ml(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),o=hl(e),i=di(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),pi(e,i),ml(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=hl(e),o=di(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),pi(e,o),ml(e,r,n)}};function yi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(o,i))}function xi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=vo(t)?go:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?bo(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Oi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=vo(t)?go:ho.current,o.context=bo(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(bi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&vi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var wi=Array.isArray;function ji(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===gi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Si(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ti(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ql(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Zl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=ji(e,t,n),r.return=e,r):((r=Kl(n.type,n.key,n.props,null,e.mode,r)).ref=ji(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ql(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Kl(t.type,t.key,t.props,null,e.mode,n)).ref=ji(e,null,t),n.return=e,n;case w:return(t=Ql(t,e.mode,n)).return=e,t}if(wi(t)||H(t))return(t=Yl(t,e.mode,n,null)).return=e,t;Si(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===j?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case w:return n.key===o?u(e,t,n,r):null}if(wi(n)||H(n))return null!==o?null:d(e,t,n,r,null);Si(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===j?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(wi(r)||H(r))return d(t,e=e.get(n)||null,r,o,null);Si(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(o,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=H(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(o,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(o,m),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===j&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case E:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===j){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=ji(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===j?((r=Yl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Kl(i.type,i.key,i.props,null,e.mode,l)).ref=ji(e,r,i),l.return=e,e=l)}return s(e);case w:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ql(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Zl(i,e.mode,l)).return=e,e=r),s(e);if(wi(i))return m(e,r,i,l);if(H(i))return g(e,r,i,l);if(u&&Si(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var ki=Ti(!0),Ci=Ti(!1),_i={},Ni=co(_i),Ai=co(_i),Ri=co(_i);function Ii(e){if(e===_i)throw Error(a(174));return e}function Pi(e,t){switch(po(Ri,t),po(Ai,e),po(Ni,_i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Ni),po(Ni,t)}function Di(){uo(Ni),uo(Ai),uo(Ri)}function Li(e){Ii(Ri.current);var t=Ii(Ni.current),n=he(t,e.type);t!==n&&(po(Ai,e),po(Ni,n))}function Mi(e){Ai.current===e&&(uo(Ni),uo(Ai))}var Fi=co(0);function $i(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Ui=null,Hi=!1;function zi(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Gi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wi(e){if(Hi){var t=Ui;if(t){var n=t;if(!Gi(e,t)){if(!(t=Kr(n.nextSibling))||!Gi(e,t))return e.flags=-1025&e.flags|2,Hi=!1,void(Bi=e);zi(Bi,n)}Bi=e,Ui=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Hi=!1,Bi=e}}function Vi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function qi(e){if(e!==Bi)return!1;if(!Hi)return Vi(e),Hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Gr(t,e.memoizedProps))for(t=Ui;t;)zi(e,t),t=Kr(t.nextSibling);if(Vi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ui=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ui=null}}else Ui=Bi?Kr(e.stateNode.nextSibling):null;return!0}function Ki(){Ui=Bi=null,Hi=!1}var Yi=[];function Xi(){for(var e=0;e<Yi.length;e++)Yi[e]._workInProgressVersionPrimary=null;Yi.length=0}var Zi=O.ReactCurrentDispatcher,Qi=O.ReactCurrentBatchConfig,Ji=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Ji=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zi.current=null===e||null===e.memoizedState?Ia:Pa,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Zi.current=Da,e=n(r,o)}while(oa)}if(Zi.current=Ra,t=null!==ta&&null!==ta.next,Ji=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"===typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Ji&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,Hs|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function fa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,Yi.push(t))),e)return n(t._source);throw Yi.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ps;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Zi.current,c=l.useState((function(){return fa(o,t,n)})),u=c[1],d=c[0];c=na;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,m=p.source;p=p.subscribe;var g=ea;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=hl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Gt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=hl(g);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Aa.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=fa(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function ga(e){var t=la();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Aa.bind(null,ea,e),[t.memoizedState,e]}function ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function va(e){return e={current:e},la().memoizedState=e}function ya(){return ca().memoizedState}function xa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=ba(1|t,n,void 0,void 0===r?null:r)}function Oa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void ba(t,n,i,r)}ea.flags|=e,o.memoizedState=ba(1|t,n,i,r)}function Ea(e,t){return xa(516,4,e,t)}function wa(e,t){return Oa(516,4,e,t)}function ja(e,t){return Oa(4,2,e,t)}function Sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ta(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oa(4,2,Sa.bind(null,t,e),n)}function ka(){}function Ca(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _a(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Na(e,t){var n=Wo();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Aa(e,t,n){var r=fl(),o=hl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(c){}ml(e,o,r)}}var Ra={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ia={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,ea,e),[r.memoizedState,e]},useRef:va,useState:ga,useDebugValue:ka,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return Ea((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return va(e=Na.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Hi){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ba(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:si,useCallback:Ca,useContext:si,useEffect:wa,useImperativeHandle:Ta,useLayoutEffect:ja,useMemo:_a,useReducer:da,useRef:ya,useState:function(){return da(ua)},useDebugValue:ka,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return wa((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ya().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Da={readContext:si,useCallback:Ca,useContext:si,useEffect:wa,useImperativeHandle:Ta,useLayoutEffect:ja,useMemo:_a,useReducer:pa,useRef:ya,useState:function(){return pa(ua)},useDebugValue:ka,useDeferredValue:function(e){var t=pa(ua),n=t[0],r=t[1];return wa((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(ua)[0];return[ya().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},La=O.ReactCurrentOwner,Ma=!1;function Fa(e,t,n,r){t.child=null===e?Ci(t,null,n,r):ki(t,e.child,n,r)}function $a(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Vl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Kl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ua(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(o,r)&&e.ref===t.ref)?as(e,t,i):(t.flags|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ua(e,t,n,r,o,i){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(i&o))return t.lanes=e.lanes,as(e,t,i);0!==(16384&e.flags)&&(Ma=!0)}return Ga(e,t,n,r,i)}function Ha(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},wl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wl(t,e),null;t.memoizedState={baseLanes:0},wl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,wl(t,r);return Fa(e,t,o,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ga(e,t,n,r,o){var i=vo(n)?go:ho.current;return i=bo(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function Wa(e,t,n,r,o){if(vo(n)){var i=!0;Eo(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xi(t,n,r),Ei(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=si(c):c=bo(t,c=vo(n)?go:ho.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Oi(t,a,r,c),li=!1;var p=t.memoizedState;a.state=p,hi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||mo.current||li?("function"===typeof u&&(bi(t,n,u,r),l=t.memoizedState),(s=li||yi(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qo(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=bo(t,l=vo(n)?go:ho.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&Oi(t,a,r,l),li=!1,p=t.memoizedState,a.state=p,hi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||mo.current||li?("function"===typeof f&&(bi(t,n,f,r),h=t.memoizedState),(c=li||yi(t,n,c,r,p,h,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Va(e,t,n,r,i,o)}function Va(e,t,n,r,o,i){za(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&wo(t,n,!1),as(e,t,i);r=t.stateNode,La.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):Fa(e,t,s,i),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Pi(e,t.containerInfo)}var Ka,Ya,Xa,Za,Qa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,o=t.pendingProps,i=Fi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),po(Fi,1&i),null===e?(void 0!==o.fallback&&Wi(t),e=o.children,i=o.fallback,a?(e=es(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,e):"number"===typeof o.unstable_expectedLoadTime?(e=es(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,t.lanes=33554432,e):((n=Xl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ns(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Qa,o):(n=ts(e,t,o.children,n),t.memoizedState=null,n))}function es(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Xl(t,o,0,null),n=Yl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function ts(e,t,n,r){var o=e.child;return e=o.sibling,n=ql(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ns(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(a,s),null!==e?r=ql(e,r):(r=Yl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function rs(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function os(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function is(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!==(2&(r=Fi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,n);else if(19===e.tag)rs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(po(Fi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===$i(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),os(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===$i(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}os(t,!0,n,null,i,t.lastEffect);break;case"together":os(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Hs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ss(e,t){if(!Hi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ls(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vo(t.type)&&yo(),null;case 3:return Di(),uo(mo),uo(ho),Xi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ya(t),null;case 5:Mi(t);var i=Ii(Ri.current);if(n=t.type,null!==e&&null!=t.stateNode)Xa(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(Ni.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[Jr]=s,n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(e=0;e<Tr.length;e++)Nr(Tr[e],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":ee(r,s),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Nr("invalid",r);break;case"textarea":le(r,s),Nr("invalid",r)}for(var c in je(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Nr("scroll",r));switch(n){case"input":X(r),re(r,s,!0);break;case"textarea":X(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Ka(e,t,!1,!1),t.stateNode=e,c=Se(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),i=r;break;case"iframe":case"object":case"embed":Nr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Tr.length;i++)Nr(Tr[i],e);i=r;break;case"source":Nr("error",e),i=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=r;break;case"details":Nr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Nr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Nr("invalid",e);break;default:i=r}je(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Ee(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&be(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"===typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Nr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Br)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Za(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ii(Ri.current),Ii(Ni.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return uo(Fi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Fi.current)?0===$s&&($s=3):(0!==$s&&3!==$s||($s=4),null===Ps||0===(134217727&Hs)&&0===(134217727&zs)||yl(Ps,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Di(),Ya(t),null===e&&Rr(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(Fi),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)ss(r,!1);else{if(0!==$s||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=$i(e))){for(t.flags|=64,ss(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return po(Fi,1&Fi.current|2),t.child}e=e.sibling}null!==r.tail&&Go()>qs&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=$i(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ss(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Hi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Go()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Go(),n.sibling=null,t=Fi.current,po(Fi,s?1&t|2:1&t),n):null;case 23:case 24:return jl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function cs(e){switch(e.tag){case 1:vo(e.type)&&yo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Di(),uo(mo),uo(ho),Xi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mi(e),null;case 13:return uo(Fi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Fi),null;case 4:return Di(),null;case 10:return oi(e),null;case 23:case 24:return jl(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ya=function(){},Xa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ii(Ni.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Br)}for(d in je(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Nr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Za=function(e,t,n,r){n!==r&&(t.flags|=4)};var ps="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Qs=r),ds(0,t)},n}function hs(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return ds(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),ds(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ms="function"===typeof WeakSet?WeakSet:Set;function gs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ul(e,n)}else t.current=null}function bs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Fl(n,e),Ml(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Oe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function xs(e,t){if(So&&"function"===typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(jo,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Fl(t,n);else{r=t;try{o()}catch(i){Ul(r,i)}}n=n.next}while(n!==e)}break;case 1:if(gs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Ul(t,i)}break;case 5:gs(t);break;case 4:Ts(e,t)}}function Os(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Es(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:{for(var t=e.return;null!==t;){if(Es(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Es(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?js(e,n,t):Ss(e,n,t)}function js(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(js(e,t,n),e=e.sibling;null!==e;)js(e,t,n),e=e.sibling}function Ss(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function Ts(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(xs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(xs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ks(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?Ee(n,l):"dangerouslySetInnerHTML"===s?be(n,l):"children"===s?ve(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=Go(),ys(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ms),t.forEach((function(t){var r=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ns=Math.ceil,As=O.ReactCurrentDispatcher,Rs=O.ReactCurrentOwner,Is=0,Ps=null,Ds=null,Ls=0,Ms=0,Fs=co(0),$s=0,Bs=null,Us=0,Hs=0,zs=0,Gs=0,Ws=null,Vs=0,qs=1/0;function Ks(){qs=Go()+500}var Ys,Xs=null,Zs=!1,Qs=null,Js=null,el=!1,tl=null,nl=90,rl=[],ol=[],il=null,al=0,sl=null,ll=-1,cl=0,ul=0,dl=null,pl=!1;function fl(){return 0!==(48&Is)?Go():-1!==ll?ll:ll=Go()}function hl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Wo()?1:2;if(0===cl&&(cl=Us),0!==Zo.transition){0!==ul&&(ul=null!==Ws?Ws.pendingLanes:0),e=cl;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Wo(),0!==(4&Is)&&98===e?e=Bt(12,cl):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),cl),e}function ml(e,t,n){if(50<al)throw al=0,sl=null,Error(a(185));if(null===(e=gl(e,t)))return null;zt(e,t,n),e===Ps&&(zs|=t,4===$s&&yl(e,Ls));var r=Wo();1===t?0!==(8&Is)&&0===(48&Is)?xl(e):(bl(e,n),0===Is&&(Ks(),Yo())):(0===(4&Is)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),bl(e,n)),Ws=e}function gl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function bl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Gt(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&o)){u=t,Mt(c);var d=Lt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Ps?Ls:0),t=Lt,0===r)null!==n&&(n!==Fo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fo&&Co(n)}15===t?(n=xl.bind(null,e),null===Bo?(Bo=[n],Uo=ko(Io,Xo)):Bo.push(n),n=Fo):14===t?n=Ko(99,xl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Ko(n,vl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vl(e){if(ll=-1,ul=cl=0,0!==(48&Is))throw Error(a(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ps?Ls:0);if(0===n)return null;var r=n,o=Is;Is|=16;var i=kl();for(Ps===e&&Ls===r||(Ks(),Sl(e,r));;)try{Nl();break}catch(l){Tl(e,l)}if(ri(),As.current=i,Is=o,null!==Ds?r=0:(Ps=null,Ls=0,r=$s),0!==(Us&zs))Sl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=$t(e))&&(r=Cl(e,n))),1===r)throw t=Bs,Sl(e,0),yl(e,n),bl(e,Go()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Vs+500-Go())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Wr(Il.bind(null,e),r);break}Il(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Gt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Go()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ns(n/1960))-n)){e.timeoutHandle=Wr(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return bl(e,Go()),e.callbackNode===t?vl.bind(null,e):null}function yl(e,t){for(t&=~Gs,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gt(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(0!==(48&Is))throw Error(a(327));if(Ll(),e===Ps&&0!==(e.expiredLanes&Ls)){var t=Ls,n=Cl(e,t);0!==(Us&zs)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=$t(e))&&(n=Cl(e,t))),1===n)throw n=Bs,Sl(e,0),yl(e,t),bl(e,Go()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),bl(e,Go()),null}function Ol(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Ks(),Yo())}}function El(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Ks(),Yo())}}function wl(e,t){po(Fs,Ms),Ms|=t,Us|=t}function jl(){Ms=Fs.current,uo(Fs)}function Sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Ds)for(n=Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yo();break;case 3:Di(),uo(mo),uo(ho),Xi();break;case 5:Mi(r);break;case 4:Di();break;case 13:case 19:uo(Fi);break;case 10:oi(r);break;case 23:case 24:jl()}n=n.return}Ps=e,Ds=ql(e.current,null),Ls=Ms=Us=t,$s=0,Bs=null,Gs=zs=Hs=0}function Tl(e,t){for(;;){var n=Ds;try{if(ri(),Zi.current=Ra,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Ji=0,na=ta=ea=null,oa=!1,Rs.current=null,null===n||null===n.return){$s=1,Bs=t,Ds=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Fi.current),p=a;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var m=p.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var g=p.updateQueue;if(null===g){var b=new Set;b.add(c),p.updateQueue=b}else g.add(c);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=di(-1,1);v.tag=2,pi(s,v)}s.lanes|=1;break e}l=void 0,s=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ps,l=new Set,y.set(c,l)):void 0===(l=y.get(c))&&(l=new Set,y.set(c,l)),!l.has(s)){l.add(s);var x=Hl.bind(null,i,c,s);c.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==$s&&($s=2),l=us(l,s),p=a;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,fi(p,fs(0,i,t));break e;case 1:i=l;var O=p.type,E=p.stateNode;if(0===(64&p.flags)&&("function"===typeof O.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Js||!Js.has(E)))){p.flags|=4096,t&=-t,p.lanes|=t,fi(p,hs(p,i,t));break e}}p=p.return}while(null!==p)}Rl(n)}catch(w){t=w,Ds===n&&null!==n&&(Ds=n=n.return);continue}break}}function kl(){var e=As.current;return As.current=Ra,null===e?Ra:e}function Cl(e,t){var n=Is;Is|=16;var r=kl();for(Ps===e&&Ls===t||Sl(e,t);;)try{_l();break}catch(o){Tl(e,o)}if(ri(),Is=n,As.current=r,null!==Ds)throw Error(a(261));return Ps=null,Ls=0,$s}function _l(){for(;null!==Ds;)Al(Ds)}function Nl(){for(;null!==Ds&&!_o();)Al(Ds)}function Al(e){var t=Ys(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Rl(e):Ds=t,Rs.current=null}function Rl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ls(n,t,Ms)))return void(Ds=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ms)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cs(t)))return n.flags&=2047,void(Ds=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ds=t);Ds=t=e}while(null!==t);0===$s&&($s=5)}function Il(e){var t=Wo();return qo(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Ll()}while(null!==tl);if(0!==(48&Is))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Gt(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Ps&&(Ds=Ps=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Is,Is|=32,Rs.current=null,Ur=Yt,br(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(T){l=null;break e}var d=0,p=-1,f=-1,h=0,m=0,g=s,b=null;t:for(;;){for(var v;g!==l||0!==i&&3!==g.nodeType||(p=d+i),g!==c||0!==u&&3!==g.nodeType||(f=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)b=g,g=v;for(;;){if(g===s)break t;if(b===l&&++h===i&&(p=d),b===c&&++m===u&&(f=d),null!==(v=g.nextSibling))break;b=(g=b).parentNode}g=v}l=-1===p||-1===f?null:{start:p,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Hr={focusedElem:s,selectionRange:l},Yt=!1,dl=null,pl=!1,Xs=r;do{try{Dl()}catch(T){if(null===Xs)throw Error(a(330));Ul(Xs,T),Xs=Xs.nextEffect}}while(null!==Xs);dl=null,Xs=r;do{try{for(s=e;null!==Xs;){var y=Xs.flags;if(16&y&&ve(Xs.stateNode,""),128&y){var x=Xs.alternate;if(null!==x){var O=x.ref;null!==O&&("function"===typeof O?O(null):O.current=null)}}switch(1038&y){case 2:ws(Xs),Xs.flags&=-3;break;case 6:ws(Xs),Xs.flags&=-3,ks(Xs.alternate,Xs);break;case 1024:Xs.flags&=-1025;break;case 1028:Xs.flags&=-1025,ks(Xs.alternate,Xs);break;case 4:ks(Xs.alternate,Xs);break;case 8:Ts(s,l=Xs);var E=l.alternate;Os(l),null!==E&&Os(E)}Xs=Xs.nextEffect}}catch(T){if(null===Xs)throw Error(a(330));Ul(Xs,T),Xs=Xs.nextEffect}}while(null!==Xs);if(O=Hr,x=gr(),y=O.focusedElem,s=O.selectionRange,x!==y&&y&&y.ownerDocument&&mr(y.ownerDocument.documentElement,y)){null!==s&&br(y)&&(x=s.start,void 0===(O=s.end)&&(O=x),"selectionStart"in y?(y.selectionStart=x,y.selectionEnd=Math.min(O,y.value.length)):(O=(x=y.ownerDocument||document)&&x.defaultView||window).getSelection&&(O=O.getSelection(),l=y.textContent.length,E=Math.min(s.start,l),s=void 0===s.end?E:Math.min(s.end,l),!O.extend&&E>s&&(l=s,s=E,E=l),l=hr(y,E),i=hr(y,s),l&&i&&(1!==O.rangeCount||O.anchorNode!==l.node||O.anchorOffset!==l.offset||O.focusNode!==i.node||O.focusOffset!==i.offset)&&((x=x.createRange()).setStart(l.node,l.offset),O.removeAllRanges(),E>s?(O.addRange(x),O.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),O.addRange(x))))),x=[];for(O=y;O=O.parentNode;)1===O.nodeType&&x.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<x.length;y++)(O=x[y]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Yt=!!Ur,Hr=Ur=null,e.current=n,Xs=r;do{try{for(y=e;null!==Xs;){var w=Xs.flags;if(36&w&&vs(y,Xs.alternate,Xs),128&w){x=void 0;var j=Xs.ref;if(null!==j){var S=Xs.stateNode;Xs.tag,x=S,"function"===typeof j?j(x):j.current=x}}Xs=Xs.nextEffect}}catch(T){if(null===Xs)throw Error(a(330));Ul(Xs,T),Xs=Xs.nextEffect}}while(null!==Xs);Xs=null,$o(),Is=o}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Xs=r;null!==Xs;)t=Xs.nextEffect,Xs.nextEffect=null,8&Xs.flags&&((w=Xs).sibling=null,w.stateNode=null),Xs=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===sl?al++:(al=0,sl=e):al=0,n=n.stateNode,So&&"function"===typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(jo,n,void 0,64===(64&n.current.flags))}catch(T){}if(bl(e,Go()),Zs)throw Zs=!1,e=Qs,Qs=null,e;return 0!==(8&Is)||Yo(),null}function Dl(){for(;null!==Xs;){var e=Xs.alternate;pl||null===dl||(0!==(8&Xs.flags)?et(Xs,dl)&&(pl=!0):13===Xs.tag&&_s(e,Xs)&&et(Xs,dl)&&(pl=!0));var t=Xs.flags;0!==(256&t)&&bs(e,Xs),0===(512&t)||el||(el=!0,Ko(97,(function(){return Ll(),null}))),Xs=Xs.nextEffect}}function Ll(){if(90!==nl){var e=97<nl?97:nl;return nl=90,qo(e,$l)}return!1}function Ml(e,t){rl.push(t,e),el||(el=!0,Ko(97,(function(){return Ll(),null})))}function Fl(e,t){ol.push(t,e),el||(el=!0,Ko(97,(function(){return Ll(),null})))}function $l(){if(null===tl)return!1;var e=tl;if(tl=null,0!==(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=ol;ol=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(a(330));Ul(i,c)}}for(n=rl,rl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===i)throw Error(a(330));Ul(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Yo(),!0}function Bl(e,t,n){pi(e,t=fs(0,t=us(n,t),1)),t=fl(),null!==(e=gl(e,1))&&(zt(e,1,t),bl(e,t))}function Ul(e,t){if(3===e.tag)Bl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Bl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var o=hs(n,e=us(t,e),1);if(pi(n,o),o=fl(),null!==(n=gl(n,1)))zt(n,1,o),bl(n,o);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Hl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ls&n)===n&&(4===$s||3===$s&&(62914560&Ls)===Ls&&500>Go()-Vs?Sl(e,0):Gs|=n),bl(e,t)}function zl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Wo()?1:2:(0===cl&&(cl=Us),0===(t=Ut(62914560&~cl))&&(t=4194304))),n=fl(),null!==(e=gl(e,t))&&(zt(e,t,n),bl(e,n))}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new Gl(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Vl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Yl(n.children,o,i,t);case L:s=8,o|=16;break;case S:s=8,o|=1;break;case T:return(e=Wl(12,n,t,8|o)).elementType=T,e.type=T,e.lanes=i,e;case N:return(e=Wl(13,n,t,o)).type=N,e.elementType=N,e.lanes=i,e;case A:return(e=Wl(19,n,t,o)).elementType=A,e.lanes=i,e;case M:return Xl(n,o,i,t);case F:return(e=Wl(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case C:s=9;break e;case _:s=11;break e;case R:s=14;break e;case I:s=16,r=null;break e;case P:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Yl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function Xl(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=M,e.lanes=n,e}function Zl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Ql(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r){var o=t.current,i=fl(),s=hl(o);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vo(c)){n=Oo(n,c,l);break e}}n=l}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),ml(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Rr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}El((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:qa(t),Ki();break;case 5:Li(t);break;case 1:vo(t.type)&&Eo(t);break;case 4:Pi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;po(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(po(Fi,1&Fi.current),null!==(t=as(e,t,n))?t.sibling:null);po(Fi,1&Fi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(Fi,Fi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return as(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=bo(t,ho.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vo(r)){var i=!0;Eo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&bi(t,r,s,e),o.updater=vi,t.stateNode=o,o._reactInternals=t,Ei(t,r,e,n),t=Va(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Vl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===R)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Ga(null,t,o,e,n);break e;case 1:t=Wa(null,t,o,e,n);break e;case 11:t=$a(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ga(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Ki(),t=as(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ui=Kr(t.stateNode.containerInfo.firstChild),Bi=t,i=Hi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Yi.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),Ki();t=t.child}return t;case 5:return Li(t),null===e&&Wi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Gr(r,o)?s=null:null!==i&&Gr(r,i)&&(t.flags|=16),za(e,t),Fa(e,t,s,n),t.child;case 6:return null===e&&Wi(t),null;case 13:return Ja(e,t,n);case 4:return Pi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(po(Jo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=as(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,pi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ba(e,t,o,i=Qo(o.type,i),r,n);case 15:return Ua(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vo(r)?(e=!0,Eo(t)):e=!1,ai(t,n),xi(t,r,o),Ei(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Ha(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(ml(e,4,fl()),rc(e,4))},nt=function(e){13===e.tag&&(ml(e,67108864,fl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=fl(),n=hl(e);ml(e,n,t),rc(e,n)}},ot=function(e,t){return t()},ke=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));Z(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=Ol,Pe=function(e,t,n,r,o){var i=Is;Is|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Is=i)&&(Ks(),Yo())}},De=function(){0===(49&Is)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,bl(e,Go())}))}Yo()}(),Ll())},Le=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Ks(),Yo())}};var lc={Events:[ro,oo,io,Ae,Re,Ll,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{jo=dc.inject(uc),So=dc}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(0!==(48&n))return e(t);Is|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Is=n,Yo()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(El((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=Ol,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(169)},function(e,t,n){"use strict";var r,o,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,d=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(p,0),n}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(p,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,b=null,v=-1,y=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,E=O.port2;O.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+y;try{b(!0,e)?E.postMessage(null):(g=!1,b=null)}catch(n){throw E.postMessage(null),n}}else g=!1},r=function(e){b=e,g||(g=!0,E.postMessage(null))},o=function(e,n){v=f((function(){e(t.unstable_now())}),n)},i=function(){h(v),v=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],C=[],_=1,N=null,A=3,R=!1,I=!1,P=!1;function D(e){for(var t=j(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,w(k,t)}t=j(C)}}function L(e){if(P=!1,D(e),!I)if(null!==j(k))I=!0,r(M);else{var t=j(C);null!==t&&o(L,t.startTime-e)}}function M(e,n){I=!1,P&&(P=!1,i()),R=!0;var r=A;try{for(D(n),N=j(k);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=N.callback;if("function"===typeof a){N.callback=null,A=N.priorityLevel;var s=a(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?N.callback=s:N===j(k)&&S(k),D(n)}else S(k);N=j(k)}if(null!==N)var l=!0;else{var c=j(C);null!==c&&o(L,c.startTime-n),l=!1}return l}finally{N=null,A=r,R=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||R||(I=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return j(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:_++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,w(C,e),null===j(k)&&e===j(C)&&(P?i():P=!0,o(L,a-s))):(e.sortIndex=l,w(k,e),I||R||(I=!0,r(M))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e){e.exports=JSON.parse('{"words":["ahole","anus","ash0le","ash0les","asholes","ass","Ass Monkey","Assface","assh0le","assh0lez","asshole","assholes","assholz","asswipe","azzhole","bassterds","bastard","bastards","bastardz","basterds","basterdz","Biatch","bitch","bitches","Blow Job","boffing","butthole","buttwipe","c0ck","c0cks","c0k","Carpet Muncher","cawk","cawks","Clit","cnts","cntz","cock","cockhead","cock-head","cocks","CockSucker","cock-sucker","crap","cum","cunt","cunts","cuntz","dick","dild0","dild0s","dildo","dildos","dilld0","dilld0s","dominatricks","dominatrics","dominatrix","dyke","enema","f u c k","f u c k e r","fag","fag1t","faget","fagg1t","faggit","faggot","fagg0t","fagit","fags","fagz","faig","faigs","fart","flipping the bird","fuck","fucker","fuckin","fucking","fucks","Fudge Packer","fuk","Fukah","Fuken","fuker","Fukin","Fukk","Fukkah","Fukken","Fukker","Fukkin","g00k","God-damned","h00r","h0ar","h0re","hells","hoar","hoor","hoore","jackoff","jap","japs","jerk-off","jisim","jiss","jizm","jizz","knob","knobs","knobz","kunt","kunts","kuntz","Lezzian","Lipshits","Lipshitz","masochist","masokist","massterbait","masstrbait","masstrbate","masterbaiter","masterbate","masterbates","Motha Fucker","Motha Fuker","Motha Fukkah","Motha Fukker","Mother Fucker","Mother Fukah","Mother Fuker","Mother Fukkah","Mother Fukker","mother-fucker","Mutha Fucker","Mutha Fukah","Mutha Fuker","Mutha Fukkah","Mutha Fukker","n1gr","nastt","nigger;","nigur;","niiger;","niigr;","orafis","orgasim;","orgasm","orgasum","oriface","orifice","orifiss","packi","packie","packy","paki","pakie","paky","pecker","peeenus","peeenusss","peenus","peinus","pen1s","penas","penis","penis-breath","penus","penuus","Phuc","Phuck","Phuk","Phuker","Phukker","polac","polack","polak","Poonani","pr1c","pr1ck","pr1k","pusse","pussee","pussy","puuke","puuker","qweir","recktum","rectum","retard","sadist","scank","schlong","screwing","semen","sex","sexy","Sh!t","sh1t","sh1ter","sh1ts","sh1tter","sh1tz","shit","shits","shitter","Shitty","Shity","shitz","Shyt","Shyte","Shytty","Shyty","skanck","skank","skankee","skankey","skanks","Skanky","slag","slut","sluts","Slutty","slutz","son-of-a-bitch","tit","turd","va1jina","vag1na","vagiina","vagina","vaj1na","vajina","vullva","vulva","w0p","wh00r","wh0re","whore","xrated","xxx","b!+ch","bitch","blowjob","clit","arschloch","fuck","shit","ass","asshole","b!tch","b17ch","b1tch","bastard","bi+ch","boiolas","buceta","c0ck","cawk","chink","cipa","clits","cock","cum","cunt","dildo","dirsa","ejakulate","fatass","fcuk","fuk","fux0r","hoer","hore","jism","kawk","l3itch","l3i+ch","masturbate","masterbat*","masterbat3","motherfucker","s.o.b.","mofo","nazi","nigga","nigger","nutsack","phuck","pimpis","pusse","pussy","scrotum","sh!t","shemale","shi+","sh!+","slut","smut","teets","tits","boobs","b00bs","teez","testical","testicle","titt","w00se","jackoff","wank","whoar","whore","*damn","*dyke","*fuck*","*shit*","@$$","amcik","andskota","arse*","assrammer","ayir","bi7ch","bitch*","bollock*","breasts","butt-pirate","cabron","cazzo","chraa","chuj","Cock*","cunt*","d4mn","daygo","dego","dick*","dike*","dupa","dziwka","ejackulate","Ekrem*","Ekto","enculer","faen","fag*","fanculo","fanny","feces","feg","Felcher","ficken","fitt*","Flikker","foreskin","Fotze","Fu(*","fuk*","futkretzn","gook","guiena","h0r","h4x0r","hell","helvete","hoer*","honkey","Huevon","hui","injun","jizz","kanker*","kike","klootzak","kraut","knulle","kuk","kuksuger","Kurac","kurwa","kusi*","kyrpa*","lesbo","mamhoon","masturbat*","merd*","mibun","monkleigh","mouliewop","muie","mulkku","muschi","nazis","nepesaurio","nigger*","orospu","paska*","perse","picka","pierdol*","pillu*","pimmel","piss*","pizda","poontsee","poop","porn","p0rn","pr0n","preteen","pula","pule","puta","puto","qahbeh","queef*","rautenberg","schaffer","scheiss*","schlampe","schmuck","screw","sh!t*","sharmuta","sharmute","shipal","shiz","skribz","skurwysyn","sphencter","spic","spierdalaj","splooge","suka","b00b*","testicle*","titt*","twat","vittu","wank*","wetback*","wichser","wop*","yed","zabourah"]}')},function(e,t,n){e.exports={object:n(172),array:n(173),regex:n(174)}},function(e,t){e.exports={"4r5e":1,"5h1t":1,"5hit":1,a55:1,anal:1,anus:1,ar5e:1,arrse:1,arse:1,ass:1,"ass-fucker":1,asses:1,assfucker:1,assfukka:1,asshole:1,assholes:1,asswhole:1,a_s_s:1,"b!tch":1,b00bs:1,b17ch:1,b1tch:1,ballbag:1,balls:1,ballsack:1,bastard:1,beastial:1,beastiality:1,bellend:1,bestial:1,bestiality:1,"bi+ch":1,biatch:1,bitch:1,bitcher:1,bitchers:1,bitches:1,bitchin:1,bitching:1,bloody:1,"blow job":1,blowjob:1,blowjobs:1,boiolas:1,bollock:1,bollok:1,boner:1,boob:1,boobs:1,booobs:1,boooobs:1,booooobs:1,booooooobs:1,breasts:1,buceta:1,bugger:1,bum:1,"bunny fucker":1,butt:1,butthole:1,buttmuch:1,buttplug:1,c0ck:1,c0cksucker:1,"carpet muncher":1,cawk:1,chink:1,cipa:1,cl1t:1,clit:1,clitoris:1,clits:1,cnut:1,cock:1,"cock-sucker":1,cockface:1,cockhead:1,cockmunch:1,cockmuncher:1,cocks:1,cocksuck:1,cocksucked:1,cocksucker:1,cocksucking:1,cocksucks:1,cocksuka:1,cocksukka:1,cok:1,cokmuncher:1,coksucka:1,coon:1,cox:1,crap:1,cum:1,cummer:1,cumming:1,cums:1,cumshot:1,cunilingus:1,cunillingus:1,cunnilingus:1,cunt:1,cuntlick:1,cuntlicker:1,cuntlicking:1,cunts:1,cyalis:1,cyberfuc:1,cyberfuck:1,cyberfucked:1,cyberfucker:1,cyberfuckers:1,cyberfucking:1,d1ck:1,damn:1,dick:1,dickhead:1,dildo:1,dildos:1,dink:1,dinks:1,dirsa:1,dlck:1,"dog-fucker":1,doggin:1,dogging:1,donkeyribber:1,doosh:1,duche:1,dyke:1,ejaculate:1,ejaculated:1,ejaculates:1,ejaculating:1,ejaculatings:1,ejaculation:1,ejakulate:1,"f u c k":1,"f u c k e r":1,f4nny:1,fag:1,fagging:1,faggitt:1,faggot:1,faggs:1,fagot:1,fagots:1,fags:1,fanny:1,fannyflaps:1,fannyfucker:1,fanyy:1,fatass:1,fcuk:1,fcuker:1,fcuking:1,feck:1,fecker:1,felching:1,fellate:1,fellatio:1,fingerfuck:1,fingerfucked:1,fingerfucker:1,fingerfuckers:1,fingerfucking:1,fingerfucks:1,fistfuck:1,fistfucked:1,fistfucker:1,fistfuckers:1,fistfucking:1,fistfuckings:1,fistfucks:1,flange:1,fook:1,fooker:1,fuck:1,fucka:1,fucked:1,fucker:1,fuckers:1,fuckhead:1,fuckheads:1,fuckin:1,fucking:1,fuckings:1,fuckingshitmotherfucker:1,fuckme:1,fucks:1,fuckwhit:1,fuckwit:1,"fudge packer":1,fudgepacker:1,fuk:1,fuker:1,fukker:1,fukkin:1,fuks:1,fukwhit:1,fukwit:1,fux:1,fux0r:1,f_u_c_k:1,gangbang:1,gangbanged:1,gangbangs:1,gaylord:1,gaysex:1,goatse:1,God:1,"god-dam":1,"god-damned":1,goddamn:1,goddamned:1,hardcoresex:1,hell:1,heshe:1,hoar:1,hoare:1,hoer:1,homo:1,hore:1,horniest:1,horny:1,hotsex:1,"jack-off":1,jackoff:1,jap:1,"jerk-off":1,jism:1,jiz:1,jizm:1,jizz:1,kawk:1,knob:1,knobead:1,knobed:1,knobend:1,knobhead:1,knobjocky:1,knobjokey:1,kock:1,kondum:1,kondums:1,kum:1,kummer:1,kumming:1,kums:1,kunilingus:1,"l3i+ch":1,l3itch:1,labia:1,lust:1,lusting:1,m0f0:1,m0fo:1,m45terbate:1,ma5terb8:1,ma5terbate:1,masochist:1,"master-bate":1,masterb8:1,"masterbat*":1,masterbat3:1,masterbate:1,masterbation:1,masterbations:1,masturbate:1,"mo-fo":1,mof0:1,mofo:1,mothafuck:1,mothafucka:1,mothafuckas:1,mothafuckaz:1,mothafucked:1,mothafucker:1,mothafuckers:1,mothafuckin:1,mothafucking:1,mothafuckings:1,mothafucks:1,"mother fucker":1,motherfuck:1,motherfucked:1,motherfucker:1,motherfuckers:1,motherfuckin:1,motherfucking:1,motherfuckings:1,motherfuckka:1,motherfucks:1,muff:1,mutha:1,muthafecker:1,muthafuckker:1,muther:1,mutherfucker:1,n1gga:1,n1gger:1,nazi:1,nigg3r:1,nigg4h:1,nigga:1,niggah:1,niggas:1,niggaz:1,nigger:1,niggers:1,nob:1,"nob jokey":1,nobhead:1,nobjocky:1,nobjokey:1,numbnuts:1,nutsack:1,orgasim:1,orgasims:1,orgasm:1,orgasms:1,p0rn:1,pawn:1,pecker:1,penis:1,penisfucker:1,phonesex:1,phuck:1,phuk:1,phuked:1,phuking:1,phukked:1,phukking:1,phuks:1,phuq:1,pigfucker:1,pimpis:1,piss:1,pissed:1,pisser:1,pissers:1,pisses:1,pissflaps:1,pissin:1,pissing:1,pissoff:1,poop:1,porn:1,porno:1,pornography:1,pornos:1,prick:1,pricks:1,pron:1,pube:1,pusse:1,pussi:1,pussies:1,pussy:1,pussys:1,rectum:1,retard:1,rimjaw:1,rimming:1,"s hit":1,"s.o.b.":1,sadist:1,schlong:1,screwing:1,scroat:1,scrote:1,scrotum:1,semen:1,sex:1,"sh!+":1,"sh!t":1,sh1t:1,shag:1,shagger:1,shaggin:1,shagging:1,shemale:1,"shi+":1,shit:1,shitdick:1,shite:1,shited:1,shitey:1,shitfuck:1,shitfull:1,shithead:1,shiting:1,shitings:1,shits:1,shitted:1,shitter:1,shitters:1,shitting:1,shittings:1,shitty:1,skank:1,slut:1,sluts:1,smegma:1,smut:1,snatch:1,"son-of-a-bitch":1,spac:1,spunk:1,s_h_i_t:1,t1tt1e5:1,t1tties:1,teets:1,teez:1,testical:1,testicle:1,tit:1,titfuck:1,tits:1,titt:1,tittie5:1,tittiefucker:1,titties:1,tittyfuck:1,tittywank:1,titwank:1,tosser:1,turd:1,tw4t:1,twat:1,twathead:1,twatty:1,twunt:1,twunter:1,v14gra:1,v1gra:1,vagina:1,viagra:1,vulva:1,w00se:1,wang:1,wank:1,wanker:1,wanky:1,whoar:1,whore:1,willies:1,willy:1,xrated:1,xxx:1}},function(e,t){e.exports=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","twat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"]},function(e,t){e.exports=/\b(4r5e|5h1t|5hit|a55|anal|anus|ar5e|arrse|arse|ass|ass-fucker|asses|assfucker|assfukka|asshole|assholes|asswhole|a_s_s|b!tch|b00bs|b17ch|b1tch|ballbag|balls|ballsack|bastard|beastial|beastiality|bellend|bestial|bestiality|bi\+ch|biatch|bitch|bitcher|bitchers|bitches|bitchin|bitching|bloody|blow job|blowjob|blowjobs|boiolas|bollock|bollok|boner|boob|boobs|booobs|boooobs|booooobs|booooooobs|breasts|buceta|bugger|bum|bunny fucker|butt|butthole|buttmuch|buttplug|c0ck|c0cksucker|carpet muncher|cawk|chink|cipa|cl1t|clit|clitoris|clits|cnut|cock|cock-sucker|cockface|cockhead|cockmunch|cockmuncher|cocks|cocksuck|cocksucked|cocksucker|cocksucking|cocksucks|cocksuka|cocksukka|cok|cokmuncher|coksucka|coon|cox|crap|cum|cummer|cumming|cums|cumshot|cunilingus|cunillingus|cunnilingus|cunt|cuntlick|cuntlicker|cuntlicking|cunts|cyalis|cyberfuc|cyberfuck|cyberfucked|cyberfucker|cyberfuckers|cyberfucking|d1ck|damn|dick|dickhead|dildo|dildos|dink|dinks|dirsa|dlck|dog-fucker|doggin|dogging|donkeyribber|doosh|duche|dyke|ejaculate|ejaculated|ejaculates|ejaculating|ejaculatings|ejaculation|ejakulate|f u c k|f u c k e r|f4nny|fag|fagging|faggitt|faggot|faggs|fagot|fagots|fags|fanny|fannyflaps|fannyfucker|fanyy|fatass|fcuk|fcuker|fcuking|feck|fecker|felching|fellate|fellatio|fingerfuck|fingerfucked|fingerfucker|fingerfuckers|fingerfucking|fingerfucks|fistfuck|fistfucked|fistfucker|fistfuckers|fistfucking|fistfuckings|fistfucks|flange|fook|fooker|fuck|fucka|fucked|fucker|fuckers|fuckhead|fuckheads|fuckin|fucking|fuckings|fuckingshitmotherfucker|fuckme|fucks|fuckwhit|fuckwit|fudge packer|fudgepacker|fuk|fuker|fukker|fukkin|fuks|fukwhit|fukwit|fux|fux0r|f_u_c_k|gangbang|gangbanged|gangbangs|gaylord|gaysex|goatse|God|god-dam|god-damned|goddamn|goddamned|hardcoresex|hell|heshe|hoar|hoare|hoer|homo|hore|horniest|horny|hotsex|jack-off|jackoff|jap|jerk-off|jism|jiz|jizm|jizz|kawk|knob|knobead|knobed|knobend|knobhead|knobjocky|knobjokey|kock|kondum|kondums|kum|kummer|kumming|kums|kunilingus|l3i\+ch|l3itch|labia|lust|lusting|m0f0|m0fo|m45terbate|ma5terb8|ma5terbate|masochist|master-bate|masterb8|masterbat*|masterbat3|masterbate|masterbation|masterbations|masturbate|mo-fo|mof0|mofo|mothafuck|mothafucka|mothafuckas|mothafuckaz|mothafucked|mothafucker|mothafuckers|mothafuckin|mothafucking|mothafuckings|mothafucks|mother fucker|motherfuck|motherfucked|motherfucker|motherfuckers|motherfuckin|motherfucking|motherfuckings|motherfuckka|motherfucks|muff|mutha|muthafecker|muthafuckker|muther|mutherfucker|n1gga|n1gger|nazi|nigg3r|nigg4h|nigga|niggah|niggas|niggaz|nigger|niggers|nob|nob jokey|nobhead|nobjocky|nobjokey|numbnuts|nutsack|orgasim|orgasims|orgasm|orgasms|p0rn|pawn|pecker|penis|penisfucker|phonesex|phuck|phuk|phuked|phuking|phukked|phukking|phuks|phuq|pigfucker|pimpis|piss|pissed|pisser|pissers|pisses|pissflaps|pissin|pissing|pissoff|poop|porn|porno|pornography|pornos|prick|pricks|pron|pube|pusse|pussi|pussies|pussy|pussys|rectum|retard|rimjaw|rimming|s hit|s.o.b.|sadist|schlong|screwing|scroat|scrote|scrotum|semen|sex|sh!\+|sh!t|sh1t|shag|shagger|shaggin|shagging|shemale|shi\+|shit|shitdick|shite|shited|shitey|shitfuck|shitfull|shithead|shiting|shitings|shits|shitted|shitter|shitters|shitting|shittings|shitty|skank|slut|sluts|smegma|smut|snatch|son-of-a-bitch|spac|spunk|s_h_i_t|t1tt1e5|t1tties|teets|teez|testical|testicle|tit|titfuck|tits|titt|tittie5|tittiefucker|titties|tittyfuck|tittywank|titwank|tosser|turd|tw4t|twat|twathead|twatty|twunt|twunter|v14gra|v1gra|vagina|viagra|vulva|w00se|wang|wank|wanker|wanky|whoar|whore|willies|willy|xrated|xxx)\b/gi},function(e,t,n){"use strict";n(76);var r=n(1),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(177),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(49))},function(e,t,n){(function(e,t){!function(e){"use strict";if(!e.setImmediate){var n,r=1,o={},i=!1,a=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},n=function(t){e.port2.postMessage(t)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var e=a.documentElement;n=function(t){var n=a.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():n=function(e){setTimeout(c,0,e)},s.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var a={callback:e,args:t};return o[r]=a,n(r),r++},s.clearImmediate=l}function l(e){delete o[e]}function c(e){if(i)setTimeout(c,0,e);else{var t=o[e];if(t){i=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{l(e),i=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n(49),n(82))},function(e,t,n){"use strict";(function(e){var r=n(179),o=n(180),i=n(181);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,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);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,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;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|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return z(U(t,e.length-n),e,n,r)}function O(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return O(e,t,n,r)}function w(e,t,n,r){return z(H(t),e,n,r)}function j(e,t,n,r){return z(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2: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,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}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!==e.TYPED_ARRAY_SUPPORT?e.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(t){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},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,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},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 n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},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 n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},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="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),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,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function A(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,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(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},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,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},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 n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},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,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(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,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(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,n){return e=+e,t|=0,n||I(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,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(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,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(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,n){return e=+e,t|=0,n||I(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,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:U(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(49))},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+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=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?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?p/l:p*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[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,s=60114,l=60109,c=60110,u=60112,d=60113,p=60120,f=60115,h=60116,m=60121,g=60122,b=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;r=x("react.element"),o=x("react.portal"),i=x("react.fragment"),a=x("react.strict_mode"),s=x("react.profiler"),l=x("react.provider"),c=x("react.context"),u=x("react.forward_ref"),d=x("react.suspense"),p=x("react.suspense_list"),f=x("react.memo"),h=x("react.lazy"),m=x("react.block"),g=x("react.server.block"),b=x("react.fundamental"),v=x("react.debug_trace_mode"),y=x("react.legacy_hidden")}function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case h:case f:case l:return e;default:return t}}case o:return t}}}var E=l,w=r,j=u,S=i,T=h,k=f,C=o,_=s,N=a,A=d;t.ContextConsumer=c,t.ContextProvider=E,t.Element=w,t.ForwardRef=j,t.Fragment=S,t.Lazy=T,t.Memo=k,t.Portal=C,t.Profiler=_,t.StrictMode=N,t.Suspense=A,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===u},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===h},t.isMemo=function(e){return O(e)===f},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===v||e===a||e===d||e===p||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===b||e.$$typeof===m||e[0]===g)},t.typeOf=O},function(e,t,n){"use strict";e.exports=n(184)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case b:case g:case c:return e;default:return t}}case i:return t}}}function w(e){return E(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||E(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===l||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===O||e.$$typeof===v)},t.typeOf=E},function(e,t,n){"use strict";var r=n(186);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){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 n={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 n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(189)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case b:case g:case c:return e;default:return t}}case i:return t}}}function w(e){return E(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||E(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===p||e===l||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===O||e.$$typeof===v)},t.typeOf=E},function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/pattern-dots.dba411dc.svg"},function(e,t,n){},function(e,t,n){"use strict";var r,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case a:case l:case s:case f:case h:return e;default:switch(e=e&&e.$$typeof){case d:case u:case p:case g:case m:case c:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===l},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===l||e===s||e===f||e===h||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=v},function(e,t,n){},function(e,t,n){"use strict";e.exports=s;var r=n(195),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"===typeof t&&"function"!==typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},function(e,t,n){"use strict";e.exports=l;var r=n(196),o=n(197),i=!0,a="skip",s=!1;function l(e,t,n,l){var c,u;"function"===typeof t&&"function"!==typeof n&&(l=n,n=t,t=null),u=r(t),c=l?-1:1,function e(r,d,p){var f,h="object"===typeof r&&null!==r?r:{};"string"===typeof h.type&&(f="string"===typeof h.tagName?h.tagName:"string"===typeof h.name?h.name:void 0,m.displayName="node ("+o(h.type+(f?"<"+f+">":""))+")");return m;function m(){var o,f,h=p.concat(r),m=[];if((!t||u(r,d,p[p.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[i,e];return[e]}(n(r,p)),m[0]===s))return m;if(r.children&&m[0]!==a)for(f=(l?r.children.length:-1)+c;f>-1&&f<r.children.length;){if((o=e(r.children[f],f,h)())[0]===s)return o;f="number"===typeof o[1]?o[1]:f+c}return m}}(e,null,[])()}l.CONTINUE=i,l.SKIP=a,l.EXIT=s},function(e,t,n){"use strict";function r(e){if(null==e)return o;if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"===typeof e)return"length"in e?function(e){var t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return o;function o(){for(var e=-1;++e<t.length;)if(t[e].apply(this,arguments))return!0;return!1}}(e):function(e){return t;function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function o(){return!0}e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";function r(e){return"text"===e.type?e.value:e.children?o(e):""}function o(e){for(var t=e.children,n=t.length,o=-1,i=[];++o<n;)i[o]=r(t[o]);return i.join("")}e.exports=function(e){if("children"in e)return o(e);return"value"in e?e.value:""}},function(e,t,n){"use strict";var r=n(200);e.exports=r,r.register(n(229)),r.register(n(230)),r.register(n(231)),r.register(n(232)),r.register(n(233)),r.register(n(234)),r.register(n(235)),r.register(n(236)),r.register(n(237)),r.register(n(238)),r.register(n(239)),r.register(n(240)),r.register(n(241)),r.register(n(242)),r.register(n(243)),r.register(n(244)),r.register(n(245)),r.register(n(246)),r.register(n(247)),r.register(n(248)),r.register(n(249)),r.register(n(250)),r.register(n(133)),r.register(n(134)),r.register(n(251)),r.register(n(252)),r.register(n(253)),r.register(n(254)),r.register(n(255)),r.register(n(256)),r.register(n(257)),r.register(n(258)),r.register(n(259)),r.register(n(260)),r.register(n(64)),r.register(n(261)),r.register(n(262)),r.register(n(263)),r.register(n(264)),r.register(n(265)),r.register(n(266)),r.register(n(267)),r.register(n(268)),r.register(n(269)),r.register(n(105)),r.register(n(270)),r.register(n(83)),r.register(n(271)),r.register(n(272)),r.register(n(273)),r.register(n(274)),r.register(n(275)),r.register(n(276)),r.register(n(277)),r.register(n(278)),r.register(n(279)),r.register(n(280)),r.register(n(281)),r.register(n(282)),r.register(n(283)),r.register(n(284)),r.register(n(285)),r.register(n(286)),r.register(n(287)),r.register(n(288)),r.register(n(289)),r.register(n(290)),r.register(n(291)),r.register(n(292)),r.register(n(293)),r.register(n(294)),r.register(n(295)),r.register(n(296)),r.register(n(297)),r.register(n(298)),r.register(n(299)),r.register(n(300)),r.register(n(301)),r.register(n(302)),r.register(n(303)),r.register(n(304)),r.register(n(305)),r.register(n(306)),r.register(n(307)),r.register(n(308)),r.register(n(309)),r.register(n(310)),r.register(n(311)),r.register(n(312)),r.register(n(313)),r.register(n(314)),r.register(n(315)),r.register(n(316)),r.register(n(317)),r.register(n(106)),r.register(n(318)),r.register(n(319)),r.register(n(320)),r.register(n(321)),r.register(n(322)),r.register(n(323)),r.register(n(324)),r.register(n(325)),r.register(n(326)),r.register(n(327)),r.register(n(328)),r.register(n(329)),r.register(n(330)),r.register(n(331)),r.register(n(332)),r.register(n(333)),r.register(n(334)),r.register(n(107)),r.register(n(335)),r.register(n(85)),r.register(n(336)),r.register(n(337)),r.register(n(338)),r.register(n(339)),r.register(n(340)),r.register(n(341)),r.register(n(342)),r.register(n(109)),r.register(n(343)),r.register(n(344)),r.register(n(345)),r.register(n(136)),r.register(n(346)),r.register(n(347)),r.register(n(348)),r.register(n(349)),r.register(n(350)),r.register(n(351)),r.register(n(352)),r.register(n(353)),r.register(n(354)),r.register(n(355)),r.register(n(356)),r.register(n(357)),r.register(n(358)),r.register(n(359)),r.register(n(360)),r.register(n(361)),r.register(n(135)),r.register(n(362)),r.register(n(363)),r.register(n(364)),r.register(n(42)),r.register(n(365)),r.register(n(366)),r.register(n(367)),r.register(n(368)),r.register(n(369)),r.register(n(370)),r.register(n(371)),r.register(n(372)),r.register(n(373)),r.register(n(374)),r.register(n(375)),r.register(n(376)),r.register(n(377)),r.register(n(378)),r.register(n(379)),r.register(n(380)),r.register(n(381)),r.register(n(382)),r.register(n(383)),r.register(n(384)),r.register(n(385)),r.register(n(386)),r.register(n(387)),r.register(n(388)),r.register(n(389)),r.register(n(390)),r.register(n(391)),r.register(n(392)),r.register(n(393)),r.register(n(394)),r.register(n(395)),r.register(n(396)),r.register(n(86)),r.register(n(397)),r.register(n(398)),r.register(n(399)),r.register(n(400)),r.register(n(401)),r.register(n(402)),r.register(n(403)),r.register(n(404)),r.register(n(405)),r.register(n(406)),r.register(n(407)),r.register(n(408)),r.register(n(409)),r.register(n(410)),r.register(n(411)),r.register(n(412)),r.register(n(413)),r.register(n(414)),r.register(n(415)),r.register(n(416)),r.register(n(417)),r.register(n(418)),r.register(n(419)),r.register(n(420)),r.register(n(421)),r.register(n(422)),r.register(n(423)),r.register(n(424)),r.register(n(425)),r.register(n(426)),r.register(n(84)),r.register(n(427)),r.register(n(428)),r.register(n(429)),r.register(n(430)),r.register(n(110)),r.register(n(431)),r.register(n(432)),r.register(n(433)),r.register(n(434)),r.register(n(435)),r.register(n(436)),r.register(n(437)),r.register(n(438)),r.register(n(439)),r.register(n(440)),r.register(n(441)),r.register(n(442)),r.register(n(104)),r.register(n(443)),r.register(n(444)),r.register(n(445)),r.register(n(446)),r.register(n(447)),r.register(n(448)),r.register(n(111)),r.register(n(449)),r.register(n(450)),r.register(n(451)),r.register(n(452)),r.register(n(453)),r.register(n(454)),r.register(n(455)),r.register(n(456)),r.register(n(137)),r.register(n(457)),r.register(n(108)),r.register(n(458)),r.register(n(459)),r.register(n(460)),r.register(n(461)),r.register(n(462)),r.register(n(463)),r.register(n(138)),r.register(n(464)),r.register(n(465)),r.register(n(466)),r.register(n(467)),r.register(n(468)),r.register(n(469)),r.register(n(470)),r.register(n(471)),r.register(n(472)),r.register(n(473)),r.register(n(474)),r.register(n(475)),r.register(n(476)),r.register(n(477)),r.register(n(478)),r.register(n(139)),r.register(n(479)),r.register(n(480))},function(e,t,n){"use strict";(function(t){var r="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof t?t:{},o=function(){var e="Prism"in r,t=e?r.Prism:void 0;return function(){e?r.Prism=t:delete r.Prism;e=void 0,t=void 0}}();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var i=n(201),a=n(217),s=n(224),l=n(225),c=n(226),u=n(227),d=n(228);o();var p={}.hasOwnProperty;function f(){}f.prototype=s;var h=new f;function m(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}e.exports=h,h.highlight=function(e,t){var n,r=s.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(h.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=h.languages[t]}return r.call(this,e,n,t)},h.register=m,h.alias=function(e,t){var n,r,o,i,a=h.languages,s=e;t&&((s={})[e]=t);for(n in s)for(o=(r="string"===typeof(r=s[n])?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},h.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(h.languages,e)},h.listLanguages=function(){var e,t=h.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},m(l),m(c),m(u),m(d),h.util.encode=function(e){return e},h.Token.stringify=function(e,t,n){var r;if("string"===typeof e)return{type:"text",value:e};if("Array"===h.util.type(e))return function(e,t){var n,r=[],o=e.length,i=-1;for(;++i<o;)""!==(n=e[i])&&null!==n&&void 0!==n&&r.push(n);i=-1,o=r.length;for(;++i<o;)n=r[i],r[i]=h.Token.stringify(n,t,r);return r}(e,t);r={type:e.type,content:h.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias));return h.hooks.run("wrap",r),i(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=a(e[t]);return e}(r.attributes),r.content)}}).call(this,n(49))},function(e,t,n){"use strict";e.exports=n(202)},function(e,t,n){"use strict";var r=n(203),o=n(212)(r,"div");o.displayName="html",e.exports=o},function(e,t,n){"use strict";var r=n(204),o=n(206),i=n(207),a=n(208),s=n(210),l=n(211);e.exports=r([i,o,a,s,l])},function(e,t,n){"use strict";var r=n(205),o=n(128);e.exports=function(e){var t,n,i=e.length,a=[],s=[],l=-1;for(;++l<i;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,s),n)}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";var r=n(75);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},function(e,t,n){"use strict";var r=n(75);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},function(e,t,n){"use strict";var r=n(75),o=n(131);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},function(e,t,n){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},function(e,t,n){"use strict";var r=n(103),o=n(75),i=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},function(e,t,n){"use strict";var r=n(103),o=n(75),i=n(131),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},function(e,t,n){"use strict";var r=n(213),o=n(102),i=n(214),a=n(215).parse,s=n(216).parse;e.exports=function(e,t,n){var o=n?function(e){var t,n=e.length,r=-1,o={};for(;++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(n):null;return function(e,n){var r,a=i(e,t),s=Array.prototype.slice.call(arguments,2),u=a.tagName.toLowerCase();a.tagName=o&&l.call(o,u)?o[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)d(a.properties,r,n[r]);c(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function d(t,n,o){var i,l,c;null!==o&&void 0!==o&&o===o&&(l=(i=r(e,n)).property,"string"===typeof(c=o)&&(i.spaceSeparated?c=a(c):i.commaSeparated?c=s(c):i.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===l&&"string"!==typeof o&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===l&&t.className&&(c=t.className.concat(c)),t[l]=function(e,t,n){var r,o,i;if("object"!==typeof n||!("length"in n))return u(e,t,n);o=n.length,r=-1,i=[];for(;++r<o;)i[r]=u(e,t,n[r]);return i}(i,l,c))}};var l={}.hasOwnProperty;function c(e,t){var n,r;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof r||""!==r&&o(n)!==o(t)||(r=!0)),r}},function(e,t,n){"use strict";var r=n(102),o=n(129),i=n(130),a="data";e.exports=function(e,t){var n=r(t),p=t,f=i;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(l,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(l.test(t))return e;t=t.replace(c,u),"-"!==t.charAt(0)&&(t="-"+t);return a+t}(t),f=o);return new f(p,t)};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,i,a=e||"",s=t||"div",l={},c=0;for(;c<a.length;)r.lastIndex=c,i=r.exec(a),(n=a.slice(c,i?i.index:a.length))&&(o?"#"===o?l.id=n:l.className?l.className.push(n):l.className=[n]:s=n,c+=n.length),i&&(o=i[0],c++);return{type:"element",tagName:s,properties:l,children:[]}};var r=/[#.]/g},function(e,t,n){"use strict";t.parse=function(e){var t=String(e||r).trim();return t===r?[]:t.split(i)},t.stringify=function(e){return e.join(o).trim()};var r="",o=" ",i=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";t.parse=function(e){var t,n=[],o=String(e||i),a=o.indexOf(r),s=0,l=!1;for(;!l;)-1===a&&(a=o.length,l=!0),!(t=o.slice(s,a).trim())&&l||n.push(t),s=a+1,a=o.indexOf(r,s);return n},t.stringify=function(e,t){var n=t||{},a=!1===n.padLeft?i:o,s=n.padRight?o:i;e[e.length-1]===i&&(e=e.concat(i));return e.join(s+r+a).trim()};var r=",",o=" ",i=""},function(e,t,n){"use strict";var r=n(218),o=n(219),i=n(132),a=n(220),s=n(221),l=n(223);e.exports=function(e,t){var n,i,a={};t||(t={});for(i in p)n=t[i],a[i]=null===n||void 0===n?p[i]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,i,a,p,B,U,H,z,G,W,V,q,K,Y,X,Z,Q,J,ee,te=t.additional,ne=t.nonTerminated,re=t.text,oe=t.reference,ie=t.warning,ae=t.textContext,se=t.referenceContext,le=t.warningContext,ce=t.position,ue=t.indent||[],de=e.length,pe=0,fe=-1,he=ce.column||1,me=ce.line||1,ge="",be=[];"string"===typeof te&&(te=te.charCodeAt(0));Z=ve(),z=ie?ye:d,pe--,de++;for(;++pe<de;)if(B===h&&(he=ue[fe]||1),(B=e.charCodeAt(pe))===b){if((H=e.charCodeAt(pe+1))===f||H===h||H===m||H===g||H===b||H===y||H!==H||te&&H===te){ge+=u(B),he++;continue}for(q=K=pe+1,ee=K,H===O?(ee=++q,(H=e.charCodeAt(ee))===E||H===w?(Y=T,ee=++q):Y=k):Y=S,n="",V="",p="",X=_[Y],ee--;++ee<de&&X(H=e.charCodeAt(ee));)p+=u(H),Y===S&&c.call(r,p)&&(n=p,V=r[p]);(a=e.charCodeAt(ee)===v)&&(ee++,(i=Y===S&&l(p))&&(n=p,V=i)),J=1+ee-K,(a||ne)&&(p?Y===S?(a&&!V?z(P,1):(n!==p&&(J=1+(ee=q+n.length)-q,a=!1),a||(G=n?N:R,t.attribute?(H=e.charCodeAt(ee))===x?(z(G,J),V=null):s(H)?V=null:z(G,J):z(G,J))),U=V):(a||z(A,J),F(U=parseInt(p,C[Y]))?(z(L,J),U=u(j)):U in o?(z(D,J),U=o[U]):(W="",$(U)&&z(D,J),U>65535&&(W+=u((U-=65536)>>>10|55296),U=56320|1023&U),U=W+u(U))):Y!==S&&z(I,J)),U?(xe(),Z=ve(),pe=ee-1,he+=ee-K+1,be.push(U),(Q=ve()).offset++,oe&&oe.call(se,U,{start:Z,end:Q},e.slice(K-1,ee)),Z=Q):(p=e.slice(K-1,ee),ge+=p,he+=p.length,pe=ee-1)}else 10===B&&(me++,fe++,he=0),B===B?(ge+=u(B),he++):xe();return be.join("");function ve(){return{line:me,column:he,offset:pe+(ce.offset||0)}}function ye(e,t){var n=ve();n.column+=t,n.offset+=t,ie.call(le,M[e],n,e)}function xe(){ge&&(be.push(ge),re&&re.call(ae,ge,{start:Z,end:ve()}),ge="")}}(e,a)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,h=10,m=12,g=32,b=38,v=59,y=60,x=61,O=35,E=88,w=120,j=65533,S="named",T="hexadecimal",k="decimal",C={};C[T]=16,C[k]=10;var _={};_[S]=s,_[k]=i,_[T]=a;var N=1,A=2,R=3,I=4,P=5,D=6,L=7,M={};function F(e){return e>=55296&&e<=57343||e>1114111}function $(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}M[N]="Named character references must be terminated by a semicolon",M[A]="Numeric character references must be terminated by a semicolon",M[R]="Named character references cannot be empty",M[I]="Numeric character references cannot be empty",M[P]="Named character references must be known",M[D]="Numeric character references cannot be disallowed",M[L]="Numeric character references cannot be outside the permissible Unicode range"},function(e){e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},function(e){e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},function(e,t,n){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e,t,n){"use strict";var r=n(222),o=n(132);e.exports=function(e){return r(e)||o(e)}},function(e,t,n){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){(function(t){var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=o.util.type(l);"Object"!==c||i[a(l)]?"Array"!==c||i[a(l)]||(i[a(l)]=!0,e(l,n,s,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,i);var l={element:t,language:i,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),r&&r.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(r&&r.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return c(o,o.head,e),s(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var m=f[h],g=m.inside,b=!!m.lookbehind,v=!!m.greedy,y=m.alias;if(v&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var O=m.pattern||m,E=r.next,w=l;E!==t.tail&&!(d&&w>=d.reach);w+=E.value.length,E=E.next){var j=E.value;if(t.length>e.length)return;if(!(j instanceof i)){var S,T=1;if(v){if(!(S=a(O,w,e,b))||S.index>=e.length)break;var k=S.index,C=S.index+S[0].length,_=w;for(_+=E.value.length;k>=_;)_+=(E=E.next).value.length;if(w=_-=E.value.length,E.value instanceof i)continue;for(var N=E;N!==t.tail&&(_<C||"string"===typeof N.value);N=N.next)T++,_+=N.value.length;T--,j=e.slice(w,_),S.index-=w}else if(!(S=a(O,0,j,b)))continue;k=S.index;var A=S[0],R=j.slice(0,k),I=j.slice(k+A.length),P=w+j.length;d&&P>d.reach&&(d.reach=P);var D=E.prev;if(R&&(D=c(t,D,R),w+=R.length),u(t,D,T),E=c(t,D,new i(p,g?o.tokenize(A,g):A,y,A)),I&&c(t,E,I),T>1){var L={cause:p+","+h,reach:P};s(e,t,n,E.prev,w,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function p(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return o}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),"undefined"!==typeof t&&(t.Prism=n)}).call(this,n(49))},function(e,t,n){"use strict";function r(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=r,r.displayName="css",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="clike",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=r,r.displayName="javascript",r.aliases=["js"]},function(e,t,n){"use strict";function r(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}e.exports=r,r.displayName="abap",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}(e)}e.exports=r,r.displayName="abnf",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=r,r.displayName="actionscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}e.exports=r,r.displayName="ada",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}\u2983\u2984.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:\u2200\u2192\u03bb\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}(e)}e.exports=r,r.displayName="agda",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}e.exports=r,r.displayName="al",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}e.exports=r,r.displayName="antlr4",r.aliases=["g4"]},function(e,t,n){"use strict";function r(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}e.exports=r,r.displayName="apacheconf",r.aliases=[]},function(e,t,n){"use strict";var r=n(104);function o(e){e.register(r),function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,(function(){return t.source}));function r(e){return RegExp(e.replace(/<CLASS-NAME>/g,(function(){return n})),"i")}var o={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:r(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:o},{pattern:r(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:r(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}e.exports=o,o.displayName="apex",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.apl={comment:/(?:\u235d|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/\xaf?(?:\d*\.?\b\d+(?:e[+\xaf]?\d+)?|\xaf|\u221e)(?:j\xaf?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+\xaf]?\d+)?|\xaf|\u221e))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/\u2395[A-Z]+/i,alias:"function"},constant:/[\u236c\u233e#\u2395\u235e]/,function:/[-+\xd7\xf7\u2308\u230a\u2223|\u2373\u2378?*\u235f\u25cb!\u2339<\u2264=>\u2265\u2260\u2261\u2262\u220a\u2377\u222a\u2229~\u2228\u2227\u2371\u2372\u2374,\u236a\u233d\u2296\u2349\u2191\u2193\u2282\u2283\u2286\u2287\u2337\u234b\u2352\u22a4\u22a5\u2355\u234e\u22a3\u22a2\u2341\u2342\u2248\u236f\u2197\xa4\u2192]/,"monadic-operator":{pattern:/[\\\/\u233f\u2340\xa8\u2368\u2336&\u2225]/,alias:"operator"},"dyadic-operator":{pattern:/[.\u2363\u2360\u2364\u2218\u2338@\u233a\u2365]/,alias:"operator"},assignment:{pattern:/\u2190/,alias:"keyword"},punctuation:/[\[;\]()\u25c7\u22c4]/,dfn:{pattern:/[{}\u237a\u2375\u2376\u2379\u2207\u236b:]/,alias:"builtin"}}}e.exports=r,r.displayName="apl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=\u2260\u2264\u2265*+\-\/\xf7^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,\xac\xab\xbb\u300a\u300b]/}}e.exports=r,r.displayName="applescript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'\xb4`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([\xb4`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}e.exports=r,r.displayName="aql",r.aliases=[]},function(e,t,n){"use strict";var r=n(105);function o(e){e.register(r),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}e.exports=o,o.displayName="arduino",o.aliases=["ino"]},function(e,t,n){"use strict";function r(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=r,r.displayName="arff",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){for(var t={},r=0,o=(e=e.split(" ")).length;r<o;r++)t[e[r]]=n[e[r]];return t}t.inside.interpreted.inside.rest=r("macro inline replacement entity"),n["passthrough-block"].inside.rest=r("macro"),n["literal-block"].inside.rest=r("callout"),n.table.inside.rest=r("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=r("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=r("macro inline replacement entity"),e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),e.languages.adoc=e.languages.asciidoc}(e)}e.exports=r,r.displayName="asciidoc",r.aliases=["adoc"]},function(e,t,n){"use strict";function r(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}e.exports=r,r.displayName="asm6502",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}e.exports=r,r.displayName="asmatmel",r.aliases=[]},function(e,t,n){"use strict";var r=n(83);function o(e){e.register(r),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=o,o.displayName="aspnet",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}e.exports=r,r.displayName="autohotkey",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}e.exports=r,r.displayName="autoit",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t,n){return RegExp(function(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return t[+n]}))}(e,t),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}e.exports=r,r.displayName="avisynth",r.aliases=["avs"]},function(e,t,n){"use strict";function r(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=r,r.displayName="avroIdl",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:t,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:t,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(e)}e.exports=r,r.displayName="batch",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}e.exports=r,r.displayName="bbcode",r.aliases=["shortcode"]},function(e,t,n){"use strict";function r(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=r,r.displayName="bicep",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=r,r.displayName="birb",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}e.exports=o,o.displayName="bison",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}e.exports=r,r.displayName="bnf",r.aliases=["rbnf"]},function(e,t,n){"use strict";function r(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=r,r.displayName="brainfuck",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=r,r.displayName="brightscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="bro",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\u043f\u043e\u043a\u0430|\u0434\u043b\u044f|\u043d\u043e\u0432\u044b\u0439|\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c|\u043f\u043e\u043f\u044b\u0442\u043a\u0430|\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435|\u0438\u043d\u0430\u0447\u0435|\u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438|\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e|\u0444\u0443\u043d\u043a\u0446\u0438\u044f|\u043f\u0435\u0440\u0435\u043c|\u0432\u043e\u0437\u0432\u0440\u0430\u0442|\u043a\u043e\u043d\u0435\u0446\u0444\u0443\u043d\u043a\u0446\u0438\u0438|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438|\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430|\u043a\u043e\u043d\u0435\u0446\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b|\u0442\u043e\u0433\u0434\u0430|\u0437\u043d\u0430\u0447|\u044d\u043a\u0441\u043f\u043e\u0440\u0442|\u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438|\u0438\u0437|\u043a\u0430\u0436\u0434\u043e\u0433\u043e|\u0438\u0441\u0442\u0438\u043d\u0430|\u043b\u043e\u0436\u044c|\u043f\u043e|\u0446\u0438\u043a\u043b|\u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430|\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}e.exports=r,r.displayName="bsl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=r,r.displayName="cfscript",r.aliases=[]},function(e,t,n){"use strict";var r=n(105);function o(e){e.register(r),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}e.exports=o,o.displayName="chaiscript",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}e.exports=r,r.displayName="cil",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}e.exports=r,r.displayName="clojure",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}e.exports=r,r.displayName="cmake",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}e.exports=r,r.displayName="cobol",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(e)}e.exports=r,r.displayName="coffeescript",r.aliases=["coffee"]},function(e,t,n){"use strict";function r(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=r,r.displayName="concurnas",r.aliases=["conc"]},function(e,t,n){"use strict";function r(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,(function(){return t}))),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=r,r.displayName="coq",r.aliases=[]},function(e,t,n){"use strict";var r=n(84);function o(e){e.register(r),function(e){e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}e.exports=o,o.displayName="crystal",o.aliases=[]},function(e,t,n){"use strict";var r=n(83);function o(e){e.register(r),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var o=0;o<r;o++)e=e.replace(/<self>/g,(function(){return"(?:"+e+")"}));return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+t+")")}var o=r(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),i=r(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),a=r(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),s=r(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+c+"|"+r(/<\1/.source+l+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+c+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+c+")";e.languages.cshtml=e.languages.extend("markup",{});var d={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(u),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[a,/(?:code|functions)\s*/.source+a,/(?:for|foreach|lock|switch|using|while)\s*/.source+o+/\s*/.source+a,/do\s*/.source+a+/\s*while\s*/.source+o+/(?:\s*;)?/.source,/try\s*/.source+a+/\s*catch\s*/.source+o+/\s*/.source+a+/\s*finally\s*/.source+a,/if\s*/.source+o+/\s*/.source+a+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+o+")?"+/\s*/.source+a+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:d}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:d}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|"+o+"|"+i+"|"+s+o+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:d}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}e.exports=o,o.displayName="cshtml",o.aliases=["razor"]},function(e,t,n){"use strict";function r(e){!function(e){function t(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:t(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:t(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:t(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:t(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:t(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:t(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:t(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}(e)}e.exports=r,r.displayName="csp",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(e)}e.exports=r,r.displayName="cssExtras",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=r,r.displayName="csv",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}e.exports=r,r.displayName="cypher",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}e.exports=r,r.displayName="d",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}e.exports=r,r.displayName="dart",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}(e)}e.exports=r,r.displayName="dataweave",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}e.exports=r,r.displayName="dax",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=r,r.displayName="dhall",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(e)}e.exports=r,r.displayName="diff",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"];e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"django",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"django")})),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"jinja2",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"jinja2")}))}(e)}e.exports=o,o.displayName="django",o.aliases=["jinja2"]},function(e,t,n){"use strict";function r(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=r,r.displayName="dnsZoneFile",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(/<OPT>/g,(function(){return o})).replace(/<SP>/g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(e)}e.exports=r,r.displayName="docker",r.aliases=["dockerfile"]},function(e,t,n){"use strict";function r(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(/<ID>/g,(function(){return t})),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=r,r.displayName="dot",r.aliases=["gv"]},function(e,t,n){"use strict";function r(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}e.exports=r,r.displayName="ebnf",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}e.exports=r,r.displayName="editorconfig",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=r,r.displayName="eiffel",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")})),e.languages.eta=e.languages.ejs}(e)}e.exports=o,o.displayName="ejs",o.aliases=["eta"]},function(e,t,n){"use strict";function r(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach((function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}}))}e.exports=r,r.displayName="elixir",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}e.exports=r,r.displayName="elm",r.aliases=[]},function(e,t,n){"use strict";var r=n(84),o=n(42);function i(e){e.register(r),e.register(o),function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")}))}(e)}e.exports=i,i.displayName="erb",i.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=r,r.displayName="erlang",r.aliases=[]},function(e,t,n){"use strict";var r=n(135),o=n(42);function i(e){e.register(r),e.register(o),function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")}))}(e)}e.exports=i,i.displayName="etlua",i.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=r,r.displayName="excelFormula",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},n={number:/\\[^\s']|%\w/},r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:n.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},o=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(e){return new RegExp("(^|\\s)(?:"+e.map(o).join("|")+")(?=\\s|$)")},a={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(a).forEach((function(e){r[e].pattern=i(a[e])}));r.combinators.pattern=i(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"]),e.languages.factor=r}(e)}e.exports=r,r.displayName="factor",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~\xdf\xf8]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO\xae]/,alias:"bold"}}}(e)}e.exports=r,r.displayName="$false",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}e.exports=r,r.displayName="firestoreSecurityRules",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}e.exports=r,r.displayName="flow",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}e.exports=r,r.displayName="fortran",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}e.exports=r,r.displayName="fsharp",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){for(var t=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(/<expr>/g,(function(){return t}));t=t.replace(/<expr>/g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,(function(){return t}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,(function(){return t}))),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",(function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,(function(){return t})),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")}))}(e)}e.exports=o,o.displayName="ftl",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}e.exports=r,r.displayName="gap",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}e.exports=r,r.displayName="gcode",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}e.exports=r,r.displayName="gdscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}e.exports=r,r.displayName="gedcom",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Caracter\xedstica|Egenskab|Egenskap|Eiginleiki|Feature|F\u012b\u010da|Fitur|Fonctionnalit\xe9|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Func\u0163ionalitate|Func\u021bionalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalit\u0101te|Funkcionalnost|Funkcja|Funksie|Funktionalit\xe4t|Funktionalit\xe9it|Funzionalit\xe0|Hwaet|Hw\xe6t|Jellemz\u0151|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogu\u0107nost|Moznosti|Mo\u017enosti|OH HAI|Omadus|Ominaisuus|Osobina|\xd6zellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Po\u017eadavek|Po\u017eiadavka|Pretty much|Qap|Qu'meH 'ut|Savyb\u0117|T\xednh n\u0103ng|Trajto|Vermo\xeb|Vlastnos\u0165|W\u0142a\u015bciwo\u015b\u0107|Zna\u010dilnost|\u0394\u03c5\u03bd\u03b1\u03c4\u03cc\u03c4\u03b7\u03c4\u03b1|\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1|\u041c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442|\u041c\u04e9\u043c\u043a\u0438\u043d\u043b\u0435\u043a|\u041e\u0441\u043e\u0431\u0438\u043d\u0430|\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e|\u04ae\u0437\u0435\u043d\u0447\u04d9\u043b\u0435\u043a\u043b\u0435\u043b\u0435\u043a|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442|\u0424\u0443\u043d\u043a\u0446\u0438\u044f|\u0424\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b|\u05ea\u05db\u05d5\u05e0\u05d4|\u062e\u0627\u0635\u064a\u0629|\u062e\u0635\u0648\u0635\u06cc\u062a|\u0635\u0644\u0627\u062d\u06cc\u062a|\u06a9\u0627\u0631\u0648\u0628\u0627\u0631 \u06a9\u06cc \u0636\u0631\u0648\u0631\u062a|\u0648\u0650\u06cc\u0698\u06af\u06cc|\u0930\u0942\u092a \u0932\u0947\u0916|\u0a16\u0a3e\u0a38\u0a40\u0a05\u0a24|\u0a28\u0a15\u0a36 \u0a28\u0a41\u0a39\u0a3e\u0a30|\u0a2e\u0a41\u0a39\u0a3e\u0a02\u0a26\u0a30\u0a3e|\u0c17\u0c41\u0c23\u0c2e\u0c41|\u0cb9\u0cc6\u0c9a\u0ccd\u0c9a\u0cb3|\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e32\u0e07\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08|\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16|\u0e42\u0e04\u0e23\u0e07\u0e2b\u0e25\u0e31\u0e01|\uae30\ub2a5|\u30d5\u30a3\u30fc\u30c1\u30e3|\u529f\u80fd|\u6a5f\u80fd):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|\xc6r|Agtergrond|All y'all|Antecedentes|Antecedents|Atbur\xf0ar\xe1s|Atbur\xf0ar\xe1sir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|B\u1ed1i c\u1ea3nh|Cefndir|Cenario|Cen\xe1rio|Cenario de Fundo|Cen\xe1rio de Fundo|Cenarios|Cen\xe1rios|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|D\xe6mi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delinea\xe7\xe3o do Cen\xe1rio|Dis is what went down|D\u1eef li\u1ec7u|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cen\xe1rio|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgat\xf3k\xf6nyv|Forgat\xf3k\xf6nyv v\xe1zlat|Fundo|Ge\xe7mi\u015f|Grundlage|Hannergrond|ghantoH|H\xe1tt\xe9r|Heave to|Istorik|Juhtumid|Keadaan|Khung k\u1ecbch b\u1ea3n|Khung t\xecnh hu\u1ed1ng|K\u1ecbch b\u1ea3n|Koncept|Konsep skenario|Kont\xe8ks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|L\xfdsing Atbur\xf0ar\xe1sar|L\xfdsing D\xe6ma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|N\xe1\u010drt Scen\xe1ra|N\xe1\u010drt Sc\xe9n\xe1\u0159e|N\xe1\u010drt Scen\xe1ru|Oris scenarija|\xd6rnekler|Osnova|Osnova Scen\xe1ra|Osnova sc\xe9n\xe1\u0159e|Osnutek|Ozadje|Paraugs|Pavyzd\u017eiai|P\xe9ld\xe1k|Piem\u0113ri|Plan du sc\xe9nario|Plan du Sc\xe9nario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozad\xed|Pozadie|Pozadina|Pr\xedklady|P\u0159\xedklady|Primer|Primeri|Primjeri|Przyk\u0142ady|Raamstsenaarium|Reckon it's like|Rerefons|Scen\xe1r|Sc\xe9n\xe1\u0159|Scenarie|Scenarij|Scenarijai|Scenarijaus \u0161ablonas|Scenariji|Scen\u0101rijs|Scen\u0101rijs p\u0113c parauga|Scenarijus|Scenario|Sc\xe9nario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se \xf0e|Se the|Se \xfee|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo tasla\u011f\u0131|Shiver me timbers|Situ\u0101cija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structur\u0103 scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hw\xe6r swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|T\xecnh hu\u1ed1ng|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Za\u0142o\u017cenia|\u03a0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1|\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae \u03a3\u03b5\u03bd\u03b1\u03c1\u03af\u03bf\u03c5|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03b1|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03bf|\u03a5\u03c0\u03cc\u03b2\u03b1\u03b8\u03c1\u03bf|\u041a\u0435\u0440\u0435\u0448|\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442|\u041a\u043e\u043d\u0446\u0435\u043f\u0442|\u041c\u0438\u0441\u0430\u043b\u043b\u0430\u0440|\u041c\u0438\u0441\u043e\u043b\u043b\u0430\u0440|\u041e\u0441\u043d\u043e\u0432\u0430|\u041f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0430|\u041f\u043e\u0437\u0430\u0434\u0438\u043d\u0430|\u041f\u0440\u0435\u0434\u0438\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438|\u041f\u0440\u0438\u043c\u0435\u0440|\u041f\u0440\u0438\u043c\u0435\u0440\u0438|\u041f\u0440\u0438\u043c\u0435\u0440\u044b|\u0420\u0430\u043c\u043a\u0430 \u043d\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u043a\u0438\u0446\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0430|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0441\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u043d\u044b\u04a3 \u0442\u04e9\u0437\u0435\u043b\u0435\u0448\u0435|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0438|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u043e|\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439|\u0422\u0430\u0440\u0438\u0445|\u04ae\u0440\u043d\u04d9\u043a\u043b\u04d9\u0440|\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea|\u05e8\u05e7\u05e2|\u05ea\u05d1\u05e0\u05d9\u05ea \u05ea\u05e8\u05d7\u05d9\u05e9|\u05ea\u05e8\u05d7\u05d9\u05e9|\u0627\u0644\u062e\u0644\u0641\u064a\u0629|\u0627\u0644\u06af\u0648\u06cc \u0633\u0646\u0627\u0631\u06cc\u0648|\u0627\u0645\u062b\u0644\u0629|\u067e\u0633 \u0645\u0646\u0638\u0631|\u0632\u0645\u06cc\u0646\u0647|\u0633\u0646\u0627\u0631\u06cc\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648|\u0633\u064a\u0646\u0627\u0631\u064a\u0648 \u0645\u062e\u0637\u0637|\u0645\u062b\u0627\u0644\u06cc\u06ba|\u0645\u0646\u0638\u0631 \u0646\u0627\u0645\u06d2 \u06a9\u0627 \u062e\u0627\u06a9\u06c1|\u0645\u0646\u0638\u0631\u0646\u0627\u0645\u06c1|\u0646\u0645\u0648\u0646\u0647 \u0647\u0627|\u0909\u0926\u093e\u0939\u0930\u0923|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u0930\u0947\u0916\u093e|\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f|\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a28\u0a3e\u0a02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a22\u0a3e\u0a02\u0a1a\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a30\u0a42\u0a2a \u0a30\u0a47\u0a16\u0a3e|\u0a2a\u0a3f\u0a1b\u0a4b\u0a15\u0a5c|\u0c09\u0c26\u0c3e\u0c39\u0c30\u0c23\u0c32\u0c41|\u0c15\u0c25\u0c28\u0c02|\u0c28\u0c47\u0c2a\u0c25\u0c4d\u0c2f\u0c02|\u0c38\u0c28\u0c4d\u0c28\u0c3f\u0c35\u0c47\u0c36\u0c02|\u0c89\u0ca6\u0cbe\u0cb9\u0cb0\u0ca3\u0cc6\u0c97\u0cb3\u0cc1|\u0c95\u0ca5\u0cbe\u0cb8\u0cbe\u0cb0\u0cbe\u0c82\u0cb6|\u0cb5\u0cbf\u0cb5\u0cb0\u0ca3\u0cc6|\u0cb9\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6\u0cb2\u0cc6|\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e41\u0e19\u0e27\u0e04\u0e34\u0e14|\u0e2a\u0e23\u0e38\u0e1b\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\ubc30\uacbd|\uc2dc\ub098\ub9ac\uc624|\uc2dc\ub098\ub9ac\uc624 \uac1c\uc694|\uc608|\u30b5\u30f3\u30d7\u30eb|\u30b7\u30ca\u30ea\u30aa|\u30b7\u30ca\u30ea\u30aa\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8|\u30c6\u30f3\u30d7\u30ec|\u4f8b|\u4f8b\u5b50|\u5267\u672c|\u5267\u672c\u5927\u7eb2|\u5287\u672c|\u5287\u672c\u5927\u7db1|\u573a\u666f|\u573a\u666f\u5927\u7eb2|\u5834\u666f|\u5834\u666f\u5927\u7db1|\u80cc\u666f):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A tak\xe9|A taktie\u017e|A tie\u017e|A z\xe1rove\u0148|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|At\xe8s|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Bi\u1ebft|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|C\xe2nd|Cand|Cando|Ce|Cuando|\u010ce|\xd0a \xf0e|\xd0a|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Da\u0163i fiind|Da\u021bi fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donita\u0135o|Do|Dun|Duota|\xd0urh|Eeldades|Ef|E\u011fer ki|Entao|Ent\xe3o|Ent\xf3n|E|En|Entonces|Epi|\xc9s|Etant donn\xe9e|Etant donn\xe9|Et|\xc9tant donn\xe9es|\xc9tant donn\xe9e|\xc9tant donn\xe9|Etant donn\xe9es|Etant donn\xe9s|\xc9tant donn\xe9s|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Je\u015bli|Je\u017celi|Kad|Kada|Kadar|Kai|Kaj|Kdy\u017e|Ke\u010f|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|L\xe8 sa a|L\xe8|Logo|Lorsqu'<|Lorsque|m\xe4|Maar|Mais|Maj\u0105c|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|N\xe5r|N\xe4r|Nato|Nh\u01b0ng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Per\xf2|Podano|Pokia\u013e|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|S\xe5|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|\u015ei|\u0218i|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Th\xec|Thurh|Toda|Too right|Un|Und|ugeholl|V\xe0|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za p\u0159edpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zak\u0142adaj\u0105c|Zaradi|Zatati|\xdea \xfee|\xdea|\xde\xe1|\xdeegar|\xdeurh|\u0391\u03bb\u03bb\u03ac|\u0394\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5|\u039a\u03b1\u03b9|\u038c\u03c4\u03b1\u03bd|\u03a4\u03cc\u03c4\u03b5|\u0410 \u0442\u0430\u043a\u043e\u0436|\u0410\u0433\u0430\u0440|\u0410\u043b\u0435|\u0410\u043b\u0438|\u0410\u043c\u043c\u043e|\u0410|\u04d8\u0433\u04d9\u0440|\u04d8\u0439\u0442\u0438\u043a|\u04d8\u043c\u043c\u0430|\u0411\u0438\u0440\u043e\u043a|\u0412\u0430|\u0412\u04d9|\u0414\u0430\u0434\u0435\u043d\u043e|\u0414\u0430\u043d\u043e|\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c|\u0415\u0441\u043b\u0438|\u0417\u0430\u0434\u0430\u0442\u0435|\u0417\u0430\u0434\u0430\u0442\u0438|\u0417\u0430\u0434\u0430\u0442\u043e|\u0418|\u0406|\u041a \u0442\u043e\u043c\u0443 \u0436\u0435|\u041a\u0430\u0434\u0430|\u041a\u0430\u0434|\u041a\u043e\u0433\u0430\u0442\u043e|\u041a\u043e\u0433\u0434\u0430|\u041a\u043e\u043b\u0438|\u041b\u04d9\u043a\u0438\u043d|\u041b\u0435\u043a\u0438\u043d|\u041d\u04d9\u0442\u0438\u0497\u04d9\u0434\u04d9|\u041d\u0435\u0445\u0430\u0439|\u041d\u043e|\u041e\u043d\u0434\u0430|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u0449\u043e|\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e|\u041f\u0443\u0441\u0442\u044c|\u0422\u0430\u043a\u0436\u0435|\u0422\u0430|\u0422\u043e\u0433\u0434\u0430|\u0422\u043e\u0434\u0456|\u0422\u043e|\u0423\u043d\u0434\u0430|\u04ba\u04d9\u043c|\u042f\u043a\u0449\u043e|\u05d0\u05d1\u05dc|\u05d0\u05d6\u05d9|\u05d0\u05d6|\u05d1\u05d4\u05d9\u05e0\u05ea\u05df|\u05d5\u05d2\u05dd|\u05db\u05d0\u05e9\u05e8|\u0622\u0646\u06af\u0627\u0647|\u0627\u0630\u0627\u064b|\u0627\u06af\u0631|\u0627\u0645\u0627|\u0627\u0648\u0631|\u0628\u0627 \u0641\u0631\u0636|\u0628\u0627\u0644\u0641\u0631\u0636|\u0628\u0641\u0631\u0636|\u067e\u06be\u0631|\u062a\u0628|\u062b\u0645|\u062c\u0628|\u0639\u0646\u062f\u0645\u0627|\u0641\u0631\u0636 \u06a9\u06cc\u0627|\u0644\u0643\u0646|\u0644\u06cc\u06a9\u0646|\u0645\u062a\u0649|\u0647\u0646\u06af\u0627\u0645\u06cc|\u0648|\u0905\u0917\u0930|\u0914\u0930|\u0915\u0926\u093e|\u0915\u093f\u0928\u094d\u0924\u0941|\u091a\u0942\u0902\u0915\u093f|\u091c\u092c|\u0924\u0925\u093e|\u0924\u0926\u093e|\u0924\u092c|\u092a\u0930\u0928\u094d\u0924\u0941|\u092a\u0930|\u092f\u0926\u093f|\u0a05\u0a24\u0a47|\u0a1c\u0a26\u0a4b\u0a02|\u0a1c\u0a3f\u0a35\u0a47\u0a02 \u0a15\u0a3f|\u0a1c\u0a47\u0a15\u0a30|\u0a24\u0a26|\u0a2a\u0a30|\u0c05\u0c2a\u0c4d\u0c2a\u0c41\u0c21\u0c41|\u0c08 \u0c2a\u0c30\u0c3f\u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f\u0c32\u0c4b|\u0c15\u0c3e\u0c28\u0c3f|\u0c1a\u0c46\u0c2a\u0c4d\u0c2a\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f|\u0c2e\u0c30\u0c3f\u0c2f\u0c41|\u0c86\u0ca6\u0cb0\u0cc6|\u0ca8\u0c82\u0ca4\u0cb0|\u0ca8\u0cbf\u0cd5\u0ca1\u0cbf\u0ca6|\u0cae\u0ca4\u0ccd\u0ca4\u0cc1|\u0cb8\u0ccd\u0ca5\u0cbf\u0ca4\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1|\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49|\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19|\u0e41\u0e15\u0e48|\u0e40\u0e21\u0e37\u0e48\u0e2d|\u0e41\u0e25\u0e30|\uadf8\ub7ec\uba74<|\uadf8\ub9ac\uace0<|\ub2e8<|\ub9cc\uc57d<|\ub9cc\uc77c<|\uba3c\uc800<|\uc870\uac74<|\ud558\uc9c0\ub9cc<|\u304b\u3064<|\u3057\u304b\u3057<|\u305f\u3060\u3057<|\u306a\u3089\u3070<|\u3082\u3057<|\u4e26\u4e14<|\u4f46\u3057<|\u4f46\u662f<|\u5047\u5982<|\u5047\u5b9a<|\u5047\u8a2d<|\u5047\u8bbe<|\u524d\u63d0<|\u540c\u65f6<|\u540c\u6642<|\u5e76\u4e14<|\u5f53<|\u7576<|\u800c\u4e14<|\u90a3\u4e48<|\u90a3\u9ebc<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}(e)}e.exports=r,r.displayName="gherkin",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=r,r.displayName="git",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}e.exports=o,o.displayName="glsl",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}e.exports=r,r.displayName="gml",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=r,r.displayName="gn",r.aliases=["gni"]},function(e,t,n){"use strict";function r(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}e.exports=r,r.displayName="goModule",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=r,r.displayName="go",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(f(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&o.indexOf(c.content)>=0&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"===typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}))}e.exports=r,r.displayName="graphql",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",(function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}}))}e.exports=r,r.displayName="groovy",r.aliases=[]},function(e,t,n){"use strict";var r=n(84);function o(e){e.register(r),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,o=t.length;r<o;r++){var i=t[r];i="string"===typeof i?{filter:i,language:i}:i,e.languages[i.language]&&(n["filter-"+i.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return i.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[i.language,"language-"+i.language],inside:e.languages[i.language]}}})}e.languages.insertBefore("haml","filter",n)}(e)}e.exports=o,o.displayName="haml",o.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(e)}e.exports=o,o.displayName="handlebars",o.aliases=["hbs"]},function(e,t,n){"use strict";function r(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=r,r.displayName="haxe",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}e.exports=r,r.displayName="hcl",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}e.exports=o,o.displayName="hlsl",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=r,r.displayName="hoon",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=r,r.displayName="hpkp",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=r,r.displayName="hsts",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,o={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};function a(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in o)if(o[s]){n=n||{};var l=i[s]?a(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[s]}}n&&e.languages.insertBefore("http","header",n)}(e)}e.exports=r,r.displayName="http",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}e.exports=r,r.displayName="ichigojam",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}e.exports=r,r.displayName="icon",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(/<SELF>/g,(function(){return t(e,n-1)}))}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:n,greedy:!0,inside:{escape:r}},i=t(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,(function(){return n.source})),8),a={pattern:RegExp(i),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(i),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":a,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":a,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:o},a.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}e.exports=r,r.displayName="icuMessageFormat",r.aliases=[]},function(e,t,n){"use strict";var r=n(106);function o(e){e.register(r),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}e.exports=o,o.displayName="idris",o.aliases=["idr"]},function(e,t,n){"use strict";function r(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}e.exports=r,r.displayName="iecst",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}(e)}e.exports=r,r.displayName="ignore",r.aliases=["gitignore","hgignore","npmignore"]},function(e,t,n){"use strict";function r(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=r,r.displayName="inform7",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}e.exports=r,r.displayName="ini",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="io",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}e.exports=r,r.displayName="j",r.aliases=[]},function(e,t,n){"use strict";var r=n(107),o=n(85);function i(e){e.register(r),e.register(o),function(e){var t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,(function(){return n}));e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}(e)}e.exports=i,i.displayName="javadoc",i.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}e.exports=r,r.displayName="javastacktrace",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Z\u0430-\u044f\u0410-\u042f_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\w\u0430-\u044f\u0410-\u042f\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}e.exports=r,r.displayName="jexl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}e.exports=r,r.displayName="jolie",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,(function(){return t}))),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};r.interpolation.inside.content.inside=o}(e)}e.exports=r,r.displayName="jq",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}e.exports=r,r.displayName="jsExtras",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function c(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,l(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function u(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,u={},d=l(o.map((function(e){if("string"===typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return u[n]=o,n})).join(""),n,r),p=Object.keys(u);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"===typeof r||"string"===typeof r.content){var o=p[a],i="string"===typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var l=i.substring(0,s),d=c(u[o]),f=i.substring(s+o.length),h=[];if(l&&h.push(l),h.push(d),f){var m=[f];e(m),h.push.apply(h,m)}"string"===typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"===typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!==typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!==typeof s&&"embedded-code"===s.type){var l=p(s),c=s.alias,d=Array.isArray(c)?c[0]:c,f=e.languages[d];if(!f)continue;a[1]=u(l,f,d)}}else t(a);else"string"!==typeof a&&t([a])}}}(t.tokens)}))}(e)}e.exports=r,r.displayName="jsTemplates",r.aliases=[]},function(e,t,n){"use strict";var r=n(85),o=n(108);function i(e){e.register(r),e.register(o),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(e)}e.exports=i,i.displayName="jsdoc",i.aliases=[]},function(e,t,n){"use strict";var r=n(109);function o(e){e.register(r),function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(e)}e.exports=o,o.displayName="json5",o.aliases=[]},function(e,t,n){"use strict";var r=n(109);function o(e){e.register(r),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}e.exports=o,o.displayName="jsonp",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}e.exports=r,r.displayName="jsstacktrace",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%\xf7\u22bb&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~\u2260\u2264\u2265'\u221a\u221b]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[\u03c0\u212f]/}}e.exports=r,r.displayName="julia",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,(function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source})),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}e.exports=r,r.displayName="keepalived",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}e.exports=r,r.displayName="keyman",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(e)}e.exports=r,r.displayName="kotlin",r.aliases=["kt","kts"]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(/<nonId>/g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:\u0434\u0430|\u043d\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:\u0438|\u0438\u043b\u0438|\u043d\u0435)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])\u0437\u043d\u0430\u0447(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:\u0432\u0435\u0449|\u043b\u0438\u0442|\u043b\u043e\u0433|\u0441\u0438\u043c|\u0446\u0435\u043b)(?:\x20*\u0442\u0430\u0431)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:\u043a\u043e\u043c\u043f\u043b|\u0441\u043a\u0430\u043d\u043a\u043e\u0434|\u0444\u0430\u0439\u043b|\u0446\u0432\u0435\u0442)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:\u0430\u043b\u0433|\u0430\u0440\u0433(?:\x20*\u0440\u0435\u0437)?|\u0432\u0432\u043e\u0434|\u0412\u041a\u041b\u042e\u0427\u0418\u0422\u042c|\u0432\u0441[\u0435\u0451]|\u0432\u044b\u0431\u043e\u0440|\u0432\u044b\u0432\u043e\u0434|\u0432\u044b\u0445\u043e\u0434|\u0434\u0430\u043d\u043e|\u0434\u043b\u044f|\u0434\u043e|\u0434\u0441|\u0435\u0441\u043b\u0438|\u0438\u043d\u0430\u0447\u0435|\u0438\u0441\u043f|\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c|\u043a\u043e\u043d(?:(?:\x20+|_)\u0438\u0441\u043f)?|\u043a\u0446(?:(?:\x20+|_)\u043f\u0440\u0438)?|\u043d\u0430\u0434\u043e|\u043d\u0430\u0447|\u043d\u0441|\u043d\u0446|\u043e\u0442|\u043f\u0430\u0443\u0437\u0430|\u043f\u043e\u043a\u0430|\u043f\u0440\u0438|\u0440\u0430\u0437\u0430?|\u0440\u0435\u0437|\u0441\u0442\u043e\u043f|\u0442\u0430\u0431|\u0442\u043e|\u0443\u0442\u0432|\u0448\u0430\u0433)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}e.exports=r,r.displayName="kumir",r.aliases=["kum"]},function(e,t,n){"use strict";function r(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mn\xb5]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=r,r.displayName="kusto",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(e)}e.exports=r,r.displayName="latex",r.aliases=["tex","context"]},function(e,t,n){"use strict";var r=n(42),o=n(86);function i(e){e.register(r),e.register(o),function(e){e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}};var t=e.languages.extend("markup",{});e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",(function(n){if("latte"===n.language){e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")}))}(e)}e.exports=i,i.displayName="latte",i.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=r,r.displayName="less",r.aliases=[]},function(e,t,n){"use strict";var r=n(110);function o(e){e.register(r),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=0;n<5;n++)t=t.replace(/<expr>/g,(function(){return t}));t=t.replace(/<expr>/g,/[^\s\S]/.source);var r=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,(function(){return t})),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};r["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=r,e.languages.ly=r}(e)}e.exports=o,o.displayName="lilypond",o.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",(function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,(function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")}))}e.exports=o,o.displayName="liquid",o.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+r,i="(\\()",a="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+a),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+a),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+s+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(i+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=r,r.displayName="lisp",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=r,r.displayName="livescript",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}(e)}e.exports=r,r.displayName="llvm",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}e.exports=r,r.displayName="log",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|\u2026|,|!/}}e.exports=r,r.displayName="lolcode",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}e.exports=r,r.displayName="magma",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}e.exports=r,r.displayName="makefile",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!==typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"===typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"===typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e}))}(t.content.value),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=r,r.displayName="markdown",r.aliases=["md"]},function(e,t,n){"use strict";function r(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}e.exports=r,r.displayName="matlab",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ \t]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ \t]*(?:(?!"+t.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}(e)}e.exports=r,r.displayName="maxscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}e.exports=r,r.displayName="mel",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.exports=r,r.displayName="mermaid",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}e.exports=r,r.displayName="mizar",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(t=t.map((function(e){return e.replace("$","\\$")}))).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(e)}e.exports=r,r.displayName="mongodb",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}e.exports=r,r.displayName="monkey",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=r,r.displayName="moonscript",r.aliases=["moon"]},function(e,t,n){"use strict";function r(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}e.exports=r,r.displayName="n1ql",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=r,r.displayName="n4js",r.aliases=["n4jsd"]},function(e,t,n){"use strict";function r(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}e.exports=r,r.displayName="nand2tetrisHdl",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};function r(e){return"string"===typeof e?e:Array.isArray(e)?e.map(r).join(""):r(e.content)}e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",(function(e){e.tokens.forEach((function(e){if("string"!==typeof e&&"generic-text"===e.type){var t=r(e);(function(e){for(var t="[]{}",n=[],r=0;r<e.length;r++){var o=e[r],i=t.indexOf(o);if(-1!==i)if(i%2===0)n.push(i+1);else if(n.pop()!==i)return!1}return 0===n.length})(t)||(e.type="bad-line",e.content=t)}}))}))}(e)}e.exports=r,r.displayName="naniscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}e.exports=r,r.displayName="nasm",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}e.exports=r,r.displayName="neon",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}e.exports=r,r.displayName="nevod",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(e)}e.exports=r,r.displayName="nginx",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=r,r.displayName="nim",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}e.exports=r,r.displayName="nix",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}e.exports=r,r.displayName="nsis",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}e.exports=o,o.displayName="objectivec",o.aliases=["objc"]},function(e,t,n){"use strict";function r(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}e.exports=r,r.displayName="ocaml",r.aliases=[]},function(e,t,n){"use strict";var r=n(64);function o(e){e.register(r),function(e){e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}(e)}e.exports=o,o.displayName="opencl",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|\u03c0|\ud835\udf0f|\u2107/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|\xb5s|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=r,r.displayName="openqasm",r.aliases=["qasm"]},function(e,t,n){"use strict";function r(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}e.exports=r,r.displayName="oz",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var e=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return e=e.map((function(e){return e.split("").join(" *")})).join("|"),RegExp("\\b(?:"+e+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}e.exports=r,r.displayName="parigp",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}(e)}e.exports=r,r.displayName="parser",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=r,r.displayName="pascal",r.aliases=["objectpascal"]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,(function(){return t})),r=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,(function(){return n})),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,(function(){return n})),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,(function(){return n}))),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce((function(e,t){return e[t]=r[t],e}),{});r["class-name"].forEach((function(e){e.inside=o}))}(e)}e.exports=r,r.displayName="pascaligo",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}e.exports=r,r.displayName="pcaxis",r.aliases=["px"]},function(e,t,n){"use strict";function r(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=r,r.displayName="peoplecode",r.aliases=["pcode"]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(e)}e.exports=r,r.displayName="perl",r.aliases=[]},function(e,t,n){"use strict";var r=n(86);function o(e){e.register(r),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}e.exports=o,o.displayName="phpExtras",o.aliases=[]},function(e,t,n){"use strict";var r=n(86),o=n(85);function i(e){e.register(r),e.register(o),function(e){var t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}(e)}e.exports=i,i.displayName="phpdoc",i.aliases=[]},function(e,t,n){"use strict";var r=n(104);function o(e){e.register(r),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}e.exports=o,o.displayName="plsql",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=r,r.displayName="powerquery",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(e)}e.exports=r,r.displayName="powershell",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}e.exports=r,r.displayName="processing",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}e.exports=r,r.displayName="prolog",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=["on","ignoring","group_right","group_left","by","without"],n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t,["offset"]);e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}(e)}e.exports=r,r.displayName="promql",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}e.exports=r,r.displayName="properties",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}e.exports=r,r.displayName="protobuf",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}e.exports=r,r.displayName="psl",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},o=0,i=n.length;o<i;o++){var a=n[o];a="string"===typeof a?{filter:a,language:a}:a,e.languages[a.language]&&(r["filter-"+a.filter]={pattern:RegExp(t.replace("<filter_name>",(function(){return a.filter})),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[a.language,"language-"+a.language],inside:e.languages[a.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}e.exports=r,r.displayName="pug",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}(e)}e.exports=r,r.displayName="puppet",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var t=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;["c",{lang:"c++",alias:"cpp"},"fortran"].forEach((function(n){var r=n;if("string"!==typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var o={};o["inline-lang-"+r]={pattern:RegExp(t.replace("<lang>",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},o["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",o)}})),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}(e)}e.exports=r,r.displayName="pure",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=r,r.displayName="purebasic",r.aliases=[]},function(e,t,n){"use strict";var r=n(106);function o(e){e.register(r),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|\u2200/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}e.exports=o,o.displayName="purescript",o.aliases=["purs"]},function(e,t,n){"use strict";function r(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=r,r.displayName="python",r.aliases=["py"]},function(e,t,n){"use strict";function r(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}e.exports=r,r.displayName="q",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,(function(){return t})).replace(/<comment>/g,(function(){return n})),o=0;o<2;o++)r=r.replace(/<expr>/g,(function(){return r}));r=r.replace(/<expr>/g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,(function(){return r})),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,(function(){return r})),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}e.exports=r,r.displayName="qml",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}e.exports=r,r.displayName="qore",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}var r=RegExp("\\b(?:"+("Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero"+" "+"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within").trim().replace(/ /g,"|")+")\\b"),o=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[/\b[A-Za-z_]\w*\b/.source]),i={keyword:r,punctuation:/[<>()?,.:[\]]/},a=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[a]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[o]),lookbehind:!0,inside:i},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[o]),lookbehind:!0,inside:i}],keyword:r,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var s=function(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[a]),2);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[s]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[s]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=r,r.displayName="qsharp",r.aliases=["qs"]},function(e,t,n){"use strict";function r(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}e.exports=r,r.displayName="r",r.aliases=[]},function(e,t,n){"use strict";var r=n(110);function o(e){e.register(r),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}e.exports=o,o.displayName="racket",o.aliases=["rkt"]},function(e,t,n){"use strict";function r(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}e.exports=r,r.displayName="reason",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=RegExp(r+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(e)}e.exports=r,r.displayName="regex",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=r,r.displayName="rego",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=r,r.displayName="renpy",r.aliases=["rpy"]},function(e,t,n){"use strict";function r(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-\u2022\u2023\u2043]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|\u2014|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}e.exports=r,r.displayName="rest",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=r,r.displayName="rip",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}e.exports=r,r.displayName="roboconf",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var o={"section-header":{pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"}};for(var i in r)o[i]=r[i];return o.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},o.variable=n,o.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,(function(){return e})),"im"),alias:"section",inside:o}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},a={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:r("Variables"),"test-cases":r("Test Cases",{"test-name":i,documentation:o,property:a}),keywords:r("Keywords",{"keyword-name":i,documentation:o,property:a}),tasks:r("Tasks",{"task-name":i,documentation:o,property:a}),comment:t},e.languages.robot=e.languages.robotframework}(e)}e.exports=r,r.displayName="robotframework",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}e.exports=r,r.displayName="rust",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},a={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={pattern:RegExp(t),greedy:!0},c=/[$%@.(){}\[\];,\\]/,u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},d={function:u,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},f={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},h={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},m={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},g=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,(function(){return g})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,(function(){return g})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:c,string:l}},v={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,(function(){return t})),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":h,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:v,"submit-statement":m,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:v,"submit-statement":m,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:a,keyword:v,function:u,format:p,altformat:f,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,(function(){return t})),"im"),lookbehind:!0,inside:d},"macro-keyword":i,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=\xac^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":b,comment:s,function:u,format:p,altformat:f,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:a,keyword:v,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|\xa6\xa6?|<[>=]?|>[<=]?|[-+\/=&]|[~\xac^]=?/,punctuation:c}}(e)}e.exports=r,r.displayName="sas",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}e.exports=r,r.displayName="sass",r.aliases=[]},function(e,t,n){"use strict";var r=n(107);function o(e){e.register(r),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}e.exports=o,o.displayName="scala",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=r,r.displayName="scss",r.aliases=[]},function(e,t,n){"use strict";var r=n(133);function o(e){e.register(r),function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return t})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(e)}e.exports=o,o.displayName="shellSession",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}e.exports=r,r.displayName="smali",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}e.exports=r,r.displayName="smalltalk",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty;var t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,(function(){return t.source})),"g");e.hooks.add("before-tokenize",(function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,(function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")}))}(e)}e.exports=o,o.displayName="smarty",o.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,(function(){return/\s*(?:[*,]|->)/.source})).replace(/<TERMINAL>/g,(function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source})).replace(/<LONG-ID>/g,(function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source})).replace(/<KEYWORD>/g,(function(){return t.source})),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}(e)}e.exports=r,r.displayName="sml",r.aliases=["smlnj"]},function(e,t,n){"use strict";function r(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=r,r.displayName="solidity",r.aliases=["sol"]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}(e)}e.exports=r,r.displayName="solutionFile",r.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){var t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",(function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,(function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)}))})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")}))}(e)}e.exports=o,o.displayName="soy",o.aliases=[]},function(e,t,n){"use strict";var r=n(137);function o(e){e.register(r),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}e.exports=o,o.displayName="sparql",o.aliases=["rq"]},function(e,t,n){"use strict";function r(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}e.exports=r,r.displayName="splunkSpl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=r,r.displayName="sqf",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=r,r.displayName="squirrel",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}(e)}e.exports=r,r.displayName="stan",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(e)}e.exports=r,r.displayName="stylus",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=e.languages.swift}))}e.exports=r,r.displayName="swift",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(e)}e.exports=r,r.displayName="systemd",r.aliases=[]},function(e,t,n){"use strict";var r=n(111),o=n(83);function i(e){e.register(r),e.register(o),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=i,i.displayName="t4Cs",i.aliases=[]},function(e,t,n){"use strict";var r=n(111),o=n(138);function i(e){e.register(r),e.register(o),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e.exports=i,i.displayName="t4Vb",i.aliases=[]},function(e,t,n){"use strict";var r=n(139);function o(e){e.register(r),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}e.exports=o,o.displayName="tap",o.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}e.exports=r,r.displayName="tcl",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(/<MOD>/g,(function(){return"(?:"+t+")"})).replace(/<PAR>/g,(function(){return"(?:"+n+")"})),r||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),a=i.phrase.inside,s={inline:a.inline,link:a.link,image:a.image,footnote:a.footnote,acronym:a.acronym,mark:a.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=a.inline.inside;l.bold.inside=s,l.italic.inside=s,l.inserted.inside=s,l.deleted.inside=s,l.span.inside=s;var c=a.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}e.exports=r,r.displayName="textile",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,(function(){return t}))}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}e.exports=r,r.displayName="toml",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}(e)}e.exports=r,r.displayName="tremor",r.aliases=[]},function(e,t,n){"use strict";var r=n(136),o=n(108);function i(e){e.register(r),e.register(o),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}e.exports=i,i.displayName="tsx",i.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),function(e){e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")}))}(e)}e.exports=o,o.displayName="tt2",o.aliases=[]},function(e,t,n){"use strict";var r=n(42);function o(e){e.register(r),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",(function(t){if("twig"===t.language){e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")}))}e.exports=o,o.displayName="twig",o.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}(e)}e.exports=r,r.displayName="typoscript",r.aliases=["tsconfig"]},function(e,t,n){"use strict";function r(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=r,r.displayName="unrealscript",r.aliases=["uc","uscript"]},function(e,t,n){"use strict";function r(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}e.exports=r,r.displayName="uorazor",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}e.exports=r,r.displayName="uri",r.aliases=["url"]},function(e,t,n){"use strict";function r(e){!function(e){var t={pattern:/[\s\S]+/,inside:null};e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}(e)}e.exports=r,r.displayName="v",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=r,r.displayName="vala",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.velocity=e.languages.extend("markup",{});var t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};t.variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}(e)}e.exports=r,r.displayName="velocity",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}e.exports=r,r.displayName="verilog",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="vhdl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}e.exports=r,r.displayName="vim",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages["visual-basic"]={comment:{pattern:/(?:['\u2018\u2019]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["\u201c\u201d](?:["\u201c\u201d]{2}|[^"\u201c\u201d])*["\u201c\u201d]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=r,r.displayName="visualBasic",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}e.exports=r,r.displayName="warpscript",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}e.exports=r,r.displayName="wasm",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var o in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==o&&(r[o]=e.languages["web-idl"][o]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=r,r.displayName="webIdl",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}e.exports=r,r.displayName="wiki",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}e.exports=r,r.displayName="wolfram",r.aliases=["mathematica","wl","nb"]},function(e,t,n){"use strict";function r(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=r,r.displayName="wren",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}(e)}e.exports=r,r.displayName="xeora",r.aliases=["xeoracube"]},function(e,t,n){"use strict";function r(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",o)}(e)}e.exports=r,r.displayName="xmlDoc",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}e.exports=r,r.displayName="xojo",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"===typeof e?e:"string"===typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var o=[],i=0;i<r.length;i++){var a=r[i],s=!1;if("string"!==typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?o.length>0&&o[o.length-1].tagName===t(a.content[0].content[1])&&o.pop():"/>"===a.content[a.content.length-1].content||o.push({tagName:t(a.content[0].content[1]),openedBraces:0}):!(o.length>0&&"punctuation"===a.type&&"{"===a.content)||r[i+1]&&"punctuation"===r[i+1].type&&"{"===r[i+1].content||r[i-1]&&"plain-text"===r[i-1].type&&"{"===r[i-1].content?o.length>0&&o[o.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?o[o.length-1].openedBraces--:"comment"!==a.type&&(s=!0):o[o.length-1].openedBraces++),(s||"string"===typeof a)&&o.length>0&&0===o[o.length-1].openedBraces){var l=t(a);i<r.length-1&&("string"===typeof r[i+1]||"plain-text"===r[i+1].type)&&(l+=t(r[i+1]),r.splice(i+1,1)),i>0&&("string"===typeof r[i-1]||"plain-text"===r[i-1].type)&&(l=t(r[i-1])+l,r.splice(i-1,1),i--),/^\s+$/.test(l)?r[i]=l:r[i]=new e.Token("plain-text",l,null,l)}a.content&&"string"!==typeof a.content&&n(a.content)}};e.hooks.add("after-tokenize",(function(e){"xquery"===e.language&&n(e.tokens)}))}(e)}e.exports=r,r.displayName="xquery",r.aliases=[]},function(e,t,n){"use strict";function r(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}e.exports=r,r.displayName="yang",r.aliases=[]},function(e,t,n){"use strict";function r(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,t(o))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,t(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,t(i)).replace(/<ALIGN>/g,t(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,t(i)).replace(/<ALIGN>/g,t(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach((function(t){null===t.inside&&(t.inside=e.languages.zig)}))}(e)}e.exports=r,r.displayName="zig",r.aliases=[]},function(e,t,n){"use strict";const r=n(112),o=n(113),i=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(o.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(o.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(o.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";const r=n(67),o=r.TAG_NAMES,i=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI;case 3:return e===o.RTC;case 6:return e===o.OPTION;case 8:return e===o.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI||e===o.TD||e===o.TH||e===o.TR;case 3:return e===o.RTC;case 5:return e===o.TBODY||e===o.TFOOT||e===o.THEAD;case 6:return e===o.OPTION;case 7:return e===o.CAPTION;case 8:return e===o.OPTGROUP||e===o.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===o.TD||e===o.TH)return t===i.HTML;if(e===o.MI||e===o.MO||e===o.MN||e===o.MS)return t===i.MATHML;break;case 4:if(e===o.HTML)return t===i.HTML;if(e===o.DESC)return t===i.SVG;break;case 5:if(e===o.TABLE)return t===i.HTML;if(e===o.MTEXT)return t===i.MATHML;if(e===o.TITLE)return t===i.SVG;break;case 6:return(e===o.APPLET||e===o.OBJECT)&&t===i.HTML;case 7:return(e===o.CAPTION||e===o.MARQUEE)&&t===i.HTML;case 8:return e===o.TEMPLATE&&t===i.HTML;case 13:return e===o.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===o.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.H1||e===o.H2||e===o.H3||e===o.H4||e===o.H5||e===o.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.TD||e===o.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==o.TABLE&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==o.TBODY&&this.currentTagName!==o.TFOOT&&this.currentTagName!==o.THEAD&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==o.TR&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===o.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===o.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===o.H1||t===o.H2||t===o.H3||t===o.H4||t===o.H5||t===o.H6)&&n===i.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if((n===o.UL||n===o.OL)&&r===i.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(n===o.BUTTON&&r===i.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===o.TABLE||n===o.TEMPLATE||n===o.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===o.TBODY||t===o.THEAD||t===o.TFOOT)return!0;if(t===o.TABLE||t===o.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==o.OPTION&&n!==o.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},function(e,t,n){"use strict";class r{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===r.MARKER_ENTRY)break;const s=a.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===o&&this.treeAdapter.getNamespaceURI(s)===i&&l.length===n&&t.push({idx:e,attrs:l})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),o=r.length,i=Object.create(null);for(let e=0;e<o;e++){const t=r[e];i[t.name]=t.value}for(let e=0;e<o;e++)for(let r=0;r<n;r++){const o=t[r].attrs[e];if(i[o.name]!==o.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:r.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===r.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.ELEMENT_ENTRY&&n.element===e)return n}return null}}r.MARKER_ENTRY="MARKER_ENTRY",r.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=r},function(e,t,n){"use strict";const r=n(55),o=n(87),i=n(140),a=n(486),s=n(67).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i={};t.type===o.END_TAG_TOKEN&&r===t.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(n,o){t._bootstrap.call(this,n,o),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,i);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===o.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),o=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),o=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(o),a=r&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},function(e,t,n){"use strict";const r=n(55);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},function(e,t,n){"use strict";const r=n(114),o=n(488),i=n(140),a=n(55);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,o,e.opts),a.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},function(e,t,n){"use strict";const r=n(114),o=n(489),i=n(55);e.exports=class extends r{constructor(e,t){super(e,t);const n=i.install(e.preprocessor,o,t);this.posTracker=n.posTracker}}},function(e,t,n){"use strict";const r=n(114),o=n(141),i=n(55);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=i.install(e,o),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(67);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const o=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let o=null;for(let i=0;i<e.childNodes.length;i++)if("#documentType"===e.childNodes[i].nodeName){o=e.childNodes[i];break}o?(o.name=t,o.publicId=n,o.systemId=r):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,o(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,o(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(67),o="html",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function u(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===o&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==o)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:i;if(d(n,e))return r.QUIRKS;if(e=null===t?l:c,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+u(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},function(e,t,n){"use strict";const r=n(87),o=n(67),i=o.TAG_NAMES,a=o.NAMESPACES,s=o.ATTRS,l="text/html",c="application/xhtml+xml",u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},p=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},f={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===i.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||f[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=u[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=p[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===s.ENCODING){const e=n[r].value.toLowerCase();return e===l||e===c}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},function(e,t,n){},function(e,t,n){var r=n(496),o=n(497),i=n(498),a=n(499);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(143);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(143);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(501);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(504);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(115).default,o=n(505);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(115).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=h(i),s=h(n(27)),l=h(n(11)),c=h(n(511)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(145)),d=n(116),p=h(d),f=n(518);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==s.default.createPortal,y=function(e){return document.createElement(e)},x=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var E=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!v&&s.default.unmountComponentAtNode(o.node);var e=O(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=x()(o,a.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),x()(a.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(E),t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=g(n(11)),l=m(n(512)),c=g(n(513)),u=m(n(145)),d=m(n(516)),p=n(116),f=g(p),h=g(n(146));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(517);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&d.remove(s.body,i),o&&d.remove(s.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===("undefined"===typeof t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&d.add(a.body,o),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,o=n(144),i=(r=o)&&r.__esModule?r:{default:r};var a=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!o)return;r=l}l!==c||o||(r=s);s===c&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=o?-1:1);if("undefined"===typeof(r=n[d]))return t.preventDefault(),void(r=o?l:s).focus();t.preventDefault(),r.focus()};var r,o=n(144),i=(r=o)&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;!function(){"use strict";var o=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)i(e,r[t]);var n=document.body;for(var a in o)i(n,o[a]);r={},o={}},t.log=function(){0};var r={},o={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),n.add(e)}));var n,i},t.remove=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&n.remove(e)}));var n,i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(146),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return Ee})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return Se})),n.d(r,"hasStandardBrowserEnv",(function(){return je})),n.d(r,"navigator",(function(){return we})),n.d(r,"origin",(function(){return Te}));var o={};n.r(o),n.d(o,"boolean",(function(){return zk})),n.d(o,"booleanish",(function(){return Gk})),n.d(o,"overloadedBoolean",(function(){return Wk})),n.d(o,"number",(function(){return Vk})),n.d(o,"spaceSeparated",(function(){return qk})),n.d(o,"commaSeparated",(function(){return Kk})),n.d(o,"commaOrSpaceSeparated",(function(){return Yk}));var i={};n.r(i),n.d(i,"boolean",(function(){return WC})),n.d(i,"booleanish",(function(){return VC})),n.d(i,"overloadedBoolean",(function(){return qC})),n.d(i,"number",(function(){return KC})),n.d(i,"spaceSeparated",(function(){return YC})),n.d(i,"commaSeparated",(function(){return XC})),n.d(i,"commaOrSpaceSeparated",(function(){return ZC}));var a={};n.r(a),n.d(a,"protocol",(function(){return wA})),n.d(a,"PacketType",(function(){return jA})),n.d(a,"Encoder",(function(){return SA})),n.d(a,"Decoder",(function(){return kA}));var s=n(1),l=n.n(s),c=n(27),u=n.n(c),d=n(21),p=n(4);if(!s.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!p.n)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function f(e){e()}function h(e){return Object(p.j)(e)}var m=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),g=new("undefined"!==typeof FinalizationRegistry?FinalizationRegistry:m)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),b=!1;function v(){return b}var y=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function x(e){return"observer".concat(e)}var O=function(){};function E(){return new O}function w(e,t){if(void 0===t&&(t="observed"),v())return e();var n=y(l.a.useState(E),1)[0],r=y(l.a.useState(),2)[1],o=function(){return r([])},i=l.a.useRef(null);i.current||(i.current={reaction:null,mounted:!1,changedBeforeMount:!1});var a,s,c=i.current;if(c.reaction||(c.reaction=new p.b(x(t),(function(){c.mounted?o():c.changedBeforeMount=!0})),g.register(n,c,c)),l.a.useDebugValue(c.reaction,h),l.a.useEffect((function(){return g.unregister(c),c.mounted=!0,c.reaction?c.changedBeforeMount&&(c.changedBeforeMount=!1,o()):(c.reaction=new p.b(x(t),(function(){o()})),o()),function(){c.reaction.dispose(),c.reaction=null,c.mounted=!1,c.changedBeforeMount=!1}}),[]),c.reaction.track((function(){try{a=e()}catch(dD){s=dD}})),s)throw s;return a}var j="function"===typeof Symbol&&Symbol.for,S=j?Symbol.for("react.forward_ref"):"function"===typeof s.forwardRef&&Object(s.forwardRef)((function(e){return null})).$$typeof,T=j?Symbol.for("react.memo"):"function"===typeof s.memo&&Object(s.memo)((function(e){return null})).$$typeof;function k(e,t){var n;if(T&&e.$$typeof===T)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(v())return e;var r=null!==(n=null===t||void 0===t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(S&&e.$$typeof===S&&(r=!0,"function"!==typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,l,c=function(e,t){return w((function(){return o(e,t)}),i)};return""!==i&&(c.displayName=i),e.contextTypes&&(c.contextTypes=e.contextTypes),r&&(c=Object(s.forwardRef)(c)),c=Object(s.memo)(c),a=e,l=c,Object.keys(a).forEach((function(e){C[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(a,e))})),c}var C={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var _,N;(N=c.unstable_batchedUpdates)||(N=f),Object(p.h)({reactionScheduler:N});_=g.finalizeAllImmediately;var A=0;var R={};function I(e){return R[e]||(R[e]=function(e){if("function"===typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+A+")";return A++,t}(e)),R[e]}function P(e,t){if(D(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!D(e[n[o]],t[n[o]]))return!1;return!0}function D(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}var L={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1};function M(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var F=I("patchMixins"),$=I("patchedDefinition");function B(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.locks++;try{var a;return void 0!==e&&null!==e&&(a=e.apply(this,o)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function U(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];B.call.apply(B,[this,e,t].concat(r))}}function H(e,t,n){var r=function(e,t){var n=e[F]=e[F]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[$]){var i=e[t],a=z(e,t,o?o.enumerable:void 0,r,i);Object.defineProperty(e,t,a)}}function z(e,t,n,r,o){var i,a=U(o,r);return(i={})[$]=!0,i.get=function(){return a},i.set=function(o){if(this===e)a=U(o,r);else{var i=z(this,t,n,r,o);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=n,i}var G=p.a||"$mobx",W=I("isMobXReactObserver"),V=I("isUnmounted"),q=I("skipRender"),K=I("isForcingUpdate");function Y(e){var t=e.prototype;if(e[W]){var n=X(t);console.warn("The provided component class ("+n+")\n                has already been declared as an observer component.")}else e[W]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==s.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Q)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Q;J(t,"props"),J(t,"state"),e.contextType&&J(t,"context");var r=t.render;if("function"!==typeof r){var o=X(t);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return t.render=function(){return this.render=v()?r:Z.call(this,r),this.render()},H(t,"componentDidMount",(function(){this[V]=!1,this.render[G]||s.Component.prototype.forceUpdate.call(this)})),H(t,"componentWillUnmount",(function(){if(!v()){var e=this.render[G];if(e)e.dispose(),this.render[G]=null;else{var t=X(this);console.warn("The reactive render of an observer class component ("+t+")\n                was overridden after MobX attached. This may result in a memory leak if the\n                overridden reactive render was not properly disposed.")}this[V]=!0}})),e}function X(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function Z(e){var t=this;M(this,q,!1),M(this,K,!1);var n=X(this),r=e.bind(this),o=!1;return function e(){var i;o=!1;var a=null!=(i=e[G])?i:e[G]=function(){var e=new p.b(n+".render()",(function(){if(!o&&(o=!0,!0!==t[V])){var n=!0;try{M(t,K,!0),t[q]||s.Component.prototype.forceUpdate.call(t),n=!1}finally{M(t,K,!1),n&&(e.dispose(),t.render[G]=null)}}}));return e.reactComponent=t,e}(),l=void 0,c=void 0;if(a.track((function(){try{c=Object(p.c)(!1,r)}catch(dD){l=dD}})),l)throw l;return c}}function Q(e,t){return v()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!P(this.props,e)}function J(e,t){var n=I("reactProp_"+t+"_valueHolder"),r=I("reactProp_"+t+"_atomHolder");function o(){return this[r]||M(this,r,Object(p.i)("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return p.e&&p.d&&(e=Object(p.e)(!0)),o.call(this).reportObserved(),p.e&&p.d&&Object(p.d)(e),this[n]},set:function(e){this[K]||P(this[n],e)?M(this,n,e):(M(this,n,e),M(this,q,!0),o.call(this).reportChanged(),M(this,q,!1))}})}function ee(e){return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(s.Component,e)||Object.prototype.isPrototypeOf.call(s.PureComponent,e)?Y(e):k(e)}function te(){return te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}var ne=["children"],re=l.a.createContext({});function oe(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ne),r=l.a.useContext(re),o=l.a.useRef(te({},r,n)).current;return l.a.createElement(re.Provider,{value:o},t)}function ie(e,t,n,r){var o=l.a.forwardRef((function(n,r){var o=te({},n),i=l.a.useContext(re);return Object.assign(o,e(i||{},o)||{}),r&&(o.ref=r),l.a.createElement(t,o)}));return r&&(o=ee(o)),o.isMobxInjector=!0,function(e,t){var n=Object.getOwnPropertyNames(Object.getPrototypeOf(e));Object.getOwnPropertyNames(e).forEach((function(r){L[r]||-1!==n.indexOf(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}(t,o),o.wrappedComponent=t,o.displayName=function(e,t){var n,r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";n=t?"inject-with-"+t+"("+r+")":"inject("+r+")";return n}(t,n),o}function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("function"===typeof arguments[0]){var r=arguments[0];return function(e){return ie(r,e,r.name,!0)}}return function(e){return ie(function(e){return function(t,n){return e.forEach((function(e){if(!(e in n)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");n[e]=t[e]}})),n}}(t),e,t.join("-"),!1)}}oe.displayName="MobXProvider";if(!s.Component)throw new Error("mobx-react requires React to be available");if(!p.o)throw new Error("mobx-react requires mobx to be available");function se(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function le(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(e,t,i),null):i}var ce=n(8),ue=n(88),de=n(59);function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function fe(e,t){this._pairs=[],e&&Object(de.a)(e,this,t)}const he=fe.prototype;he.append=function(e,t){this._pairs.push([e,t])},he.toString=function(e){const t=e?function(t){return e.call(this,t,pe)}:pe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var me=fe;function ge(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function be(e,t,n){if(!t)return e;const r=n&&n.encode||ge,o=n&&n.serialize;let i;if(i=o?o(t,n):ce.a.isURLSearchParams(t)?t.toString():new me(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var ve=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ye=n(19),xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:me,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ee="undefined"!==typeof window&&"undefined"!==typeof document,we="object"===typeof navigator&&navigator||void 0,je=Ee&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),Se="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Te=Ee&&window.location.href||"http://localhost";var ke={...r,...Oe};var Ce=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ce.a.isArray(r)?r.length:i,s)return ce.a.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&ce.a.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ce.a.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(ce.a.isFormData(e)&&ce.a.isFunction(e.entries)){const n={};return ce.a.forEachEntry(e,((e,r)=>{t(function(e){return ce.a.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const _e={transitional:xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ce.a.isObject(e);o&&ce.a.isHTMLForm(e)&&(e=new FormData(e));if(ce.a.isFormData(e))return r?JSON.stringify(Ce(e)):e;if(ce.a.isArrayBuffer(e)||ce.a.isBuffer(e)||ce.a.isStream(e)||ce.a.isFile(e)||ce.a.isBlob(e)||ce.a.isReadableStream(e))return e;if(ce.a.isArrayBufferView(e))return e.buffer;if(ce.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(de.a)(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ke.isNode&&ce.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ce.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(de.a)(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ce.a.isString(e))try{return(t||JSON.parse)(e),ce.a.trim(e)}catch(dD){if("SyntaxError"!==dD.name)throw dD}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ce.a.isResponse(e)||ce.a.isReadableStream(e))return e;if(e&&ce.a.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(dD){if(n){if("SyntaxError"===dD.name)throw ye.a.from(dD,ye.a.ERR_BAD_RESPONSE,this,null,this.response);throw dD}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.a.forEach(["delete","get","head","post","put","patch"],(e=>{_e.headers[e]={}}));var Ne=_e;const Ae=ce.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Re=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:ce.a.isArray(e)?e.map(Pe):String(e)}function De(e,t,n,r,o){return ce.a.isFunction(r)?r.call(this,t,n):(o&&(t=n),ce.a.isString(t)?ce.a.isString(r)?-1!==t.indexOf(r):ce.a.isRegExp(r)?r.test(t):void 0:void 0)}class Le{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const i=ce.a.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Pe(e))}const i=(e,t)=>ce.a.forEach(e,((e,n)=>o(e,n,t)));if(ce.a.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ce.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ae[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(ce.a.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=ce.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ce.a.isFunction(t))return t.call(this,e,n);if(ce.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=ce.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!De(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=ce.a.findKey(n,e);!o||t&&!De(0,n[o],o,t)||(delete n[o],r=!0)}}return ce.a.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!De(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ce.a.forEach(this,((r,o)=>{const i=ce.a.findKey(n,o);if(i)return t[i]=Pe(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Pe(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return ce.a.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ce.a.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Re]=this[Re]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(!function(e,t){const n=ce.a.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ce.a.isArray(e)?e.forEach(r):r(e),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.a.reduceDescriptors(Le.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),ce.a.freezeMethods(Le);var Me=Le;function Fe(e,t){const n=this||Ne,r=t||n,o=Me.from(r.headers);let i=r.data;return ce.a.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function $e(e){return!(!e||!e.__CANCEL__)}function Be(e,t,n){ye.a.call(this,null==e?"canceled":e,ye.a.ERR_CANCELED,t,n),this.name="CanceledError"}ce.a.inherits(Be,ye.a,{__CANCEL__:!0});var Ue=Be,He=n(89);function ze(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ye.a("Request failed with status code "+n.status,[ye.a.ERR_BAD_REQUEST,ye.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ge=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};var We=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]};const Ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=Ge(50,250);return We((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},qe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ce.a.asap((()=>e(...n)))};var Ye=ke.hasStandardBrowserEnv?function(){const e=ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ce.a.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Xe=ke.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];ce.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ce.a.isString(r)&&a.push("path="+r),ce.a.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ze(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qe=e=>e instanceof Me?{...e}:e;function Je(e,t){t=t||{};const n={};function r(e,t,n){return ce.a.isPlainObject(e)&&ce.a.isPlainObject(t)?ce.a.merge.call({caseless:n},e,t):ce.a.isPlainObject(t)?ce.a.merge({},t):ce.a.isArray(t)?t.slice():t}function o(e,t,n){return ce.a.isUndefined(t)?ce.a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ce.a.isUndefined(t))return r(void 0,t)}function a(e,t){return ce.a.isUndefined(t)?ce.a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Qe(e),Qe(t),!0)};return ce.a.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);ce.a.isUndefined(a)&&i!==s||(n[r]=a)})),n}var et=e=>{const t=Je({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Me.from(s),t.url=be(Ze(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ce.a.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ke.hasStandardBrowserEnv&&(o&&ce.a.isFunction(o)&&(o=o(t)),o||!1!==o&&Ye(t.url))){const e=i&&a&&Xe.read(a);e&&s.set(i,e)}return t};var tt="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=et(e);let o=r.data;const i=Me.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Me.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ze((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ye.a("Request aborted",ye.a.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ye.a("Network Error",ye.a.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||xe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ye.a(t,o.clarifyTimeoutError?ye.a.ETIMEDOUT:ye.a.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ce.a.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ce.a.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Ve(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Ve(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ue(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===ke.protocols.indexOf(b)?n(new ye.a("Unsupported protocol "+b+":",ye.a.ERR_BAD_REQUEST,e)):m.send(o||null)}))};var nt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ye.a?t:new Ue(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new ye.a(`timeout ${t} of ms exceeded`,ye.a.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>ce.a.asap(a),s}};const rt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ot=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},it=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ot(e))yield*rt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},at="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,st=at&&"function"===typeof ReadableStream,lt=at&&("function"===typeof TextEncoder?(ct=new TextEncoder,e=>ct.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ct;const ut=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(dD){return!1}},dt=st&&ut((()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),pt=st&&ut((()=>ce.a.isReadableStream(new Response("").body))),ft={stream:pt&&(e=>e.body)};var ht;at&&(ht=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ft[e]&&(ft[e]=ce.a.isFunction(ht[e])?t=>t[e]():(t,n)=>{throw new ye.a(`Response type '${e}' is not supported`,ye.a.ERR_NOT_SUPPORT,n)})})));const mt=async(e,t)=>{const n=ce.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ce.a.isBlob(e))return e.size;if(ce.a.isSpecCompliantForm(e)){const t=new Request(ke.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ce.a.isArrayBufferView(e)||ce.a.isArrayBuffer(e)?e.byteLength:(ce.a.isURLSearchParams(e)&&(e+=""),ce.a.isString(e)?(await lt(e)).byteLength:void 0)})(t):n};var gt=at&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=et(e);c=c?(c+"").toLowerCase():"text";let f,h=nt([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&dt&&"get"!==n&&"head"!==n&&0!==(g=await mt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ce.a.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=qe(g,Ve(Ke(l)));r=it(n.body,65536,e,t)}}ce.a.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=pt&&("stream"===c||"response"===c);if(pt&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=ce.a.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&qe(t,Ve(Ke(s),!0))||[];i=new Response(it(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let b=await ft[ce.a.findKey(ft,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{ze(t,n,{data:b,headers:Me.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(b){if(m&&m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new ye.a("Network Error",ye.a.ERR_NETWORK,e,f),{cause:b.cause||b});throw ye.a.from(b,b&&b.code,e,f)}});const bt={http:He.a,xhr:tt,fetch:gt};ce.a.forEach(bt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(dD){}Object.defineProperty(e,"adapterName",{value:t})}}));const vt=e=>`- ${e}`,yt=e=>ce.a.isFunction(e)||null===e||!1===e;var xt=e=>{e=ce.a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!yt(n)&&(r=bt[(t=String(n)).toLowerCase()],void 0===r))throw new ye.a(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(vt).join("\n"):" "+vt(e[0]):"as no adapter specified";throw new ye.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function Et(e){Ot(e),e.headers=Me.from(e.headers),e.data=Fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return xt(e.adapter||Ne.adapter)(e).then((function(t){return Ot(e),t.data=Fe.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return $e(t)||(Ot(e),t&&t.response&&(t.response.data=Fe.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const wt="1.7.7",jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{jt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const St={};jt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ye.a(r(o," has been removed"+(t?" in "+t:"")),ye.a.ERR_DEPRECATED);return t&&!St[o]&&(St[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Tt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new ye.a("options must be an object",ye.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ye.a("option "+i+" must be "+n,ye.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ye.a("Unknown option "+i,ye.a.ERR_BAD_OPTION)}},validators:jt};const kt=Tt.validators;class Ct{constructor(e){this.defaults=e,this.interceptors={request:new ve,response:new ve}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(dD){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Tt.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),null!=r&&(ce.a.isFunction(r)?t.paramsSerializer={serialize:r}:Tt.assertOptions(r,{encode:kt.function,serialize:kt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ce.a.merge(o.common,o[t.method]);o&&ce.a.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Et.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Et.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return be(Ze((e=Je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ce.a.forEach(["delete","get","head","options"],(function(e){Ct.prototype[e]=function(t,n){return this.request(Je(n||{},{method:e,url:t,data:(n||{}).data}))}})),ce.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Je(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ct.prototype[e]=t(),Ct.prototype[e+"Form"]=t(!0)}));var _t=Ct;class Nt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ue(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Nt((function(t){e=t})),cancel:e}}}var At=Nt;const Rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rt).forEach((e=>{let[t,n]=e;Rt[n]=t}));var It=Rt;const Pt=function e(t){const n=new _t(t),r=Object(ue.a)(_t.prototype.request,n);return ce.a.extend(r,_t.prototype,n,{allOwnKeys:!0}),ce.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Je(t,n))},r}(Ne);Pt.Axios=_t,Pt.CanceledError=Ue,Pt.CancelToken=At,Pt.isCancel=$e,Pt.VERSION=wt,Pt.toFormData=de.a,Pt.AxiosError=ye.a,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return ce.a.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Je,Pt.AxiosHeaders=Me,Pt.formToJSON=e=>Ce(ce.a.isHTMLForm(e)?new FormData(e):e),Pt.getAdapter=xt,Pt.HttpStatusCode=It,Pt.default=Pt;var Dt=Pt;var Lt=function(e,t,n,r){var o={};e=e||[],o.gramSizeLower=n||2,o.gramSizeUpper=r||3,o.useLevenshtein="boolean"!==typeof t||t,o.exactSet={},o.matchDict={},o.items={};var i=function(e,t){if(null===e&&null===t)throw"Trying to compare two null values";if(null===e||null===t)return 0;var n=function(e,t){for(var n,r,o=[],i=0;i<=t.length;i++)for(var a=0;a<=e.length;a++)r=i&&a?e.charAt(a-1)===t.charAt(i-1)?n:Math.min(o[a],o[a-1],n)+1:i+a,n=o[a],o[a]=r;return o.pop()}(e=String(e),t=String(t));return e.length>t.length?1-n/e.length:1-n/t.length},a=/[^a-zA-Z0-9\u00C0-\u00FF\u0621-\u064A\u0660-\u0669, ]+/g,s=function(e,t){for(var n={},r=function(e,t){t=t||2;var n="-"+e.toLowerCase().replace(a,"")+"-",r=t-n.length,o=[];if(r>0)for(var i=0;i<r;++i)n+="-";for(i=0;i<n.length-t+1;++i)o.push(n.slice(i,i+t));return o}(e,t=t||2),o=0;o<r.length;++o)r[o]in n?n[r[o]]+=1:n[r[o]]=1;return n};o.get=function(e,t,n){void 0===n&&(n=.33);var r=this._get(e,n);return r||"undefined"===typeof t?r:t},o._get=function(e,t){for(var n=[],r=this.gramSizeUpper;r>=this.gramSizeLower;--r)if((n=this.__get(e,r,t))&&n.length>0)return n;return null},o.__get=function(e,t,n){var r,o,a,l,c=this._normalizeStr(e),u={},d=s(c,t),p=this.items[t],f=0;for(r in d)if(o=d[r],f+=Math.pow(o,2),r in this.matchDict)for(O=0;O<this.matchDict[r].length;++O)a=this.matchDict[r][O][0],l=this.matchDict[r][O][1],a in u?u[a]+=o*l:u[a]=o*l;if(function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(u))return null;var h,m=Math.sqrt(f),g=[];for(var b in u)h=u[b],g.push([h/(m*p[b][0]),p[b][1]]);var v=function(e,t){return e[0]<t[0]?1:e[0]>t[0]?-1:0};if(g.sort(v),this.useLevenshtein){for(var y=[],x=Math.min(50,g.length),O=0;O<x;++O)y.push([i(g[O][1],c),g[O][1]]);(g=y).sort(v)}return y=[],g.forEach(function(e){e[0]>=n&&y.push([e[0],this.exactSet[e[1]]])}.bind(this)),y},o.add=function(e){if(this._normalizeStr(e)in this.exactSet)return!1;for(var t=this.gramSizeLower;t<this.gramSizeUpper+1;++t)this._add(e,t)},o._add=function(e,t){var n=this._normalizeStr(e),r=this.items[t]||[],o=r.length;r.push(0);var i,a,l=s(n,t),c=0;for(i in l)a=l[i],c+=Math.pow(a,2),i in this.matchDict?this.matchDict[i].push([o,a]):this.matchDict[i]=[[o,a]];var u=Math.sqrt(c);r[o]=[u,n],this.items[t]=r,this.exactSet[n]=e},o._normalizeStr=function(e){if("[object String]"!==Object.prototype.toString.call(e))throw"Must use a string as argument to FuzzySet functions";return e.toLowerCase()},o.length=function(){var e,t=0;for(e in this.exactSet)this.exactSet.hasOwnProperty(e)&&(t+=1);return t},o.isEmpty=function(){for(var e in this.exactSet)if(this.exactSet.hasOwnProperty(e))return!1;return!0},o.values=function(){var e,t=[];for(e in this.exactSet)this.exactSet.hasOwnProperty(e)&&t.push(this.exactSet[e]);return t};for(var l=o.gramSizeLower;l<o.gramSizeUpper+1;++l)o.items[l]=[];for(l=0;l<e.length;++l)o.add(e[l]);return o},Mt=n(47),Ft=n.n(Mt);var $t=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{d:"M10.394 2.08a1 1 0 00-.788 0l-7 3a1 1 0 000 1.84L5.25 8.051a.999.999 0 01.356-.257l4-1.714a1 1 0 11.788 1.838L7.667 9.088l1.94.831a1 1 0 00.787 0l7-3a1 1 0 000-1.838l-7-3zM3.31 9.397L5 10.12v4.102a8.969 8.969 0 00-1.05-.174 1 1 0 01-.89-.89 11.115 11.115 0 01.25-3.762zM9.3 16.573A9.026 9.026 0 007 14.935v-3.957l1.818.78a3 3 0 002.364 0l5.508-2.361a11.026 11.026 0 01.25 3.762 1 1 0 01-.89.89 8.968 8.968 0 00-5.35 2.524 1 1 0 01-1.4 0zM6 18a1 1 0 001-1v-2.065a8.935 8.935 0 00-2-.712V17a1 1 0 001 1z"}))}));const Bt={title:"Turn Handwritten Scripts into Text!",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",category:"Handwriting",Icon:$t,permissions:["user"],fromColor:"blue-400",toColor:"blue-600",to:"/ai/writing/handwritingtwo",api:"/ai/writing/handwritingtwo",output:{title:"Turn Handwritten Scripts into Text",desc:"Please wait as we decode the handwriting!"},prompts:[{title:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",desc:"Upload the essay response in PDF format. Make sure the images are clear, and that the file is no larger than 5 pages",prompts:[{title:"Context",attr:"essay_title",value:"",placeholder:"e.g. The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?",label:"Essay Title",type:"textarea",maxLength:150,required:!0,error:"",example:"The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?'"},{title:"Upload a PDF.",attr:"pdf_file",value:"",label:"Upload your PDF file",type:"file",required:!0,error:""}],example:{output:"Percentage  \n\nEND OF RESPONSE."}}]};s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),s.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))}));var Ut=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))}));s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))}));s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))}));var Ht=n(0);s.Component;var zt={title:"Turn Handwritten Scripts into Text (NOTE: You must add context for this tool to function correctly)!",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",category:"",Icon:$t,permissions:["user"],fromColor:"blue-400",toColor:"blue-600",to:"/ai/writing/handwriting",api:"/ai/writing/handwriting",output:{title:"Turn Handwritten Scripts into Text",desc:"Please wait as we decode the handwriting!"},prompts:[{title:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",desc:"Upload the essay response in PDF format. Make sure the images are clear, and that the file is no larger than 5 pages",prompts:[{title:"Context",attr:"essay_title",value:"",placeholder:"e.g. The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?",label:"Essay Title",type:"textarea",maxLength:150,required:!0,error:"",example:"The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?'"},{title:"Upload a PDF.",name:"essays",attr:"essays",value:"",label:"Upload your PDF file",type:"file",required:!0,error:""}],example:{output:"Percentage  \n\nEND OF RESPONSE."}}]};var Gt={title:"Turn Handwritten Scripts into Text!",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",category:"Handwriting",Icon:$t,permissions:["user"],fromColor:"blue-400",toColor:"blue-600",to:"/ai/writing/handwritingtwo",api:"/ai/writing/handwritingtwo",output:{title:"Turn Handwritten Scripts into Text",desc:"Please wait as we decode the handwriting!"},prompts:[{title:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",desc:"Upload the essay response in PDF format. Make sure the images are clear, and that the file is no larger than 5 pages",prompts:[{title:"Context",attr:"essay_title",value:"",placeholder:"e.g. The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?",label:"Essay Title",type:"textarea",maxLength:150,required:!0,error:"",example:"The student has written an essay entitled 'How far can Macbeth be considered an intrinsically violent individual?'"},{title:"Upload a PDF.",attr:"pdf_file",value:"",label:"Upload your PDF file",type:"file",required:!0,error:"",example:"sample"}],example:{output:"*The handwritten text will appear here in editable text.*"}}]};var Wt=[zt,Gt,{title:"Handwriting to Text Conversion",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text",category:"Transcribe",Icon:$t,permissions:["user"],fromColor:"blue-400",toColor:"blue-600",to:"/ai/writing/transcribe",api:"/ai/writing/transcribe",output:{title:"Handwriting to Text Conversion",desc:"Please wait as we query AI models. This can take up to 2 minutes."},prompts:[{title:"Handwriting to Text Conversion",desc:"Enter the candidate's response",prompts:[{title:"Context",attr:"essay_title",value:"",placeholder:"Tell us a little bit about this document - perhaps the title of the piece of work, or what it is about.",label:"Essay Title",type:"textarea",maxLength:1050,required:!0,example:"Compare how the effects of threats and violence are presented in these two extracts. You should consider:\n\n\u2022 the situations faced by the victims of threats and violence\n\u2022 how the victims react to their situations \n\u2022 how the writers\u2019 use of language and techniques creates effects."},{title:"Handwritten Script (Upload .pdf of the work).",name:"essays",attr:"essays",value:"",label:"Upload your PDF file",type:"file",required:!0,error:""}],example:{output:"Percentage likelihood the student's response has been AI generated: 0%\nAO1 Score: 10.6\nAO2 Score: 10.4\nAO3 Score: 4\nTotal Score: 25.0 / 30\nFeedback: \nAO1:\n\n> social attitudes towards class and social hierarchy. \n\nEND OF RESPONSE."}}]},{title:"Split PDFs Containing Multiple Handwritten Essays (NOTE: Each must be separated by a Top Marks barcode)!",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",category:"",Icon:$t,permissions:["user"],fromColor:"blue-400",toColor:"blue-600",to:"/ai/writing/split",api:"/ai/writing/split",output:{title:"Turn Handwritten Scripts into Text",desc:"Please wait as we decode the handwriting!"},prompts:[{title:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!)",desc:"Upload the essay response in PDF format. Make sure the images are clear, and that the file is no larger than 5 pages",prompts:[{title:"Upload a PDF.",name:"essays",attr:"essays",value:"",label:"Upload your PDF file",type:"file",required:!0,error:""}],example:{output:"Percentage  \n\nEND OF RESPONSE."}}]}];var Vt,qt,Kt,Yt,Xt,Zt,Qt,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un={baseURL:"/api/",landingPageUrl:"https://app.topmarks.ai",stripe:{gbp:{free:"price_1MPoKTC4gpAfet0jJMUsoTjh",entry:"price_1MPoMXC4gpAfet0j4sTl1jU5",pro:"price_1MPoNmC4gpAfet0jFRBiUMTo"},usd:{free:"price_1MPoKTC4gpAfet0jJMUsoTjh",entry:"price_1NIVnAC4gpAfet0j7AVKXp6p",pro:"price_1NIVs6C4gpAfet0jGXqrnbSM"}}};let dn=new Ft.a,pn=un.baseURL;Object(p.h)({enforceActions:"never"});let fn=Dt.create({baseURL:pn});Lt([...Wt.map((e=>e.title))]);let hn=(Vt=class{constructor(){this.api=fn,se(this,"baseURL",qt,this),se(this,"redirect",Kt,this),se(this,"editor",Yt,this),se(this,"editorIsLoading",Xt,this),se(this,"profile",Zt,this),se(this,"isLoggedIn",Qt,this),se(this,"loginLoading",Jt,this),se(this,"landingPageUrl",en,this),se(this,"jwtToken",tn,this),se(this,"referral",nn,this),se(this,"toolsKeyword",rn,this),se(this,"tools",on,this),se(this,"loadingTools",an,this),se(this,"error",sn,this),se(this,"copyToClipboardText",ln,this),se(this,"feedback",cn,this),this.noCreditsRemainPrompt=()=>{window.location.pathname="/my-profile"},this.init=async()=>{try{this.referralTrackingCode();const e=localStorage.getItem("profile"),t=localStorage.getItem("token");console.log("Retrieved token: ",t),e&&t&&(this.jwtToken=t,this.api.defaults.headers.common["x-access-token"]=t,this.profile=JSON.parse(e),this.isLoggedIn=!0,this.refreshTokenAndProfile())}catch(e){console.log(e)}},this.referralTrackingCode=async()=>{let e=new URLSearchParams(window.location.search).get("referral");e?this.setReferral(e):this.initReferral()},this.setProfile=async e=>{this.profile=e,localStorage.setItem("profile",JSON.stringify(e))},this.setReferral=async e=>{this.referral=e,localStorage.setItem("referral",JSON.stringify(e))},this.initReferral=async()=>{const e=localStorage.getItem("referral");this.referral=e},this.loginWithDataTokenAndProfile=async e=>{this.setToken(e.token),console.log("Login data token: ",e.token),this.setProfile(e.profile),this.isLoggedIn=!0},this.refreshTokenAndProfile=async()=>{try{let e=await this.api.post("/user/refresh/profile").then((e=>{let{data:t}=e;return t}));e&&this.setProfile(e.profile)}catch(e){console.log(e),this.handleLogout()}},this.setToken=async e=>{this.jwtToken=e,this.api.defaults.headers.common["x-access-token"]=e,localStorage.setItem("token",e),console.log("Token set in store: ",this.jwtToken)},this.setProfile=async e=>{this.profile=e,localStorage.setItem("profile",JSON.stringify(e))},this.handleLogout=()=>{this.isLoggedIn=!1,this.profile={},this.api.defaults.headers.common["x-access-token"]="",localStorage.removeItem("token"),localStorage.removeItem("profile")},this.getToolByUrl=e=>this.allTools.find((t=>t.to===e)),this.onChangeToolsKeyword=async e=>{this.toolsKeyword=e.target.value,await this.fetchTools()},this.fetchTools=async()=>{if(this.toolsKeyword){this.loadingTools=!0;try{const e=await fetch(`https://app.topmarks.ai/api/user/tools/search?keyword=${this.toolsKeyword}`,{headers:{Authorization:`Bearer ${this.jwtToken}`}}),t=await e.json();Object(p.q)((()=>{this.tools=[...Wt,...t]}))}catch(e){console.error("Error fetching tools:",e)}finally{Object(p.q)((()=>{this.loadingTools=!1}))}}else this.tools=Wt},this.copyToClipboard=e=>{if(e instanceof Array&&(e=e.join("\n")),!navigator.clipboard){let t=document.getElementById("copy-textarea");return this.copyToClipboardText=`${e}`,t.focus(),t.select(),void document.execCommand("copy")}navigator.clipboard.writeText(e).then((function(){console.log("Async: Copying to clipboard was successful!")}),(function(e){console.error("Async: Could not copy text: ",e)}))},this.reportToFeedback=e=>{this.redirect="/my-profile/feedback",this.feedback=`${e}`,setTimeout((()=>{this.redirect=""}),50)},this.checkPrompt=e=>{let{value:t,attr:n}=e;if(dn.isProfane(t))throw{success:!1,attr:n,value:t.trim(),message:"Unsafe content detected, please try different language"};if(t)return{success:!0,attr:n,value:t.trim()}},this.checkOutput=e=>e?e.trim():"",this.updateCredits=async e=>{try{e.hasOwnProperty("data")?(e.data.hasOwnProperty("credits")&&(this.profile.credits=e.data.credits),e.data.hasOwnProperty("creditsUsed")&&(this.profile.creditsUsed=e.data.creditsUsed)):(e.hasOwnProperty("credits")&&(this.profile.credits=e.credits),e.hasOwnProperty("creditsUsed")&&(this.profile.creditsUsed=e.creditsUsed))}catch(t){console.log(t)}},Object(p.n)(this),this.init(),this.api.interceptors.response.use((e=>(this.updateCredits(e),e)),(e=>(console.log(e),console.log("error.response.statusText",e.response.statusText),e.response&&"Token Authentication Failed"===e.response.statusText&&this.handleLogout(),e.response&&"No Credit Remaining"===e.response.statusText&&this.noCreditsRemainPrompt(),Promise.reject(e))))}getConfig(e,t){if(t)return Bt;const n=Wt.find((t=>t.to===e));return n||{}}get filteredTools(){const e=this.toolsKeyword.toLowerCase();return this.tools.filter((t=>{if(!t)return!1;return["_id","title","description","category","keywords"].some((n=>{var r;return null===(r=t[n])||void 0===r?void 0:r.toLowerCase().includes(e)}))}))}get allTools(){return[...Wt,...this.filteredTools]}},qt=le(Vt.prototype,"baseURL",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return pn}}),Kt=le(Vt.prototype,"redirect",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Yt=le(Vt.prototype,"editor",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xt=le(Vt.prototype,"editorIsLoading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Zt=le(Vt.prototype,"profile",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Qt=le(Vt.prototype,"isLoggedIn",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=le(Vt.prototype,"loginLoading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),en=le(Vt.prototype,"landingPageUrl",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return un.landingPageUrl}}),tn=le(Vt.prototype,"jwtToken",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),nn=le(Vt.prototype,"referral",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rn=le(Vt.prototype,"toolsKeyword",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),on=le(Vt.prototype,"tools",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Wt}}),an=le(Vt.prototype,"loadingTools",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sn=le(Vt.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ln=le(Vt.prototype,"copyToClipboardText",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),cn=le(Vt.prototype,"feedback",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),le(Vt.prototype,"filteredTools",[p.g],Object.getOwnPropertyDescriptor(Vt.prototype,"filteredTools"),Vt.prototype),le(Vt.prototype,"allTools",[p.g],Object.getOwnPropertyDescriptor(Vt.prototype,"allTools"),Vt.prototype),Vt);var mn=hn,gn=n(147),bn=n.n(gn),vn=n(39),yn=n(5);function xn(e){return"/"===e.charAt(0)}function On(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var En=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&xn(e),a=t&&xn(t),s=i||a;if(e&&xn(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=o.length;u>=0;u--){var d=o[u];"."===d?On(o,u):".."===d?(On(o,u),c++):c&&(On(o,u),c--)}if(!s)for(;c--;c)o.unshift("..");!s||""===o[0]||o[0]&&xn(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function wn(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var jn=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=wn(t),o=wn(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Sn="Invariant failed";function Tn(e,t){if(!e)throw new Error(Sn)}function kn(e){return"/"===e.charAt(0)?e:"/"+e}function Cn(e){return"/"===e.charAt(0)?e.substr(1):e}function _n(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Nn(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function An(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Rn(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=Object(yn.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(dD){throw dD instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):dD}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=En(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function In(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Pn=!("undefined"===typeof window||!window.document||!window.document.createElement);function Dn(e,t){t(window.confirm(e))}var Ln="popstate",Mn="hashchange";function Fn(){try{return window.history.state||{}}catch(dD){return{}}}function $n(e){void 0===e&&(e={}),Pn||Tn(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,s=o.getUserConfirmation,l=void 0===s?Dn:s,c=o.keyLength,u=void 0===c?6:c,d=e.basename?Nn(kn(e.basename)):"";function p(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return d&&(i=_n(i,d)),Rn(i,r,n)}function f(){return Math.random().toString(36).substr(2,u)}var h=In();function m(e){Object(yn.a)(k,e),k.length=t.length,h.notifyListeners(k.location,k.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||y(p(e.state))}function b(){y(p(Fn()))}var v=!1;function y(e){if(v)v=!1,m();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?m({action:"POP",location:e}):function(e){var t=k.location,n=O.indexOf(t.key);-1===n&&(n=0);var r=O.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(v=!0,w(o))}(e)}))}}var x=p(Fn()),O=[x.key];function E(e){return d+An(e)}function w(e){t.go(e)}var j=0;function S(e){1===(j+=e)&&1===e?(window.addEventListener(Ln,g),r&&window.addEventListener(Mn,b)):0===j&&(window.removeEventListener(Ln,g),r&&window.removeEventListener(Mn,b))}var T=!1;var k={length:t.length,action:"POP",location:x,createHref:E,push:function(e,r){var o="PUSH",i=Rn(e,r,f(),k.location);h.confirmTransitionTo(i,o,l,(function(e){if(e){var r=E(i),s=i.key,l=i.state;if(n)if(t.pushState({key:s,state:l},null,r),a)window.location.href=r;else{var c=O.indexOf(k.location.key),u=O.slice(0,c+1);u.push(i.key),O=u,m({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=Rn(e,r,f(),k.location);h.confirmTransitionTo(i,o,l,(function(e){if(e){var r=E(i),s=i.key,l=i.state;if(n)if(t.replaceState({key:s,state:l},null,r),a)window.location.replace(r);else{var c=O.indexOf(k.location.key);-1!==c&&(O[c]=i.key),m({action:o,location:i})}else window.location.replace(r)}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return T||(S(1),T=!0),function(){return T&&(T=!1,S(-1)),t()}},listen:function(e){var t=h.appendListener(e);return S(1),function(){S(-1),t()}}};return k}var Bn="hashchange",Un={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Cn(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Cn,decodePath:kn},slash:{encodePath:kn,decodePath:kn}};function Hn(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function zn(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Gn(e){window.location.replace(Hn(window.location.href)+"#"+e)}function Wn(e){void 0===e&&(e={}),Pn||Tn(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Dn:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?Nn(kn(e.basename)):"",l=Un[a],c=l.encodePath,u=l.decodePath;function d(){var e=u(zn());return s&&(e=_n(e,s)),Rn(e)}var p=In();function f(e){Object(yn.a)(S,e),S.length=t.length,p.notifyListeners(S.location,S.action)}var h=!1,m=null;function g(){var e,t,n=zn(),r=c(n);if(n!==r)Gn(r);else{var i=d(),a=S.location;if(!h&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(m===An(i))return;m=null,function(e){if(h)h=!1,f();else{var t="POP";p.confirmTransitionTo(e,t,o,(function(n){n?f({action:t,location:e}):function(e){var t=S.location,n=x.lastIndexOf(An(t));-1===n&&(n=0);var r=x.lastIndexOf(An(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,O(o))}(e)}))}}(i)}}var b=zn(),v=c(b);b!==v&&Gn(v);var y=d(),x=[An(y)];function O(e){t.go(e)}var E=0;function w(e){1===(E+=e)&&1===e?window.addEventListener(Bn,g):0===E&&window.removeEventListener(Bn,g)}var j=!1;var S={length:t.length,action:"POP",location:y,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Hn(window.location.href)),n+"#"+c(s+An(e))},push:function(e,t){var n="PUSH",r=Rn(e,void 0,void 0,S.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=An(r),o=c(s+t);if(zn()!==o){m=t,function(e){window.location.hash=e}(o);var i=x.lastIndexOf(An(S.location)),a=x.slice(0,i+1);a.push(t),x=a,f({action:n,location:r})}else f()}}))},replace:function(e,t){var n="REPLACE",r=Rn(e,void 0,void 0,S.location);p.confirmTransitionTo(r,n,o,(function(e){if(e){var t=An(r),o=c(s+t);zn()!==o&&(m=t,Gn(o));var i=x.indexOf(An(S.location));-1!==i&&(x[i]=t),f({action:n,location:r})}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return j||(w(1),j=!0),function(){return j&&(j=!1,w(-1)),t()}},listen:function(e){var t=p.appendListener(e);return w(1),function(){w(-1),t()}}};return S}function Vn(e,t,n){return Math.min(Math.max(e,t),n)}var qn=n(119),Kn=n(120),Yn=n.n(Kn),Xn=(n(188),n(37)),Zn=n(50),Qn=n.n(Zn),Jn=function(e){var t=Object(qn.a)();return t.displayName=e,t}("Router-History"),er=function(e){var t=Object(qn.a)();return t.displayName=e,t}("Router"),tr=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(vn.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(er.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},l.a.createElement(Jn.Provider,{children:this.props.children||null,value:this.props.history}))},t}(l.a.Component);l.a.Component;var nr=function(e){function t(){return e.apply(this,arguments)||this}Object(vn.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(l.a.Component);var rr={},or=0;function ir(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(rr[e])return rr[e];var t=Yn.a.compile(e);return or<1e4&&(rr[e]=t,or++),t}(e)(t,{pretty:!0})}function ar(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return l.a.createElement(er.Consumer,null,(function(e){e||Tn(!1);var r=e.history,i=e.staticContext,a=o?r.push:r.replace,s=Rn(t?"string"===typeof n?ir(n,t.params):Object(yn.a)({},n,{pathname:ir(n.pathname,t.params)}):n);return i?(a(s),null):l.a.createElement(nr,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,o=Rn(t.to);n=o,r=Object(yn.a)({},s,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&jn(n.state,r.state)||a(s)},to:n})}))}var sr={},lr=0;function cr(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=sr[n]||(sr[n]={});if(r[e])return r[e];var o=[],i={regexp:Yn()(e,o,t),keys:o};return lr<1e4&&(r[e]=i,lr++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var ur=function(e){function t(){return e.apply(this,arguments)||this}return Object(vn.a)(t,e),t.prototype.render=function(){var e=this;return l.a.createElement(er.Consumer,null,(function(t){t||Tn(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?cr(n.pathname,e.props):t.match,o=Object(yn.a)({},t,{location:n,match:r}),i=e.props,a=i.children,s=i.component,c=i.render;return Array.isArray(a)&&0===a.length&&(a=null),l.a.createElement(er.Provider,{value:o},o.match?a?"function"===typeof a?a(o):a:s?l.a.createElement(s,o):c?c(o):null:"function"===typeof a?a(o):null)}))},t}(l.a.Component);function dr(e){return"/"===e.charAt(0)?e:"/"+e}function pr(e,t){if(!e)return t;var n=dr(e);return 0!==t.pathname.indexOf(n)?t:Object(yn.a)({},t,{pathname:t.pathname.substr(n.length)})}function fr(e){return"string"===typeof e?e:An(e)}function hr(e){return function(){Tn(!1)}}function mr(){}l.a.Component;var gr=function(e){function t(){return e.apply(this,arguments)||this}return Object(vn.a)(t,e),t.prototype.render=function(){var e=this;return l.a.createElement(er.Consumer,null,(function(t){t||Tn(!1);var n,r,o=e.props.location||t.location;return l.a.Children.forEach(e.props.children,(function(e){if(null==r&&l.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?cr(o.pathname,Object(yn.a)({},e.props,{path:i})):t.match}})),r?l.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(l.a.Component);function br(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(Xn.a)(t,["wrappedComponentRef"]);return l.a.createElement(er.Consumer,null,(function(t){return t||Tn(!1),l.a.createElement(e,Object(yn.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Qn()(n,e)}var vr=l.a.useContext;function yr(){return vr(er).location}var xr=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=$n(t.props),t}return Object(vn.a)(t,e),t.prototype.render=function(){return l.a.createElement(tr,{history:this.history,children:this.props.children})},t}(l.a.Component);l.a.Component;var Or=function(e,t){return"function"===typeof e?e(t):e},Er=function(e,t){return"string"===typeof e?Rn(e,null,null,t):e},wr=function(e){return e},jr=l.a.forwardRef;"undefined"===typeof jr&&(jr=wr);var Sr=jr((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=Object(Xn.a)(e,["innerRef","navigate","onClick"]),a=i.target,s=Object(yn.a)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=wr!==jr&&t||n,l.a.createElement("a",s)}));var Tr=jr((function(e,t){var n=e.component,r=void 0===n?Sr:n,o=e.replace,i=e.to,a=e.innerRef,s=Object(Xn.a)(e,["component","replace","to","innerRef"]);return l.a.createElement(er.Consumer,null,(function(e){e||Tn(!1);var n=e.history,c=Er(Or(i,e.location),e.location),u=c?n.createHref(c):"",d=Object(yn.a)({},s,{href:u,navigate:function(){var t=Or(i,e.location);(o?n.replace:n.push)(t)}});return wr!==jr?d.ref=t||a:d.innerRef=a,l.a.createElement(r,d)}))})),kr=function(e){return e},Cr=l.a.forwardRef;"undefined"===typeof Cr&&(Cr=kr);var _r=Cr((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,a=e.activeStyle,s=e.className,c=e.exact,u=e.isActive,d=e.location,p=e.sensitive,f=e.strict,h=e.style,m=e.to,g=e.innerRef,b=Object(Xn.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return l.a.createElement(er.Consumer,null,(function(e){e||Tn(!1);var n=d||e.location,o=Er(Or(m,n),n),v=o.pathname,y=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=y?cr(n.pathname,{path:y,exact:c,sensitive:p,strict:f}):null,O=!!(u?u(x,n):x),E=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,i):s,w=O?Object(yn.a)({},h,{},a):h,j=Object(yn.a)({"aria-current":O&&r||null,className:E,style:w,to:o},b);return kr!==Cr?j.ref=t||g:j.innerRef=g,l.a.createElement(Tr,j)}))}));var Nr=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))}));var Ar=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var Rr=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}));const Ir=e=>{let{className:t}=e;return Object(Ht.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:t||"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Object(Ht.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})})},Pr=(d.d.div`
    width: 2.5em;
    height: 2.5em;
    position: relative;
    display:inline-block;
    ${e=>e.active?null:d.c`
      display:none;
    `}
`,d.e`
  0%,100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  }

  50% {
    transform: scale(1.0);
      -webkit-transform: scale(1.0);
  }
`);d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Pr} 3.0s infinite ease-in-out;
    animation: ${Pr} 3.0s infinite ease-in-out;
`,d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3d84f6;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Pr} 3.0s infinite ease-in-out;
    animation: ${Pr} 3.0s infinite ease-in-out;
    animation-delay: -1.0s;
`,d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3d84f6;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Pr} 3.0s infinite ease-in-out;
    animation: ${Pr} 3.0s infinite ease-in-out;
    animation-delay: -2.0s;
`;function Dr(e){return Object(Ht.jsx)("div",{className:"grid grid-cols-6 xl:grid-cols-12 xl:gap-12",children:e.children})}function Lr(e){let{span:t,children:n,className:r}=e;return Object(Ht.jsx)("div",{className:`col-span-${t||"6"} ${r}`,children:n})}var Mr,Fr,$r=function(e){return Object(Ht.jsx)("div",{className:`container mx-auto overflow-hidden ${e.className||"md:px-28 md:py-8 lg:py-12 "}`,children:e.children})},Br=n.p+"static/media/new-logo.7c39f821.png";function Ur(e){const t=yr();return Object(Ht.jsx)(Wr,{active:"/"===t.pathname,children:e.children})}let Hr=ae("store")(Mr=ee((Fr=class extends s.Component{constructor(e){super(e),this.shortcutHandler=e=>{75===e.keyCode&&e.ctrlKey&&(e.preventDefault(),document.getElementById("q").focus(),document.getElementById("q").select())},this.onKeyUp=e=>{"/search"!==this.props.location.pathname&&this.props.history.push("/search"),8===e.keyCode&&""===this.props.store.toolsKeyword&&this.props.history.push("/")},this.toggleFormModal=()=>{this.setState((e=>({showFormModal:!e.showFormModal})))},this.state={showFormModal:!1},"/signup"===this.props.location.pathname&&this.props.history.push("/"),"/login"===this.props.location.pathname&&this.props.history.push("/")}componentDidMount(){document.addEventListener("keydown",this.shortcutHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.shortcutHandler)}get fromColor(){return this.props.store.profile.credits<=0?"bg-red-200 text-red-600":"trialing"===this.props.store.profile.status||"active"===this.props.store.profile.status||"incomplete"===this.props.store.profile.status?"":"bg-red-200 text-red-600"}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Gr,{readOnly:!0,name:"copy-textarea",id:"copy-textarea",value:this.props.store.copyToClipboardText}),Object(Ht.jsx)(Ur,{children:Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 flex items-center flex-1",children:[Object(Ht.jsx)("div",{className:"mr-4",children:Object(Ht.jsx)(_r,{to:"/",children:Object(Ht.jsx)("img",{src:Br,alt:"Logo"})})}),Object(Ht.jsxs)("div",{children:[Object(Ht.jsxs)("div",{className:"text-4xl relative font-medium text-transparent bg-clip-text bg-gradient-to-r from-gray-700 to-gray-600 inline-block",children:["Top",Object(Ht.jsx)("span",{className:"font-normal",children:"Marks"}),Object(Ht.jsx)("div",{className:"absolute top-0 ml-3 left-full bg-gradient-to-br from-gray-500 to-gray-500 text-white text-sm px-2 py-0.5 rounded-md font-normal hidden md:flex",children:"AI"})]}),Object(Ht.jsx)("div",{className:"hidden md:block text-xl text-transparent bg-clip-text bg-gradient-to-r from-gray-700 to-gray-500 inline-block",children:"Automate marking. Get on with teaching!"}),Object(Ht.jsx)("div",{className:"flex",children:Object(Ht.jsxs)("div",{className:`items-center flex inline-flex ${this.props.store.profile.credits?"bg-gray-100 text-gray-500":"bg-red-100 text-red-500"} text-sm rounded-md px-3 py-1 font-medium my-2 mr-2`,children:[Object(Ht.jsx)(Nr,{className:"w-4 h-4 mr-2"}),this.props.store.profile.credits,"\xa0",Object(Ht.jsx)("span",{className:"hidden lg:block",children:"credits remain"})]})})]})]})}),Object(Ht.jsx)("div",{className:"border-b border-gray-300 bg-white shadow-sm",children:Object(Ht.jsxs)("div",{className:"container flex mx-auto px-4 md:px-28 flex select-none",children:[Object(Ht.jsxs)(_r,{to:"/",exact:!0,tabIndex:-1,onClick:()=>this.props.store.toolsKeyword="",activeClassName:"bg-gray-100 hover:bg-gray-200 text-gray-800 transition",className:"text-lg flex py-3 px-6 lg:py-4 lg:px-8 cursor-pointer hover:bg-gray-100 rounded-t-md font-medium transition items-center",children:[Object(Ht.jsx)(Ir,{className:"w-7 h-7 lg:mr-4 transition"}),Object(Ht.jsx)("div",{className:"hidden lg:block",children:"Tools"})]}),Object(Ht.jsxs)("div",{className:"relative text-gray-400 focus-within:text-green-500 flex flex-1",children:[Object(Ht.jsx)("label",{htmlFor:"q",className:"absolute inset-y-0 left-0 top-0 bottom-0 hidden md:flex items-center lg:pl-2",children:Object(Ht.jsx)("div",{type:"submit",className:"p-2 focus:outline-none focus:shadow-outline",children:Object(Ht.jsx)("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",className:"w-6 h-6 transition",children:Object(Ht.jsx)("path",{d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})}),Object(Ht.jsx)(zr,{type:"search",tabIndex:-1,id:"q",name:"q",className:"py-4 pl-4 md:pl-14 text-xl focus:outline-none focus:bg-white focus:text-gray-900 transition flex flex-1 w-full",placeholder:"Search...  [Shortcut: Ctrl + K]",autoComplete:"off",value:this.props.store.toolsKeyword,onChange:this.props.store.onChangeToolsKeyword,onKeyUp:this.onKeyUp})]}),Object(Ht.jsxs)(_r,{to:"/history",exact:!0,tabIndex:"-1",activeClassName:"bg-green-100 hover:bg-green-200 text-green-800 transition",className:`text-lg flex py-3 px-6 xl:py-4 xl:px-8 cursor-pointer ${this.fromColor} hover:bg-gray-100 rounded-t-md font-medium transition items-center`,children:[Object(Ht.jsx)(Ar,{className:"w-7 h-7 lg:mr-4 transition"}),Object(Ht.jsx)("div",{className:"hidden lg:block",children:"History"})]}),Object(Ht.jsxs)(_r,{to:"/my-profile",exact:!0,tabIndex:"-1",activeClassName:"bg-green-100 hover:bg-green-200 text-green-800 transition",className:`text-lg flex py-3 px-6 xl:py-4 xl:px-8 cursor-pointer ${this.fromColor} hover:bg-gray-100 rounded-t-md font-medium transition items-center`,children:[Object(Ht.jsx)(Rr,{className:"w-7 h-7 lg:mr-4 transition"}),Object(Ht.jsx)("div",{className:"hidden lg:block",children:"My Profile"})]}),Object(Ht.jsx)(Vr,{onClick:this.toggleFormModal,children:"Suggest a Tool/Subject"})]})}),this.props.children,this.state.showFormModal&&Object(Ht.jsx)(qr,{children:Object(Ht.jsxs)(Kr,{children:[Object(Ht.jsx)("button",{onClick:this.toggleFormModal,className:"close-button",children:"\xd7"}),Object(Ht.jsx)("iframe",{src:"https://docs.google.com/forms/d/e/1FAIpQLSfWY0nsrl6Flf-dBfAGyCI6R4BuezzqTlsz2lybZ_X6zhQxNg/viewform?embedded=true",width:"100%",height:"500",frameBorder:"0",marginHeight:"0",marginWidth:"0",title:"Suggestion Form",children:"Loading\u2026"})]})})]})}},le(Fr.prototype,"fromColor",[p.g],Object.getOwnPropertyDescriptor(Fr.prototype,"fromColor"),Fr.prototype),Mr=Fr))||Mr)||Mr;const zr=d.d.input``,Gr=d.d.textarea`
  position: fixed;
  right: -9990px;
  top: -9990px;
`,Wr=d.d.div`
  height: 150px;
  background: white;
  margin-top: ${e=>e.active?"0px":"-150px"};
  display: ${e=>e.hidden?"hidden":"flex"};
  background-image: url(${n(190).default});
  background-size: auto 50%;
  background-position: 20px 20px;
  background-repeat: no-repeat;
  position: relative;
`,Vr=d.d.button`
  background-color: #3b82f6; /* Tailwind Blue 500 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin-left: auto;
  transition: background-color 0.3s ease;

  &:hover {
    background-color: #2563eb; /* Tailwind Blue 600 */
    cursor: pointer;
  }
`,qr=d.d.div`
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
`,Kr=d.d.div`
  background: white;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  width: 90%;
  max-width: 800px;

  .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
`;var Yr=br(Hr);const Xr=d.d.div`
  
    position: relative;
    display:inline-block;
    ${e=>e.active?null:d.c`
      display:none;
    `}
`,Zr=d.e`
  0%,100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  }

  50% {
    transform: scale(1.0);
      -webkit-transform: scale(1.0);
  }
`,Qr=d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Zr} 3.0s infinite ease-in-out;
    animation: ${Zr} 3.0s infinite ease-in-out;
`,Jr=d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3d84f6;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Zr} 3.0s infinite ease-in-out;
    animation: ${Zr} 3.0s infinite ease-in-out;
    animation-delay: -1.0s;
`,eo=d.d.div`
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3d84f6;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: ${Zr} 3.0s infinite ease-in-out;
    animation: ${Zr} 3.0s infinite ease-in-out;
    animation-delay: -2.0s;
`;var to=e=>{let{active:t,hidden:n,...r}=e;return Object(Ht.jsxs)(Xr,{active:t,...r,children:[Object(Ht.jsx)(Qr,{active:t,hidden:n}),Object(Ht.jsx)(Jr,{active:t,hidden:n}),Object(Ht.jsx)(eo,{active:t,hidden:n})]})};var no=()=>Object(Ht.jsx)("div",{className:"flex justify-center items-center h-full w-full",children:Object(Ht.jsx)(to,{active:!0,className:"h-20 w-20"})}),ro=n(9),oo=n(3);function io(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. "}var ao="function"===typeof Symbol&&Symbol.observable||"@@observable",so=function(){return Math.random().toString(36).substring(7).split("").join(".")},lo={INIT:"@@redux/INIT"+so(),REPLACE:"@@redux/REPLACE"+so(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+so()}};function co(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function uo(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(io(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(io(1));return n(uo)(e,t)}if("function"!==typeof e)throw new Error(io(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(io(3));return i}function d(e){if("function"!==typeof e)throw new Error(io(4));if(l)throw new Error(io(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(io(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!co(e))throw new Error(io(7));if("undefined"===typeof e.type)throw new Error(io(8));if(l)throw new Error(io(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:lo.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(io(10));o=e,p({type:lo.REPLACE})}})[ao]=function(){var e,t=d;return e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(io(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ao]=function(){return this},e},r}function po(e,t){return function(){return t(e.apply(this,arguments))}}function fo(e,t){if("function"===typeof e)return po(e,t);if("object"!==typeof e||null===e)throw new Error(io(16));var n={};for(var r in e){var o=e[r];"function"===typeof o&&(n[r]=po(o,t))}return n}function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var mo=l.a.createContext(null);var go=function(e){e()};function bo(){var e=go,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var vo={notify:function(){},get:function(){return[]}};function yo(e,t){var n,r=vo;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=bo())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=vo)},getListeners:function(){return r}};return a}var xo="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?s.useLayoutEffect:s.useEffect;var Oo=function(e){var t=e.store,n=e.context,r=e.children,o=Object(s.useMemo)((function(){var e=yo(t);return{store:t,subscription:e}}),[t]),i=Object(s.useMemo)((function(){return t.getState()}),[t]);xo((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var a=n||mo;return l.a.createElement(a.Provider,{value:o},r)},Eo=n(77),wo=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],jo=["reactReduxForwardedRef"],So=[],To=[null,null];function ko(e,t){var n=e[1];return[t.payload,n+1]}function Co(e,t,n){xo((function(){return e.apply(void 0,t)}),n)}function _o(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function No(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(dD){n=dD,d=dD}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var Ao=function(){return[null,0]};function Ro(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=void 0===i?"connectAdvanced":i,c=n.renderCountProp,u=void 0===c?void 0:c,d=n.shouldHandleStateChanges,p=void 0===d||d,f=n.storeKey,h=void 0===f?"store":f,m=(n.withRef,n.forwardRef),g=void 0!==m&&m,b=n.context,v=void 0===b?mo:b,y=Object(Xn.a)(n,wo),x=v;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=Object(yn.a)({},y,{getDisplayName:o,methodName:a,renderCountProp:u,shouldHandleStateChanges:p,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t}),c=y.pure;var d=c?s.useMemo:function(e){return e()};function f(n){var r=Object(s.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(Xn.a)(n,jo);return[n.context,e,t]}),[n]),o=r[0],a=r[1],c=r[2],u=Object(s.useMemo)((function(){return o&&o.Consumer&&Object(Eo.isContextConsumer)(l.a.createElement(o.Consumer,null))?o:x}),[o,x]),f=Object(s.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(f)&&Boolean(f.store);var m=h?n.store:f.store,g=Object(s.useMemo)((function(){return function(t){return e(t.dispatch,i)}(m)}),[m]),b=Object(s.useMemo)((function(){if(!p)return To;var e=yo(m,h?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,h,f]),v=b[0],y=b[1],O=Object(s.useMemo)((function(){return h?f:Object(yn.a)({},f,{subscription:v})}),[h,f,v]),E=Object(s.useReducer)(ko,So,Ao),w=E[0][0],j=E[1];if(w&&w.error)throw w.error;var S=Object(s.useRef)(),T=Object(s.useRef)(c),k=Object(s.useRef)(),C=Object(s.useRef)(!1),_=d((function(){return k.current&&c===T.current?k.current:g(m.getState(),c)}),[m,w,c]);Co(_o,[T,S,C,c,_,k,y]),Co(No,[p,m,v,g,T,S,C,k,y,j],[m,v,g]);var N=Object(s.useMemo)((function(){return l.a.createElement(t,Object(yn.a)({},_,{ref:a}))}),[a,t,_]);return Object(s.useMemo)((function(){return p?l.a.createElement(u.Provider,{value:O},N):N}),[u,N,O])}var m=c?l.a.memo(f):f;if(m.WrappedComponent=t,m.displayName=f.displayName=r,g){var b=l.a.forwardRef((function(e,t){return l.a.createElement(m,Object(yn.a)({},e,{reactReduxForwardedRef:t}))}));return b.displayName=r,b.WrappedComponent=t,Qn()(b,t)}return Qn()(m,t)}}function Io(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function Po(e,t){if(Io(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Io(e[n[o]],t[n[o]]))return!1;return!0}function Do(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Lo(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Mo(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Lo(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Lo(o),o=r(t,n)),o},r}}var Fo=[function(e){return"function"===typeof e?Mo(e):void 0},function(e){return e?void 0:Do((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?Do((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var $o=[function(e){return"function"===typeof e?Mo(e):void 0},function(e){return e?void 0:Do((function(){return{}}))}];function Bo(e,t,n){return Object(yn.a)({},n,e,t)}var Uo=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return Bo}}];var Ho=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function zo(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Go(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,f=!1;function h(o,f){var h=!d(f,a),m=!u(o,i,f,a);return i=o,a=f,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!p(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return f?h(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),f=!0,c)}}function Wo(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(Xn.a)(t,Ho),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?Go:zo)(a,s,l,e,i)}var Vo=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function qo(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Ko(e,t){return e===t}function Yo(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Ro:n,o=t.mapStateToPropsFactories,i=void 0===o?$o:o,a=t.mapDispatchToPropsFactories,s=void 0===a?Fo:a,l=t.mergePropsFactories,c=void 0===l?Uo:l,u=t.selectorFactory,d=void 0===u?Wo:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,p=a.areStatesEqual,f=void 0===p?Ko:p,h=a.areOwnPropsEqual,m=void 0===h?Po:h,g=a.areStatePropsEqual,b=void 0===g?Po:g,v=a.areMergedPropsEqual,y=void 0===v?Po:v,x=Object(Xn.a)(a,Vo),O=qo(e,i,"mapStateToProps"),E=qo(t,s,"mapDispatchToProps"),w=qo(n,c,"mergeProps");return r(d,Object(yn.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:O,initMapDispatchToProps:E,initMergeProps:w,pure:u,areStatesEqual:f,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:y},x))}}var Xo=Yo();var Zo;function Qo(e,t){var n=Object(s.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(s.useRef)(!0),o=Object(s.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return Object(s.useEffect)((function(){r.current=!1,o.current=i}),[i]),i.result}Zo=c.unstable_batchedUpdates,go=Zo;var Jo=Qo,ei=function(e,t){return Qo((function(){return e}),t)},ti=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ni=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ri=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},oi={top:0,right:0,bottom:0,left:0},ii=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?oi:n,o=e.border,i=void 0===o?oi:o,a=e.padding,s=void 0===a?oi:a,l=ti(ni(t,r)),c=ti(ri(t,i)),u=ti(ri(c,s));return{marginBox:l,borderBox:ti(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},ai=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Tn(!1),n},si=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ii({borderBox:l,border:i,margin:a,padding:s})},li=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),si(e,t)},ci=function(e,t){var n={top:ai(t.marginTop),right:ai(t.marginRight),bottom:ai(t.marginBottom),left:ai(t.marginLeft)},r={top:ai(t.paddingTop),right:ai(t.paddingRight),bottom:ai(t.paddingBottom),left:ai(t.paddingLeft)},o={top:ai(t.borderTopWidth),right:ai(t.borderRightWidth),bottom:ai(t.borderBottomWidth),left:ai(t.borderLeftWidth)};return ii({borderBox:e,margin:n,padding:r,border:o})},ui=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ci(t,n)},di=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function pi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||di(r)&&di(o)))return!1;var r,o;return!0}var fi=function(e,t){var n;void 0===t&&(t=pi);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},hi=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function mi(e,t){}mi.bind(null,"warn"),mi.bind(null,"error");function gi(){}function bi(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,Object(yn.a)({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}var vi="Invariant failed";function yi(e){this.message=e}function xi(e,t){if(!e)throw new yi(vi)}yi.prototype.toString=function(){return this.message};var Oi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=gi,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof yi&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(vn.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=bi(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof yi))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(l.a.Component),Ei=function(e){return e+1},wi=function(e,t){var n=e.droppableId===t.droppableId,r=Ei(e.index),o=Ei(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},ji=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},Si=function(e){return"\n  The item has returned to its starting position\n  of "+Ei(e.index)+"\n"},Ti="\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",ki=function(e){return"\n  You have lifted an item in position "+Ei(e.source.index)+"\n"},Ci=function(e){var t=e.destination;if(t)return wi(e.source,t);var n=e.combine;return n?ji(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},_i=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Si(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+wi(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+ji(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Si(e.source)+"\n  "},Ni={x:0,y:0},Ai=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ri=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ii=function(e,t){return e.x===t.x&&e.y===t.y},Pi=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Di=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Li=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Mi=function(e,t){return Math.min.apply(Math,t.map((function(t){return Li(e,t)})))},Fi=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},$i=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Bi=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ui=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=ti({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 n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):ti(e)},Hi=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?$i(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?Object(yn.a)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Ui(a,o)}},zi=function(e,t){e.frame||xi(!1);var n=e.frame,r=Ri(t,n.scroll.initial),o=Pi(r),i=Object(yn.a)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=Hi({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return Object(yn.a)({},e,{frame:i,subject:a})};function Gi(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Wi(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Vi(e,t){if(e.find)return e.find(t);var n=Wi(e,t);return-1!==n?e[n]:void 0}function qi(e){return Array.prototype.slice.call(e)}var Ki=fi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Yi=fi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Xi=fi((function(e){return Gi(e)})),Zi=fi((function(e){return Gi(e)})),Qi=fi((function(e,t){return Zi(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Ji(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function ea(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ta=fi((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),na=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ra={point:Ni,value:0},oa={invisible:{},visible:{},all:[]},ia={displaced:oa,displacedBy:ra,at:null},aa=function(e,t){return function(n){return e<=n&&n<=t}},sa=function(e){var t=aa(e.top,e.bottom),n=aa(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},la=function(e){var t=aa(e.top,e.bottom),n=aa(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ca={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ua={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},da=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ni;return $i(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},pa=function(e){return da(Object(yn.a)({},e,{isVisibleThroughFrameFn:sa}))},fa=function(e){return da(Object(yn.a)({},e,{isVisibleThroughFrameFn:la}))};function ha(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return ti(ni(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!pa({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function ma(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:oa,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ga(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=na(t,r);if(null==s)return ma({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Vi(n,(function(e){return e.descriptor.index===s}));if(!u)return ma({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=ta(t,n),p=n.indexOf(u);return{displaced:ha({afterDragging:d.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ba(e,t){return Boolean(t.effected[e])}var va=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||xi(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ga({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ba(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==p?null:ga({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})},ya=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=ea(n);o||xi(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ba(r,n)?i?Ni:Pi(o.point):i?o.point:Ni}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ai(a,s)},xa=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Oa=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Ea=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Di(t.line,n.marginBox[t.end]+xa(t,r),Oa(t,n.marginBox,r))},wa=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Di(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Oa(t,n.marginBox,r))},ja=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Qi(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Di(t.line,n.contentBox[t.start]+xa(t,r),Oa(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(ba(d,i))return wa({axis:l,moveRelativeTo:p.page,isMoving:s});var f=si(p.page,u.point);return wa({axis:l,moveRelativeTo:f,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ba(h.descriptor.id,i)){var m=si(h.page,Pi(i.displacedBy.point));return Ea({axis:l,moveRelativeTo:m,isMoving:s})}return Ea({axis:l,moveRelativeTo:h.page,isMoving:s})},Sa=function(e,t){var n=e.frame;return n?Ai(t,n.scroll.diff.displacement):t},Ta=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?ja({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ya({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Sa(n,t):t},ka=function(e,t){var n=Ri(t,e.scroll.initial),r=Pi(n);return{frame:ti({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:n,displacement:r}}}};function Ca(e,t){return e.map((function(e){return t[e]}))}var _a=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Ai(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ri(r,n.page.borderBox.center);return Ai(n.client.borderBox.center,o)},Na=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=Ri(r,t.page.borderBox.center),c={target:$i(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return da(Object(yn.a)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=aa(e.top,e.bottom),r=aa(e.left,e.right);return function(e){return t===ca?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):fa(c)},Aa=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=Qi(r.descriptor.id,o),d=na(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ji(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Object(yn.a)({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=ta(n,o);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=Wi(c,(function(e){return e.descriptor.id===l}));-1===u&&xi(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||va({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!p)return null;var f=Ta({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Na({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_a({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var h=Ri(f,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=ka(n,Ai(n.scroll.current,i)),s=r.frame?zi(r,Ai(r.frame.scroll.current,i)):r,l=t.displaced,c=ha({afterDragging:Ca(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=ha({afterDragging:Ca(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},p={},f=[l,c,u];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,f);t?p[e]=t:d[e]=!0})),Object(yn.a)({},t,{displaced:{all:l.all,invisible:d,visible:p}})}({impact:p,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:l,impact:m,scrollJumpRequest:h}},Ra=function(e){var t=e.subject.active;return t||xi(!1),t},Ia=function(e,t){var n=e.page.borderBox.center;return ba(e.descriptor.id,t)?Ri(n,t.displacedBy.point):n},Pa=function(e,t){var n=e.page.borderBox;return ba(e.descriptor.id,t)?$i(n,Pi(t.displacedBy.point)):n},Da=fi((function(e,t){var n=t[e.line];return{value:n,point:Di(e.line,n)}})),La=function(e,t){return Object(yn.a)({},e,{scroll:Object(yn.a)({},e.scroll,{max:t})})},Ma=function(e,t,n){var r=e.frame;na(t,e)&&xi(!1),e.subject.withPlaceholder&&xi(!1);var o=Da(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Di(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Qi(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Di(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var s=Hi({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return Object(yn.a)({},e,{subject:s})}var l=i?Ai(r.scroll.max,i):r.scroll.max,c=La(r,l),u=Hi({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return Object(yn.a)({},e,{subject:u,frame:c})},Fa=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=aa(a[s.start],a[s.end]),c=Xi(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return sa(i.frame)(Ra(e))})).filter((function(e){var n=Ra(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ra(e),n=aa(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Ra(e)[s.crossAxisStart],o=Ra(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Ra(e)[s.crossAxisStart]===Ra(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return aa(Ra(e)[s.start],Ra(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Ra(e)[s.start]-Ra(t)[s.start]}))[0]:c.sort((function(e,t){var r=Mi(n,Bi(Ra(e))),o=Mi(n,Bi(Ra(t)));return r!==o?r-o:Ra(e)[s.start]-Ra(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=Qi(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return fa({target:Pa(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Li(t,Sa(r,Ia(e,i))),a=Li(t,Sa(r,Ia(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:oa,displacedBy:ra,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Ta({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=na(o,a)?a:Ma(a,o,i);return Na({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),f=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||p?e:e+1}(),h=Da(a.axis,o.displaceBy);return ga({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:oa,index:f})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!p)return null;var f=Ta({impact:p,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:_a({pageBorderBoxCenter:f,draggable:r,viewport:s}),impact:p,scrollJumpRequest:null}},$a=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Ba=function(e){var t=e.state,n=e.type,r=function(e,t){var n=$a(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,h=p.droppables;return l?Aa({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Fa({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Ua(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Ha(e){var t=aa(e.top,e.bottom),n=aa(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function za(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Xi(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Ha(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=aa(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Di(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Li(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Ga=function(e,t){return ti($i(e,t))};function Wa(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Va=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Ga(n.page.borderBox,t),c=za({pageBorderBox:l,draggable:n,droppables:o});if(!c)return ia;var u=o[c],d=Qi(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?Ga(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Da(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=Vi(ta(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ba(t,a),l=Wa({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return p?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Da(r.axis,n.displaceBy),u=c.value,d=t[l.start],p=t[l.end],f=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Vi(ta(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ba(t,s),o=Wa({displaced:i,id:t});return r?o?p<=n:d<n-u:o?p<=n+u:d<n})),inHomeList:na(n,r)});return ga({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},qa=function(e,t){var n;return Object(yn.a)({},e,((n={})[t.descriptor.id]=t,n))},Ka=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=$a(t),i=$a(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||xi(!1);var n=e.frame;if(!n){var r=Hi({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(yn.a)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||xi(!1);var i=La(n,o),a=Hi({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return Object(yn.a)({},e,{subject:a,frame:i})}(a);return qa(r,s)},Ya=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=Ri(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Ai(t.initial.client.borderBoxCenter,u)},p={selection:Ai(d.selection,s.scroll.current),borderBoxCenter:Ai(d.borderBoxCenter,s.scroll.current),offset:Ai(d.offset,s.scroll.diff.value)},f={client:d,page:p};if("COLLECTING"===t.phase)return Object(yn.a)({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:f});var h=l.draggables[t.critical.draggable.id],m=i||Va({pageOffset:p.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Ka({previousImpact:o,impact:i,droppables:r}),s=$a(i);if(!s)return a;var l=r[s];if(na(t,l))return a;if(l.subject.withPlaceholder)return a;var c=Ma(l,t,n);return qa(a,c)}({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return Object(yn.a)({},t,{current:f,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Xa=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),l=ha({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return Object(yn.a)({},t,{displaced:l})},Za=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=Ta({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return _a({pageBorderBoxCenter:s,draggable:n,viewport:i})},Qa=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&xi(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=$a(o);u||xi(!1);var d=l[u],p=Xa({impact:o,viewport:i,destination:d,draggables:s}),f=Za({impact:p,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return Ya({impact:p,clientSelection:f,state:t,dimensions:a,viewport:i})},Ja=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Da(n.axis,t.displaceBy),a=Qi(n.descriptor.id,r),s=a.indexOf(t);-1===s&&xi(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:ha({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},es=function(e){0},ts=function(e){0},ns=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||xi(!1),t}(n[t]).scroll.diff.value,a=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=si(t.client,n),i=li(o,r);return Object(yn.a)({},t,{placeholder:Object(yn.a)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Ai(o,i),initialWindowScroll:r.scroll.initial});return a}))},rs=function(e){return"SNAP"===e.movementMode},os=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:qa(e.droppables,t)}}(e.dimensions,t);return!rs(e)||n?Ya({state:e,dimensions:r}):Qa({state:e,dimensions:r})};function is(e){return e.isDragging&&"SNAP"===e.movementMode?Object(yn.a)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var as={phase:"IDLE",completed:null,shouldFlush:!1},ss=function(e,t){if(void 0===e&&(e=as),"FLUSH"===t.type)return Object(yn.a)({},as,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&xi(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Ni},d={client:u,page:{selection:Ai(u.selection,i.scroll.initial),borderBoxCenter:Ai(u.selection,i.scroll.initial),offset:Ai(u.selection,i.scroll.diff.value)}},p=Xi(a.droppables).every((function(e){return!e.isFixedOnPage})),f=Ja({draggable:l,home:c,draggables:a.draggables,viewport:i}),h=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:h,afterCritical:f.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&xi(!1),Object(yn.a)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&xi(!1),function(e){var t=e.state,n=e.published;es();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return zi(n,e.scroll)})),o=Object(yn.a)({},t.dimensions.droppables,{},Ki(r)),i=Yi(ns({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=Object(yn.a)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=$a(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],p=Ja({draggable:u,home:d,draggables:a,viewport:t.viewport}),f=p.impact,h=p.afterCritical,m=c&&c.isCombineEnabled?t.impact:f,g=Va({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});ts();var b=Object(yn.a)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:Object(yn.a)({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ua(e)||xi(!1);var m=t.payload.client;return Ii(m,e.current.client.selection)?e:Ya({state:e,clientSelection:m,impact:rs(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return is(e);if("COLLECTING"===e.phase)return is(e);Ua(e)||xi(!1);var g=t.payload,b=g.id,v=g.newScroll,y=e.dimensions.droppables[b];if(!y)return e;var x=zi(y,v);return os(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ua(e)||xi(!1);var O=t.payload,E=O.id,w=O.isEnabled,j=e.dimensions.droppables[E];j||xi(!1),j.isEnabled===w&&xi(!1);var S=Object(yn.a)({},j,{isEnabled:w});return os(e,S,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ua(e)||xi(!1);var T=t.payload,k=T.id,C=T.isCombineEnabled,_=e.dimensions.droppables[k];_||xi(!1),_.isCombineEnabled===C&&xi(!1);var N=Object(yn.a)({},_,{isCombineEnabled:C});return os(e,N,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ua(e)||xi(!1),e.isWindowScrollAllowed||xi(!1);var A=t.payload.newScroll;if(Ii(e.viewport.scroll.current,A))return is(e);var R=ka(e.viewport,A);return rs(e)?Qa({state:e,viewport:R}):Ya({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ua(e))return e;var I=t.payload.maxScroll;if(Ii(I,e.viewport.scroll.max))return e;var P=Object(yn.a)({},e.viewport,{scroll:Object(yn.a)({},e.viewport.scroll,{max:I})});return Object(yn.a)({phase:"DRAGGING"},e,{viewport:P})}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&&xi(!1);var D=Ba({state:e,type:t.type});return D?Ya({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&xi(!1),Object(yn.a)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var M=t.payload,F=M.completed,$=M.dropDuration,B=M.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&xi(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:$,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},ls=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},cs=function(){return{type:"COLLECTION_STARTING",payload:null}},us=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ds=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},ps=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},fs=function(e){return{type:"MOVE",payload:e}},hs=function(){return{type:"MOVE_UP",payload:null}},ms=function(){return{type:"MOVE_DOWN",payload:null}},gs=function(){return{type:"MOVE_RIGHT",payload:null}},bs=function(){return{type:"MOVE_LEFT",payload:null}},vs=function(e){return{type:"DROP_COMPLETE",payload:e}},ys=function(e){return{type:"DROP",payload:e}},xs=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Os="cubic-bezier(.2,1,.1,1)",Es={drop:0,combining:.7},ws={drop:.75},js=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Ss={fluid:"opacity "+js,snap:"transform "+js+", opacity "+js,drop:function(e){var t=e+"s "+Os;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+js,placeholder:"height "+js+", width "+js+", margin "+js},Ts=function(e){return Ii(e,Ni)?null:"translate("+e.x+"px, "+e.y+"px)"},ks=Ts,Cs=function(e,t){var n=Ts(e);return n?t?n+" scale("+ws.drop+")":n:null},_s=.33,Ns=.55,As=Ns-_s,Rs=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&xi(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&xi(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:Object(yn.a)({},r,{displaced:oa}),didDropInsideDroppable:!0}:{impact:Xa({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({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}),u=c.impact,d=c.didDropInsideDroppable,p=d?Ji(u):null,f=d?ea(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:p,combine:f},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=$a(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Za({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return Ri(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:u};if(!Ii(o.current.client.offset,g)||Boolean(m.combine)){var v=function(e){var t=e.current,n=e.destination,r=e.reason,o=Li(t,n);if(o<=0)return _s;if(o>=1500)return Ns;var i=_s+As*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:v,completed:b}))}else n(vs({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Is=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ps(e){var t=e.onWindowScroll;var n,r=hi((function(){t(Is())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),i=gi;function a(){return i!==gi}return{start:function(){a()&&xi(!1),i=bi(window,[o])},stop:function(){a()||xi(!1),r.cancel(),i(),i=gi},isActive:a}}var Ds=function(e){var t=Ps({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Ls=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Wi(e,(function(e){return e.timerId===t}));-1===n&&xi(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Ms=function(e,t){es(),t(),ts()},Fs=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},$s=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Bs=function(e,t){var n=function(e,t){var n=Ls(),r=null,o=function(n){r||xi(!1),r=null,Ms(0,(function(){return $s(e().onDragEnd,n,t,_i)}))};return{beforeCapture:function(t,n){r&&xi(!1),Ms(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&xi(!1),Ms(0,(function(){var r=e().onBeforeDragStart;r&&r(Fs(t,n))}))},start:function(o,i){r&&xi(!1);var a=Fs(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Ms(0,(function(){return $s(e().onDragStart,a,t,ki)}))}))},update:function(o,i){var a=Ji(i),s=ea(i);r||xi(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);l&&(r.lastCritical=o);var c,u,d=(u=a,!(null==(c=r.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(r.lastLocation=a);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(p&&(r.lastCombine=s),l||d||p){var f=Object(yn.a)({},Fs(o,r.mode),{combine:s,destination:a});n.add((function(){Ms(0,(function(){return $s(e().onDragUpdate,f,t,Ci)}))}))}},flush:function(){r||xi(!1),n.flush()},drop:o,abort:function(){if(r){var e=Object(yn.a)({},Fs(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Us=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&xi(!1),e.dispatch(vs({completed:r.completed}))}else t(n)}}},Hs=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var 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})}};n=requestAnimationFrame((function(){n=null,t=bi(window,[i])}))}}}},zs=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ys({reason:r.reason})))}}}},Gs=ho,Ws=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.autoScroller;return uo(ss,Gs(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(io(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=ho.apply(void 0,i)(n.dispatch),Object(oo.a)(Object(oo.a)({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(vs({completed:c.completed})),"IDLE"!==n().phase&&xi(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),p=d.critical,f=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Rs,Us,Hs,zs,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&xi(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(s),Ds,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Bs(i,a))))};var Vs=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ri({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},qs=function(){var e=document.documentElement;return e||xi(!1),e},Ks=function(){var e=qs();return Vs({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Ys=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;es();var o=function(){var e=Is(),t=Ks(),n=e.y,r=e.x,o=qs(),i=o.clientWidth,a=o.clientHeight;return{frame:ti({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ni,displacement:Ni}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:Yi(l),droppables:Ki(s)};return ts(),{dimensions:c,critical:t,viewport:o}};function Xs(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Zs=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,es();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ni)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},ts(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||xi(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Xs(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Xs(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||xi(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||xi(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||xi(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&xi(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Ys({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Qs=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Js=function(e){window.scrollBy(e.x,e.y)},el=fi((function(e){return Xi(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),tl=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){return Vi(el(t),(function(t){return t.frame||xi(!1),Ha(t.frame.pageMarginBox)(e)}))}(t,r);return i},nl=.25,rl=.05,ol=28,il=function(e){return Math.pow(e,2)},al={stopDampeningAt:1200,accelerateAt:360},sl=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},ll=al.accelerateAt,cl=al.stopDampeningAt,ul=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return ol;if(e===t.startScrollingFrom)return 1;var n=sl({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=ol*il(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=cl,o=Date.now()-n;if(o>=cl)return e;if(o<ll)return 1;var i=sl({startOfRange:ll,endOfRange:r,current:o}),a=e*il(i);return Math.ceil(a)}(i,r),1):i},dl=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*nl,maxScrollValueAt:e[t.size]*rl}}(t,o);return n[o.end]<n[o.start]?ul({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ul({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},pl=Fi((function(e){return 0===e?0:e})),fl=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=dl({container:n,distanceToEdges:a,dragStartTime:t,axis:ca,shouldUseTimeDampening:i}),l=dl({container:n,distanceToEdges:a,dragStartTime:t,axis:ua,shouldUseTimeDampening:i}),c=pl({x:l,y:s});if(Ii(c,Ni))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Ii(u,Ni)?null:u:null},hl=Fi((function(e){return 0===e?0:e>0?1:-1})),ml=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=Ai(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Ii(a,Ni)?null:a}}(),gl=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=hl(r),a=ml({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},bl=function(e,t){return gl({current:e.scroll.current,max:e.scroll.max,change:t})},vl=function(e,t){var n=e.frame;return!!n&&gl({current:n.scroll.current,max:n.scroll.max,change:t})},yl=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=fl({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&bl(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=tl({center:a,destination:$a(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=fl({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&vl(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},xl=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!vl(e,t))return t;var r=function(e,t){var n=e.frame;return n&&vl(e,t)?ml({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ri(t,r);return n(e.descriptor.id,o),Ri(t,o)},i=function(e,t,n){if(!e)return n;if(!bl(t,n))return n;var o=function(e,t){if(!bl(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return ml({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ri(n,o);return r(i),Ri(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=$a(e.impact);r||xi(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Ai(e.current.client.selection,n);t({client:r})}(e,l)}}}},Ol=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=hi(t),o=hi(n),i=null,a=function(e){i||xi(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;yl({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){es(),i&&xi(!1);var t=Date.now(),n=!1,r=function(){n=!0};yl({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},ts(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=xl({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},El="data-rbd",wl=function(){var e=El+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),jl=function(){var e=El+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sl=function(){var e=El+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Tl={contextId:El+"-scroll-container-context-id"},kl=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Cl="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?s.useLayoutEffect:s.useEffect,_l=function(){var e=document.querySelector("head");return e||xi(!1),e},Nl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Al(e,t){var n=Jo((function(){return function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:n(wl.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=[function(){var e="\n      transition: "+Ss.outOfTheWay+";\n    ";return{selector:n(jl.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(Sl.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:kl(o,"always"),resting:kl(o,"resting"),dragging:kl(o,"dragging"),dropAnimating:kl(o,"dropAnimating"),userCancel:kl(o,"userCancel")}}(e)}),[e]),r=Object(s.useRef)(null),o=Object(s.useRef)(null),i=ei(fi((function(e){var t=o.current;t||xi(!1),t.textContent=e})),[]),a=ei((function(e){var t=r.current;t||xi(!1),t.textContent=e}),[]);Cl((function(){(r.current||o.current)&&xi(!1);var s=Nl(t),l=Nl(t);return r.current=s,o.current=l,s.setAttribute(El+"-always",e),l.setAttribute(El+"-dynamic",e),_l().appendChild(s),_l().appendChild(l),a(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||xi(!1),_l().removeChild(t),e.current=null};e(r),e(o)}}),[t,a,i,n.always,n.resting,e]);var l=ei((function(){return i(n.dragging)}),[i,n.dragging]),c=ei((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),u=ei((function(){o.current&&i(n.resting)}),[i,n.resting]);return Jo((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}var Rl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Il(e){return e instanceof Rl(e).HTMLElement}function Pl(e,t){var n="["+wl.contextId+'="'+e+'"]',r=qi(document.querySelectorAll(n));if(!r.length)return null;var o=Vi(r,(function(e){return e.getAttribute(wl.draggableId)===t}));return o&&Il(o)?o:null}function Dl(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||xi(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Gi(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||xi(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Gi(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ll=l.a.createContext(null),Ml=function(){var e=document.body;return e||xi(!1),e},Fl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var $l=0,Bl={separator:"::"};function Ul(e,t){return void 0===t&&(t=Bl),Jo((function(){return""+e+t.separator+$l++}),[t.separator,e])}var Hl=l.a.createContext(null);function zl(e){0}function Gl(e,t){zl()}function Wl(){Gl()}function Vl(e){var t=Object(s.useRef)(e);return Object(s.useEffect)((function(){t.current=e})),t}var ql,Kl=((ql={})[13]=!0,ql[9]=!0,ql),Yl=function(e){Kl[e.keyCode]&&e.preventDefault()},Xl=function(){var e="visibilitychange";return"undefined"===typeof document?e:Vi([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Zl,Ql={type:"IDLE"};function Jl(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&xi(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=5||Math.abs(u.y-c.y)>=5){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Yl(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&xi(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Xl,fn:t}]}function ec(){}var tc=((Zl={})[34]=!0,Zl[33]=!0,Zl[36]=!0,Zl[35]=!0,Zl);function nc(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(tc[r.keyCode]?r.preventDefault():Yl(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Xl,fn:n}]}var rc={type:"IDLE"};var oc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ic(e,t){if(null==t)return!1;if(Boolean(oc[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ic(e,t.parentElement)}function ac(e,t){var n=t.target;return!!Il(n)&&ic(e,n)}var sc=function(e){return ti(e.getBoundingClientRect()).center};var lc=function(){var e="matches";return"undefined"===typeof document?e:Vi([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function cc(e,t){return null==e?null:e[lc](t)?e:cc(e.parentElement,t)}function uc(e,t){return e.closest?e.closest(t):cc(e,t)}function dc(e,t){var n,r=t.target;if(!((n=r)instanceof Rl(n).Element))return null;var o=function(e){return"["+wl.contextId+'="'+e+'"]'}(e),i=uc(r,o);return i&&Il(i)?i:null}function pc(e){e.preventDefault()}function fc(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function hc(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Qs(n.getState(),o))}function mc(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!hc({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),c=function(e,t){var n="["+jl.contextId+'="'+e+'"]',r=Vi(qi(document.querySelectorAll(n)),(function(e){return e.getAttribute(jl.id)===t}));return r&&Il(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&ac(c,s))return null;var u=t.claim(a||gi),d="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function f(){return t.isActive(u)}var h=function(e,t){fc({expected:e,phase:d,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=bi(window,[{eventName:"click",fn:pc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(ys({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&xi(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",Object(yn.a)({isActive:function(){return fc({expected:"DRAGGING",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return fc({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=hi((function(e){h((function(){return fs({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(yn.a)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(hs)},moveRight:function(){return h(gs)},moveDown:function(){return h(ms)},moveLeft:function(){return h(bs)}};return m({liftActionArgs:{id:i,clientSelection:sc(c),movementMode:"SNAP"},cleanup:gi,actions:e})},abort:function(){fc({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!0})&&t.release()}}}var gc=[function(e){var t=Object(s.useRef)(Ql),n=Object(s.useRef)(gi),r=Jo((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),o=Jo((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=ei((function(){n.current=bi(window,[o,r],{passive:!1,capture:!0})}),[o,r]),a=ei((function(){"IDLE"!==t.current.type&&(t.current=Ql,n.current(),i())}),[i]),l=ei((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),c=ei((function(){var e=Jl({cancel:l,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=bi(window,e,{capture:!0,passive:!1})}),[l,a]),u=ei((function(e,n){"IDLE"!==t.current.type&&xi(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Cl((function(){return i(),function(){n.current()}}),[i])},function(e){var t=Object(s.useRef)(ec),n=Jo((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=bi(window,nc(s,l),{capture:!0,passive:!1})}}}function l(){a||xi(!1),a=!1,t.current(),r()}}}}),[e]),r=ei((function(){t.current=bi(window,[n],{passive:!1,capture:!0})}),[n]);Cl((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(s.useRef)(rc),n=Object(s.useRef)(gi),r=ei((function(){return t.current}),[]),o=ei((function(e){t.current=e}),[]),i=Jo((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),p(o,a)}}}}}}),[e]),a=ei((function(){n.current=bi(window,[i],{capture:!0,passive:!1})}),[i]),l=ei((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(rc),n.current(),a())}),[a,o]),c=ei((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=ei((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:r},o=bi(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&xi(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Xl,fn:t}]}(t),e),i=bi(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Xl,fn:t}]}(t),e);n.current=function(){o(),i()}}),[c,r,l]),d=ei((function(){var e=r();"PENDING"!==e.type&&xi(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),p=ei((function(e,t){"IDLE"!==r().type&&xi(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,r,o,d]);Cl((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(rc))}}),[r,a,o]),Cl((function(){return bi(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function bc(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?gc:[],o||[]),l=Object(s.useState)((function(){return function(){var e=null;function t(){e||xi(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&xi(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=ei((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Cl((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Cl((function(){return l.tryAbandon}),[l.tryAbandon]);var u=ei((function(e){return hc({lockAPI:l,registry:r,store:n,draggableId:e})}),[l,r,n]),d=ei((function(e,o,i){return mc({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,r,n]),p=ei((function(e){return function(e,t){var n=dc(e,t);return n?n.getAttribute(wl.draggableId):null}(t,e)}),[t]),f=ei((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),h=ei((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[l,n]),m=ei(l.isClaimed,[l]),g=Jo((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:m}}),[u,d,p,f,h,m]);zl();for(var b=0;b<a.length;b++)a[b](g)}function vc(e){return e.current||xi(!1),e.current}function yc(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,o=e.nonce,i=e.dragHandleUsageInstructions,a=Object(s.useRef)(null);Wl();var c=Vl(e),u=ei((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(c.current)}),[c]),d=function(e){var t=Jo((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(s.useRef)(null);return Object(s.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(yn.a)(e.style,Fl),Ml().appendChild(e),function(){setTimeout((function(){var t=Ml();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ei((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),p=function(e){var t=e.contextId,n=e.text,r=Ul("hidden-text",{separator:"-"}),o=Jo((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:r}).contextId+"-"+e.uniqueId;var e}),[r,t]);return Object(s.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Ml().appendChild(e),function(){var t=Ml();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:i}),f=Al(t,o),h=ei((function(e){vc(a).dispatch(e)}),[]),m=Jo((function(){return fo({publishWhileDragging:ls,updateDroppableScroll:us,updateDroppableIsEnabled:ds,updateDroppableIsCombineEnabled:ps,collectionStarting:cs},h)}),[h]),g=function(){var e=Jo(Dl,[]);return Object(s.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Jo((function(){return Zs(g,m)}),[g,m]),v=Jo((function(){return Ol(Object(yn.a)({scrollWindow:Js,scrollDroppable:b.scrollDroppable},fo({move:fs},h)))}),[b.scrollDroppable,h]),y=function(e){var t=Object(s.useRef)({}),n=Object(s.useRef)(null),r=Object(s.useRef)(null),o=Object(s.useRef)(!1),i=ei((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=ei((function(t){var n=Pl(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=ei((function(e,t){n.current===e&&(n.current=t)}),[]),c=ei((function(){r.current||o.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),u=ei((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(wl.draggableId)===e&&(n.current=e)}),[]);return Cl((function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Jo((function(){return{register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[i,u,c,l])}(t),x=Jo((function(){return Ws({announce:d,autoScroller:v,dimensionMarshal:b,focusMarshal:y,getResponders:u,styleMarshal:f})}),[d,v,b,y,u,f]);a.current=x;var O=ei((function(){var e=vc(a);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=ei((function(){var e=vc(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Jo((function(){return{isDragging:E,tryAbort:O}}),[E,O]));var w=ei((function(e){return Qs(vc(a).getState(),e)}),[]),j=ei((function(){return Ua(vc(a).getState())}),[]),S=Jo((function(){return{marshal:b,focus:y,contextId:t,canLift:w,isMovementAllowed:j,dragHandleUsageInstructionsId:p,registry:g}}),[t,b,p,y,w,j,g]);return bc({contextId:t,store:x,registry:g,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(s.useEffect)((function(){return O}),[O]),l.a.createElement(Hl.Provider,{value:S},l.a.createElement(Oo,{context:Ll,store:x},e.children))}var xc=0;function Oc(e){var t=Jo((function(){return""+xc++}),[]),n=e.dragHandleUsageInstructions||Ti;return l.a.createElement(Oi,null,(function(r){return l.a.createElement(yc,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Ec=function(e){return function(t){return e===t}},wc=Ec("scroll"),jc=Ec("auto"),Sc=(Ec("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Tc=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Sc(n,wc)||Sc(n,jc)},kc=function e(t){return null==t||t===document.body||t===document.documentElement?null:Tc(t)?t:e(t.parentElement)},Cc=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_c=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Nc=function(e){return{closestScrollable:kc(e),isFixedOnPage:_c(e)}},Ac=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=ui(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=ni({top:r,right:a,bottom:i,left:o},n.border);return ii({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=li(u,o),p=function(){if(!c)return null;var e=ui(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:li(e,o),scroll:Cc(c),scrollSize:t,shouldClipSubject:l}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=Vs({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ni,displacement:Ni}}}}(),u="vertical"===i?ca:ua;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:Hi({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p});return f},Rc={passive:!1},Ic={passive:!0},Pc=function(e){return e.shouldPublishImmediately?Rc:Ic};function Dc(e){var t=Object(s.useContext)(e);return t||xi(!1),t}var Lc=function(e){return e&&e.env.closestScrollable||null};function Mc(){}var Fc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},$c=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Fc:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Ss.placeholder:null}};var Bc=l.a.memo((function(e){var t=Object(s.useRef)(null),n=ei((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,c=Object(s.useState)("open"===e.animate),u=c[0],d=c[1];Object(s.useEffect)((function(){return u?"open"!==r?(n(),d(!1),Mc):t.current?Mc:(t.current=setTimeout((function(){t.current=null,d(!1)})),n):Mc}),[r,u,n]);var p=ei((function(e){"height"===e.propertyName&&(o(),"close"===r&&i())}),[r,i,o]),f=$c({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return l.a.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":a,onTransitionEnd:p,ref:e.innerRef})})),Uc=l.a.createContext(null);var Hc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Object(vn.a)(t,e),t.getDerivedStateFromProps=function(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"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(l.a.PureComponent),zc=5e3,Gc=4500,Wc=function(e,t){return t?Ss.drop(t.duration):e?Ss.snap:Ss.fluid},Vc=function(e,t){return e?t?Es.drop:Es.combining:null};function qc(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?Cs(n,i):ks(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Wc(a,o),transform:l,opacity:Vc(i,s),zIndex:s?Gc:zc,pointerEvents:"none"}}(e):{transform:ks((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Kc(e){var t=Ul("draggable"),n=e.descriptor,r=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,c=Jo((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:l}}),[i,l,a]),u=ei((function(e){var t=o();return t||xi(!1),function(e,t,n){void 0===n&&(n=Ni);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ci(o,r),a=li(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,o]),d=Jo((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),p=Object(s.useRef)(d),f=Object(s.useRef)(!0);Cl((function(){return r.draggable.register(p.current),function(){return r.draggable.unregister(p.current)}}),[r.draggable]),Cl((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,r.draggable.update(d,e)}}),[d,r.draggable])}function Yc(e,t,n){Gl()}function Xc(e){e.preventDefault()}var Zc=function(e,t){return e===t},Qc=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Jc(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var eu={mapped:{type:"SECONDARY",offset:Ni,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Jc(null)}};var tu=Xo((function(){var e=function(){var e=fi((function(e,t){return{x:e,y:t}})),t=fi((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=fi((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=$a(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,f=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Qc(h),b=function(e){return e.combine?e.combine.draggableId:null}(h),v={duration:r.dropDuration,curve:Os,moveTo:r.newHomeClientOffset,opacity:b?Es.drop:null,scale:b?ws.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:g,combineWith:b,mode:m,forceShouldAnimate:null,snapshot:t(m,p,g,b,v)}}}return null}}(),t=function(){var e=fi((function(e,t){return{x:e,y:t}})),t=fi(Jc),n=fi((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ni,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=ea(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=Pi(a.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(l)return r(u);var f=i.displacedBy.point,h=e(f.x,f.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||eu}}),{dropAnimationFinished:xs},null,{context:Ll,pure:!0,areStatePropsEqual:Zc})((function(e){var t=Object(s.useRef)(null),n=ei((function(e){t.current=e}),[]),r=ei((function(){return t.current}),[]),o=Dc(Hl),i=o.contextId,a=o.dragHandleUsageInstructionsId,l=o.registry,c=Dc(Uc),u=c.type,d=c.droppableId,p=Jo((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),f=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,b=e.canDragInteractiveElements,v=e.isClone,y=e.mapped,x=e.dropAnimationFinished;Yc(),zl(),v||Kc(Jo((function(){return{descriptor:p,registry:l,getDraggableRef:r,canDragInteractiveElements:b,shouldRespectForcePress:g,isEnabled:m}}),[p,l,r,b,g,m]));var O=Jo((function(){return m?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Xc}:null}),[i,a,h,m]),E=ei((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&x()}),[x,y]),w=Jo((function(){var e=qc(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:O}}),[i,O,h,y,E,n]),j=Jo((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(w,y.snapshot,j)}));function nu(e){return Dc(Uc).isUsingCloneFor!==e.draggableId||e.isClone?l.a.createElement(tu,e):null}function ru(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return l.a.createElement(nu,Object(yn.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var ou=function(e,t){return e===t.droppable.type},iu=function(e,t){return t.draggables[e.draggable.id]};var au={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||xi(!1),document.body}},su=Xo((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(yn.a)({},e,{shouldAnimatePlaceholder:!1}),n=fi((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=fi((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!ou(a,c))return t;var u=iu(c,n.dimensions),d=$a(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!ou(a,p.critical))return t;var f=iu(p.critical,n.dimensions);return r(i,s,Qc(p.result)===i,$a(p.impact)===i,f,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!ou(a,h.critical))return t;var m=$a(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),b=h.critical.droppable.id===i;return m?g?e:t:b?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Ll,pure:!0,areStatePropsEqual:Zc})((function(e){var t=Object(s.useContext)(Hl);t||xi(!1);var n=t.contextId,r=t.isMovementAllowed,o=Object(s.useRef)(null),i=Object(s.useRef)(null),a=e.children,c=e.droppableId,d=e.type,p=e.mode,f=e.direction,h=e.ignoreContainerClipping,m=e.isDropDisabled,g=e.isCombineEnabled,b=e.snapshot,v=e.useClone,y=e.updateViewportMaxScroll,x=e.getContainerForClone,O=ei((function(){return o.current}),[]),E=ei((function(e){o.current=e}),[]),w=(ei((function(){return i.current}),[]),ei((function(e){i.current=e}),[]));Gl();var j=ei((function(){r()&&y({maxScroll:Ks()})}),[r,y]);!function(e){var t=Object(s.useRef)(null),n=Dc(Hl),r=Ul("droppable"),o=n.registry,i=n.marshal,a=Vl(e),l=Jo((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=Object(s.useRef)(l),u=Jo((function(){return fi((function(e,n){t.current||xi(!1);var r={x:e,y:n};i.updateDroppableScroll(l.id,r)}))}),[l.id,i]),d=ei((function(){var e=t.current;return e&&e.env.closestScrollable?Cc(e.env.closestScrollable):Ni}),[]),p=ei((function(){var e=d();u(e.x,e.y)}),[d,u]),f=Jo((function(){return hi(p)}),[p]),h=ei((function(){var e=t.current,n=Lc(e);e&&n||xi(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),m=ei((function(e,r){t.current&&xi(!1);var o=a.current,i=o.getDroppableRef();i||xi(!1);var s=Nc(i),c={ref:i,descriptor:l,env:s,scrollOptions:r};t.current=c;var u=Ac({ref:i,descriptor:l,env:s,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=s.closestScrollable;return d&&(d.setAttribute(Tl.contextId,n.contextId),d.addEventListener("scroll",h,Pc(c.scrollOptions))),u}),[n.contextId,l,h,a]),g=ei((function(){var e=t.current,n=Lc(e);return e&&n||xi(!1),Cc(n)}),[]),b=ei((function(){var e=t.current;e||xi(!1);var n=Lc(e);t.current=null,n&&(f.cancel(),n.removeAttribute(Tl.contextId),n.removeEventListener("scroll",h,Pc(e.scrollOptions)))}),[h,f]),v=ei((function(e){var n=t.current;n||xi(!1);var r=Lc(n);r||xi(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Jo((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}}),[b,m,g,v]),x=Jo((function(){return{uniqueId:r,descriptor:l,callbacks:y}}),[y,l,r]);Cl((function(){return c.current=x.descriptor,o.droppable.register(x),function(){t.current&&b(),o.droppable.unregister(x)}}),[y,l,b,x,i,o.droppable]),Cl((function(){t.current&&i.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),Cl((function(){t.current&&i.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:c,type:d,mode:p,direction:f,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:h,getDroppableRef:O});var S=l.a.createElement(Hc,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return l.a.createElement(Bc,{placeholder:r,onClose:t,innerRef:w,animate:o,contextId:n,onTransitionEnd:j})})),T=Jo((function(){return{innerRef:E,placeholder:S,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}}),[n,c,S,E]),k=v?v.dragging.draggableId:null,C=Jo((function(){return{droppableId:c,type:d,isUsingCloneFor:k}}),[c,k,d]);return l.a.createElement(Uc.Provider,{value:C},a(T,b),function(){if(!v)return null;var e=v.dragging,t=v.render,n=l.a.createElement(nu,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return u.a.createPortal(n,x())}())}));su.defaultProps=au;var lu=n(18),cu=l.a.createContext(null);function uu(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(s.isValidElement)(e)?t(e):e}(e)})),n}function du(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pu(e,t,n){var r=uu(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(s.isValidElement)(a)){var l=i in t,c=i in r,u=t[i],d=Object(s.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&Object(s.isValidElement)(u)&&(o[i]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:du(a,"exit",e),enter:du(a,"enter",e)})):o[i]=Object(s.cloneElement)(a,{in:!1}):o[i]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:du(a,"exit",e),enter:du(a,"enter",e)})}})),o}var fu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},hu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(lu.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(vn.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,uu(n.children,(function(e){return Object(s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:du(e,"appear",n),enter:du(e,"enter",n),exit:du(e,"exit",n)})}))):pu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=uu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(yn.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(Xn.a)(e,["component","childFactory"]),o=this.state.contextValue,i=fu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l.a.createElement(cu.Provider,{value:o},i):l.a.createElement(cu.Provider,{value:o},l.a.createElement(t,r,i))},t}(l.a.Component);hu.propTypes={},hu.defaultProps={component:"div",childFactory:function(e){return e}};var mu=hu,gu=n.p+"static/media/ocrenglish.9538c8eb.png",bu=n.p+"static/media/aqaenglish.9b2018df.png",vu=n.p+"static/media/cambridgeenglish.cb9bfe2e.png",yu=n.p+"static/media/edexcelenglish.5ec1cdc1.png",xu=n.p+"static/media/edexengl.ebf1ca8e.png",Ou=n.p+"static/media/eduqasenglish.c19d261c.png",Eu=n.p+"static/media/wjeceng.32fb81f3.png",wu=n.p+"static/media/cceaenglish.67cfe00d.png",ju=n.p+"static/media/edexihist.66ee9cc9.png",Su=n.p+"static/media/edexcelhistory.2954ecf4.png",Tu=n.p+"static/media/aqahistory.11efaac6.png",ku=n.p+"static/media/cambridgehistory.7f219ee0.png",Cu=n.p+"static/media/ocrhistgcse.ee7855f6.png",_u=n.p+"static/media/eduqashistory.d9ec0613.png",Nu=n.p+"static/media/ocrrs.5f38779c.png",Au=n.p+"static/media/edexcelrs.d36f9eed.png",Ru=n.p+"static/media/aqars.f9b3dd44.png",Iu=n.p+"static/media/ocreco.56ac22b9.png",Pu=n.p+"static/media/aqadrama.67a325ed.png",Du=n.p+"static/media/edexgeog.0114ddf2.png",Lu=n.p+"static/media/aqageog.485c482b.png",Mu=n.p+"static/media/edexbus.b9af034f.png",Fu=n.p+"static/media/edexgeogi.f88d2a31.png",$u=n.p+"static/media/aqabus.4ff45f55.png";var Bu=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("gcseToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"ocr-english",to:"/ocr-english",img:gu,alt:"OCR English"},{id:"aqa-english",to:"/aqa-english",img:bu,alt:"AQA English"},{id:"cantab-english",to:"/cantab-english",img:vu,alt:"Cambridge English"},{id:"edexcel-english",to:"/edexcel-english",img:yu,alt:"Edexcel English"},{id:"english-edexcel",to:"/english-edexcel",img:xu,alt:"English Edexcel"},{id:"eduqas-english",to:"/eduqas-english",img:Ou,alt:"Eduqas English"},{id:"wjec-english",to:"/wjec-english",img:Eu,alt:"WJEC English"},{id:"english-ccea",to:"/english-ccea",img:wu,alt:"CCEA English"},{id:"edexcel-ihistory",to:"/edexcel-ihistory",img:ju,alt:"Edexcel International History"},{id:"edexcel-history",to:"/edexcel-history",img:Su,alt:"Edexcel History"},{id:"aqa-history",to:"/aqa-history",img:Tu,alt:"AQA History"},{id:"cantab-history",to:"/cantab-history",img:ku,alt:"Cambridge History"},{id:"ocr-history",to:"/ocr-history",img:Cu,alt:"OCR History"},{id:"edu-history",to:"/edu-history",img:_u,alt:"Eduqas History"},{id:"ocr-rs",to:"/ocr-rs",img:Nu,alt:"OCR Religious Studies"},{id:"edexcel-rs",to:"/edexcel-rs",img:Au,alt:"Edexcel Religious Studies"},{id:"aqa-rs",to:"/aqa-rs",img:Ru,alt:"AQA Religious Studies"},{id:"ocr-economics",to:"/ocr-economics",img:Iu,alt:"OCR Economics"},{id:"aqa-drama",to:"/aqa-drama",img:Pu,alt:"AQA Drama"},{id:"edex-geog",to:"/edex-geog",img:Du,alt:"Edexcel Geography"},{id:"edex-geogi",to:"/edex-geogi",img:Fu,alt:"IEdexcel Geography"},{id:"aqa-geog",to:"/aqa-geog",img:Lu,alt:"AQA Geography"},{id:"edex-bus",to:"/edex-bus",img:Mu,alt:"Edexcel Business"},{id:"bus-aqa",to:"/bus-aqa",img:$u,alt:"AQA Business GCSE"}];r(e),localStorage.setItem("gcseToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text title-bubble",children:"GCSE & IGCSE Marking Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("gcseToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"gcse-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})},Uu=n.p+"static/media/aqaenglitalevel.6b33367f.png",Hu=n.p+"static/media/ocrenglitalevel.df716e46.png",zu=n.p+"static/media/eduqasalevel.beaaa5af.png",Gu=n.p+"static/media/edexenglish.4eca2ec1.png",Wu=n.p+"static/media/aqaphilo.5c0c733c.png",Vu=n.p+"static/media/edexcelecon.51d9f51e.png",qu=n.p+"static/media/geogedex.d27af2f1.png",Ku=n.p+"static/media/geogocr.eb992d07.png",Yu=n.p+"static/media/aedexcelhist.c0d84ba5.png",Xu=n.p+"static/media/ciehist.0bc67b81.png",Zu=n.p+"static/media/ocrhist.6506451e.png",Qu=n.p+"static/media/psych.369a20c3.png",Ju=n.p+"static/media/psychaqa.d53da68a.png",ed=n.p+"static/media/ciesoc.b7174dd7.png",td=n.p+"static/media/psychocr.4d78c5fc.png",nd=n.p+"static/media/socaqa.cb0ebc30.png",rd=n.p+"static/media/sococr.b224a588.png",od=n.p+"static/media/poledex.35d1ca90.png",id=n.p+"static/media/busedex.eab0b3cf.png",ad=n.p+"static/media/busaqa.4cfa53a4.png",sd=n.p+"static/media/cieenglang.816141a9.png",ld=n.p+"static/media/wjecsoc.d42382ad.png",cd=n.p+"static/media/historyaqa.163ee889.png";var ud=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("toolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"english-aqa",to:"/english-aqa",img:Uu,alt:"AQA English"},{id:"english-ocr",to:"/english-ocr",img:Hu,alt:"OCR English"},{id:"english-eduqas",to:"/english-eduqas",img:zu,alt:"Eduqas English"},{id:"edex-english",to:"/edex-english",img:Gu,alt:"Edexcel English"},{id:"cie-english",to:"/cie-english",img:sd,alt:"CIE English"},{id:"aqa-philosophy",to:"/aqa-philosophy",img:Wu,alt:"AQA Philosophy"},{id:"edexcel-economics",to:"/edexcel-economics",img:Vu,alt:"Edexcel Economics"},{id:"geog-edex",to:"/geog-edex",img:qu,alt:"Edexcel Geography"},{id:"geog-ocr",to:"/geog-ocr",img:Ku,alt:"OCR Geography"},{id:"history-edexcel",to:"/history-edexcel",img:Yu,alt:"Edexcel History"},{id:"cie-hist",to:"/cie-hist",img:Xu,alt:"CIE History"},{id:"history-ocr",to:"/history-ocr",img:Zu,alt:"OCR History"},{id:"history-aqa",to:"/history-aqa",img:cd,alt:"AQA History"},{id:"psych-edex",to:"/psych-edex",img:Qu,alt:"Edexcel Psychology"},{id:"psych-aqa",to:"/psych-aqa",img:Ju,alt:"AQA Psychology"},{id:"psych-ocr",to:"/psych-ocr",img:td,alt:"OCR Psychology"},{id:"soc-aqa",to:"/soc-aqa",img:nd,alt:"AQA Sociology"},{id:"soc-ocr",to:"/soc-ocr",img:rd,alt:"OCR Sociology"},{id:"cie-soc",to:"/cie-soc",img:ed,alt:"CIE Sociology"},{id:"wjec-soc",to:"/wjec-soc",img:ld,alt:"WJEC Sociology"},{id:"pol-edex",to:"/pol-edex",img:od,alt:"Edexcel Politics"},{id:"bus-edex",to:"/bus-edex",img:id,alt:"Edexcel Business"},{id:"aqa-bus",to:"/aqa-bus",img:ad,alt:"AQA Business"}];r(e),localStorage.setItem("toolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text second-title-bubble",children:"A Level Marking Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("toolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})},dd=n.p+"static/media/mypeng.3740d619.png",pd=n.p+"static/media/ibenglishlit.f3c3618f.png",fd=n.p+"static/media/ibenglishlang.6dc74aa2.png",hd=n.p+"static/media/ibhistory.4f3ce217.png",md=n.p+"static/media/globalpol.30adfbdc.png";var gd=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("ibToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"eng-myp",to:"/eng-myp",img:dd,alt:"MYP English"},{id:"ib-english",to:"/ib-english",img:pd,alt:"IB English Literature"},{id:"ib-englishlang",to:"/ib-englishlang",img:fd,alt:"IB English Language and Literature"},{id:"ib-history",to:"/ib-history",img:hd,alt:"IB History"},{id:"global-pol",to:"/global-pol",img:md,alt:"Global Politics"}];r(e),localStorage.setItem("ibToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text second-title-bubble",children:"International Baccalaureate Marking Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("ibToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"ib-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})},bd=n.p+"static/media/ks2.481a6474.png",vd=n.p+"static/media/ks3englang.b28de3c0.png";var yd=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("ks3ToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"english-ks2",to:"/english-ks2",img:bd,alt:"KS2 English"},{id:"ks3-language",to:"/ks3-language",img:vd,alt:"KS3 English Language"}];r(e),localStorage.setItem("ks3ToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text ks3-title-bubble",children:"KS2 & KS3 Marking Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("ks3ToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"ks3-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})},xd=n.p+"static/media/ielts.1e8e966e.png",Od=n.p+"static/media/hkdse.7bdb5a60.png",Ed=n.p+"static/media/oet.57f0b267.png";var wd=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("ieltsToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"ielts",to:"/ielts",img:xd,alt:"IELTS"},{id:"hkdse",to:"/hkdse",img:Od,alt:"HKDSE"},{id:"oet",to:"/oet",img:Ed,alt:"OET"}];r(e),localStorage.setItem("ieltsToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text ks3-title-bubble",children:"IELTS & HKDSE & OET"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("ieltsToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"ielts-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})},jd=n.p+"static/media/spectator.7c48d052.png";var Sd=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("ncfeToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"spectator-two",to:"/spectator-two",img:jd,alt:"IELTS"}];r(e),localStorage.setItem("ncfeToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text title-bubble",children:"NCFE Marking Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("ncfeToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"ncfe-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})};var Td=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("edexcelToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"edexcel-english-gcse",to:"/edexcel-english",img:yu,alt:"Edexcel English GCSE"},{id:"english-edexcel-gcse",to:"/english-edexcel",img:xu,alt:"Edexcel English GCSE (Alt)"},{id:"edex-geog-gcse",to:"/edex-geog",img:Du,alt:"Edexcel Geography GCSE"},{id:"edex-bus-gcse",to:"/edex-bus",img:Mu,alt:"Edexcel Business GCSE"},{id:"edexcel-rs",to:"/edexcel-rs",img:Au,alt:"Edexcel Religious Studies GCSE"},{id:"edexcel-history-gcse",to:"/edexcel-history",img:Su,alt:"Edexcel History GCSE"},{id:"edexcel-ihistory",to:"/edexcel-ihistory",img:ju,alt:"Edexcel International History GCSE"},{id:"edex-english-alevel",to:"/edex-english",img:Gu,alt:"Edexcel English A-Level"},{id:"edexcel-economics-alevel",to:"/edexcel-economics",img:Vu,alt:"Edexcel Economics A-Level"},{id:"geog-edex-alevel",to:"/geog-edex",img:qu,alt:"Edexcel Geography A-Level"},{id:"history-edexcel-alevel",to:"/history-edexcel",img:Yu,alt:"Edexcel History A-Level"},{id:"psych-edex-alevel",to:"/psych-edex",img:Qu,alt:"Edexcel Psychology A-Level"},{id:"pol-edex-alevel",to:"/pol-edex",img:od,alt:"Edexcel Politics A-Level"},{id:"bus-edex-alevel",to:"/bus-edex",img:id,alt:"Edexcel Business A-Level"}];r(e),localStorage.setItem("edexcelToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text title-bubble",children:"Edexcel Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("edexcelToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"edexcel-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})};var kd,Cd,_d,Nd,Ad,Rd,Id,Pd,Dd,Ld,Md,Fd,$d,Bd,Ud=e=>{let{permissions:t}=e;const[n,r]=Object(s.useState)([]);Object(s.useEffect)((()=>{const e=localStorage.getItem("aqaToolOrder");if(e)r(JSON.parse(e));else{const e=[{id:"aqa-english-gcse",to:"/aqa-english",img:bu,alt:"AQA English GCSE"},{id:"aqa-history-gcse",to:"/aqa-history",img:Tu,alt:"AQA History GCSE"},{id:"aqa-rs-gcse",to:"/aqa-rs",img:Ru,alt:"AQA Religious Studies GCSE"},{id:"aqa-drama-gcse",to:"/aqa-drama",img:Pu,alt:"AQA Drama GCSE"},{id:"aqa-geog-gcse",to:"/aqa-geog",img:Lu,alt:"AQA Geography GCSE"},{id:"english-aqa-alevel",to:"/english-aqa",img:Uu,alt:"AQA English A-Level"},{id:"aqa-philosophy-alevel",to:"/aqa-philosophy",img:Wu,alt:"AQA Philosophy A-Level"},{id:"psych-aqa-alevel",to:"/psych-aqa",img:Ju,alt:"AQA Psychology A-Level"},{id:"soc-aqa-alevel",to:"/soc-aqa",img:nd,alt:"AQA Sociology A-Level"},{id:"aqa-bus-alevel",to:"/aqa-bus",img:ad,alt:"AQA Business A-Level"}];r(e),localStorage.setItem("aqaToolOrder",JSON.stringify(e))}}),[]);return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text title-bubble",children:"AQA Tools"})}),Object(Ht.jsx)(Oc,{onDragEnd:e=>{if(!e.destination)return;const t=Array.from(n),[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),r(t),localStorage.setItem("aqaToolOrder",JSON.stringify(t))},children:Object(Ht.jsx)(su,{droppableId:"aqa-tools",direction:"horizontal",children:e=>Object(Ht.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[n.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e.id,index:t,children:t=>Object(Ht.jsx)("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"flex flex-col items-center",children:Object(Ht.jsxs)(Tr,{to:e.to,className:"flex flex-col items-center w-full",children:[Object(Ht.jsx)("img",{className:"tool-img w-full mb-4",src:e.img,alt:e.alt}),Object(Ht.jsx)("button",{className:"tool-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded text-lg w-3/4 flex items-center justify-center",children:"Browse"})]})})},e.id))),e.placeholder]})})})]})};n(127);const Hd=["GCSE & IGCSE Marking Tools","A Level Marking Tools","International Baccalaureate Marking Tools","KS2 & KS3 Marking Tools","IELTS & HKDSE & OET","NCFE Marking Tools"],zd=e=>{let{onClick:t,isExpanded:n}=e;return Object(Ht.jsxs)("button",{onClick:t,className:"fixed bottom-4 left-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 "+(n?"rounded-b-none":""),children:["Explainer Videos ",n?"\u25b2":"\u25bc"]})},Gd=e=>{let{onClick:t,title:n,index:r}=e;return Object(Ht.jsx)("button",{onClick:t,className:"fixed left-4 bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 "+(0===r?"bottom-16 rounded-t-none rounded-b":`bottom-${24+8*r} rounded-none`),children:n})},Wd=e=>{let{isOpen:t,onClose:n,videoUrl:r,title:o}=e;return t?Object(Ht.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex justify-center items-center",children:Object(Ht.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-lg w-11/12 md:w-3/4 lg:w-2/3 xl:w-1/2",children:[Object(Ht.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[Object(Ht.jsx)("h2",{className:"text-xl font-bold",children:o}),Object(Ht.jsx)("button",{onClick:n,className:"text-black hover:text-gray-700",children:"\xd7"})]}),Object(Ht.jsx)("div",{className:"relative",style:{paddingBottom:"56.25%"},children:Object(Ht.jsx)("iframe",{src:r,className:"absolute top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0})})]})}):null};let Vd=ae("store")(kd=ee((Cd=class extends s.Component{constructor(e){super(e),se(this,"selectedSections",_d,this),se(this,"isVideoModalOpen",Nd,this),se(this,"currentVideoUrl",Ad,this),se(this,"currentVideoTitle",Rd,this),se(this,"isExplainerVideosExpanded",Id,this),se(this,"sortBySubject",Pd,this),se(this,"handleSectionToggle",Dd,this),se(this,"handleDragEnd",Ld,this),this.renderSection=e=>{const{permissions:t}=this.props.store;switch(e){case"GCSE & IGCSE Marking Tools":return Object(Ht.jsx)(Bu,{permissions:t},e);case"A Level Marking Tools":return Object(Ht.jsx)(ud,{permissions:t},e);case"International Baccalaureate Marking Tools":return Object(Ht.jsx)(gd,{permissions:t},e);case"KS2 & KS3 Marking Tools":return Object(Ht.jsx)(yd,{permissions:t},e);case"IELTS & HKDSE & OET":return Object(Ht.jsx)(wd,{permissions:t},e);case"NCFE Marking Tools":return Object(Ht.jsx)(Sd,{permissions:t},e);default:return null}},se(this,"toggleExplainerVideos",Md,this),se(this,"openVideoModal",Fd,this),se(this,"closeVideoModal",$d,this),se(this,"toggleSortMethod",Bd,this),this.renderSortedSections=()=>this.sortBySubject?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"mb-6 bg-blue-50 border-l-4 border-blue-500 p-4 rounded-md shadow-sm",children:Object(Ht.jsxs)("p",{className:"text-blue-700 font-medium",children:[Object(Ht.jsx)("span",{className:"mr-2",children:"\ud83d\udca1"}),"Pro Tip: You can reorder tools within each section using drag and drop!"]})}),Object(Ht.jsx)(Td,{permissions:this.props.store.permissions}),Object(Ht.jsx)(Ud,{permissions:this.props.store.permissions}),Object(Ht.jsx)(Td,{permissions:this.props.store.permissions}),Object(Ht.jsx)(Td,{permissions:this.props.store.permissions})]}):Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"mb-6 bg-blue-50 border-l-4 border-blue-500 p-4 rounded-md shadow-sm",children:Object(Ht.jsxs)("p",{className:"text-blue-700 font-medium",children:[Object(Ht.jsx)("span",{className:"mr-2",children:"\ud83d\udca1"}),"Pro Tip: You can reorder tools within each section using drag and drop!"]})}),this.selectedSections.map(this.renderSection)]}),Object(p.n)(this),this.selectedSections=JSON.parse(localStorage.getItem("selectedSections"))||Hd}get hiddenSections(){return Hd.filter((e=>!this.selectedSections.includes(e)))}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 flex main-body",children:[Object(Ht.jsxs)("div",{className:"left-panel",children:[Object(Ht.jsx)("h3",{className:"text-xl font-bold mb-4",children:"Organise Your Marking Tools"}),Object(Ht.jsx)("div",{className:"mb-4"}),!this.sortBySubject&&Object(Ht.jsx)(Oc,{onDragEnd:this.handleDragEnd,children:Object(Ht.jsx)(su,{droppableId:"section-toggles",children:e=>Object(Ht.jsxs)("div",{className:"section-toggles",...e.droppableProps,ref:e.innerRef,children:[this.selectedSections.map(((e,t)=>Object(Ht.jsx)(ru,{draggableId:e,index:t,children:t=>Object(Ht.jsxs)("div",{className:"section-toggle",ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,children:[Object(Ht.jsx)("input",{type:"checkbox",checked:this.selectedSections.includes(e),onChange:()=>this.handleSectionToggle(e)}),Object(Ht.jsx)("label",{children:e})]})},e))),e.placeholder]})})}),!this.sortBySubject&&Object(Ht.jsx)("div",{className:"hidden-sections",children:this.hiddenSections.map((e=>Object(Ht.jsxs)("div",{className:"section-toggle",children:[Object(Ht.jsx)("input",{type:"checkbox",checked:this.selectedSections.includes(e),onChange:()=>this.handleSectionToggle(e)}),Object(Ht.jsx)("label",{children:e})]},e)))})]}),Object(Ht.jsx)("div",{className:"main-content",children:Object(Ht.jsx)(mu,{children:this.renderSortedSections()})})]}),Object(Ht.jsx)(zd,{onClick:this.toggleExplainerVideos,isExpanded:this.isExplainerVideosExpanded}),this.isExplainerVideosExpanded&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Gd,{onClick:()=>this.openVideoModal("https://accoladetuition.hippovideo.io/video/embed/EGimLZqqDpkbTsPp374bGuMwwIVi6w_iiCCirwai8Cc?org_tok=op2ne08u01xuO_ve6yU_iQ&autoplay=false","Instructional Video for Batch Marking"),title:"Batch Marking: Single PDF",index:0}),Object(Ht.jsx)(Gd,{onClick:()=>this.openVideoModal("https://accoladetuition.hippovideo.io/video/embed/Y0CeaBYRryp70ex1_Z6gby-vs59SPfg8wgXWw3Q2FK0?org_tok=op2ne08u01xuO_ve6yU_iQ&autoplay=false","Marking Questions with Visual Stimuli"),title:"Visual Stimuli Questions",index:1})]}),Object(Ht.jsx)(Wd,{isOpen:this.isVideoModalOpen,onClose:this.closeVideoModal,videoUrl:this.currentVideoUrl,title:this.currentVideoTitle})]})}},_d=le(Cd.prototype,"selectedSections",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Nd=le(Cd.prototype,"isVideoModalOpen",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ad=le(Cd.prototype,"currentVideoUrl",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Rd=le(Cd.prototype,"currentVideoTitle",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Id=le(Cd.prototype,"isExplainerVideosExpanded",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pd=le(Cd.prototype,"sortBySubject",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dd=le(Cd.prototype,"handleSectionToggle",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.selectedSections.includes(e)?this.selectedSections=this.selectedSections.filter((t=>t!==e)):this.selectedSections.push(e),localStorage.setItem("selectedSections",JSON.stringify(this.selectedSections))}}}),Ld=le(Cd.prototype,"handleDragEnd",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{if(!e.destination)return;const t=Array.from(this.selectedSections),[n]=t.splice(e.source.index,1);t.splice(e.destination.index,0,n),this.selectedSections=t,localStorage.setItem("selectedSections",JSON.stringify(this.selectedSections))}}}),le(Cd.prototype,"hiddenSections",[p.g],Object.getOwnPropertyDescriptor(Cd.prototype,"hiddenSections"),Cd.prototype),Md=le(Cd.prototype,"toggleExplainerVideos",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isExplainerVideosExpanded=!this.isExplainerVideosExpanded}}}),Fd=le(Cd.prototype,"openVideoModal",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{this.currentVideoUrl=e,this.currentVideoTitle=t,this.isVideoModalOpen=!0}}}),$d=le(Cd.prototype,"closeVideoModal",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isVideoModalOpen=!1,this.currentVideoUrl="",this.currentVideoTitle=""}}}),Bd=le(Cd.prototype,"toggleSortMethod",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sortBySubject=!this.sortBySubject}}}),kd=Cd))||kd)||kd;const qd=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})};var Kd,Yd=Vd;const Xd=e=>{let{title:t,desc:n,to:r,fromColor:o,toColor:i,category:a,color:s}=e;return Object(Ht.jsx)(Tr,{to:r||"/",className:"flex relative",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${s}-500 font-semibold leading-none`,children:a}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black",children:t}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm text-gray-500",children:n})]})})})};var Zd=ae("store")(Kd=ee(Kd=class extends s.Component{render(){const{filteredTools:e,loadingTools:t}=this.props.store;return console.log("Filtered Tools:",e),console.log("Loading Tools:",t),t?Object(Ht.jsx)(no,{}):Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:Object(Ht.jsx)(qd,{children:e.map(((e,t)=>Object(Ht.jsx)(Xd,{title:e.title,to:`/writing/${e._id}`,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,category:e.category,color:e.color},t)))})})})}})||Kd)||Kd;var Qd=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{d:"M3 12v3c0 1.657 3.134 3 7 3s7-1.343 7-3v-3c0 1.657-3.134 3-7 3s-7-1.343-7-3z"}),s.createElement("path",{d:"M3 7v3c0 1.657 3.134 3 7 3s7-1.343 7-3V7c0 1.657-3.134 3-7 3S3 8.657 3 7z"}),s.createElement("path",{d:"M17 5c0 1.657-3.134 3-7 3S3 6.657 3 5s3.134-3 7-3 7 1.343 7 3z"}))}));var Jd=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))}));var ep=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}))}));var tp=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"}))}));var np=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"}))}));var rp=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z",clipRule:"evenodd"}))}));var op=e=>Object(Ht.jsxs)("svg",{className:e.className||"w-24 h-24",viewBox:"0 0 148 170",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(Ht.jsx)("rect",{x:"6.46851",y:"79.6786",width:"100",height:"100",transform:"rotate(-45 6.46851 79.6786)",fill:"url(#paint0_linear)"}),Object(Ht.jsx)("circle",{cx:"48.49",cy:"47.4901",r:"22.9739",transform:"rotate(-45 48.49 47.4901)",fill:"url(#paint1_linear)"}),Object(Ht.jsx)("circle",{cx:"129.135",cy:"116.135",r:"8.58055",transform:"rotate(-45 129.135 116.135)",fill:"url(#paint2_linear)"}),Object(Ht.jsx)("rect",{x:"74",y:"104",width:"48",height:"48",transform:"rotate(-90 74 104)",fill:"url(#paint3_linear)"}),Object(Ht.jsx)("rect",{y:"57.0001",width:"19",height:"19",transform:"rotate(-90 0 57.0001)",fill:"url(#paint4_linear)"}),Object(Ht.jsx)("path",{d:"M18.4354 134.084L63.0843 89.4355L79.4269 150.427L18.4354 134.084Z",fill:"url(#paint5_linear)"}),Object(Ht.jsx)("path",{d:"M101.652 26.6642L123.664 4.65179L131.721 34.7213L101.652 26.6642Z",fill:"#4029B5"}),Object(Ht.jsxs)("defs",{children:[Object(Ht.jsxs)("linearGradient",{id:"paint0_linear",x1:"56.4685",y1:"79.6786",x2:"56.4685",y2:"179.679",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#7B61FF"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#2103BA"})]}),Object(Ht.jsxs)("linearGradient",{id:"paint1_linear",x1:"48.49",y1:"24.5162",x2:"48.49",y2:"70.464",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#46E1C5"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#00836B"})]}),Object(Ht.jsxs)("linearGradient",{id:"paint2_linear",x1:"129.135",y1:"107.554",x2:"129.135",y2:"124.715",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#46E1C5"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#00836B"})]}),Object(Ht.jsxs)("linearGradient",{id:"paint3_linear",x1:"98",y1:"104",x2:"98",y2:"152",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#FFEC40"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#FFB931"})]}),Object(Ht.jsxs)("linearGradient",{id:"paint4_linear",x1:"9.5",y1:"57.0001",x2:"9.5",y2:"76.0001",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#FFC961"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#FFE600"})]}),Object(Ht.jsxs)("linearGradient",{id:"paint5_linear",x1:"18.4354",y1:"134.084",x2:"74.5",y2:"119",gradientUnits:"userSpaceOnUse",children:[Object(Ht.jsx)("stop",{stopColor:"#4029B5"}),Object(Ht.jsx)("stop",{offset:"1",stopColor:"#130076"})]})]})]});var ip=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}));const ap=e=>{let{currency:t,isSelected:n,onClick:r}=e;return Object(Ht.jsx)("button",{onClick:r,className:"px-4 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out "+(n?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"),children:"GBP"===t?"\xa3 GBP":"$ USD"})};var sp=e=>{let{currency:t,setCurrency:n}=e;return Object(Ht.jsxs)("div",{className:"flex items-center justify-end mb-6",children:[Object(Ht.jsx)(ip,{className:"h-5 w-5 mr-3 text-gray-500"}),Object(Ht.jsxs)("div",{className:"bg-gray-100 p-1 rounded-lg flex space-x-1",children:[Object(Ht.jsx)(ap,{currency:"GBP",isSelected:"GBP"===t,onClick:()=>n("GBP")}),Object(Ht.jsx)(ap,{currency:"USD",isSelected:"USD"===t,onClick:()=>n("USD")})]})]})};const lp=e=>{let{title:t,price:n,features:r,fromColor:o,toColor:i,baseURL:a,api:s,priceId:l,currency:c}=e;const u="GBP"===c?"\xa3":"$";return Object(Ht.jsxs)("div",{className:"flex relative",children:[Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${o} to-${i} shadow-lg transform skew-y-0 -rotate-3 rounded-3xl`}),Object(Ht.jsx)("div",{className:`bg-white rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 border-t-2 hover:border-${o} md:flex relative transform hover:scale-105 hover:text-black flex-1`,children:Object(Ht.jsxs)("div",{className:"p-8 flex-1",children:[Object(Ht.jsx)("div",{className:`text-${o} block text-lg text-2xl leading-tight font-medium mb-2`,children:t}),Object(Ht.jsxs)("div",{className:"text-6xl text-black font-bold",children:[u,n,Object(Ht.jsx)("span",{className:"text-lg text-gray-400",children:"Free"===t?" free trial":"/per month"})]}),Object(Ht.jsx)("div",{className:"divide-y divide-dashed divide-gray-300 mt-4",children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"py-2 flex items-center",children:[Object(Ht.jsx)(e.icon,{className:`w-6 h-6 mr-2 text-${o}`}),Object(Ht.jsx)("div",{children:Object(Ht.jsx)("span",{className:"font-medium text-black",children:e.text})})]},t)))}),Object(Ht.jsxs)("form",{action:a+"user/stripe/subscribe",method:"POST",className:"flex flex-1",children:[Object(Ht.jsx)("input",{type:"hidden",name:"token",value:s.defaults.headers.common["x-access-token"]}),Object(Ht.jsx)("input",{type:"hidden",name:"priceId",value:l}),Object(Ht.jsx)("input",{type:"hidden",name:"currency",value:c}),Object(Ht.jsx)("button",{type:"submit",className:`mt-8 inset-0 bg-gradient-to-r from-${o} to-${i} shadow-lg flex-1 rounded-md p-4 text-white font-medium text-center text-lg transition hover:from-gray-700 hover:to-gray-800 text-enter`,children:"Free"===t?"Try Out":"Get Started"})]})]})})]})},cp=ae("store")(ee((e=>{let{store:t}=e;const[n,r]=Object(s.useState)("GBP");un.stripe[n.toLowerCase()].free,un.stripe[n.toLowerCase()].entry,un.stripe[n.toLowerCase()].pro;return Object(Ht.jsxs)(Ht.Fragment,{children:[!t.profile.status&&Object(Ht.jsx)("div",{className:"border-b border-gray-300 bg-white shadow-sm",children:Object(Ht.jsxs)("div",{className:"container flex mx-auto px-4 md:px-28 flex select-none",children:[Object(Ht.jsx)("div",{className:"relative text-gray-400 focus-within:text-green-500 flex flex-1"}),Object(Ht.jsxs)("div",{onClick:t.handleLogout,className:"cursor-pointer text-lg flex py-3 px-6 xl:py-4 xl:px-8 hover:bg-gray-100 rounded-t-md font-medium transition items-center",children:[Object(Ht.jsx)(rp,{className:"w-7 h-7 lg:mr-4 transition"}),Object(Ht.jsx)("div",{className:"hidden lg:block",children:" Log Out"})]})]})}),Object(Ht.jsxs)("div",{className:"container mx-auto px-8 py-4 lg:px-28 lg:py-12 lg:pb-64 select-none",children:[!t.profile.status&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{className:"text-center",children:Object(Ht.jsx)("img",{src:Br,className:"inline-block",style:{width:"100px",height:"100px",objectFit:"contain"},alt:"TopMarks.ai Logo"})}),Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-5xl text-gray-700 text-center",children:"Start now"}),Object(Ht.jsx)("p",{className:"text-lg sm:text-xl md:text-2xl text-gray-400 mb-14 mt-2 text-center",children:"Pick a pricing option to begin using TopMarks.ai"})]}),Object(Ht.jsx)("div",{className:"flex justify-end mb-8",children:Object(Ht.jsx)(sp,{currency:n,setCurrency:r})}),Object(Ht.jsxs)(up,{children:[!t.profile.status&&Object(Ht.jsx)(lp,{title:"Free",price:"0",fromColor:"gray-400",toColor:"gray-500",baseURL:t.baseURL,api:t.api,priceId:un.stripe[n.toLowerCase()].free,currency:n,features:[{icon:Qd,text:"5 Credits"},{icon:Jd,text:"5 essay marking requests"},{icon:$t,text:"All marking rubrics"},{icon:ep,text:"Handwriting to Editable Text Tool"},{icon:tp,text:"Stellar customer support"},{icon:np,text:"Word Integration: download all results to word"}]}),Object(Ht.jsx)(lp,{title:"Entry",price:"GBP"===n?"20":"25",fromColor:"green-400",toColor:"green-600",baseURL:t.baseURL,api:t.api,priceId:un.stripe[n.toLowerCase()].entry,currency:n,features:[{icon:Qd,text:"40 Credits"},{icon:Jd,text:"40 essay marking requests"},{icon:$t,text:"All marking rubrics"},{icon:ep,text:"Handwriting to Editable Text Tool"},{icon:tp,text:"Stellar customer support"},{icon:np,text:"Word Integration: download all results to word"}]}),Object(Ht.jsx)(lp,{title:"Pro",price:"GBP"===n?"40":"45",fromColor:"indigo-500",toColor:"red-500",baseURL:t.baseURL,api:t.api,priceId:un.stripe[n.toLowerCase()].pro,currency:n,features:[{icon:Qd,text:"90 Credits"},{icon:Jd,text:"90 essay marking requests"},{icon:$t,text:"All marking rubrics"},{icon:ep,text:"Handwriting to Editable Text Tool"},{icon:tp,text:"Stellar customer support"},{icon:np,text:"Word Integration: download all results to word"}]})]})]})]})}))),up=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-12 mt-4 xl:grid-cols-3",children:t})};var dp,pp=cp,fp=n(40),hp=n(53),mp=n(12),gp=Object(oo.a)({},c),bp=gp.version,vp=gp.render,yp=gp.unmountComponentAtNode;try{Number((bp||"").split(".")[0])>=18&&(dp=gp.createRoot)}catch(dD){}function xp(e){var t=gp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Object(mp.a)(t)&&(t.usingClientEntryPoint=e)}var Op="__rc_react_root__";function Ep(e,t){dp?function(e,t){xp(!0);var n=t[Op]||dp(t);xp(!1),n.render(e),t[Op]=n}(e,t):function(e,t){vp(e,t)}(e,t)}function wp(e){return jp.apply(this,arguments)}function jp(){return(jp=Object(hp.a)(Object(fp.a)().mark((function e(t){return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Op])||void 0===e||e.unmount(),delete t[Op]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sp(e){yp(e)}function Tp(){return(Tp=Object(hp.a)(Object(fp.a)().mark((function e(t){return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===dp){e.next=2;break}return e.abrupt("return",wp(t));case 2:Sp(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const kp=l.a.createContext({});const Cp="ant",_p="anticon",Np=["outlined","borderless","filled"],Ap=s.createContext({getPrefixCls:(e,t)=>t||(e?`${Cp}-${e}`:Cp),iconPrefixCls:_p}),{Consumer:Rp}=Ap;var Ip=n(7),Pp=n(2),Dp=n(10);var Lp=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Mp=n(32),Fp=n(13),$p=n(51),Bp=n(48),Up=n(16),Hp=n(17);function zp(e){return e.join("%")}var Gp=function(){function e(t){Object(Up.a)(this,e),Object(Pp.a)(this,"instanceId",void 0),Object(Pp.a)(this,"cache",new Map),this.instanceId=t}return Object(Hp.a)(e,[{key:"get",value:function(e){return this.opGet(zp(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(zp(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Wp="data-token-hash",Vp="data-css-hash",qp="__cssinjs_instance__";function Kp(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Vp,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[qp]=t[qp]||e,t[qp]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Vp,"]"))).forEach((function(t){var n,o=t.getAttribute(Vp);r[o]?t[qp]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Gp(e)}var Yp=s.createContext({hashPriority:"low",cache:Kp(),defaultCache:!0}),Xp=Yp,Zp=n(34),Qp=n(24),Jp=n(35),ef="CALC_UNIT";new RegExp(ef,"g");var tf=function(){function e(){Object(Up.a)(this,e),Object(Pp.a)(this,"cache",void 0),Object(Pp.a)(this,"keys",void 0),Object(Pp.a)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Object(Hp.a)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Object(Ip.a)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Object(Ip.a)(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Object(Pp.a)(tf,"MAX_CACHE_SIZE",20),Object(Pp.a)(tf,"MAX_CACHE_OFFSET",5);var nf=n(22),rf=0,of=function(){function e(t){Object(Up.a)(this,e),Object(Pp.a)(this,"derivatives",void 0),Object(Pp.a)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=rf,0===t.length&&Object(nf.c)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),rf+=1}return Object(Hp.a)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),af=new tf;function sf(e){var t=Array.isArray(e)?e:[e];return af.has(t)||af.set(t,new of(t)),af.get(t)}var lf=new WeakMap,cf={};var uf=new WeakMap;function df(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=uf.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof of?n+=o.id:o&&"object"===Object(mp.a)(o)?n+=df(o,t):n+=o})),t&&(n=Lp(n)),uf.set(e,n)),n}function pf(e,t){return Lp("".concat(t,"_").concat(df(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var ff=Object(Zp.a)();function hf(e){return"number"===typeof e?"".concat(e,"px"):e}function mf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Object(oo.a)(Object(oo.a)({},r),{},Object(Pp.a)(Object(Pp.a)({},Wp,t),Vp,n)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var gf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bf=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Object(Ip.a)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},vf=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Object(Ip.a)(e,2),s=a[0],l=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[s])){var c,u=gf(s,null===n||void 0===n?void 0:n.prefix);r[u]="number"!==typeof l||null!==n&&void 0!==n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}})),[o,bf(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},yf=n(23),xf=Object(oo.a)({},s).useInsertionEffect,Of=xf?function(e,t,n){return xf((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),Object(yf.a)((function(){return t(!0)}),n)},Ef="undefined"!==typeof Object(oo.a)({},s).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var wf=function(){return!1};function jf(e,t,n,r,o){var i=s.useContext(Xp).cache,a=zp([e].concat(Object(Dp.a)(t))),l=Ef([a]),c=(wf(),function(e){i.opUpdate(a,(function(t){var r=t||[void 0,void 0],o=Object(Ip.a)(r,2),i=o[0];var a=[void 0===i?0:i,o[1]||n()];return e?e(a):a}))});s.useMemo((function(){c()}),[a]);var u=i.opGet(a)[1];return Of((function(){null===o||void 0===o||o(u)}),(function(e){return c((function(t){var n=Object(Ip.a)(t,2),r=n[0],i=n[1];return e&&0===r&&(null===o||void 0===o||o(u)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=t||[],o=Object(Ip.a)(n,2),s=o[0],c=void 0===s?0:s,u=o[1];return 0===c-1?(l((function(){!e&&i.opGet(a)||null===r||void 0===r||r(u,!1)})),null):[c-1,u]}))}}),[a]),u}var Sf={},Tf=new Map;function kf(e,t){Tf.set(e,(Tf.get(e)||0)-1);var n=Array.from(Tf.keys()),r=n.filter((function(e){return(Tf.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(Wp,'="').concat(e,'"]')).forEach((function(e){var n;e[qp]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Tf.delete(e)}))}var Cf="token";function _f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(s.useContext)(Xp),o=r.cache.instanceId,i=r.container,a=n.salt,l=void 0===a?"":a,c=n.override,u=void 0===c?Sf:c,d=n.formatToken,p=n.getComputedToken,f=n.cssVar,h=function(e,t){for(var n=lf,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(cf)||n.set(cf,e()),n.get(cf)}((function(){return Object.assign.apply(Object,[{}].concat(Object(Dp.a)(t)))}),t),m=df(h),g=df(u),b=f?df(f):"",v=jf(Cf,[l,e.id,m,g,b],(function(){var t,n=p?p(h,u,e):function(e,t,n,r){var o=n.getDerivativeToken(e),i=Object(oo.a)(Object(oo.a)({},o),t);return r&&(i=r(i)),i}(h,u,e,d),r=Object(oo.a)({},n),o="";if(f){var i=vf(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),a=Object(Ip.a)(i,2);n=a[0],o=a[1]}var s=pf(n,l);n._tokenKey=s,r._tokenKey=pf(r,l);var c=null!==(t=null===f||void 0===f?void 0:f.key)&&void 0!==t?t:s;n._themeKey=c,function(e){Tf.set(e,(Tf.get(e)||0)+1)}(c);var m="".concat("css","-").concat(Lp(s));return n._hashId=m,[n,m,r,o,(null===f||void 0===f?void 0:f.key)||""]}),(function(e){kf(e[0]._themeKey,o)}),(function(e){var t=Object(Ip.a)(e,4),n=t[0],r=t[3];if(f&&r){var a=Object(Mp.b)(r,Lp("css-variables-".concat(n._themeKey)),{mark:Vp,prepend:"queue",attachTo:i,priority:-999});a[qp]=o,a.setAttribute(Wp,n._themeKey)}}));return v}var Nf=n(68),Af="comm",Rf="rule",If="decl",Pf="@keyframes",Df=Math.abs,Lf=String.fromCharCode;Object.assign;function Mf(e){return e.trim()}function Ff(e,t,n){return e.replace(t,n)}function $f(e,t,n){return e.indexOf(t,n)}function Bf(e,t){return 0|e.charCodeAt(t)}function Uf(e,t,n){return e.slice(t,n)}function Hf(e){return e.length}function zf(e){return e.length}function Gf(e,t){return t.push(e),e}var Wf=1,Vf=1,qf=0,Kf=0,Yf=0,Xf="";function Zf(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Wf,column:Vf,length:a,return:"",siblings:s}}function Qf(){return Yf=Kf<qf?Bf(Xf,Kf++):0,Vf++,10===Yf&&(Vf=1,Wf++),Yf}function Jf(){return Bf(Xf,Kf)}function eh(){return Kf}function th(e,t){return Uf(Xf,e,t)}function nh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rh(e){return Wf=Vf=1,qf=Hf(Xf=e),Kf=0,[]}function oh(e){return Xf="",e}function ih(e){return Mf(th(Kf-1,lh(91===e?e+2:40===e?e+1:e)))}function ah(e){for(;(Yf=Jf())&&Yf<33;)Qf();return nh(e)>2||nh(Yf)>3?"":" "}function sh(e,t){for(;--t&&Qf()&&!(Yf<48||Yf>102||Yf>57&&Yf<65||Yf>70&&Yf<97););return th(e,eh()+(t<6&&32==Jf()&&32==Qf()))}function lh(e){for(;Qf();)switch(Yf){case e:return Kf;case 34:case 39:34!==e&&39!==e&&lh(Yf);break;case 40:41===e&&lh(e);break;case 92:Qf()}return Kf}function ch(e,t){for(;Qf()&&e+Yf!==57&&(e+Yf!==84||47!==Jf()););return"/*"+th(t,Kf-1)+"*"+Lf(47===e?e:Qf())}function uh(e){for(;!nh(Jf());)Qf();return th(e,Kf)}function dh(e){return oh(ph("",null,null,null,[""],e=rh(e),0,[0],e))}function ph(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,O=i,E=r,w=y;g;)switch(h=v,v=Qf()){case 40:if(108!=h&&58==Bf(w,d-1)){-1!=$f(w+=Ff(ih(v),"&","&\f"),"&\f",Df(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=ih(v);break;case 9:case 10:case 13:case 32:w+=ah(h);break;case 92:w+=sh(eh()-1,7);continue;case 47:switch(Jf()){case 42:case 47:Gf(hh(ch(Qf(),eh()),t,n,l),l),5!=nh(h||1)&&5!=nh(Jf()||1)||!Hf(w)||" "===Uf(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*m:s[c++]=Hf(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Ff(w,/\f/g,"")),f>0&&(Hf(w)-d||0===m&&47===h)&&Gf(f>32?mh(w+";",r,n,d-1,l):mh(Ff(w," ","")+";",r,n,d-2,l),l);break;case 59:w+=";";default:if(Gf(E=fh(w,t,n,c,u,o,s,y,x=[],O=[],d,i),i),123===v)if(0===u)ph(w,t,E,E,x,i,d,s,O);else switch(99===p&&110===Bf(w,3)?100:p){case 100:case 108:case 109:case 115:ph(e,E,E,r&&Gf(fh(e,E,E,0,0,o,s,y,o,x=[],d,O),O),o,O,d,s,r?x:O);break;default:ph(w,E,E,E,[""],O,0,s,O)}}c=u=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+Hf(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(Yf=Kf>0?Bf(Xf,--Kf):0,Vf--,10===Yf&&(Vf=1,Wf--),Yf))continue;switch(w+=Lf(v),v*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Hf(w)-1)*b,b=1;break;case 64:45===Jf()&&(w+=ih(Qf())),p=Jf(),u=d=Hf(y=w+=uh(eh())),v++;break;case 45:45===h&&2==Hf(w)&&(m=0)}}return i}function fh(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=zf(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Uf(e,p+1,p=Df(g=a[m])),x=e;v<h;++v)(x=Mf(g>0?f[v]+" "+y:Ff(y,/&\f/g,f[v])))&&(l[b++]=x);return Zf(e,t,n,0===o?Rf:s,l,c,u,d)}function hh(e,t,n,r){return Zf(e,t,n,Af,Lf(Yf),Uf(e,2,-2),0,r)}function mh(e,t,n,r,o){return Zf(e,t,n,If,Uf(e,0,r),Uf(e,r+1,-1),r,o)}function gh(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case If:return e.return=e.return||e.value;case Af:return"";case Pf:return e.return=e.value+"{"+gh(e.children,r)+"}";case Rf:if(!Hf(e.value=e.props.join(",")))return""}return Hf(n=gh(e.children,r))?e.return=e.value+"{"+n+"}":""}var vh,yh="data-ant-cssinjs-cache-path",xh="_FILE_STYLE__";var Oh=!0;function Eh(e){return function(){if(!vh&&(vh={},Object(Zp.a)())){var e=document.createElement("div");e.className=yh,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=Object(Ip.a)(t,2),r=n[0],o=n[1];vh[r]=o}));var n,r=document.querySelector("style[".concat(yh,"]"));r&&(Oh=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!vh[e]}var wh="_multi_value_";function jh(e){return gh(dh(e),bh).replace(/\{%%%\:[^;];}/g,";")}function Sh(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Object(Dp.a)(n.slice(1))).join(" ")})).join(",")}var Th=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,p=(n.linters,""),f={};function h(t){var r=t.getName(s);if(!f[r]){var o=e(t.style,n,{root:!1,parentSelectors:a}),i=Object(Ip.a)(o,1)[0];f[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return m.forEach((function(t){var r="string"!==typeof t||o?t:{};if("string"===typeof r)p+="".concat(r,"\n");else if(r._keyframe)h(r);else{var l=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==Object(mp.a)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Object(mp.a)(e)&&e&&("_skip_check_"in e||wh in e)}(r)){var u;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Nf.a[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),r=t.getName(s)),p+="".concat(n,":").concat(r,";")}var d=null!==(u=null===r||void 0===r?void 0:r.value)&&void 0!==u?u:r;"object"===Object(mp.a)(r)&&null!==r&&void 0!==r&&r[wh]&&Array.isArray(d)?d.forEach((function(e){E(t,e)})):E(t,d)}else{var m=!1,g=t.trim(),b=!1;(o||i)&&s?g.startsWith("@")?m=!0:g=Sh("&"===g?"":t,s,c):!o||s||"&"!==g&&""!==g||(g="",b=!0);var v=e(r,n,{root:b,injectHash:m,parentSelectors:[].concat(Object(Dp.a)(a),[g])}),y=Object(Ip.a)(v,2),x=y[0],O=y[1];f=Object(oo.a)(Object(oo.a)({},f),O),p+="".concat(g).concat(x)}}))}})),o?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(f["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):p="{".concat(p,"}"),[p,f]};function kh(e,t){return Lp("".concat(e.join("%")).concat(t))}function Ch(){return null}var _h="style";function Nh(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=s.useContext(Xp),p=d.autoClear,f=(d.mock,d.defaultCache),h=d.hashPriority,m=d.container,g=d.ssrInline,b=d.transformers,v=d.linters,y=d.cache,x=d.layer,O=n._tokenKey,E=[O];x&&E.push("layer"),E.push.apply(E,Object(Dp.a)(r));var w=ff;var j=jf(_h,E,(function(){var e=E.join("|");if(Eh(e)){var n=function(e){var t=vh[e],n=null;if(t&&Object(Zp.a)())if(Oh)n=xh;else{var r=document.querySelector("style[".concat(Vp,'="').concat(vh[e],'"]'));r?n=r.innerHTML:delete vh[e]}return[n,t]}(e),a=Object(Ip.a)(n,2),s=a[0],c=a[1];if(s)return[s,O,c,{},l,u]}var d=t(),p=Th(d,{hashId:o,hashPriority:h,layer:x?i:void 0,path:r.join("-"),transformers:b,linters:v}),f=Object(Ip.a)(p,2),m=f[0],g=f[1],y=jh(m),w=kh(E,y);return[y,O,w,g,l,u]}),(function(e,t){var n=Object(Ip.a)(e,3)[2];(t||p)&&ff&&Object(Mp.a)(n,{mark:Vp})}),(function(e){var t=Object(Ip.a)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(w&&n!==xh){var i={mark:Vp,prepend:!x&&"queue",attachTo:m,priority:u},s="function"===typeof a?a():a;s&&(i.csp={nonce:s});var l=[],c=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){Object(Mp.b)(jh(o[e]),"_layer-".concat(e),Object(oo.a)(Object(oo.a)({},i),{},{prepend:!0}))}));var d=Object(Mp.b)(n,r,i);d[qp]=y.instanceId,d.setAttribute(Wp,O),c.forEach((function(e){Object(Mp.b)(jh(o[e]),"_effect-".concat(e),i)}))}})),S=Object(Ip.a)(j,3),T=S[0],k=S[1],C=S[2];return function(e){var t;return t=g&&!w&&f?s.createElement("style",Object(yn.a)({},Object(Pp.a)(Object(Pp.a)({},Wp,k),Vp,C),{dangerouslySetInnerHTML:{__html:T}})):s.createElement(Ch,null),s.createElement(s.Fragment,null,t,e)}}var Ah="cssVar",Rh=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,l=e.scope,c=void 0===l?"":l,u=Object(s.useContext)(Xp),d=u.cache.instanceId,p=u.container,f=a._tokenKey,h=[].concat(Object(Dp.a)(e.path),[n,c,f]);return jf(Ah,h,(function(){var e=t(),a=vf(e,n,{prefix:r,unitless:o,ignore:i,scope:c}),s=Object(Ip.a)(a,2),l=s[0],u=s[1];return[l,u,kh(h,u),n]}),(function(e){var t=Object(Ip.a)(e,3)[2];ff&&Object(Mp.a)(t,{mark:Vp})}),(function(e){var t=Object(Ip.a)(e,3),r=t[1],o=t[2];if(r){var i=Object(Mp.b)(r,o,{mark:Vp,prepend:"queue",attachTo:p,priority:-999});i[qp]=d,i.setAttribute(Wp,n)}}))};Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},_h,(function(e,t,n){var r=Object(Ip.a)(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=mf(o,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=mf(jh(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Cf,(function(e,t,n){var r=Object(Ip.a)(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,mf(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Ah,(function(e,t,n){var r=Object(Ip.a)(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,mf(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Ih=function(){function e(t,n){Object(Up.a)(this,e),Object(Pp.a)(this,"name",void 0),Object(Pp.a)(this,"style",void 0),Object(Pp.a)(this,"_keyframe",!0),this.name=t,this.style=n}return Object(Hp.a)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),Ph=Ih;function Dh(e){return e.notSplit=!0,e}Dh(["borderTop","borderBottom"]),Dh(["borderTop"]),Dh(["borderBottom"]),Dh(["borderLeft","borderRight"]),Dh(["borderLeft"]),Dh(["borderRight"]);var Lh=Object(s.createContext)({}),Mh=n(43);function Fh(){}const $h=s.createContext({}),Bh=()=>{const e=()=>{};return e.deprecated=Fh,e};var Uh=Object(s.createContext)(void 0),Hh={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},zh=Object(oo.a)(Object(oo.a)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});var Gh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const Wh={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},zh),timePickerLocale:Object.assign({},Gh)};const Vh="${label} is not a valid ${type}";var qh={locale:"en",Pagination:Hh,DatePicker:Wh,TimePicker:Gh,Calendar:Wh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Vh,method:Vh,array:Vh,object:Vh,number:Vh,date:Vh,boolean:Vh,integer:Vh,float:Vh,regexp:Vh,email:Vh,url:Vh,hex:Vh},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Kh=Object.assign({},qh.Modal),Yh=[];const Xh=()=>Yh.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),qh.Modal);var Zh=Object(s.createContext)(void 0);var Qh=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Yh.push(t),Kh=Xh(),()=>{Yh=Yh.filter((e=>e!==t)),Kh=Xh()}}Kh=Object.assign({},qh.Modal)}(null===t||void 0===t?void 0:t.Modal);return e}),[t]);const o=s.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return s.createElement(Zh.Provider,{value:o},n)};function Jh(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function em(e){return Math.min(1,Math.max(0,e))}function tm(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nm(e){return e<=1?"".concat(100*Number(e),"%"):e}function rm(e){return 1===e.length?"0"+e:String(e)}function om(e,t,n){e=Jh(e,255),t=Jh(t,255),n=Jh(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function im(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function am(e,t,n){e=Jh(e,255),t=Jh(t,255),n=Jh(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function sm(e,t,n,r){var o=[rm(Math.round(e).toString(16)),rm(Math.round(t).toString(16)),rm(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function lm(e){return Math.round(255*parseFloat(e)).toString(16)}function cm(e){return um(e)/255}function um(e){return parseInt(e,16)}var dm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function pm(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(dm[e])e=dm[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=gm.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=gm.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=gm.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=gm.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=gm.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=gm.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=gm.hex8.exec(e),n)return{r:um(n[1]),g:um(n[2]),b:um(n[3]),a:cm(n[4]),format:t?"name":"hex8"};if(n=gm.hex6.exec(e),n)return{r:um(n[1]),g:um(n[2]),b:um(n[3]),format:t?"name":"hex"};if(n=gm.hex4.exec(e),n)return{r:um(n[1]+n[1]),g:um(n[2]+n[2]),b:um(n[3]+n[3]),a:cm(n[4]+n[4]),format:t?"name":"hex8"};if(n=gm.hex3.exec(e),n)return{r:um(n[1]+n[1]),g:um(n[2]+n[2]),b:um(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(bm(e.r)&&bm(e.g)&&bm(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Jh(t,255),g:255*Jh(n,255),b:255*Jh(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):bm(e.h)&&bm(e.s)&&bm(e.v)?(a=nm(e.s),s=nm(e.v),o=function(e,t,n){e=6*Jh(e,360),t=Jh(t,100),n=Jh(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):bm(e.h)&&bm(e.s)&&bm(e.l)&&(a=nm(e.s),l=nm(e.l),o=function(e,t,n){var r,o,i;if(e=Jh(e,360),t=Jh(t,100),n=Jh(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=im(s,a,e+1/3),o=im(s,a,e),i=im(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=tm(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var fm="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),hm="[\\s|\\(]+(".concat(fm,")[,|\\s]+(").concat(fm,")[,|\\s]+(").concat(fm,")\\s*\\)?"),mm="[\\s|\\(]+(".concat(fm,")[,|\\s]+(").concat(fm,")[,|\\s]+(").concat(fm,")[,|\\s]+(").concat(fm,")\\s*\\)?"),gm={CSS_UNIT:new RegExp(fm),rgb:new RegExp("rgb"+hm),rgba:new RegExp("rgba"+mm),hsl:new RegExp("hsl"+hm),hsla:new RegExp("hsla"+mm),hsv:new RegExp("hsv"+hm),hsva:new RegExp("hsva"+mm),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function bm(e){return Boolean(gm.CSS_UNIT.exec(String(e)))}var vm=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ym(e){var t=am(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function xm(e){var t=e.r,n=e.g,r=e.b;return"#".concat(sm(t,n,r,!1))}function Om(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Em(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function wm(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function jm(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=pm(e),o=5;o>0;o-=1){var i=ym(r),a=xm(pm({h:Om(i,o,!0),s:Em(i,o,!0),v:wm(i,o,!0)}));n.push(a)}n.push(xm(r));for(var s=1;s<=4;s+=1){var l=ym(r),c=xm(pm({h:Om(l,s),s:Em(l,s),v:wm(l,s)}));n.push(c)}return"dark"===t.theme?vm.map((function(e){var r=e.index,o=e.opacity;return xm(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(pm(t.backgroundColor||"#141414"),pm(n[r]),100*o))})):n}var Sm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Tm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Tm.primary=Tm[5];var km=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];km.primary=km[5];var Cm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cm.primary=Cm[5];var _m=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_m.primary=_m[5];var Nm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Nm.primary=Nm[5];var Am=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Am.primary=Am[5];var Rm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rm.primary=Rm[5];var Im=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Im.primary=Im[5];var Pm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Pm.primary=Pm[5];var Dm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Dm.primary=Dm[5];var Lm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Lm.primary=Lm[5];var Mm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Mm.primary=Mm[5];var Fm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Fm.primary=Fm[5];var $m={red:Tm,volcano:km,orange:Cm,gold:_m,yellow:Nm,lime:Am,green:Rm,cyan:Im,blue:Pm,geekblue:Dm,purple:Lm,magenta:Mm,grey:Fm},Bm=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Bm.primary=Bm[5];var Um=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Um.primary=Um[5];var Hm=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Hm.primary=Hm[5];var zm=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];zm.primary=zm[5];var Gm=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Gm.primary=Gm[5];var Wm=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Wm.primary=Wm[5];var Vm=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Vm.primary=Vm[5];var qm=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];qm.primary=qm[5];var Km=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Km.primary=Km[5];var Ym=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ym.primary=Ym[5];var Xm=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Xm.primary=Xm[5];var Zm=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Zm.primary=Zm[5];var Qm=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Qm.primary=Qm[5];const Jm={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var eg=Object.assign(Object.assign({},Jm),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),tg=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=pm(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=tm(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=am(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=am(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=om(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=om(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),sm(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[rm(Math.round(e).toString(16)),rm(Math.round(t).toString(16)),rm(Math.round(n).toString(16)),rm(lm(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Jh(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Jh(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+sm(this.r,this.g,this.b,!1),t=0,n=Object.entries(dm);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=em(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=em(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=em(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=em(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var ng=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var rg=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function og(e){return(e+8)/e}var ig=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:og(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ag=(e,t)=>new tg(e).setAlpha(t).toRgbString(),sg=(e,t)=>new tg(e).darken(t).toHexString(),lg=e=>{const t=jm(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},cg=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ag(r,.88),colorTextSecondary:ag(r,.65),colorTextTertiary:ag(r,.45),colorTextQuaternary:ag(r,.25),colorFill:ag(r,.15),colorFillSecondary:ag(r,.06),colorFillTertiary:ag(r,.04),colorFillQuaternary:ag(r,.02),colorBgSolid:ag(r,1),colorBgSolidHover:ag(r,.75),colorBgSolidActive:ag(r,.95),colorBgLayout:sg(n,4),colorBgContainer:sg(n,0),colorBgElevated:sg(n,0),colorBgSpotlight:ag(r,.85),colorBgBlur:"transparent",colorBorder:sg(n,15),colorBorderSecondary:sg(n,6)}};const ug=sf((function(e){Sm.pink=Sm.magenta,$m.pink=$m.magenta;const t=Object.keys(Jm).map((t=>{const n=e[t]===Sm[t]?$m[t]:jm(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),h=n(a),m=n(s),g=r(c,u),b=n(e.colorLink||e.colorInfo),v=new tg(h[1]).mix(new tg(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:v,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new tg("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:lg,generateNeutralColorPalettes:cg})),ig(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),rg(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},ng(r))}(e))})),dg={token:eg,override:{override:eg},hashed:!0},pg=l.a.createContext(dg),fg=`-ant-${Date.now()}-${Math.random()}`;function hg(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new tg(e),i=jm(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new tg(t.primaryColor),i=jm(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new tg(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n  }\n  `.trim()}(e,t);Object(Zp.a)()&&Object(Mp.b)(n,`${fg}-dynamic-theme`)}const mg=s.createContext(!1),gg=e=>{let{children:t,disabled:n}=e;const r=s.useContext(mg);return s.createElement(mg.Provider,{value:null!==n&&void 0!==n?n:r},t)};var bg=mg;const vg=s.createContext(void 0),yg=e=>{let{children:t,size:n}=e;const r=s.useContext(vg);return s.createElement(vg.Provider,{value:n||r},t)};var xg=vg;var Og=function(){return{componentDisabled:Object(s.useContext)(bg),componentSize:Object(s.useContext)(xg)}};const Eg=Object.assign({},s),{useId:wg}=Eg;var jg="undefined"===typeof wg?()=>"":wg;var Sg=n(36);function Tg(e){return e>=0&&e<=255}var kg=function(e,t){const{r:n,g:r,b:o,a:i}=new tg(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new tg(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(Tg(e)&&Tg(t)&&Tg(i))return new tg({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new tg({r:n,g:r,b:o,a:1}).toRgbString()},Cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function _g(e){const{override:t}=e,n=Cg(e,["override"]),r=Object.assign({},t);Object.keys(eg).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:kg(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:kg(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kg(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:kg(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new tg("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new tg("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new tg("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ng=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ag={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Rg={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Ig={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pg=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ng(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=_g(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ng(n,["theme"]);let i=o;r&&(i=Pg(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Dg(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=l.a.useContext(pg),i=`5.21.5-${t||""}`,a=n||ug,[s,c,u]=_f(a,[eg,e],{salt:i,override:r,getComputedToken:Pg,formatToken:_g,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Ag,ignore:Rg,preserve:Ig}});return[a,u,t?c:"",s,o]}function Lg(e){const{children:t}=e,[,n]=Dg(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||!1===r,o.current?s.createElement(Sg.b,{motion:r},t):t}var Mg=()=>null;const Fg={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Bg=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ug=e=>({outline:`${hf(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Hg=e=>({"&:focus-visible":Object.assign({},Ug(e))});var zg=(e,t)=>{const[n,r]=Dg();return Nh({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},Gg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vg,qg,Kg,Yg;function Xg(){return Vg||Cp}function Zg(){return qg||_p}const Qg=()=>({getPrefixCls:(e,t)=>t||(e?`${Xg()}-${e}`:Xg()),getIconPrefixCls:Zg,getRootPrefixCls:()=>Vg||Xg(),getTheme:()=>Kg,holderRender:Yg}),Jg=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,splitter:p,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:b,parentContext:v,iconPrefixCls:y,theme:x,componentDisabled:O,segmented:E,statistic:w,spin:j,calendar:S,carousel:T,cascader:k,collapse:C,typography:_,checkbox:N,descriptions:A,divider:R,drawer:I,skeleton:P,steps:D,image:L,layout:M,list:F,mentions:$,modal:B,progress:U,result:H,slider:z,breadcrumb:G,menu:W,pagination:V,input:q,textArea:K,empty:Y,badge:X,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:me,wave:ge,dropdown:be,warning:ve,tour:ye,floatButtonGroup:xe,variant:Oe,inputNumber:Ee,treeSelect:we}=e,je=s.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||v.getPrefixCls("");return t?`${o}-${t}`:o}),[v.getPrefixCls,e.prefixCls]),Se=y||v.iconPrefixCls||_p,Te=n||v.csp;zg(Se,Te);const ke=function(e,t,n){var r;Bh("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},dg),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:dg.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=jg();return Object($p.a)((()=>{var r,s;if(!e)return t;const l=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(s=o.cssVar)||void 0===s?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:l,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!Object(Bp.a)(e,r,!0)}))))}(x,v.theme,{prefixCls:je("")});const Ce={csp:Te,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||b,direction:u,space:d,splitter:p,virtual:f,popupMatchSelectWidth:null!==m&&void 0!==m?m:h,popupOverflow:g,getPrefixCls:je,iconPrefixCls:Se,theme:ke,segmented:E,statistic:w,spin:j,calendar:S,carousel:T,cascader:k,collapse:C,typography:_,checkbox:N,descriptions:A,divider:R,drawer:I,skeleton:P,steps:D,image:L,input:q,textArea:K,layout:M,list:F,mentions:$,modal:B,progress:U,result:H,slider:z,breadcrumb:G,menu:W,pagination:V,empty:Y,badge:X,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:me,wave:ge,dropdown:be,warning:ve,tour:ye,floatButtonGroup:xe,variant:Oe,inputNumber:Ee,treeSelect:we};const _e=Object.assign({},v);Object.keys(Ce).forEach((e=>{void 0!==Ce[e]&&(_e[e]=Ce[e])})),Wg.forEach((t=>{const n=e[t];n&&(_e[t]=n)})),"undefined"!==typeof r&&(_e.button=Object.assign({autoInsertSpace:r},_e.button));const Ne=Object($p.a)((()=>_e),_e,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ae=s.useMemo((()=>({prefixCls:Se,csp:Te})),[Se,Te]);let Re=s.createElement(s.Fragment,null,s.createElement(Mg,{dropdownMatchSelectWidth:h}),t);const Ie=s.useMemo((()=>{var e,t,n,r;return Object(Mh.b)((null===(e=qh.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ne.form)||void 0===r?void 0:r.validateMessages)||{},(null===a||void 0===a?void 0:a.validateMessages)||{})}),[Ne,null===a||void 0===a?void 0:a.validateMessages]);Object.keys(Ie).length>0&&(Re=s.createElement(Uh.Provider,{value:Ie},Re)),l&&(Re=s.createElement(Qh,{locale:l,_ANT_MARK__:"internalMark"},Re)),(Se||Te)&&(Re=s.createElement(Lh.Provider,{value:Ae},Re)),c&&(Re=s.createElement(yg,{size:c},Re)),Re=s.createElement(Lg,null,Re);const Pe=s.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Gg(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?sf(t):ug,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=sf(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},eg),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[ke]);return x&&(Re=s.createElement(pg.Provider,{value:Pe},Re)),Ne.warning&&(Re=s.createElement($h.Provider,{value:Ne.warning},Re)),void 0!==O&&(Re=s.createElement(gg,{disabled:O},Re)),s.createElement(Ap.Provider,{value:Ne},Re)},eb=e=>{const t=s.useContext(Ap),n=s.useContext(Zh);return s.createElement(Jg,Object.assign({parentContext:t,legacyLocale:n},e))};eb.ConfigContext=Ap,eb.SizeContext=xg,eb.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Vg=t),void 0!==n&&(qg=n),"holderRender"in e&&(Yg=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?Kg=r:hg(Xg(),r))},eb.useConfig=Og,Object.defineProperty(eb,"SizeContext",{get:()=>xg});var tb=eb,nb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},rb=n(6),ob=n.n(rb),ib=n(65);function ab(e){return"object"===Object(mp.a)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Object(mp.a)(e.icon)||"function"===typeof e.icon)}function sb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function lb(e,t,n){return n?l.a.createElement(e.tag,Object(oo.a)(Object(oo.a)({key:t},sb(e.attrs)),n),(e.children||[]).map((function(n,r){return lb(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.a.createElement(e.tag,Object(oo.a)({key:t},sb(e.attrs)),(e.children||[]).map((function(n,r){return lb(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function cb(e){return jm(e)[0]}function ub(e){return e?Array.isArray(e)?e:[e]:[]}var db=["icon","className","onClick","style","primaryColor","secondaryColor"],pb={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var fb=function(e){var t,n,r=e.icon,o=e.className,i=e.onClick,a=e.style,l=e.primaryColor,c=e.secondaryColor,u=Object(Fp.a)(e,db),d=s.useRef(),p=pb;if(l&&(p={primaryColor:l,secondaryColor:c||cb(l)}),function(e){var t=Object(s.useContext)(Lh),n=t.csp,r=t.prefixCls,o="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";r&&(o=o.replace(/anticon/g,r)),Object(s.useEffect)((function(){var t=e.current,r=Object(ib.a)(t);Object(Mp.b)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}(d),t=ab(r),n="icon should be icon definiton, but got ".concat(r),Object(nf.a)(t,"[@ant-design/icons] ".concat(n)),!ab(r))return null;var f=r;return f&&"function"===typeof f.icon&&(f=Object(oo.a)(Object(oo.a)({},f),{},{icon:f.icon(p.primaryColor,p.secondaryColor)})),lb(f.icon,"svg-".concat(f.name),Object(oo.a)(Object(oo.a)({className:o,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};fb.displayName="IconReact",fb.getTwoToneColors=function(){return Object(oo.a)({},pb)},fb.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;pb.primaryColor=t,pb.secondaryColor=n||cb(t),pb.calculated=!!n};var hb=fb;function mb(e){var t=ub(e),n=Object(Ip.a)(t,2),r=n[0],o=n[1];return hb.setTwoToneColors({primaryColor:r,secondaryColor:o})}var gb=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mb(Pm.primary);var bb=s.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Object(Fp.a)(e,gb),d=s.useContext(Lh),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,m=ob()(h,f,Object(Pp.a)(Object(Pp.a)({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||"loading"===r.name),n),g=a;void 0===g&&l&&(g=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=ub(c),y=Object(Ip.a)(v,2),x=y[0],O=y[1];return s.createElement("span",Object(yn.a)({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),s.createElement(hb,{icon:r,primaryColor:x,secondaryColor:O,style:b}))}));bb.displayName="AntdIcon",bb.getTwoToneColor=function(){var e=hb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bb.setTwoToneColor=mb;var vb=bb,yb=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:nb}))};var xb=s.forwardRef(yb),Ob={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Eb=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:Ob}))};var wb=s.forwardRef(Eb),jb={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Sb=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:jb}))};var Tb=s.forwardRef(Sb),kb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Cb=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:kb}))};var _b=s.forwardRef(Cb),Nb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},Ab=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:Nb}))};var Rb=s.forwardRef(Ab),Ib={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Pb=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:Ib}))};var Db=s.forwardRef(Pb),Lb=n(26),Mb=n(71),Fb=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.showProgress,c=e.pauseOnHover,u=void 0===c||c,d=e.eventKey,p=e.content,f=e.closable,h=e.closeIcon,m=void 0===h?"x":h,g=e.props,b=e.onClick,v=e.onNoticeClose,y=e.times,x=e.hovering,O=s.useState(!1),E=Object(Ip.a)(O,2),w=E[0],j=E[1],S=s.useState(0),T=Object(Ip.a)(S,2),k=T[0],C=T[1],_=s.useState(0),N=Object(Ip.a)(_,2),A=N[0],R=N[1],I=x||w,P=a>0&&l,D=function(){v(d)};s.useEffect((function(){if(!I&&a>0){var e=Date.now()-A,t=setTimeout((function(){D()}),1e3*a-A);return function(){u&&clearTimeout(t),R(Date.now()-e)}}}),[a,I,y]),s.useEffect((function(){if(!I&&P&&(u||0===A)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+A-t,o=Math.min(r/(1e3*a),1);C(100*o),o<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[a,A,I,P,y]);var L=s.useMemo((function(){return"object"===Object(mp.a)(f)&&null!==f?f:f?{closeIcon:m}:{}}),[f,m]),M=Object(Mb.a)(L,!0),F=100-(!k||k<0?0:k>100?100:k),$="".concat(n,"-notice");return s.createElement("div",Object(yn.a)({},g,{ref:t,className:ob()($,o,Object(Pp.a)({},"".concat($,"-closable"),f)),style:r,onMouseEnter:function(e){var t;j(!0),null===g||void 0===g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;j(!1),null===g||void 0===g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:b}),s.createElement("div",{className:"".concat($,"-content")},p),f&&s.createElement("a",Object(yn.a)({tabIndex:0,className:"".concat($,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Lb.a.ENTER||D()},"aria-label":"Close"},M,{onClick:function(e){e.preventDefault(),e.stopPropagation(),D()}}),L.closeIcon),P&&s.createElement("progress",{className:"".concat($,"-progress"),max:"100",value:F},F+"%"))})),$b=Fb,Bb=l.a.createContext({}),Ub=function(e){var t=e.children,n=e.classNames;return l.a.createElement(Bb.Provider,{value:{classNames:n}},t)},Hb=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===Object(mp.a)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]},zb=["className","style","classNames","styles"];var Gb=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,c=e.onAllNoticeRemoved,u=e.onNoticeClose,d=e.stack,p=Object(s.useContext)(Bb).classNames,f=Object(s.useRef)({}),h=Object(s.useState)(null),m=Object(Ip.a)(h,2),g=m[0],b=m[1],v=Object(s.useState)([]),y=Object(Ip.a)(v,2),x=y[0],O=y[1],E=t.map((function(e){return{config:e,key:String(e.key)}})),w=Hb(d),j=Object(Ip.a)(w,2),S=j[0],T=j[1],k=T.offset,C=T.threshold,_=T.gap,N=S&&(x.length>0||E.length<=C),A="function"===typeof a?a(n):a;return Object(s.useEffect)((function(){S&&x.length>1&&O((function(e){return e.filter((function(e){return E.some((function(t){var n=t.key;return e===n}))}))}))}),[x,E,S]),Object(s.useEffect)((function(){var e,t;S&&f.current[null===(e=E[E.length-1])||void 0===e?void 0:e.key]&&b(f.current[null===(t=E[E.length-1])||void 0===t?void 0:t.key])}),[E,S]),l.a.createElement(Sg.a,Object(yn.a)({key:n,className:ob()(r,"".concat(r,"-").concat(n),null===p||void 0===p?void 0:p.list,o,Object(Pp.a)(Object(Pp.a)({},"".concat(r,"-stack"),!!S),"".concat(r,"-stack-expanded"),N)),style:i,keys:E,motionAppear:!0},A,{onAllRemoved:function(){c(n)}}),(function(e,t){var o=e.config,i=e.className,a=e.style,s=e.index,c=o,d=c.key,h=c.times,m=String(d),b=o,v=b.className,y=b.style,w=b.classNames,j=b.styles,T=Object(Fp.a)(b,zb),C=E.findIndex((function(e){return e.key===m})),A={};if(S){var R=E.length-1-(C>-1?C:s-1),I="top"===n||"bottom"===n?"-50%":"0";if(R>0){var P,D,L;A.height=N?null===(P=f.current[m])||void 0===P?void 0:P.offsetHeight:null===g||void 0===g?void 0:g.offsetHeight;for(var M=0,F=0;F<R;F++){var $;M+=(null===($=f.current[E[E.length-1-F].key])||void 0===$?void 0:$.offsetHeight)+_}var B=(N?M:R*k)*(n.startsWith("top")?1:-1),U=!N&&null!==g&&void 0!==g&&g.offsetWidth&&null!==(D=f.current[m])&&void 0!==D&&D.offsetWidth?((null===g||void 0===g?void 0:g.offsetWidth)-2*k*(R<3?R:3))/(null===(L=f.current[m])||void 0===L?void 0:L.offsetWidth):1;A.transform="translate3d(".concat(I,", ").concat(B,"px, 0) scaleX(").concat(U,")")}else A.transform="translate3d(".concat(I,", 0, 0)")}return l.a.createElement("div",{ref:t,className:ob()("".concat(r,"-notice-wrapper"),i,null===w||void 0===w?void 0:w.wrapper),style:Object(oo.a)(Object(oo.a)(Object(oo.a)({},a),A),null===j||void 0===j?void 0:j.wrapper),onMouseEnter:function(){return O((function(e){return e.includes(m)?e:[].concat(Object(Dp.a)(e),[m])}))},onMouseLeave:function(){return O((function(e){return e.filter((function(e){return e!==m}))}))}},l.a.createElement($b,Object(yn.a)({},T,{ref:function(e){C>-1?f.current[m]=e:delete f.current[m]},prefixCls:r,classNames:w,styles:j,className:ob()(v,null===p||void 0===p?void 0:p.notice),style:y,times:h,key:d,eventKey:d,onNoticeClose:u,hovering:S&&x.length>0})))}))},Wb=s.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,u=e.style,d=e.onAllRemoved,p=e.stack,f=e.renderNotifications,h=s.useState([]),m=Object(Ip.a)(h,2),g=m[0],b=m[1],v=function(e){var t,n=g.find((function(t){return t.key===e}));null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),b((function(t){return t.filter((function(t){return t.key!==e}))}))};s.useImperativeHandle(t,(function(){return{open:function(e){b((function(t){var n,r=Object(Dp.a)(t),o=r.findIndex((function(t){return t.key===e.key})),i=Object(oo.a)({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){v(e)},destroy:function(){b([])}}}));var y=s.useState({}),x=Object(Ip.a)(y,2),O=x[0],E=x[1];s.useEffect((function(){var e={};g.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(O).forEach((function(t){e[t]=e[t]||[]})),E(e)}),[g]);var w=function(e){E((function(t){var n=Object(oo.a)({},t);return(n[e]||[]).length||delete n[e],n}))},j=s.useRef(!1);if(s.useEffect((function(){Object.keys(O).length>0?j.current=!0:j.current&&(null===d||void 0===d||d(),j.current=!1)}),[O]),!o)return null;var S=Object.keys(O);return Object(c.createPortal)(s.createElement(s.Fragment,null,S.map((function(e){var t=O[e],n=s.createElement(Gb,{key:e,configList:t,placement:e,prefixCls:r,className:null===l||void 0===l?void 0:l(e),style:null===u||void 0===u?void 0:u(e),motion:i,onNoticeClose:v,onAllNoticeRemoved:w,stack:p});return f?f(n,{prefixCls:r,key:e}):n}))),o)}));var Vb=Wb,qb=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Kb=function(){return document.body},Yb=0;function Xb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Kb:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,p=Object(Fp.a)(e,qb),f=s.useState(),h=Object(Ip.a)(f,2),m=h[0],g=h[1],b=s.useRef(),v=s.createElement(Vb,{container:m,ref:b,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),y=s.useState([]),x=Object(Ip.a)(y,2),O=x[0],E=x[1],w=s.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(p,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Yb),Yb+=1),E((function(e){return[].concat(Object(Dp.a)(e),[{type:"open",config:t}])}))},close:function(e){E((function(t){return[].concat(Object(Dp.a)(t),[{type:"close",key:e}])}))},destroy:function(){E((function(e){return[].concat(Object(Dp.a)(e),[{type:"destroy"}])}))}}}),[]);return s.useEffect((function(){g(n())})),s.useEffect((function(){b.current&&O.length&&(O.forEach((function(e){switch(e.type){case"open":b.current.open(e.config);break;case"close":b.current.close(e.key);break;case"destroy":b.current.destroy()}})),E((function(e){return e.filter((function(e){return!O.includes(e)}))})))}),[O]),[w,v]}var Zb=e=>{const[,,,,t]=Dg();return t?`${e}-css-var`:""};var Qb=l.a.createContext(void 0);const Jb=100,ev={Modal:Jb,Drawer:Jb,Popover:Jb,Popconfirm:Jb,Tooltip:Jb,Tour:Jb,FloatButton:Jb},tv={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const nv=(e,t)=>{const[,n]=Dg(),r=l.a.useContext(Qb),o=e in ev;let i;if(void 0!==t)i=[t,t];else{let a=null!==r&&void 0!==r?r:0;a+=o?(r?0:n.zIndexPopupBase)+ev[e]:tv[e],i=[void 0===r?t:a,a]}return i};var rv=Object(Hp.a)((function e(){Object(Up.a)(this,e)})),ov="CALC_UNIT",iv=new RegExp(ov,"g");function av(e){return"number"===typeof e?"".concat(e).concat(ov):e}var sv=function(e){Object(Qp.a)(n,e);var t=Object(Jp.a)(n);function n(e,r){var o;Object(Up.a)(this,n),o=t.call(this),Object(Pp.a)(Object(lu.a)(o),"result",""),Object(Pp.a)(Object(lu.a)(o),"unitlessCssVar",void 0),Object(Pp.a)(Object(lu.a)(o),"lowPriority",void 0);var i=Object(mp.a)(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=av(e):"string"===i&&(o.result=e),o}return Object(Hp.a)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(av(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(av(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"===typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(iv,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(rv),lv=function(e){Object(Qp.a)(n,e);var t=Object(Jp.a)(n);function n(e){var r;return Object(Up.a)(this,n),r=t.call(this),Object(Pp.a)(Object(lu.a)(r),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return Object(Hp.a)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(rv),cv=function(e,t){var n="css"===e?sv:lv;return function(e){return new n(e,t)}},uv=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(56);var dv=function(e,t,n,r){var o=Object(oo.a)({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=Object(Ip.a)(e,2),r=n[0],i=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))}));var i=Object(oo.a)(Object(oo.a)({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i},pv="undefined"!==typeof CSSINJS_STATISTIC,fv=!0;function hv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!pv)return Object.assign.apply(Object,[{}].concat(t));fv=!1;var r={};return t.forEach((function(e){"object"===Object(mp.a)(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),fv=!0,r}var mv={};function gv(){}var bv=function(e){var t,n=e,r=gv;return pv&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;fv&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;mv[e]={global:Array.from(t),component:Object(oo.a)(Object(oo.a)({},null===(r=mv[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};var vv=function(e,t,n){var r;return"function"===typeof n?n(hv(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};var yv=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return hf(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return hf(e)})).join(","),")")}}},xv=new(function(){function e(){Object(Up.a)(this,e),Object(Pp.a)(this,"map",new Map),Object(Pp.a)(this,"objectIDMap",new WeakMap),Object(Pp.a)(this,"nextID",0),Object(Pp.a)(this,"lastAccessBeat",new Map),Object(Pp.a)(this,"accessBeat",0)}return Object(Hp.a)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===Object(mp.a)(e)?"obj_".concat(t.getObjectID(e)):"".concat(Object(mp.a)(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var Ov=function(e,t){return l.a.useMemo((function(){var n=xv.get(t);if(n)return n;var r=e();return xv.set(t,r),r}),t)},Ev=function(){return{}};var wv=function(e){var t=e.useCSP,n=void 0===t?Ev:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function c(t,s,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Object(Ip.a)(u,1)[0],p=u.join("-"),f=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=r(),h=u.theme,m=u.realToken,g=u.hashId,b=u.token,v=u.cssVar,y=o(),x=y.rootPrefixCls,O=y.iconPrefixCls,E=n(),w=v?"css":"js",j=Ov((function(){var e=new Set;return v&&Object.keys(c.unitless||{}).forEach((function(t){e.add(gf(t,v.prefix)),e.add(gf(t,uv(d,v.prefix)))})),cv(w,e)}),[w,d,null===v||void 0===v?void 0:v.prefix]),S=yv(w),T=S.max,k=S.min,C={theme:h,token:b,hashId:g,nonce:function(){return E.nonce},clientOnly:c.clientOnly,layer:f,order:c.order||-999};return Nh(Object(oo.a)(Object(oo.a)({},C),{},{clientOnly:!1,path:["Shared",x]}),(function(){return"function"===typeof i?i(b):[]})),[Nh(Object(oo.a)(Object(oo.a)({},C),{},{path:[p,e,O]}),(function(){if(!1===c.injectStyle)return[];var n=bv(b),r=n.token,o=n.flush,i=vv(d,m,l),u=".".concat(e),p=dv(d,m,i,{deprecatedTokens:c.deprecatedTokens});v&&i&&"object"===Object(mp.a)(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(gf(e,uv(d,v.prefix)),")")}));var f=hv(r,{componentCls:u,prefixCls:e,iconCls:".".concat(O),antCls:".".concat(x),calc:j,max:T,min:k},v?i:p),h=s(f,{hashId:g,prefixCls:e,rootPrefixCls:x,iconPrefixCls:O});o(d,p);var y="function"===typeof a?a(f,e,t,c.resetFont):null;return[!1===c.resetStyle?null:y,h]})),g]}}return{genStyleHooks:function(e,t,n,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null===o||void 0===o?void 0:o.unitless)||{},d="function"===typeof s?s(e):{},p=Object(oo.a)(Object(oo.a)({},d),{},Object(Pp.a)({},a("zIndexPopup"),!0));Object.keys(u).forEach((function(e){p[a(e)]=u[e]}));var f=Object(oo.a)(Object(oo.a)({},o),{},{unitless:p,prefixToken:a}),h=c(e,t,n,f),m=function(e,t,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,s=n.prefixToken,c=n.ignore,u=function(i){var a=i.rootCls,l=i.cssVar,u=void 0===l?{}:l,d=r().realToken;return Rh({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:c,token:d,scope:a},(function(){var r=vv(e,d,t),o=dv(e,d,r,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=r().cssVar;return[function(r){return a&&n?l.a.createElement(l.a.Fragment,null,l.a.createElement(u,{rootCls:t,cssVar:n,component:e}),r):r},null===n||void 0===n?void 0:n.key]};return d}(i,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=h(e,t),r=Object(Ip.a)(n,2)[1],o=m(t),i=Object(Ip.a)(o,2);return[i[0],r,i[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=c(e,t,n,Object(oo.a)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:c}};const{genStyleHooks:jv,genComponentStyleHook:Sv,genSubStyleComponent:Tv}=wv({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Object(s.useContext)(Ap);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Dg();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=Object(s.useContext)(Ap);return zg(t,e),null!==e&&void 0!==e?e:{}},getResetStyles:e=>[{"&":Bg(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>Ag});var kv=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Ph("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Ph("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Ph("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Ph("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}};const Cv=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_v={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Nv=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Av=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)};var Rv=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Nv(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Av(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Cv.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_v[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const Iv=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:h,notificationProgressBg:m,notificationProgressHeight:g,fontSize:b,lineHeight:v,width:y,notificationIconSize:x,colorText:O}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[E]:{padding:f,width:y,maxWidth:`calc(100vw - ${hf(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:b,color:O},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:b},[`${E}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Hg(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${hf(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:a,background:m}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},Pv=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Ph("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},$g(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Iv(e))}}]},Dv=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),Lv=e=>{const t=e.paddingMD,n=e.paddingLG;return hv(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${hf(e.paddingMD)} ${hf(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var Mv=jv("Notification",(e=>{const t=Lv(e);return[Pv(t),kv(t),Rv(t)]}),Dv),Fv=Tv(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Lv(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Iv(n)),{width:n.width,maxWidth:`calc(100vw - ${hf(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Dv),$v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Bv(e,t){return null===t||!1===t?null:t||s.createElement(Tb,{className:`${e}-close-icon`})}const Uv={success:xb,info:Rb,error:wb,warning:_b},Hv=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(Uv[r]||null,{className:ob()(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:ob()({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},i),a&&s.createElement("div",{className:`${t}-btn`},a))};var zv=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:c=!0,closeIcon:u,className:d}=e,p=$v(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=s.useContext(Ap),h=t||f("notification"),m=`${h}-notice`,g=Zb(h),[b,v,y]=Mv(h,g);return b(s.createElement("div",{className:ob()(`${m}-pure-panel`,v,n,y,g)},s.createElement(Fv,{prefixCls:h}),s.createElement($b,Object.assign({},p,{prefixCls:h,eventKey:"pure",duration:null,closable:c,className:ob()({notificationClassName:d}),closeIcon:Bv(h,u),content:s.createElement(Hv,{prefixCls:m,icon:r,type:o,message:i,description:a,btn:l})}))))};var Gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wv=e=>{let{children:t,prefixCls:n}=e;const r=Zb(n),[o,i,a]=Mv(n,r);return o(l.a.createElement(Ub,{classNames:{list:ob()(i,a,r)}},t))},Vv=(e,t)=>{let{prefixCls:n,key:r}=t;return l.a.createElement(Wv,{prefixCls:n,key:r},e)},qv=l.a.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:c,onAllRemoved:u,stack:d,duration:p,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:m,getPopupContainer:g,notification:b,direction:v}=Object(s.useContext)(Ap),[,y]=Dg(),x=o||m("notification"),[O,E]=Xb({prefixCls:x,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!==n&&void 0!==n?n:24,null!==r&&void 0!==r?r:24),className:()=>ob()({[`${x}-rtl`]:null!==c&&void 0!==c?c:"rtl"===v}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:!0,closeIcon:Bv(x),duration:null!==p&&void 0!==p?p:4.5,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===g||void 0===g?void 0:g())||document.body,maxCount:a,pauseOnHover:f,showProgress:h,onAllRemoved:u,renderNotifications:Vv,stack:!1!==d&&{threshold:"object"===typeof d?null===d||void 0===d?void 0:d.threshold:void 0,offset:8,gap:y.margin}});return l.a.useImperativeHandle(t,(()=>Object.assign(Object.assign({},O),{prefixCls:x,notification:b}))),E}));function Kv(e){const t=l.a.useRef(null);Bh("Notification");return[l.a.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:c,description:u,icon:d,type:p,btn:f,className:h,style:m,role:g="alert",closeIcon:b,closable:v}=n,y=Gv(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),x=Bv(s,"undefined"!==typeof b?b:null===a||void 0===a?void 0:a.closeIcon);return o(Object.assign(Object.assign({placement:null!==(r=null===e||void 0===e?void 0:e.placement)&&void 0!==r?r:"topRight"},y),{content:l.a.createElement(Hv,{prefixCls:s,icon:d,type:p,message:c,description:u,btn:f,role:g}),className:ob()(p&&`${s}-${p}`,h,null===a||void 0===a?void 0:a.className),style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),m),closeIcon:x,closable:null!==v&&void 0!==v?v:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),l.a.createElement(qv,Object.assign({key:"notification-holder"},e,{ref:t}))]}let Yv=null,Xv=e=>e(),Zv=[],Qv={};function Jv(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Qv,s=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const ey=l.a.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=Object(s.useContext)(Ap),i=Qv.prefixCls||o("notification"),a=Object(s.useContext)(kp),[c,u]=Kv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return l.a.useEffect(r,[]),l.a.useImperativeHandle(t,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),c[t].apply(c,arguments)}})),{instance:e,sync:r}})),u})),ty=l.a.forwardRef(((e,t)=>{const[n,r]=l.a.useState(Jv),o=()=>{r(Jv)};l.a.useEffect(o,[]);const i=Qg(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),c=i.getTheme(),u=l.a.createElement(ey,{ref:t,sync:o,notificationConfig:n});return l.a.createElement(tb,{prefixCls:a,iconPrefixCls:s,theme:c},i.holderRender?i.holderRender(u):u)}));function ny(){if(!Yv){const e=document.createDocumentFragment(),t={fragment:e};return Yv=t,void Xv((()=>{Ep(l.a.createElement(ty,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,ny())}))}}),e)}))}Yv.instance&&(Zv.forEach((e=>{switch(e.type){case"open":Xv((()=>{Yv.instance.open(Object.assign(Object.assign({},Qv),e.config))}));break;case"destroy":Xv((()=>{null===Yv||void 0===Yv||Yv.instance.destroy(e.key)}))}})),Zv=[])}function ry(e){Qg();Zv.push({type:"open",config:e}),ny()}const oy={open:ry,destroy:e=>{Zv.push({type:"destroy",key:e}),ny()},config:function(e){Qv=Object.assign(Object.assign({},Qv),e),Xv((()=>{var e;null===(e=null===Yv||void 0===Yv?void 0:Yv.sync)||void 0===e||e.call(Yv)}))},useNotification:function(e){return Kv(e)},_InternalPanelDoNotUseOrYouWillBeFired:zv},iy=oy;["success","info","warning","error"].forEach((e=>{iy[e]=t=>ry(Object.assign(Object.assign({},t),{type:e}))}));var ay=iy,sy=n(30),ly=n(20),cy=n(61);function uy(e){return e&&l.a.isValidElement(e)&&e.type===l.a.Fragment}function dy(e,t){return((e,t,n)=>l.a.isValidElement(e)?l.a.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t)(e,e,t)}const py=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var fy=Sv("Wave",(e=>[py(e)])),hy=n(29),my=n(25);const gy=`${Cp}-wave-target`;function by(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function vy(e){return Number.isNaN(e)?0:e}const yy=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[i,a]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[p,f]=s.useState(0),[h,m]=s.useState(0),[g,b]=s.useState(0),[v,y]=s.useState(!1),x={left:u,top:p,width:h,height:g,borderRadius:l.map((e=>`${e}px`)).join(" ")};function O(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return by(t)?t:by(n)?n:by(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:vy(-parseFloat(r))),f(t?n.offsetTop:vy(-parseFloat(o))),m(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,s,u,l].map((e=>vy(parseFloat(e)))))}if(i&&(x["--wave-color"]=i),s.useEffect((()=>{if(n){const e=Object(my.a)((()=>{O(),y(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(O),t.observe(n)),()=>{my.a.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!v)return null;const E=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(gy));return s.createElement(Sg.c,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;(function(e){return Tp.apply(this,arguments)})(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return s.createElement("div",{ref:Object(ly.a)(o,n),className:ob()(t,r,{"wave-quick":E}),style:x})}))};var xy=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null===e||void 0===e||e.insertBefore(o,null===e||void 0===e?void 0:e.firstChild),Ep(s.createElement(yy,Object.assign({},t,{target:e})),o)};var Oy=(e,t,n)=>{const{wave:r}=s.useContext(Ap),[,o,i]=Dg(),a=Object(hy.a)((a=>{const s=e.current;if((null===r||void 0===r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${gy}`)||s,{showEffect:c}=r||{};(c||xy)(l,{className:t,token:o,component:n,event:a,hashId:i})})),l=s.useRef();return e=>{my.a.cancel(l.current),l.current=Object(my.a)((()=>{a(e)}))}};var Ey=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Object(s.useContext)(Ap),i=Object(s.useRef)(null),a=o("wave"),[,c]=fy(a),u=Oy(i,ob()(a,c),r);if(l.a.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Object(cy.a)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!l.a.isValidElement(t))return null!==t&&void 0!==t?t:null;return dy(t,{ref:Object(ly.c)(t)?Object(ly.a)(t.ref,i):i})};var wy=e=>{const t=l.a.useContext(xg);return l.a.useMemo((()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t),[e,t])},jy=n(41);var Sy=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const Ty=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},ky=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};jv("Space",(e=>{const t=hv(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ty(t),ky(t),Sy(t)]}),(()=>({})),{resetStyle:!1});const Cy=s.createContext(null),_y=(e,t)=>{const n=s.useContext(Cy),r=s.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return ob()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},Ny=e=>{let{children:t}=e;return s.createElement(Cy.Provider,{value:null},t)};var Ay=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ry=s.createContext(void 0);var Iy=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ap),{prefixCls:r,size:o,className:i}=e,a=Ay(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Dg();let u="";switch(o){case"large":u="lg";break;case"small":u="sm"}const d=ob()(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},i,c);return s.createElement(Ry.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:d})))};const Py=/^[\u4E00-\u9FA5]{2}$/,Dy=Py.test.bind(Py);function Ly(e){return"string"===typeof e}function My(e){return"text"===e||"link"===e}function Fy(e,t){let n=!1;const r=[];return l.a.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),l.a.Children.map(r,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&Ly(e.type)&&Dy(e.props.children)?dy(e,{children:e.props.children.split("").join(n)}):Ly(e)?Dy(e)?l.a.createElement("span",null,e.split("").join(n)):l.a.createElement("span",null,e):uy(e)?l.a.createElement("span",null,e):e}(e,t)))}var $y=Object(s.forwardRef)(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ob()(`${i}-icon`,n);return l.a.createElement("span",{ref:t,className:a,style:r},o)}));const By=Object(s.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=ob()(`${n}-loading-icon`,r);return l.a.createElement($y,{prefixCls:n,className:a,style:o,ref:t},l.a.createElement(Db,{className:i}))})),Uy=()=>({width:0,opacity:0,transform:"scale(0)"}),Hy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var zy=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?l.a.createElement(By,{prefixCls:t,className:o,style:i}):l.a.createElement(Sg.c,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Uy,onAppearActive:Hy,onEnterStart:Uy,onEnterActive:Hy,onLeaveStart:Hy,onLeaveActive:Uy},((e,n)=>{let{className:r,style:a}=e;return l.a.createElement(By,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))};const Gy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Wy=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Gy(`${t}-primary`,o),Gy(`${t}-danger`,i)]}};const Vy=Math.round;function qy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ky=(e,t,n)=>0===n?e:e/100;function Yy(e,t){const n=t||255;return e>n?n:e<0?0:e}class Xy{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Object(Pp.a)(this,"isValid",!0),Object(Pp.a)(this,"r",0),Object(Pp.a)(this,"g",0),Object(Pp.a)(this,"b",0),Object(Pp.a)(this,"a",1),Object(Pp.a)(this,"_h",void 0),Object(Pp.a)(this,"_s",void 0),Object(Pp.a)(this,"_l",void 0),Object(Pp.a)(this,"_v",void 0),Object(Pp.a)(this,"_max",void 0),Object(Pp.a)(this,"_min",void 0),Object(Pp.a)(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Xy)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Yy(e.r),this.g=Yy(e.g),this.b=Yy(e.b),this.a="number"===typeof e.a?Yy(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Vy(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Vy(o("r")),g:Vy(o("g")),b:Vy(o("b")),a:Vy(100*o("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Vy((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=Vy(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Vy(100*this.getSaturation()),n=Vy(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Yy(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:o}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof o?o:1,n<=0){const e=Vy(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=Vy(255*(i+d)),this.g=Vy(255*(a+d)),this.b=Vy(255*(s+d))}fromHsv(e){let{h:t,s:n,v:r,a:o}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof o?o:1;const i=Vy(255*r);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Vy(r*(1-n)*255),u=Vy(r*(1-n*l)*255),d=Vy(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=qy(e,Ky);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=qy(e,Ky);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=qy(e,((e,t)=>t.includes("%")?Vy(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Zy=["b"],Qy=["v"],Jy=function(e){return Math.round(Number(e||0))},ex=function(e){Object(Qp.a)(n,e);var t=Object(Jp.a)(n);function n(e){return Object(Up.a)(this,n),t.call(this,function(e){if(e instanceof Xy)return e;if(e&&"object"===Object(mp.a)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=Object(Fp.a)(t,Zy);return Object(oo.a)(Object(oo.a)({},r),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Object(Hp.a)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Jy(100*e.s),n=Jy(100*e.b),r=Jy(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=Object(Fp.a)(e,Qy);return Object(oo.a)(Object(oo.a)({},n),{},{b:t,a:this.a})}}]),n}(Xy),tx=function(e){return e instanceof ex?e:new ex(e)};tx("#1677ff");let nx=function(){return Object(Hp.a)((function e(t){var n;if(Object(Up.a)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new ex(this.colors[0].color.metaColor)):this.metaColor=new ex(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();var rx=n(33),ox={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ix=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:ox}))};var ax=s.forwardRef(ix),sx=l.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,p=l.a.useState(s||r),f=Object(Ip.a)(p,2),h=f[0],m=f[1];return l.a.useEffect((function(){(r||s)&&m(!0)}),[r,s]),h?l.a.createElement("div",{ref:t,className:ob()("".concat(n,"-content"),Object(Pp.a)(Object(Pp.a)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:c},l.a.createElement("div",{className:ob()("".concat(n,"-content-box"),null===u||void 0===u?void 0:u.body),style:null===d||void 0===d?void 0:d.body},a)):null}));sx.displayName="PanelContent";var lx=sx,cx=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ux=l.a.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=void 0===u?{}:u,p=e.styles,f=void 0===p?{}:p,h=e.prefixCls,m=e.collapsible,g=e.accordion,b=e.panelKey,v=e.extra,y=e.header,x=e.expandIcon,O=e.openMotion,E=e.destroyInactivePanel,w=e.children,j=Object(Fp.a)(e,cx),S="disabled"===m,T="header"===m,k="icon"===m,C=null!==v&&void 0!==v&&"boolean"!==typeof v,_=function(){null===a||void 0===a||a(b)},N="function"===typeof x?x(e):l.a.createElement("i",{className:"arrow"});N&&(N=l.a.createElement("div",{className:"".concat(h,"-expand-icon"),onClick:["header","icon"].includes(m)?_:void 0},N));var A=ob()(Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},"".concat(h,"-item"),!0),"".concat(h,"-item-active"),i),"".concat(h,"-item-disabled"),S),c),R={className:ob()(o,Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},"".concat(h,"-header"),!0),"".concat(h,"-header-collapsible-only"),T),"".concat(h,"-icon-collapsible-only"),k),d.header),"aria-expanded":i,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Lb.a.ENTER&&e.which!==Lb.a.ENTER||_()},style:f.header};return T||k||(R.onClick=_,R.role=g?"tab":"button",R.tabIndex=S?-1:0),l.a.createElement("div",Object(yn.a)({},j,{ref:t,className:A}),l.a.createElement("div",R,r&&N,l.a.createElement("span",{className:"".concat(h,"-header-text"),onClick:"header"===m?_:void 0},y),C&&l.a.createElement("div",{className:"".concat(h,"-extra")},v)),l.a.createElement(Sg.c,Object(yn.a)({visible:i,leavedClassName:"".concat(h,"-content-hidden")},O,{forceRender:s,removeOnLeave:E}),(function(e,t){var n=e.className,r=e.style;return l.a.createElement(lx,{ref:t,prefixCls:h,className:n,classNames:d,style:r,styles:f,isActive:i,forceRender:s,role:g?"tabpanel":void 0},w)})))})),dx=ux,px=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var fx=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,c=t.openMotion,u=t.expandIcon;return e.map((function(e,t){var d=e.children,p=e.label,f=e.key,h=e.collapsible,m=e.onItemClick,g=e.destroyInactivePanel,b=Object(Fp.a)(e,px),v=String(null!==f&&void 0!==f?f:t),y=null!==h&&void 0!==h?h:o,x=null!==g&&void 0!==g?g:i,O=!1;return O=r?s[0]===v:s.indexOf(v)>-1,l.a.createElement(dx,Object(yn.a)({},b,{prefixCls:n,key:v,panelKey:v,isActive:O,accordion:r,openMotion:c,expandIcon:u,header:p,collapsible:y,onItemClick:function(e){"disabled"!==y&&(a(e),null===m||void 0===m||m(e))},destroyInactivePanel:x}),d)}))}(e,n):Object(jy.a)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,h=f.header,m=f.headerClass,g=f.destroyInactivePanel,b=f.collapsible,v=f.onItemClick,y=!1;y=o?c[0]===p:c.indexOf(p)>-1;var x=null!==b&&void 0!==b?b:i,O={key:p,panelKey:p,header:h,headerClass:m,isActive:y,prefixCls:r,destroyInactivePanel:null!==g&&void 0!==g?g:a,openMotion:u,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(s(e),null===v||void 0===v||v(e))},expandIcon:d,collapsible:x};return"string"===typeof e.type?e:(Object.keys(O).forEach((function(e){"undefined"===typeof O[e]&&delete O[e]})),l.a.cloneElement(e,O))}(e,t,n)}))};function hx(e){var t=e;if(!Array.isArray(t)){var n=Object(mp.a)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var mx=l.a.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,i=void 0!==o&&o,a=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,f=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,b=e.items,v=ob()(r,c),y=Object(rx.a)([],{value:h,onChange:function(e){return null===g||void 0===g?void 0:g(e)},defaultValue:m,postState:hx}),x=Object(Ip.a)(y,2),O=x[0],E=x[1];Object(nf.a)(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=fx(b,u,{prefixCls:r,accordion:s,openMotion:p,expandIcon:f,collapsible:d,destroyInactivePanel:i,onItemClick:function(e){return E((function(){return s?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter((function(t){return t!==e})):[].concat(Object(Dp.a)(O),[e])}))},activeKey:O});return l.a.createElement("div",Object(yn.a)({ref:t,className:v,style:a,role:s?"tablist":void 0},Object(Mb.a)(e,{aria:!0,data:!0})),w)})),gx=Object.assign(mx,{Panel:dx}),bx=gx;gx.Panel;const vx=()=>({height:0,opacity:0}),yx=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xx=e=>({height:e?e.offsetHeight:0}),Ox=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,Ex=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var wx=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cp}-motion-collapse`,onAppearStart:vx,onEnterStart:vx,onAppearActive:yx,onEnterActive:yx,onLeaveStart:xx,onLeaveActive:vx,onAppearEnd:Ox,onEnterEnd:Ox,onLeaveEnd:Ox,motionDeadline:500}};var jx=s.forwardRef(((e,t)=>{const{getPrefixCls:n}=s.useContext(Ap),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=ob()({[`${a}-no-arrow`]:!i},o);return s.createElement(bx.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}));var Sx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});const Tx=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSizeLG:m,lineHeight:g,lineHeightLG:b,marginSM:v,paddingSM:y,paddingLG:x,paddingXS:O,motionDurationSlow:E,fontSizeIcon:w,contentPadding:j,fontHeight:S,fontHeightLG:T}=e,k=`${hf(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},$g(e)),{backgroundColor:o,border:k,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:last-child":{[`\n            &,\n            & > ${t}-header`]:{borderRadius:`0 0 ${hf(l)} ${hf(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:g,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:S,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:w,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:k,[`& > ${t}-content-box`]:{padding:j},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(O).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${hf(l)} ${hf(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},kx=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Cx=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n        > ${t}-item:last-child,\n        > ${t}-item:last-child ${t}-header\n      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},_x=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var Nx=jv("Collapse",(e=>{const t=hv(e,{collapseHeaderPaddingSM:`${hf(e.paddingXS)} ${hf(e.paddingSM)}`,collapseHeaderPaddingLG:`${hf(e.padding)} ${hf(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Tx(t),Cx(t),_x(t),kx(t),Sx(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const Ax=s.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=s.useContext(Ap),{prefixCls:i,className:a,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:f="start",children:h,expandIcon:m}=e,g=wy((e=>{var t;return null!==(t=null!==p&&void 0!==p?p:e)&&void 0!==t?t:"middle"})),b=n("collapse",i),v=n(),[y,x,O]=Nx(b);const E=s.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),w=null!==m&&void 0!==m?m:null===o||void 0===o?void 0:o.expandIcon,j=s.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"===typeof w?w(e):s.createElement(ax,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return dy(t,(()=>{var e;return{className:ob()(null===(e=null===t||void 0===t?void 0:t.props)||void 0===e?void 0:e.className,`${b}-arrow`)}}))}),[w,b]),S=ob()(`${b}-icon-position-${E}`,{[`${b}-borderless`]:!u,[`${b}-rtl`]:"rtl"===r,[`${b}-ghost`]:!!d,[`${b}-${g}`]:"middle"!==g},null===o||void 0===o?void 0:o.className,a,l,x,O),T=Object.assign(Object.assign({},wx(v)),{motionAppear:!1,leavedClassName:`${b}-content-hidden`}),k=s.useMemo((()=>h?Object(jy.a)(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return dy(e,Object.assign(Object.assign({},Object(sy.a)(e.props,["disabled"])),{key:n,collapsible:null!==i&&void 0!==i?i:o?"disabled":void 0}))}return e})):null),[h]);return y(s.createElement(bx,Object.assign({ref:t,openMotion:T},Object(sy.a)(e,["rootClassName"]),{expandIcon:j,prefixCls:b,className:S,style:Object.assign(Object.assign({},null===o||void 0===o?void 0:o.style),c)}),k))}));Object.assign(Ax,{Panel:jx});var Rx=(e,t)=>{const n=s.useContext(Zh);return[s.useMemo((()=>{var r;const o=t||qh[e],i=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),i||{})}),[e,t,n]),s.useMemo((()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?qh.locale:e}),[n])]};const Ix=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ex(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192};const Px=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return hv(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Dx=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:og(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:og(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:og(c),f=Ix(new nx(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},Lx=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${hf(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Hg(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Mx=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Fx=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),$x=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Bx=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ux=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Mx(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Hx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Bx(e))}),zx=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Gx=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?zx:Hx;return Object.assign(Object.assign({},o(e)),Mx(e.componentCls,t,n))},Wx=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Gx(e,r,o))}),Vx=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Gx(e,r,o))}),qx=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Kx=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Gx(e,n,r))}),Yx=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Gx(e,r,o,n))}),Xx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Wx(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),qx(e)),Kx(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Yx(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ux(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Vx(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),qx(e)),Kx(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Yx(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ux(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Qx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Wx(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Vx(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qx(e)),Kx(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Yx(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Yx(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Ux(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Jx=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Xx(e),[`${t}-color-primary`]:Zx(e),[`${t}-color-dangerous`]:Qx(e)}},eO=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Vx(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yx(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Wx(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Yx(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tO=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${hf(c)} ${hf(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Fx(e)},{[`${n}${n}-round${t}`]:$x(e)}]},nO=e=>{const t=hv(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return tO(t,e.componentCls)},rO=e=>{const t=hv(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tO(t,`${e.componentCls}-sm`)},oO=e=>{const t=hv(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tO(t,`${e.componentCls}-lg`)},iO=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var aO=jv("Button",(e=>{const t=Px(e);return[Lx(t),nO(t),rO(t),oO(t),iO(t),Jx(t),eO(t),Wy(t)]}),Dx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sO(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function lO(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},sO(e,r,t)),lO(n,r,t))}}function uO(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function dO(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},uO(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const pO=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${hf(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${hf(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var fO=Tv(["Button","compact"],(e=>{const t=Px(e);return[cO(t),dO(t),pO(t)]}),Dx),hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mO={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},gO=l.a.forwardRef(((e,t)=>{var n,r,o,i;const{loading:a=!1,prefixCls:c,color:u,variant:d,type:p,danger:f=!1,shape:h="default",size:m,styles:g,disabled:b,className:v,rootClassName:y,children:x,icon:O,iconPosition:E="start",ghost:w=!1,block:j=!1,htmlType:S="button",classNames:T,style:k={},autoInsertSpace:C}=e,_=hO(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),N=p||"default",[A,R]=Object(s.useMemo)((()=>{if(u&&d)return[u,d];const e=mO[N]||[];return f?["danger",e[1]]:e}),[p,u,d,f]),I="danger"===A?"dangerous":A,{getPrefixCls:P,direction:D,button:L}=Object(s.useContext)(Ap),M=null===(n=null!==C&&void 0!==C?C:null===L||void 0===L?void 0:L.autoInsertSpace)||void 0===n||n,F=P("btn",c),[$,B,U]=aO(F),H=Object(s.useContext)(bg),z=null!==b&&void 0!==b?b:H,G=Object(s.useContext)(Ry),W=Object(s.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[V,q]=Object(s.useState)(W.loading),[K,Y]=Object(s.useState)(!1),X=Object(s.createRef)(),Z=Object(ly.a)(t,X),Q=1===s.Children.count(x)&&!O&&!My(R);Object(s.useEffect)((()=>{let e=null;return W.delay>0?e=setTimeout((()=>{e=null,q(!0)}),W.delay):q(W.loading),function(){e&&(clearTimeout(e),e=null)}}),[W]),Object(s.useEffect)((()=>{if(!Z||!Z.current||!M)return;const e=Z.current.textContent;Q&&Dy(e)?K||Y(!0):K&&Y(!1)}),[Z]);const J=l.a.useCallback((t=>{var n;V||z?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,V,z]);const{compactSize:ee,compactItemClassnames:te}=_y(F,D),ne={large:"lg",small:"sm",middle:void 0},re=wy((e=>{var t,n;return null!==(n=null!==(t=null!==m&&void 0!==m?m:ee)&&void 0!==t?t:G)&&void 0!==n?n:e})),oe=re&&null!==(r=ne[re])&&void 0!==r?r:"",ie=V?"loading":O,ae=Object(sy.a)(_,["navigate"]),se=ob()(F,B,U,{[`${F}-${h}`]:"default"!==h&&h,[`${F}-${N}`]:N,[`${F}-dangerous`]:f,[`${F}-color-${I}`]:I,[`${F}-variant-${R}`]:R,[`${F}-${oe}`]:oe,[`${F}-icon-only`]:!x&&0!==x&&!!ie,[`${F}-background-ghost`]:w&&!My(R),[`${F}-loading`]:V,[`${F}-two-chinese-chars`]:K&&M&&!V,[`${F}-block`]:j,[`${F}-rtl`]:"rtl"===D,[`${F}-icon-end`]:"end"===E},te,v,y,null===L||void 0===L?void 0:L.className),le=Object.assign(Object.assign({},null===L||void 0===L?void 0:L.style),k),ce=ob()(null===T||void 0===T?void 0:T.icon,null===(o=null===L||void 0===L?void 0:L.classNames)||void 0===o?void 0:o.icon),ue=Object.assign(Object.assign({},(null===g||void 0===g?void 0:g.icon)||{}),(null===(i=null===L||void 0===L?void 0:L.styles)||void 0===i?void 0:i.icon)||{}),de=O&&!V?l.a.createElement($y,{prefixCls:F,className:ce,style:ue},O):l.a.createElement(zy,{existIcon:!!O,prefixCls:F,loading:V}),pe=x||0===x?Fy(x,Q&&M):null;if(void 0!==ae.href)return $(l.a.createElement("a",Object.assign({},ae,{className:ob()(se,{[`${F}-disabled`]:z}),href:z?void 0:ae.href,style:le,onClick:J,ref:Z,tabIndex:z?-1:0}),de,pe));let fe=l.a.createElement("button",Object.assign({},_,{type:S,className:se,style:le,onClick:J,disabled:z,ref:Z}),de,pe,!!te&&l.a.createElement(fO,{key:"compact",prefixCls:F}));return My(R)||(fe=l.a.createElement(Ey,{component:"Button",disabled:V},fe)),$(fe)})),bO=gO;bO.Group=Iy,bO.__ANT_BUTTON=!0;var vO=bO,yO="RC_FORM_INTERNAL_HOOKS",xO=function(){Object(nf.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},OO=s.createContext({getFieldValue:xO,getFieldsValue:xO,getFieldError:xO,getFieldWarning:xO,getFieldsError:xO,isFieldsTouched:xO,isFieldTouched:xO,isFieldValidating:xO,isFieldsValidating:xO,resetFields:xO,setFields:xO,setFieldValue:xO,setFieldsValue:xO,validateFields:xO,submit:xO,getInternalHooks:function(){return xO(),{dispatch:xO,initEntityValue:xO,registerField:xO,useSubscribe:xO,setInitialValues:xO,destroyForm:xO,setCallbacks:xO,registerWatch:xO,getFields:xO,setValidateMessages:xO,setPreserve:xO,getInitialValue:xO}}}),EO=s.createContext(null);function wO(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function jO(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var SO,TO=jO(),kO=n(15),CO="enum",_O=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Object(kO.f)(t,i||e.type)||r.push(Object(kO.e)(o.messages.required,e.fullField))},NO=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,AO=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,RO={integer:function(e){return RO.number(e)&&parseInt(e,10)===e},float:function(e){return RO.number(e)&&!RO.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(dD){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===Object(mp.a)(e)&&!RO.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(NO)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(SO)return SO;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return SO=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(AO)}},IO=function(e,t,n,r,o){if(e.required&&void 0===t)_O(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?RO[i](t)||r.push(Object(kO.e)(o.messages.types[i],e.fullField,e.type)):i&&Object(mp.a)(t)!==e.type&&r.push(Object(kO.e)(o.messages.types[i],e.fullField,e.type))}},PO={required:_O,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Object(kO.e)(o.messages.whitespace,e.fullField))},type:IO,range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=t,c=null,u="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Object(kO.e)(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(Object(kO.e)(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(Object(kO.e)(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(Object(kO.e)(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[CO]=Array.isArray(e[CO])?e[CO]:[],-1===e[CO].indexOf(t)&&r.push(Object(kO.e)(o.messages[CO],e.fullField,e[CO].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Object(kO.e)(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Object(kO.e)(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},DO=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t,i)&&!e.required)return n();PO.required(e,t,r,a,o,i),Object(kO.f)(t,i)||PO.type(e,t,r,a,o)}n(a)},LO={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t,"string")&&!e.required)return n();PO.required(e,t,r,i,o,"string"),Object(kO.f)(t,"string")||(PO.type(e,t,r,i,o),PO.range(e,t,r,i,o),PO.pattern(e,t,r,i,o),!0===e.whitespace&&PO.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&PO.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&(PO.type(e,t,r,i,o),PO.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&PO.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),Object(kO.f)(t)||PO.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&(PO.type(e,t,r,i,o),PO.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&(PO.type(e,t,r,i,o),PO.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();PO.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(PO.type(e,t,r,i,o),PO.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&PO.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o),void 0!==t&&PO.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t,"string")&&!e.required)return n();PO.required(e,t,r,i,o),Object(kO.f)(t,"string")||PO.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t,"date")&&!e.required)return n();var a;if(PO.required(e,t,r,i,o),!Object(kO.f)(t,"date"))a=t instanceof Date?t:new Date(t),PO.type(e,a,r,i,o),a&&PO.range(e,a.getTime(),r,i,o)}n(i)},url:DO,hex:DO,email:DO,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Object(mp.a)(t);PO.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Object(kO.f)(t)&&!e.required)return n();PO.required(e,t,r,i,o)}n(i)}},MO=function(){function e(t){Object(Up.a)(this,e),Object(Pp.a)(this,"rules",null),Object(Pp.a)(this,"_messages",TO),this.define(t)}return Object(Hp.a)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Object(mp.a)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=Object(kO.d)(jO(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===TO&&(a=jO()),Object(kO.d)(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"===typeof a.transform&&(r===t&&(r=Object(oo.a)({},r)),void 0!==(i=r[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":Object(mp.a)(i)))),(a="function"===typeof a?{validator:a}:Object(oo.a)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))}))}));var l={};return Object(kO.a)(s,o,(function(t,n){var i,a=t.rule,s=("object"===a.type||"array"===a.type)&&("object"===Object(mp.a)(a.fields)||"object"===Object(mp.a)(a.defaultField));function c(e,t){return Object(oo.a)(Object(oo.a)({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Object(Dp.a)(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Object(kO.b)(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Object(kO.b)(a,r)):o.error&&(d=[o.error(a,Object(kO.e)(o.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=Object(oo.a)(Object(oo.a)({},p),t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))}));var h=new e(f);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Object(Dp.a)(d)),e&&e.length&&t.push.apply(t,Object(Dp.a)(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(f){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,f),o.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===i?u():!1===i?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Object(Dp.a)(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=Object(kO.c)(t),i(t,n)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!LO.hasOwnProperty(e.type))throw new Error(Object(kO.e)("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?LO.required:LO[this.getType(e)]||void 0}}]),e}();Object(Pp.a)(MO,"register",(function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");LO[e]=t})),Object(Pp.a)(MO,"warning",kO.g),Object(Pp.a)(MO,"messages",TO),Object(Pp.a)(MO,"validators",LO);var FO="'${name}' is not a valid ${type}",$O={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:FO,method:FO,array:FO,object:FO,number:FO,date:FO,boolean:FO,integer:FO,float:FO,regexp:FO,email:FO,url:FO,hex:FO},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},BO=MO;function UO(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var HO="CODE_LOGIC_ERROR";function zO(e,t,n,r,o){return GO.apply(this,arguments)}function GO(){return GO=Object(hp.a)(Object(fp.a)().mark((function e(t,n,r,o,i){var a,l,c,u,d,p,f,h,m;return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Object(oo.a)({},r)).ruleIndex,BO.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(HO)}}),c=null,a&&"array"===a.type&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new BO(Object(Pp.a)({},t,[a])),d=Object(Mh.b)($O,o.validateMessages),u.messages(d),p=[],e.prev=10,e.next=13,Promise.resolve(u.validate(Object(Pp.a)({},t,n),Object(oo.a)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(p=e.t0.errors.map((function(e,t){var n=e.message,r=n===HO?d.default:n;return s.isValidElement(r)?s.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(p.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return zO("".concat(t,".").concat(n),e,c,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Object(Dp.a)(e),Object(Dp.a)(t))}),[]));case 23:return h=Object(oo.a)(Object(oo.a)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=p.map((function(e){return"string"===typeof e?UO(e,h):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),GO.apply(this,arguments)}function WO(e,t,n,r,o,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Object(oo.a)(Object(oo.a)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Object(nf.a)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"===typeof i.then&&"function"===typeof i.catch,Object(nf.a)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n===!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=Object(hp.a)(Object(fp.a)().mark((function e(n,o){var a,c,u;return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,zO(s,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return zO(s,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return qO.apply(this,arguments)}(c):function(e){return VO.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function VO(){return(VO=Object(hp.a)(Object(fp.a)().mark((function e(t){return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Object(Dp.a)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qO(){return(qO=Object(hp.a)(Object(fp.a)().mark((function e(t){var n;return Object(fp.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var KO=n(57);function YO(e){return wO(e)}function XO(e,t){var n={};return t.forEach((function(t){var r=Object(KO.a)(e,t);n=Object(Mh.a)(n,t,r)})),n}function ZO(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return QO(t,e,n)}))}function QO(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function JO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Object(mp.a)(t.target)&&e in t.target?t.target[e]:t}function eE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Object(Dp.a)(e.slice(0,n)),[o],Object(Dp.a)(e.slice(n,t)),Object(Dp.a)(e.slice(t+1,r))):i<0?[].concat(Object(Dp.a)(e.slice(0,t)),Object(Dp.a)(e.slice(t+1,n+1)),[o],Object(Dp.a)(e.slice(n+1,r))):e}var tE=["name"],nE=[];function rE(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var oE=function(e){Object(Qp.a)(n,e);var t=Object(Jp.a)(n);function n(e){var r;(Object(Up.a)(this,n),r=t.call(this,e),Object(Pp.a)(Object(lu.a)(r),"state",{resetCount:0}),Object(Pp.a)(Object(lu.a)(r),"cancelRegisterFunc",null),Object(Pp.a)(Object(lu.a)(r),"mounted",!1),Object(Pp.a)(Object(lu.a)(r),"touched",!1),Object(Pp.a)(Object(lu.a)(r),"dirty",!1),Object(Pp.a)(Object(lu.a)(r),"validatePromise",void 0),Object(Pp.a)(Object(lu.a)(r),"prevValidating",void 0),Object(Pp.a)(Object(lu.a)(r),"errors",nE),Object(Pp.a)(Object(lu.a)(r),"warnings",nE),Object(Pp.a)(Object(lu.a)(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,YO(o)),r.cancelRegisterFunc=null})),Object(Pp.a)(Object(lu.a)(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,o=void 0===n?[]:n;return void 0!==t?[].concat(Object(Dp.a)(o),Object(Dp.a)(t)):[]})),Object(Pp.a)(Object(lu.a)(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(o):e}))})),Object(Pp.a)(Object(lu.a)(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Object(Pp.a)(Object(lu.a)(r),"metaCache",null),Object(Pp.a)(Object(lu.a)(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Object(oo.a)(Object(oo.a)({},r.getMeta()),{},{destroy:e});Object(Bp.a)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Object(Pp.a)(Object(lu.a)(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(c),f=t&&ZO(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Object(Bp.a)(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=nE,r.warnings=nE,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=nE,r.warnings=nE,r.triggerMetaEvent(),null===l||void 0===l||l(),void r.refresh();break;case"remove":if(i&&rE(i,e,c,d,p,n))return void r.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||nE),"warnings"in h&&(r.warnings=h.warnings||nE),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&ZO(t,u,!0))return void r.reRender();if(i&&!u.length&&rE(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(YO).some((function(e){return ZO(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&rE(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),Object(Pp.a)(Object(lu.a)(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(Object(hp.a)(Object(fp.a)().mark((function o(){var a,s,c,u,d,p,f;return Object(fp.a)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||wO(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=WO(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nE;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?nE:r;t?o.push.apply(o,Object(Dp.a)(i)):n.push.apply(n,Object(Dp.a)(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=nE,r.warnings=nE,r.triggerMetaEvent(),r.reRender()),l})),Object(Pp.a)(Object(lu.a)(r),"isFieldValidating",(function(){return!!r.validatePromise})),Object(Pp.a)(Object(lu.a)(r),"isFieldTouched",(function(){return r.touched})),Object(Pp.a)(Object(lu.a)(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(yO).getInitialValue)(r.getNamePath())})),Object(Pp.a)(Object(lu.a)(r),"getErrors",(function(){return r.errors})),Object(Pp.a)(Object(lu.a)(r),"getWarnings",(function(){return r.warnings})),Object(Pp.a)(Object(lu.a)(r),"isListField",(function(){return r.props.isListField})),Object(Pp.a)(Object(lu.a)(r),"isList",(function(){return r.props.isList})),Object(Pp.a)(Object(lu.a)(r),"isPreserve",(function(){return r.props.preserve})),Object(Pp.a)(Object(lu.a)(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Object(Pp.a)(Object(lu.a)(r),"getOnlyChild",(function(e){if("function"===typeof e){var t=r.getMeta();return Object(oo.a)(Object(oo.a)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Object(jy.a)(e);return 1===n.length&&s.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Object(Pp.a)(Object(lu.a)(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Object(KO.a)(e||t(!0),n)})),Object(Pp.a)(Object(lu.a)(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,m=f(yO).dispatch,g=r.getValue(),b=c||function(e){return Object(Pp.a)({},l,e)},v=e[o],y=void 0!==n?b(g):{};var x=Object(oo.a)(Object(oo.a)({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):JO.apply(void 0,[l].concat(n)),s&&(e=s(e,g,h(!0))),m({type:"updateValue",namePath:p,value:e}),v&&v.apply(void 0,n)},wO(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:p,triggerName:e})}})),x})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(yO).initEntityValue)(Object(lu.a)(r));return r}return Object(Hp.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(yO).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:s.isValidElement(o)?e=s.cloneElement(o,this.getControlled(o.props)):(Object(nf.a)(!o,"`children` of Field is not validate ReactElement."),e=o),s.createElement(s.Fragment,{key:t},e)}}]),n}(s.Component);Object(Pp.a)(oE,"contextType",OO),Object(Pp.a)(oE,"defaultProps",{trigger:"onChange",valuePropName:"value"});var iE=function(e){var t=e.name,n=Object(Fp.a)(e,tE),r=s.useContext(OO),o=s.useContext(EO),i=void 0!==t?YO(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),s.createElement(oE,Object(yn.a)({key:a,name:i,isListField:!!o},n,{fieldContext:r}))};var aE=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=s.useContext(OO),c=s.useContext(EO),u=s.useRef({keys:[],id:0}).current,d=s.useMemo((function(){var e=YO(l.prefixName)||[];return[].concat(Object(Dp.a)(e),Object(Dp.a)(YO(t)))}),[l.prefixName,t]),p=s.useMemo((function(){return Object(oo.a)(Object(oo.a)({},l),{},{prefixName:d})}),[l,d]),f=s.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!==typeof r?(Object(nf.a)(!1,"Form.List only accepts function as children."),null):s.createElement(EO.Provider,{value:f},s.createElement(OO.Provider,{value:p},s.createElement(iE,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!==a&&void 0!==a?a:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Object(Dp.a)(u.keys.slice(0,t)),[u.id],Object(Dp.a)(u.keys.slice(t))),i([].concat(Object(Dp.a)(n.slice(0,t)),[e],Object(Dp.a)(n.slice(t))))):(u.keys=[].concat(Object(Dp.a)(u.keys),[u.id]),i([].concat(Object(Dp.a)(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=eE(u.keys,e,t),i(eE(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[]),r(p.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))};var sE="__@field_split__";function lE(e){return e.map((function(e){return"".concat(Object(mp.a)(e),":").concat(e)})).join(sE)}var cE=function(){function e(){Object(Up.a)(this,e),Object(Pp.a)(this,"kvs",new Map)}return Object(Hp.a)(e,[{key:"set",value:function(e,t){this.kvs.set(lE(e),t)}},{key:"get",value:function(e){return this.kvs.get(lE(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(lE(e))}},{key:"map",value:function(e){return Object(Dp.a)(this.kvs.entries()).map((function(t){var n=Object(Ip.a)(t,2),r=n[0],o=n[1],i=r.split(sE);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=Object(Ip.a)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),uE=["name"],dE=Object(Hp.a)((function e(t){var n=this;Object(Up.a)(this,e),Object(Pp.a)(this,"formHooked",!1),Object(Pp.a)(this,"forceRootUpdate",void 0),Object(Pp.a)(this,"subscribable",!0),Object(Pp.a)(this,"store",{}),Object(Pp.a)(this,"fieldEntities",[]),Object(Pp.a)(this,"initialValues",{}),Object(Pp.a)(this,"callbacks",{}),Object(Pp.a)(this,"validateMessages",null),Object(Pp.a)(this,"preserve",null),Object(Pp.a)(this,"lastValidatePromise",null),Object(Pp.a)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Object(Pp.a)(this,"getInternalHooks",(function(e){return e===yO?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(nf.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Object(Pp.a)(this,"useSubscribe",(function(e){n.subscribable=e})),Object(Pp.a)(this,"prevWithoutPreserves",null),Object(Pp.a)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Object(Mh.b)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Object(Mh.a)(o,n,Object(KO.a)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Object(Pp.a)(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new cE;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Object(Pp.a)(this,"getInitialValue",(function(e){var t=Object(KO.a)(n.initialValues,e);return e.length?Object(Mh.b)(t):t})),Object(Pp.a)(this,"setCallbacks",(function(e){n.callbacks=e})),Object(Pp.a)(this,"setValidateMessages",(function(e){n.validateMessages=e})),Object(Pp.a)(this,"setPreserve",(function(e){n.preserve=e})),Object(Pp.a)(this,"watchList",[]),Object(Pp.a)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Object(Pp.a)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Object(Pp.a)(this,"timeoutId",null),Object(Pp.a)(this,"warningUnhooked",(function(){0})),Object(Pp.a)(this,"updateStore",(function(e){n.store=e})),Object(Pp.a)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Object(Pp.a)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new cE;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Object(Pp.a)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=YO(e);return t.get(n)||{INVALIDATE_NAME_PATH:YO(e)}}))})),Object(Pp.a)(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Object(mp.a)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),XO(n.store,s.map(YO))})),Object(Pp.a)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=YO(e);return Object(KO.a)(n.store,t)})),Object(Pp.a)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:YO(e[n]),errors:[],warnings:[]}}))})),Object(Pp.a)(this,"getFieldError",(function(e){n.warningUnhooked();var t=YO(e);return n.getFieldsError([t])[0].errors})),Object(Pp.a)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=YO(e);return n.getFieldsError([t])[0].warnings})),Object(Pp.a)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(YO),s=!1):(o=null,s=i):(o=i.map(YO),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new cE;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Object(Dp.a)(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),Object(Pp.a)(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Object(Pp.a)(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(YO);return t.some((function(e){var t=e.getNamePath();return ZO(r,t)&&e.isFieldValidating()}))})),Object(Pp.a)(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Object(Pp.a)(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new cE,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Object(Dp.a)(Object(Dp.a)(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Object(nf.a)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Object(nf.a)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(Object(Mh.a)(n.store,o,Object(Dp.a)(i)[0].value))}}}}))})),Object(Pp.a)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Object(Mh.b)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(YO);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Object(Mh.a)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Object(Pp.a)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=Object(Fp.a)(e,uE),a=YO(o);r.push(a),"value"in i&&n.updateStore(Object(Mh.a)(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Object(Pp.a)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=Object(oo.a)(Object(oo.a)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Object(Pp.a)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Object(KO.a)(n.store,r)&&n.updateStore(Object(Mh.a)(n.store,r,t))}})),Object(Pp.a)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),Object(Pp.a)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!QO(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Object(Mh.a)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Object(Pp.a)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Object(Pp.a)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Object(oo.a)(Object(oo.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Object(Pp.a)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Object(Dp.a)(r))}),r})),Object(Pp.a)(this,"updateValue",(function(e,t){var r=YO(e),o=n.store;n.updateStore(Object(Mh.a)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(XO(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(Dp.a)(i)))})),Object(Pp.a)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Object(Mh.b)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Object(Pp.a)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Object(Pp.a)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new cE;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=YO(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Object(Pp.a)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new cE;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return ZO(e,n)}));a.length&&r(a,o)}})),Object(Pp.a)(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(YO):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||ZO(a,t,d)){var r=e.validateRules(Object(oo.a)({validateMessages:Object(oo.a)(Object(oo.a)({},$O),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Object(Dp.a)(n)):r.push.apply(r,Object(Dp.a)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var f=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=f,f.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=f.then((function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==f})}));h.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),h})),Object(Pp.a)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));var pE=function(e){var t=s.useRef(),n=s.useState({}),r=Object(Ip.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new dE((function(){r({})}));t.current=o.getForm()}return[t.current]},fE=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hE=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=s.useContext(fE),a=s.useRef({});return s.createElement(fE.Provider,{value:Object(oo.a)(Object(oo.a)({},i),{},{validateMessages:Object(oo.a)(Object(oo.a)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Object(oo.a)(Object(oo.a)({},a.current),{},Object(Pp.a)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Object(oo.a)({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},mE=fE,gE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bE=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,p=e.validateTrigger,f=void 0===p?"onChange":p,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,b=e.onFinishFailed,v=e.clearOnDestroy,y=Object(Fp.a)(e,gE),x=s.useRef(null),O=s.useContext(mE),E=pE(i),w=Object(Ip.a)(E,1)[0],j=w.getInternalHooks(yO),S=j.useSubscribe,T=j.setInitialValues,k=j.setCallbacks,C=j.setValidateMessages,_=j.setPreserve,N=j.destroyForm;s.useImperativeHandle(t,(function(){return Object(oo.a)(Object(oo.a)({},w),{},{nativeElement:x.current})})),s.useEffect((function(){return O.registerForm(n,w),function(){O.unregisterForm(n)}}),[O,w,n]),C(Object(oo.a)(Object(oo.a)({},O.validateMessages),d)),k({onValuesChange:h,onFieldsChange:function(e){if(O.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){O.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:b}),_(a);var A,R=s.useRef(null);T(r,!R.current),R.current||(R.current=!0),s.useEffect((function(){return function(){return N(v)}}),[]);var I="function"===typeof l;I?A=l(w.getFieldsValue(!0),w):A=l;S(!I);var P=s.useRef();s.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(mp.a)(e)||"object"!==Object(mp.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Object(Dp.a)(o).every((function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o}))})(P.current||[],o||[])||w.setFields(o||[]),P.current=o}),[o,w]);var D=s.useMemo((function(){return Object(oo.a)(Object(oo.a)({},w),{},{validateTrigger:f})}),[w,f]),L=s.createElement(EO.Provider,{value:null},s.createElement(OO.Provider,{value:D},A));return!1===u?L:s.createElement(u,Object(yn.a)({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),L)};function vE(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var yE=function(){};var xE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,c=Object(s.useState)(),u=Object(Ip.a)(c,2),d=u[0],p=u[1],f=Object(s.useMemo)((function(){return vE(d)}),[d]),h=Object(s.useRef)(f);h.current=f;var m=Object(s.useContext)(OO),g=l||m,b=g&&g._init,v=YO(r),y=Object(s.useRef)(v);return y.current=v,yE(v),Object(s.useEffect)((function(){if(b){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(yO).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"===typeof r?r(n):Object(KO.a)(n,y.current)},o=t((function(e,t){var r=n(e,t),o=vE(r);h.current!==o&&(h.current=o,p(r))})),i=n(e(),e(!0));return d!==i&&p(i),o}}),[b]),d},OE=s.forwardRef(bE);OE.FormProvider=hE,OE.Field=iE,OE.List=aE,OE.useForm=pE,OE.useWatch=xE;var EE=OE;const wE=s.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),jE=s.createContext(null),SE=e=>{const t=Object(sy.a)(e,["prefixCls"]);return s.createElement(hE,Object.assign({},t))},TE=s.createContext({prefixCls:""}),kE=s.createContext({});const CE=e=>{let{children:t,status:n,override:r}=e;const o=Object(s.useContext)(kE),i=Object(s.useMemo)((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return s.createElement(kE.Provider,{value:i},t)},_E=Object(s.createContext)(void 0);function NE(e){const[t,n]=s.useState(e);return s.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const AE=e=>({animationDuration:e,animationFillMode:"both"}),RE=e=>({animationDuration:e,animationFillMode:"both"}),IE=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${o}${e}-enter,\n      ${o}${e}-appear\n    `]:Object.assign(Object.assign({},AE(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},RE(r)),{animationPlayState:"paused"}),[`\n      ${o}${e}-enter${e}-enter-active,\n      ${o}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},PE=new Ph("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),DE=new Ph("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),LE=new Ph("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ME=new Ph("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),FE=new Ph("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$E=new Ph("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),BE=new Ph("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),UE=new Ph("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),HE=new Ph("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zE=new Ph("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),GE=new Ph("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),WE=new Ph("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),VE={zoom:{inKeyframes:PE,outKeyframes:DE},"zoom-big":{inKeyframes:LE,outKeyframes:ME},"zoom-big-fast":{inKeyframes:LE,outKeyframes:ME},"zoom-left":{inKeyframes:BE,outKeyframes:UE},"zoom-right":{inKeyframes:HE,outKeyframes:zE},"zoom-up":{inKeyframes:FE,outKeyframes:$E},"zoom-down":{inKeyframes:GE,outKeyframes:WE}},qE=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=VE[t];return[IE(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var KE=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};const YE=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${hf(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),XE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ZE=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$g(e)),YE(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},XE(e,e.controlHeightSM)),"&-large":Object.assign({},XE(e,e.controlHeightLG))})}},QE=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},$g(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n        &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:PE,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},JE=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},ew=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},tw=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),nw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:tw(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rw=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n        ${r}-col-24${n}-label,\n        ${r}-col-xl-24${n}-label`]:tw(e)}},[`@media (max-width: ${hf(e.screenXSMax)})`]:[nw(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:tw(e)}}}],[`@media (max-width: ${hf(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:tw(e)}}},[`@media (max-width: ${hf(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:tw(e)}}},[`@media (max-width: ${hf(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:tw(e)}}}}},ow=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n      ${n}-col-24${t}-label,\n      ${n}-col-xl-24${t}-label`]:tw(e),[`@media (max-width: ${hf(e.screenXSMax)})`]:[nw(e),{[t]:{[`${n}-col-xs-24${t}-label`]:tw(e)}}],[`@media (max-width: ${hf(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:tw(e)}},[`@media (max-width: ${hf(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:tw(e)}},[`@media (max-width: ${hf(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:tw(e)}}}},iw=(e,t)=>hv(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var aw=jv("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=iw(e,n);return[ZE(r),QE(r),KE(r),JE(r,r.componentCls),JE(r,r.formItemCls),ew(r),rw(r),ow(r),Sx(r),PE]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3});const sw=[];function lw(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}var cw=e=>{let{help:t,helpStatus:n,errors:r=sw,warnings:o=sw,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(TE),u=`${c}-item-explain`,d=Zb(c),[p,f,h]=aw(c,d),m=Object(s.useMemo)((()=>wx(c)),[c]),g=NE(r),b=NE(o),v=s.useMemo((()=>void 0!==t&&null!==t?[lw(t,"help",n)]:[].concat(Object(Dp.a)(g.map(((e,t)=>lw(e,"error","error",t)))),Object(Dp.a)(b.map(((e,t)=>lw(e,"warning","warning",t)))))),[t,n,g,b]),y={};return a&&(y.id=`${a}_help`),p(s.createElement(Sg.c,{motionDeadline:m.motionDeadline,motionName:`${c}-show-help`,visible:!!v.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return s.createElement("div",Object.assign({},y,{className:ob()(u,t,h,d,i,f),style:n,role:"alert"}),s.createElement(Sg.a,Object.assign({keys:v},wx(c),{motionName:`${c}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return s.createElement("div",{key:t,className:ob()(o,{[`${u}-${r}`]:r}),style:i},n)})))})))},uw=n(45);const dw=e=>"object"==typeof e&&null!=e&&1===e.nodeType,pw=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,fw=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return pw(n.overflowY,t)||pw(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},hw=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,mw=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},gw=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!dw(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;dw(h)&&d(h);){if(h=mw(h),h===p){f.push(h);break}null!=h&&h===document.body&&fw(h)&&!fw(document.documentElement)||null!=h&&fw(h,u)&&f.push(h)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:x,top:O,right:E,bottom:w,left:j}=e.getBoundingClientRect(),{top:S,right:T,bottom:k,left:C}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let _="start"===s||"nearest"===s?O-S:"end"===s?w+k:O+y/2-S+k,N="center"===l?j+x/2-C+T:"end"===l?E+T:j-C;const A=[];for(let R=0;R<f.length;R++){const e=f[R],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&O>=0&&j>=0&&w<=g&&E<=m&&O>=r&&w<=i&&j>=c&&E<=o)return A;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),S=parseInt(u.borderRightWidth,10),T=parseInt(u.borderBottomWidth,10);let k=0,C=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-S:0,P="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-T:0,D="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,L="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)k="start"===s?_:"end"===s?_-g:"nearest"===s?hw(v,v+g,g,h,T,v+_,v+_+y,y):_-g/2,C="start"===l?N:"center"===l?N-m/2:"end"===l?N-m:hw(b,b+m,m,d,S,b+N,b+N+x,x),k=Math.max(0,k+v),C=Math.max(0,C+b);else{k="start"===s?_-r-h:"end"===s?_-i+T+P:"nearest"===s?hw(r,i,t,h,T+P,_,_+y,y):_-(r+t/2)+P/2,C="start"===l?N-c-d:"center"===l?N-(c+n/2)+I/2:"end"===l?N-o+S+I:hw(c,o,n,d,S+I,N,N+x,x);const{scrollLeft:a,scrollTop:u}=e;k=0===L?0:Math.max(0,Math.min(u+k/L,e.scrollHeight-t/L+P)),C=0===D?0:Math.max(0,Math.min(a+C/D,e.scrollWidth-n/D+I)),_+=u-k,N+=a-C}A.push({el:e,top:k,left:C})}return A};function bw(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(gw(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:s}of gw(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=a-n.top+n.bottom,t=s-n.left+n.right;i.scroll({top:e,left:t,behavior:o})}}const vw=["parentNode"];function yw(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function xw(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return vw.includes(n)?`form_item_${n}`:n}function Ow(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Ew(e){return yw(e).join("_")}function ww(e){const[t]=pE(),n=s.useRef({}),r=s.useMemo((()=>null!==e&&void 0!==e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Ew(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e,t){const n=t.getFieldInstance(e),r=Object(uw.b)(n);if(r)return r;const o=xw(yw(e),t.__INTERNAL__.name);return o?document.getElementById(o):void 0}(e,r);n&&bw(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=Ew(e);return n.current[t]}})),[e,t]);return[r]}var jw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Sw=(e,t)=>{const n=s.useContext(bg),{getPrefixCls:r,direction:o,form:i}=s.useContext(Ap),{prefixCls:a,className:l,rootClassName:c,size:u,disabled:d=n,form:p,colon:f,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:b,hideRequiredMark:v,layout:y="horizontal",scrollToFirstError:x,requiredMark:O,onFinishFailed:E,name:w,style:j,feedbackIcons:S,variant:T}=e,k=jw(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),C=wy(u),_=s.useContext(Uh);const N=Object(s.useMemo)((()=>void 0!==O?O:!v&&(!i||void 0===i.requiredMark||i.requiredMark)),[v,O,i]),A=null!==f&&void 0!==f?f:null===i||void 0===i?void 0:i.colon,R=r("form",a),I=Zb(R),[P,D,L]=aw(R,I),M=ob()(R,`${R}-${y}`,{[`${R}-hide-required-mark`]:!1===N,[`${R}-rtl`]:"rtl"===o,[`${R}-${C}`]:C},L,I,D,null===i||void 0===i?void 0:i.className,l,c),[F]=ww(p),{__INTERNAL__:$}=F;$.name=w;const B=Object(s.useMemo)((()=>({name:w,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:b,vertical:"vertical"===y,colon:A,requiredMark:N,itemRef:$.itemRef,form:F,feedbackIcons:S})),[w,h,g,b,y,A,N,F,S]),U=s.useRef(null);s.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},F),{nativeElement:null===(e=U.current)||void 0===e?void 0:e.nativeElement})}));const H=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=e),F.scrollToField(t,n)}};return P(s.createElement(_E.Provider,{value:T},s.createElement(gg,{disabled:d},s.createElement(xg.Provider,{value:C},s.createElement(SE,{validateMessages:_},s.createElement(wE.Provider,{value:B},s.createElement(EE,Object.assign({id:w},k,{name:w,onFinishFailed:e=>{if(null===E||void 0===E||E(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==x)return void H(x,t);i&&void 0!==i.scrollToFirstError&&H(i.scrollToFirstError,t)}},form:F,ref:U,style:Object.assign(Object.assign({},null===i||void 0===i?void 0:i.style),j),className:M}))))))))};var Tw=s.forwardRef(Sw),kw=n(52);const Cw=()=>{const{status:e,errors:t=[],warnings:n=[]}=Object(s.useContext)(kE);return{status:e,errors:t,warnings:n}};Cw.Context=kE;var _w=Cw;const Nw=["xxl","xl","lg","md","sm","xs"];function Aw(){const[,e]=Dg(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Nw).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return l.a.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}var Rw=Object(s.createContext)({});const Iw=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Pw=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Dw=jv("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),Lw=jv("Grid",(e=>{const t=hv(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Iw(t),Pw(t,""),Pw(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${hf(t)})`]:Object.assign({},Pw(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var Mw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Fw(e,t){const[n,r]=s.useState("string"===typeof e?e:"");return s.useEffect((()=>{(()=>{if("string"===typeof e&&r(e),"object"===typeof e)for(let n=0;n<Nw.length;n++){const o=Nw[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}var $w=s.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:u}=e,d=Mw(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:f}=s.useContext(Ap),[h,m]=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,b]=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=Fw(o,g),y=Fw(r,g),x=s.useRef(c),O=Aw();s.useEffect((()=>{const e=O.subscribe((e=>{b(e);const t=x.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&m(e)}));return()=>O.unsubscribe(e)}),[]);const E=p("row",n),[w,j,S]=Dw(E),T=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let r=0;r<Nw.length;r++){const o=Nw[r];if(h[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),k=ob()(E,{[`${E}-no-wrap`]:!1===u,[`${E}-${y}`]:y,[`${E}-${v}`]:v,[`${E}-rtl`]:"rtl"===f},i,j,S),C={},_=null!=T[0]&&T[0]>0?T[0]/-2:void 0;_&&(C.marginLeft=_,C.marginRight=_);const[N,A]=T;C.rowGap=A;const R=s.useMemo((()=>({gutter:[N,A],wrap:u})),[N,A,u]);return w(s.createElement(Rw.Provider,{value:R},s.createElement("div",Object.assign({},d,{className:k,style:Object.assign(Object.assign({},C),a),ref:t}),l)))})),Bw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Uw(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Hw=["xs","sm","md","lg","xl","xxl"];var zw=s.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ap),{gutter:o,wrap:i}=s.useContext(Rw),{prefixCls:a,span:l,order:c,offset:u,push:d,pull:p,className:f,children:h,flex:m,style:g}=e,b=Bw(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",a),[y,x,O]=Lw(v),E={};let w={};Hw.forEach((t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${v}-${t}-${n.span}`]:void 0!==n.span,[`${v}-${t}-order-${n.order}`]:n.order||0===n.order,[`${v}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${v}-${t}-push-${n.push}`]:n.push||0===n.push,[`${v}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${v}-rtl`]:"rtl"===r}),n.flex&&(w[`${v}-${t}-flex`]=!0,E[`--${v}-${t}-flex`]=Uw(n.flex))}));const j=ob()(v,{[`${v}-${l}`]:void 0!==l,[`${v}-order-${c}`]:c,[`${v}-offset-${u}`]:u,[`${v}-push-${d}`]:d,[`${v}-pull-${p}`]:p},f,w,x,O),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return m&&(S.flex=Uw(m),!1!==i||S.minWidth||(S.minWidth=0)),y(s.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},S),g),E),className:j,ref:t}),h))}));const Gw=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var Ww=Tv(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=iw(e,n);return[Gw(r)]}));var Vw=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:p,onErrorVisibleChanged:f}=e,h=`${t}-item`,m=s.useContext(wE),g=r||m.wrapperCol||{},b=ob()(`${h}-control`,g.className),v=s.useMemo((()=>Object.assign({},m)),[m]);delete v.labelCol,delete v.wrapperCol;const y=s.createElement("div",{className:`${h}-control-input`},s.createElement("div",{className:`${h}-control-input-content`},o)),x=s.useMemo((()=>({prefixCls:t,status:n})),[t,n]),O=null!==p||i.length||a.length?s.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},s.createElement(TE.Provider,{value:x},s.createElement(cw,{fieldId:d,errors:i,warnings:a,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:f})),!!p&&s.createElement("div",{style:{width:0,height:p}})):null,E={};d&&(E.id=`${d}_extra`);const w=c?s.createElement("div",Object.assign({},E,{className:`${h}-extra`}),c):null,j=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:y,errorList:O,extra:w}):s.createElement(s.Fragment,null,y,O,w);return s.createElement(wE.Provider,{value:v},s.createElement(zw,Object.assign({},g,{className:b}),j),s.createElement(Ww,{prefixCls:t}))},qw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Kw=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:qw}))};var Yw=s.forwardRef(Kw);function Xw(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:ob()("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"===typeof t?t():t))}var Zw=n(73),Qw={shiftX:64,adjustY:1},Jw={adjustX:1,shiftY:!0},ej=[0,0],tj={left:{points:["cr","cl"],overflow:Jw,offset:[-4,0],targetOffset:ej},right:{points:["cl","cr"],overflow:Jw,offset:[4,0],targetOffset:ej},top:{points:["bc","tc"],overflow:Qw,offset:[0,-4],targetOffset:ej},bottom:{points:["tc","bc"],overflow:Qw,offset:[0,4],targetOffset:ej},topLeft:{points:["bl","tl"],overflow:Qw,offset:[0,-4],targetOffset:ej},leftTop:{points:["tr","tl"],overflow:Jw,offset:[-4,0],targetOffset:ej},topRight:{points:["br","tr"],overflow:Qw,offset:[0,-4],targetOffset:ej},rightTop:{points:["tl","tr"],overflow:Jw,offset:[4,0],targetOffset:ej},bottomRight:{points:["tr","br"],overflow:Qw,offset:[0,4],targetOffset:ej},rightBottom:{points:["bl","br"],overflow:Jw,offset:[4,0],targetOffset:ej},bottomLeft:{points:["tl","bl"],overflow:Qw,offset:[0,4],targetOffset:ej},leftBottom:{points:["br","bl"],overflow:Jw,offset:[-4,0],targetOffset:ej}},nj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],rj=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,c=void 0===l?.1:l,u=e.overlayStyle,d=e.prefixCls,p=void 0===d?"rc-tooltip":d,f=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,b=e.animation,v=e.motion,y=e.placement,x=void 0===y?"right":y,O=e.align,E=void 0===O?{}:O,w=e.destroyTooltipOnHide,j=void 0!==w&&w,S=e.defaultVisible,T=e.getTooltipContainer,k=e.overlayInnerStyle,C=(e.arrowContent,e.overlay),_=e.id,N=e.showArrow,A=void 0===N||N,R=Object(Fp.a)(e,nj),I=Object(s.useRef)(null);Object(s.useImperativeHandle)(t,(function(){return I.current}));var P=Object(oo.a)({},R);"visible"in e&&(P.popupVisible=e.visible);return s.createElement(Zw.a,Object(yn.a)({popupClassName:n,prefixCls:p,popup:function(){return s.createElement(Xw,{key:"content",prefixCls:p,id:_,overlayInnerStyle:k},C)},action:o,builtinPlacements:tj,popupPlacement:x,ref:I,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:v,defaultPopupVisible:S,autoDestroy:j,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:a,arrow:A},P),f)},oj=Object(s.forwardRef)(rj);var ij=e=>{const{space:t,form:n,children:r}=e;if(void 0===r||null===r)return null;let o=r;return n&&(o=l.a.createElement(CE,{override:!0,status:!0},o)),t&&(o=l.a.createElement(Ny,null,o)),o};const aj=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${hf(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function sj(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function lj(e,t){return e?t:{}}function cj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},aj(e,t,o)),{"&:before":{background:t}})]},lj(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${hf(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),lj(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${hf(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),lj(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),lj(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const uj={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},dj={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},pj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function fj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(uj).forEach((e=>{const c=r&&dj[e]||uj[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,pj.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=sj({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"===typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const hj=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function mj(e,t){return hj.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const gj=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$g(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${hf(e.calc(c).div(2).equal())} ${hf(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),mj(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},cj(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bj=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sj({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,p=2*o-a,f=s,h=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`}}(hv(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var vj=function(e){return jv("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=hv(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[gj(o),qE(e,"zoom-big-fast")]}),bj,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]})(e)};const yj=hj.map((e=>`${e}-inverse`));function xj(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?hj.includes(e):[].concat(Object(Dp.a)(yj),Object(Dp.a)(hj)).includes(e)}(t),r=ob()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Oj=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(Ap),c=l("tooltip",t),[u,d,p]=vj(c),f=xj(c,i),h=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),g=ob()(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(s.createElement("div",{className:g,style:h},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Xw,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),o)))},Ej=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wj=s.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:g,overlay:b,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,O=!!m,[,E]=Dg(),{getPopupContainer:w,getPrefixCls:j,direction:S}=s.useContext(Ap),T=Bh("Tooltip"),k=s.useRef(null),C=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};s.useImperativeHandle(t,(()=>{var e;return{forceAlign:C,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),C()},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement}}));const[_,N]=Object(rx.a)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),A=!g&&!b&&0!==g,R=s.useMemo((()=>{var e,t;let n=y;return"object"===typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),v||fj({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:O?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[y,m,v,E]),I=s.useMemo((()=>0===g?g:b||g||""),[b,g]),P=s.createElement(ij,{space:!0},"function"===typeof I?I():I),{getPopupContainer:D,placement:L="top",mouseEnterDelay:M=.1,mouseLeaveDelay:F=.1,overlayStyle:$,rootClassName:B}=e,U=Ej(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=j("tooltip",o),z=j(),G=e["data-popover-inject"];let W=_;"open"in e||"visible"in e||!A||(W=!1);const V=s.isValidElement(d)&&!uy(d)?d:s.createElement("span",null,d),q=V.props,K=q.className&&"string"!==typeof q.className?q.className:ob()(q.className,i||`${H}-open`),[Y,X,Z]=vj(H,!G),Q=xj(H,c),J=Q.arrowStyle,ee=Object.assign(Object.assign({},u),Q.overlayStyle),te=ob()(l,{[`${H}-rtl`]:"rtl"===S},Q.className,B,X,Z),[ne,re]=nv("Tooltip",U.zIndex),oe=s.createElement(oj,Object.assign({},U,{zIndex:ne,showArrow:O,placement:L,mouseEnterDelay:M,mouseLeaveDelay:F,prefixCls:H,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),$),getTooltipContainer:D||a||w,ref:k,builtinPlacements:R,overlay:P,visible:W,onVisibleChange:t=>{var n,r;N(!A&&t),A||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!==p&&void 0!==p?p:f,overlayInnerStyle:ee,arrowContent:s.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:Ex(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),W?dy(V,{className:K}):V);return Y(s.createElement(Qb.Provider,{value:re},oe))}));wj._InternalPanelDoNotUseOrYouWillBeFired=Oj;var jj=wj,Sj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Tj=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var p;const[f]=Rx("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:b}=s.useContext(wE);if(!n)return null;const v=o||m||{},y=i||h,x=`${t}-item-label`,O=ob()(x,"left"===y&&`${x}-left`,v.className,{[`${x}-wrap`]:!!g});let E=n;const w=!0===a||!1!==b&&!1!==a;w&&!d&&"string"===typeof n&&n.trim()&&(E=n.replace(/[:|\uff1a]\s*$/,""));const j=function(e){return e?"object"!==typeof e||s.isValidElement(e)?{title:e}:e:null}(u);if(j){const{icon:e=s.createElement(Yw,null)}=j,n=Sj(j,["icon"]),r=s.createElement(jj,Object.assign({},n),s.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));E=s.createElement(s.Fragment,null,E,r)}const S="optional"===c,T="function"===typeof c;T?E=c(E,{required:!!l}):S&&!l&&(E=s.createElement(s.Fragment,null,E,s.createElement("span",{className:`${t}-item-optional`,title:""},(null===f||void 0===f?void 0:f.optional)||(null===(p=qh.Form)||void 0===p?void 0:p.optional))));const k=ob()({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:S||T,[`${t}-item-no-colon`]:!w});return s.createElement(zw,Object.assign({},v,{className:O}),s.createElement("label",{htmlFor:r,className:k,title:"string"===typeof n?n:""},E))};const kj={success:xb,warning:_b,error:wb,validating:Db};function Cj(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:d}=s.useContext(wE),p=Ow(n,r,l,null,!!o,i),{isFormItemInput:f,status:h,hasFeedback:m,feedbackIcon:g}=s.useContext(kE),b=s.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||d,a=p&&(null===(e=null===i||void 0===i?void 0:i({status:p,errors:n,warnings:r}))||void 0===e?void 0:e[p]),l=p&&kj[p];t=!1!==a&&l?s.createElement("span",{className:ob()(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},a||s.createElement(l,null)):null}const i={status:p||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return c&&(i.status=(null!==p&&void 0!==p?p:h)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!==o&&void 0!==o?o:m),i.feedbackIcon=void 0!==o?i.feedbackIcon:g),i}),[p,o,c,f,h]);return s.createElement(kE.Provider,{value:b},t)}var _j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Nj(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:p,children:f,fieldId:h,required:m,isRequired:g,onSubItemMetaChange:b,layout:v}=e,y=_j(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),x=`${t}-item`,{requiredMark:O,vertical:E}=s.useContext(wE),w=E||"vertical"===v,j=s.useRef(null),S=NE(a),T=NE(l),k=void 0!==i&&null!==i,C=!!(k||a.length||l.length),_=!!j.current&&Object(cy.a)(j.current),[N,A]=s.useState(null);Object(yf.a)((()=>{if(C&&j.current){const e=getComputedStyle(j.current);A(parseInt(e.marginBottom,10))}}),[C,_]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ow(e?S:u.errors,e?T:u.warnings,u,"",!!d,c)}(),I=ob()(x,n,r,{[`${x}-with-help`]:k||S.length||T.length,[`${x}-has-feedback`]:R&&d,[`${x}-has-success`]:"success"===R,[`${x}-has-warning`]:"warning"===R,[`${x}-has-error`]:"error"===R,[`${x}-is-validating`]:"validating"===R,[`${x}-hidden`]:p,[`${x}-${v}`]:v});return s.createElement("div",{className:I,style:o,ref:j},s.createElement($w,Object.assign({className:`${x}-row`},Object(sy.a)(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(Tj,Object.assign({htmlFor:h},e,{requiredMark:O,required:null!==m&&void 0!==m?m:g,prefixCls:t,vertical:w})),s.createElement(Vw,Object.assign({},e,u,{errors:S,warnings:T,prefixCls:t,status:R,help:i,marginBottom:N,onErrorVisibleChanged:e=>{e||A(null)}}),s.createElement(jE.Provider,{value:b},s.createElement(Cj,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:R},f)))),!!N&&s.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-N}}))}const Aj=s.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"===typeof r||"function"===typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const Rj=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:h,hidden:m,help:g,layout:b}=e,{getPrefixCls:v}=s.useContext(Ap),{name:y}=s.useContext(wE),x=function(e){if("function"===typeof e)return e;const t=Object(jy.a)(e);return t.length<=1?t[0]:t}(c),O="function"===typeof x,E=s.useContext(jE),{validateTrigger:w}=s.useContext(OO),j=void 0!==h?h:w,S=!(void 0===t||null===t),T=v("form",i),k=Zb(T),[C,_,N]=aw(T,k);Bh("Form.Item");const A=s.useContext(EO),R=s.useRef(),[I,P]=function(e){const[t,n]=s.useState(e),r=Object(s.useRef)(null),o=Object(s.useRef)([]),i=Object(s.useRef)(!1);return s.useEffect((()=>(i.current=!1,()=>{i.current=!0,my.a.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=Object(my.a)((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[D,L]=Object(kw.a)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),M=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(Object(Dp.a)(e.name.slice(0,-1)),Object(Dp.a)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[F,$]=s.useMemo((()=>{const e=Object(Dp.a)(D.errors),t=Object(Dp.a)(D.warnings);return Object.values(I).forEach((n=>{e.push.apply(e,Object(Dp.a)(n.errors||[])),t.push.apply(t,Object(Dp.a)(n.warnings||[]))})),[e,t]}),[I,D.errors,D.warnings]),B=function(){const{itemRef:e}=s.useContext(wE),t=s.useRef({});return function(n,r){const o=r&&"object"===typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Object(ly.a)(e(n),o)),t.current.ref}}();function U(t,o,i){return n&&!m?s.createElement(Cj,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:F,warnings:$,noStyle:!0},t):s.createElement(Nj,Object.assign({key:"row"},e,{className:ob()(r,N,k,_),prefixCls:T,fieldId:o,isRequired:i,errors:F,warnings:$,meta:D,onSubItemMetaChange:M,layout:b}),t)}if(!S&&!O&&!o)return C(U(x));let H={};return"string"===typeof d?H.label=d:t&&(H.label=String(t)),p&&(H=Object.assign(Object.assign({},H),p)),C(s.createElement(iE,Object.assign({},e,{messageVariables:H,trigger:f,validateTrigger:j,onMetaChange:e=>{const t=null===A||void 0===A?void 0:A.getKey(e.name);if(L(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&E){let n=e.name;if(e.destroy)n=R.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Object(Dp.a)(r)),R.current=n}E(e,n)}}}),((n,r,i)=>{const c=yw(t).length&&r?r.name:[],d=xw(c,y),p=void 0!==u?u:!!(null===l||void 0===l?void 0:l.some((e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(i);return(null===t||void 0===t?void 0:t.required)&&!(null===t||void 0===t?void 0:t.warningOnly)}return!1}))),h=Object.assign({},n);let m=null;if(Array.isArray(x)&&S)m=x;else if(O&&(!a&&!o||S));else if(!o||O||S)if(s.isValidElement(x)){const t=Object.assign(Object.assign({},x.props),h);if(t.id||(t.id=d),g||F.length>0||$.length>0||e.extra){const n=[];(g||F.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}F.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Object(ly.c)(x)&&(t.ref=B(c,x));new Set([].concat(Object(Dp.a)(yw(f)),Object(Dp.a)(yw(j)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];null===(r=h[e])||void 0===r||(t=r).call.apply(t,[h].concat(s)),null===(i=(o=x.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(s))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=s.createElement(Aj,{control:h,update:x,childProps:n},dy(x,t))}else m=O&&(a||o)&&!S?x(i):x;else;return U(m,d,p)})))};Rj.useStatus=_w;var Ij=Rj,Pj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Dj=e=>{var{prefixCls:t,children:n}=e,r=Pj(e,["prefixCls","children"]);const{getPrefixCls:o}=s.useContext(Ap),i=o("form",t),a=s.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return s.createElement(aE,Object.assign({},r),((e,t,r)=>s.createElement(TE.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const Lj=Tw;Lj.Item=Ij,Lj.List=Dj,Lj.ErrorList=cw,Lj.useForm=ww,Lj.useFormInstance=function(){const{form:e}=Object(s.useContext)(wE);return e},Lj.useWatch=xE,Lj.Provider=SE,Lj.create=()=>{};var Mj=Lj;function Fj(e){return hv(e,{inputAffixPadding:e.paddingXXS})}const $j=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:h,hoverBorderColor:f,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Bj=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Uj=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Bj(hv(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Hj=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),zj=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hj(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Gj=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hj(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Uj(e))}),zj(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zj(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Wj=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Vj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Wj(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Wj(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Uj(e))}})}),qj=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Kj=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null===t||void 0===t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Yj=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Kj(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Xj=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kj(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Uj(e))}),Yj(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Yj(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Zj=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Qj=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${hf(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${hf(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Zj(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Zj(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Jj=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${hf(t)} ${hf(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},eS=e=>({padding:`${hf(e.paddingBlockSM)} ${hf(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${hf(e.paddingBlock)} ${hf(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Jj(e)),"&-sm":Object.assign({},eS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),nS=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Jj(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eS(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${hf(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${hf(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${hf(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${hf(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${hf(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n        & > ${t}-affix-wrapper,\n        & > ${t}-number-affix-wrapper,\n        & > ${n}-picker-range\n      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},rS=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$g(e)),tS(e)),Gj(e)),Xj(e)),qj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},oS=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${hf(e.inputAffixPadding)}`}}}},iS=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},tS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),oS(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},aS=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$g(e)),nS(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Vj(e)),Qj(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},sS=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},lS=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n        &-allow-clear > ${t},\n        &-affix-wrapper${r}-has-feedback ${t}\n      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},cS=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var uS=jv("Input",(e=>{const t=hv(e,Fj(e));return[rS(t),lS(t),iS(t),aS(t),sS(t),cS(t),cO(t)]}),$j,{resetFont:!1});var dS=e=>{const{getPrefixCls:t,direction:n}=Object(s.useContext)(Ap),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c]=uS(a),u=ob()(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},c,o),d=Object(s.useContext)(kE),p=Object(s.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return l(s.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(kE.Provider,{value:p},e.children)))},pS=n(98);var fS=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:l.a.createElement(wb,null)}),t};function hS(e,t,n){return ob()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const mS=(e,t)=>t||e;var gS=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=Object(s.useContext)(Ap),l=Object(s.useContext)(_E),c=null===a||void 0===a?void 0:a.variant;let u;u="undefined"!==typeof t?t:!1===n?"borderless":null!==(o=null!==(r=null!==l&&void 0!==l?l:c)&&void 0!==r?r:i)&&void 0!==o?o:"outlined";return[u,Np.includes(u)]};function bS(e,t){const n=Object(s.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return Object(s.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var vS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yS=Object(s.forwardRef)(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:c,onBlur:u,onFocus:d,suffix:p,allowClear:f,addonAfter:h,addonBefore:m,className:g,style:b,styles:v,rootClassName:y,onChange:x,classNames:O,variant:E}=e,w=vS(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:j,direction:S,input:T}=l.a.useContext(Ap),k=j("input",r),C=Object(s.useRef)(null),_=Zb(k),[N,A,R]=uS(k,_),{compactSize:I,compactItemClassnames:P}=_y(k,S),D=wy((e=>{var t;return null!==(t=null!==a&&void 0!==a?a:I)&&void 0!==t?t:e})),L=l.a.useContext(bg),M=null!==c&&void 0!==c?c:L,{status:F,hasFeedback:$,feedbackIcon:B}=Object(s.useContext)(kE),U=mS(F,i),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!$;Object(s.useRef)(H);const z=bS(C,!0),G=($||p)&&l.a.createElement(l.a.Fragment,null,p,$&&B),W=fS(null!==f&&void 0!==f?f:null===T||void 0===T?void 0:T.allowClear),[V,q]=gS("input",E,o);return N(l.a.createElement(pS.b,Object.assign({ref:Object(ly.a)(t,C),prefixCls:k,autoComplete:null===T||void 0===T?void 0:T.autoComplete},w,{disabled:M,onBlur:e=>{z(),null===u||void 0===u||u(e)},onFocus:e=>{z(),null===d||void 0===d||d(e)},style:Object.assign(Object.assign({},null===T||void 0===T?void 0:T.style),b),styles:Object.assign(Object.assign({},null===T||void 0===T?void 0:T.styles),v),suffix:G,allowClear:W,className:ob()(g,y,R,_,P,null===T||void 0===T?void 0:T.className),onChange:e=>{z(),null===x||void 0===x||x(e)},addonBefore:m&&l.a.createElement(ij,{form:!0,space:!0},m),addonAfter:h&&l.a.createElement(ij,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},O),null===T||void 0===T?void 0:T.classNames),{input:ob()({[`${k}-sm`]:"small"===D,[`${k}-lg`]:"large"===D,[`${k}-rtl`]:"rtl"===S},null===O||void 0===O?void 0:O.input,null===(n=null===T||void 0===T?void 0:T.classNames)||void 0===n?void 0:n.input,A),variant:ob()({[`${k}-${V}`]:q},hS(k,U)),affixWrapper:ob()({[`${k}-affix-wrapper-sm`]:"small"===D,[`${k}-affix-wrapper-lg`]:"large"===D,[`${k}-affix-wrapper-rtl`]:"rtl"===S},A),wrapper:ob()({[`${k}-group-rtl`]:"rtl"===S},A),groupWrapper:ob()({[`${k}-group-wrapper-sm`]:"small"===D,[`${k}-group-wrapper-lg`]:"large"===D,[`${k}-group-wrapper-rtl`]:"rtl"===S,[`${k}-group-wrapper-${V}`]:q},hS(`${k}-group-wrapper`,U,$),A)})})))}));var xS=yS;const OS=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var ES=jv(["Input","OTP"],(e=>{const t=hv(e,Fj(e));return[OS(t)]}),$j),wS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jS=s.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=wS(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"===typeof a?a:n,u=s.useRef(null);s.useImperativeHandle(t,(()=>u.current));const d=()=>{Object(my.a)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return s.createElement(xS,Object.assign({type:!0===a?"password":"text"},l,{ref:u,value:c,onInput:e=>{r(i,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?o(i-1):"ArrowRight"===t&&o(i+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||o(i-1),d()},onMouseDown:d,onMouseUp:d}))}));var SS=jS,TS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function kS(e){return(e||"").split("")}var CS=s.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:c,variant:u,disabled:d,status:p,autoFocus:f,mask:h,type:m}=e,g=TS(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]);const{getPrefixCls:b,direction:v}=s.useContext(Ap),y=b("otp",n),x=Object(Mb.a)(g,{aria:!0,data:!0,attr:!0}),O=Zb(y),[E,w,j]=ES(y,O),S=wy((e=>null!==o&&void 0!==o?o:e)),T=s.useContext(kE),k=mS(T.status,p),C=s.useMemo((()=>Object.assign(Object.assign({},T),{status:k,hasFeedback:!1,feedbackIcon:null})),[T,k]),_=s.useRef(null),N=s.useRef({});s.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=N.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=N.current[t])||void 0===e||e.blur()},nativeElement:_.current})));const A=e=>c?c(e):e,[R,I]=s.useState(kS(A(i||"")));s.useEffect((()=>{void 0!==a&&I(kS(a))}),[a]);const P=Object(hy.a)((e=>{I(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&l(e.join(""))})),D=Object(hy.a)(((e,t)=>{let n=Object(Dp.a)(R);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(kS(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const o=A(n.map((e=>e||" ")).join(""));return n=kS(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),L=(e,t)=>{var n;const o=D(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=N.current[i])||void 0===n||n.focus()),P(o)},M=e=>{var t;null===(t=N.current[e])||void 0===t||t.focus()},F={variant:u,disabled:d,status:k,mask:h,type:m};return E(s.createElement("div",Object.assign({},x,{ref:_,className:ob()(y,{[`${y}-sm`]:"small"===S,[`${y}-lg`]:"large"===S,[`${y}-rtl`]:"rtl"===v},j,w)}),s.createElement(kE.Provider,{value:C},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=R[t]||"";return s.createElement(SS,Object.assign({ref:e=>{N.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:`${y}-input`,onChange:L,value:r,onActiveChange:M,autoFocus:0===t&&f},F))})))))})),_S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},NS=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:_S}))};var AS=s.forwardRef(NS),RS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},IS=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:RS}))};var PS=s.forwardRef(IS),DS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const LS=e=>e?s.createElement(PS,null):s.createElement(AS,null),MS={click:"onClick",hover:"onMouseOver"},FS=s.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=LS}=e,a=s.useContext(bg),l=null!==n&&void 0!==n?n:a,c="object"===typeof o&&void 0!==o.visible,[u,d]=Object(s.useState)((()=>!!c&&o.visible)),p=Object(s.useRef)(null);s.useEffect((()=>{c&&d(o.visible)}),[c,o]);const f=bS(p),h=()=>{l||(u&&f(),d((e=>{var t;const n=!e;return"object"===typeof o&&(null===(t=o.onVisibleChange)||void 0===t||t.call(o,n)),n})))},{className:m,prefixCls:g,inputPrefixCls:b,size:v}=e,y=DS(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=s.useContext(Ap),O=x("input",b),E=x("input-password",g),w=o&&(e=>{const t=MS[r]||"",n=i(u),o={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return s.cloneElement(s.isValidElement(n)?n:s.createElement("span",null,n),o)})(E),j=ob()(E,m,{[`${E}-${v}`]:!!v}),S=Object.assign(Object.assign({},Object(sy.a)(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:j,prefixCls:O,suffix:w});return v&&(S.size=v),s.createElement(xS,Object.assign({ref:Object(ly.a)(t,p)},S))}));var $S=FS,BS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},US=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:BS}))};var HS=s.forwardRef(US),zS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const GS=s.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:f,onCompositionStart:h,onCompositionEnd:m}=e,g=zS(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:v}=s.useContext(Ap),y=s.useRef(!1),x=b("input-search",n),O=b("input",r),{compactSize:E}=_y(x,v),w=wy((e=>{var t;return null!==(t=null!==i&&void 0!==i?i:E)&&void 0!==t?t:e})),j=s.useRef(null),S=e=>{var t;document.activeElement===(null===(t=j.current)||void 0===t?void 0:t.input)&&e.preventDefault()},T=e=>{var t,n;p&&p(null===(n=null===(t=j.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},k="boolean"===typeof l?s.createElement(HS,null):null,C=`${x}-button`;let _;const N=l||{},A=N.type&&!0===N.type.__ANT_BUTTON;_=A||"button"===N.type?dy(N,Object.assign({onMouseDown:S,onClick:e=>{var t,n;null===(n=null===(t=null===N||void 0===N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),T(e)},key:"enterButton"},A?{className:C,size:w}:{})):s.createElement(vO,{className:C,type:l?"primary":void 0,size:w,disabled:d,key:"enterButton",onMouseDown:S,onClick:T,loading:u,icon:k},l),c&&(_=[_,dy(c,{key:"addonAfter"})]);const R=ob()(x,{[`${x}-rtl`]:"rtl"===v,[`${x}-${w}`]:!!w,[`${x}-with-button`]:!!l},o);return s.createElement(xS,Object.assign({ref:Object(ly.a)(j,t),onPressEnter:e=>{y.current||u||T(e)}},g,{size:w,onCompositionStart:e=>{y.current=!0,null===h||void 0===h||h(e)},onCompositionEnd:e=>{y.current=!1,null===m||void 0===m||m(e)},prefixCls:O,addonAfter:_,suffix:a,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null===f||void 0===f||f(e)},className:R,disabled:d}))}));var WS=GS,VS=n(161),qS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KS=Object(s.forwardRef)(((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:f,style:h,styles:m,variant:g}=e,b=qS(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:v,direction:y,textArea:x}=s.useContext(Ap),O=wy(a),E=s.useContext(bg),w=null!==l&&void 0!==l?l:E,{status:j,hasFeedback:S,feedbackIcon:T}=s.useContext(kE),k=mS(j,c),C=s.useRef(null);s.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}}));const _=v("input",o),N=Zb(_),[A,R,I]=uS(_,N),[P,D]=gS("textArea",g,i),L=fS(null!==u&&void 0!==u?u:null===x||void 0===x?void 0:x.allowClear);return A(s.createElement(VS.a,Object.assign({autoComplete:null===x||void 0===x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),h),styles:Object.assign(Object.assign({},null===x||void 0===x?void 0:x.styles),m),disabled:w,allowClear:L,className:ob()(I,N,f,p,null===x||void 0===x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null===x||void 0===x?void 0:x.classNames),{textarea:ob()({[`${_}-sm`]:"small"===O,[`${_}-lg`]:"large"===O},R,null===d||void 0===d?void 0:d.textarea,null===(n=null===x||void 0===x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:ob()({[`${_}-${P}`]:D},hS(_,k)),affixWrapper:ob()(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:"rtl"===y,[`${_}-affix-wrapper-sm`]:"small"===O,[`${_}-affix-wrapper-lg`]:"large"===O,[`${_}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},R)}),prefixCls:_,suffix:S&&s.createElement("span",{className:`${_}-textarea-suffix`},T),ref:C})))}));var YS=KS;const XS=xS;XS.Group=dS,XS.Search=WS,XS.TextArea=YS,XS.Password=$S,XS.OTP=CS;var ZS,QS=XS;n(191);const JS={labelCol:{span:24},wrapperCol:{span:24}};let eT=ae("store")(ZS=ee(ZS=class extends s.Component{constructor(){super(...arguments),this.state={isVerified:!1},this.handleSubmit=async e=>{const{store:t}=this.props;try{200===(await t.api.post("/user/verify",e)).status&&(this.setState({isVerified:!0}),ay.success({message:Object(Ht.jsxs)("span",{children:["Account Verified -"," ",Object(Ht.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:this.navigateToDashboard,children:"Go to Dashboard"})]}),description:"Congratulations! Your account has been verified."}))}catch(n){console.log("Error while verifying user:",n)}},this.navigateToDashboard=()=>{window.location.assign(window.location.origin+"/dashboard")}}render(){const{isVerified:e}=this.state;return e?Object(Ht.jsxs)("div",{style:{textAlign:"center"},children:[Object(Ht.jsx)("h3",{children:"Your account has been verified!"}),Object(Ht.jsx)(vO,{type:"primary",onClick:this.navigateToDashboard,children:"Go to Dashboard"})]}):Object(Ht.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:Object(Ht.jsxs)(Mj,{...JS,style:{width:"40%"},onFinish:this.handleSubmit,children:[Object(Ht.jsx)(Mj.Item,{children:Object(Ht.jsx)("h2",{style:{textAlign:"center",fontSize:"40px"},children:"Verification Token"})}),Object(Ht.jsx)(Mj.Item,{name:"verification_token",rules:[{required:!0,message:"Please input your verification token!"}],style:{textAlign:"center"},children:Object(Ht.jsx)(QS,{className:"bubble-input",style:{width:"80%",height:"50px",borderRadius:"10px",fontSize:"30px"}})}),Object(Ht.jsx)(Mj.Item,{style:{textAlign:"center"},children:Object(Ht.jsx)(vO,{type:"primary",htmlType:"submit",style:{width:"40%",height:"50px",fontSize:"20px"},children:"Verify"})})]})})}})||ZS)||ZS;var tT,nT=br(eT),rT=n(11),oT=n.n(rT);function iT(e){return iT="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},iT(e)}function aT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tT;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}var sT="object"===("undefined"===typeof window?"undefined":iT(window))&&window.Element||function(){};oT.a.oneOfType([oT.a.string,oT.a.func,function(e,t,n){if(!(e[t]instanceof sT))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},oT.a.shape({current:oT.a.any})]);var lT=oT.a.oneOfType([oT.a.func,oT.a.string,oT.a.shape({$$typeof:oT.a.symbol,render:oT.a.func}),oT.a.arrayOf(oT.a.oneOfType([oT.a.func,oT.a.string,oT.a.shape({$$typeof:oT.a.symbol,render:oT.a.func})]))]);"undefined"===typeof window||!window.document||window.document.createElement;var cT=["className","cssModule","variant","innerRef"];function uT(){return uT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uT.apply(this,arguments)}function dT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hT={active:oT.a.bool,"aria-label":oT.a.string,onClick:oT.a.func,variant:oT.a.oneOf(["white"]),className:oT.a.string,cssModule:oT.a.object,innerRef:oT.a.oneOfType([oT.a.object,oT.a.string,oT.a.func])};function mT(e){var t=e.className,n=(e.cssModule,e.variant),r=e.innerRef,o=fT(e,cT),i=aT(ob()(t,"btn-close",n&&"btn-close-".concat(n)));return l.a.createElement("button",uT({ref:r,type:"button",className:i},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dT(Object(n),!0).forEach((function(t){pT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"aria-label":"close"},o)))}mT.propTypes=hT;var gT=mT,bT=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function vT(){return vT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vT.apply(this,arguments)}function yT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xT={active:oT.a.bool,"aria-label":oT.a.string,block:oT.a.bool,children:oT.a.node,className:oT.a.string,cssModule:oT.a.object,close:oT.a.bool,color:oT.a.string,disabled:oT.a.bool,innerRef:oT.a.oneOfType([oT.a.object,oT.a.func,oT.a.string]),onClick:oT.a.func,outline:oT.a.bool,size:oT.a.string,tag:lT};function OT(e){var t=Object(s.useCallback)((function(t){if(!e.disabled)return e.onClick?e.onClick(t):void 0;t.preventDefault()}),[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,a=e.close,c=e.cssModule,u=e.color,d=void 0===u?"secondary":u,p=e.outline,f=e.size,h=e.tag,m=void 0===h?"button":h,g=e.innerRef,b=yT(e,bT);if(a)return l.a.createElement(gT,b);var v="btn".concat(p?"-outline":"","-").concat(d),y=aT(ob()(i,"btn",v,!!f&&"btn-".concat(f),!!o&&"d-block w-100",{active:n,disabled:e.disabled}),c);return b.href&&"button"===m&&(m="a"),l.a.createElement(m,vT({type:"button"===m&&b.onClick?"button":void 0},b,{className:y,ref:g,onClick:t,"aria-label":r}))}OT.propTypes=xT;var ET=OT,wT="https://js.stripe.com/v3",jT=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,ST="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",TT=null,kT=function(e){return null!==TT||(TT=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(ST),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(wT,'"]')),t=0;t<e.length;t++){var n=e[t];if(jT.test(n.src))return n}return null}();r&&e?console.warn(ST):r||(r=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(wT).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n}(e)),r.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),r.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(o){return void n(o)}else t(null)}))),TT},CT=Promise.resolve().then((function(){return kT(null)})),_T=!1;CT.catch((function(e){_T||console.warn(e)}));const NT=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_T=!0;var r=Date.now();return CT.then((function(e){return function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(r,n),r}(e,t,r)}))}("pk_test_51LPLELC4gpAfet0jltzmm7ArcD0opPHQ36Cpj2OtLkb8LyviuBOwU50pxtfrgV4WOk8hmH60PFwnIBWigyRnYj8w002O07a0dI");var AT,RT,IT=ae("store")(ee((e=>{const[t,n]=Object(s.useState)(null);return Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("h3",{children:"Payment Details"}),Object(Ht.jsx)(ET,{onClick:async()=>{console.log("handleSubmit called");const t=await NT;console.log("stripePromise loaded");const n=await e.store.api.post("/user/create-setup-intent",{customerId:e.store.profile.customerId});console.log("Setup Intent response:",n);const r=n.data.client_secret,o=n.data.id;console.log("Setup Intent created:",o,r);const i=t.elements().create("card"),{error:a,paymentMethod:s}=await t.createPaymentMethod({type:"card",card:i,billing_details:{name:e.store.profile.name,email:e.store.profile.email}});if(console.log("createPaymentMethod response:",a,s),a)console.log("Error:",a);else{const{error:e}=await t.confirmCardSetup(`${o}_secret_${r}`,{payment_method:s.id});console.log("confirmCardSetup response:",e),e?console.log("Error:",e):console.log("Card updated successfully!")}},children:"Update Card"}),t&&Object(Ht.jsx)("div",{className:"text-danger mt-3",children:t})]})}))),PT=(n.p,n.p,n.p,n.p,n.p,n.p+"static/media/hyde.f517524a.png"),DT=(n.p,n.p,n.p,n.p,n.p,n.p,n.p+"static/media/animalfarm.8dcd8fa5.png"),LT=(n.p,n.p,n.p,n.p,n.p,n.p,n.p,n.p+"static/media/handwriting.149cd796.png");n.p,n.p,n.p,n.p;ae("store")(AT=ee((RT=class extends s.Component{get permissions(){return this.props.store.tools.filter((e=>e.permissions.some((e=>this.props.store.profile.permissions.includes(e)))))}get beta(){return this.permissions.filter((e=>"Beta"===e.category))}get experimental(){return[...this.permissions.filter((e=>"Experimental"===e.category)),{title:"Turn Handwritten Scripts into Text!",category:"Experimental",to:"/writing/handwritingtool",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",Icon:null}]}get examPaperGenerators(){return this.permissions.filter((e=>"ExamPaperGenerators"===e.category))}get generators(){return this.permissions.filter((e=>"Generators"===e.category))}get AQA(){return this.permissions.filter((e=>"AQA"===e.category))}get edexcel(){return this.permissions.filter((e=>"Edexcel"===e.category))}get cantab(){return this.permissions.filter((e=>"Cantab"===e.category))}get edexhist(){return this.permissions.filter((e=>"EdexHist"===e.category))}get edexecon(){return this.permissions.filter((e=>"EdexEcon"===e.category))}get handwriting(){return this.permissions.filter((e=>"Handwriting"===e.category))}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 ",children:[this.generators.length?Object(Ht.jsx)(Ht.Fragment,{}):null,Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 ",children:[Object(Ht.jsx)("div",{className:"title-container",children:Object(Ht.jsx)("h2",{className:"title-text title-bubble",children:"Mark GCSE & IGCSE responses across a number of exam boards"})}),Object(Ht.jsxs)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[Object(Ht.jsxs)(Tr,{to:"/aqa-english",children:[Object(Ht.jsx)("img",{className:"nine-plus-img",src:bu,alt:"Nine Plus"}),Object(Ht.jsx)("button",{className:"nine-plus-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]}),Object(Ht.jsxs)(Tr,{to:"/cantab-english",children:[Object(Ht.jsx)("img",{className:"ten-plus-img",src:vu,alt:"Ten Plus"}),Object(Ht.jsx)("button",{className:"ten-plus-btn bg-purple-500 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]}),Object(Ht.jsxs)(Tr,{to:"/edexcel-english",children:[Object(Ht.jsx)("img",{className:"handwriting-img",src:yu,alt:"Handwriting"}),Object(Ht.jsx)("button",{className:"handwriting-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]}),Object(Ht.jsxs)(Tr,{to:"/eduqas-english",children:[Object(Ht.jsx)("img",{className:"eleven-plus-img",src:Ou,alt:"Six Plus"}),Object(Ht.jsx)("button",{className:"eleven-plus-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]}),Object(Ht.jsxs)(Tr,{to:"/edexcel-history",children:[Object(Ht.jsx)("img",{className:"six-plus-img",src:Su,alt:"Six Plus"}),Object(Ht.jsx)("button",{className:"six-plus-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]})]}),Object(Ht.jsx)("h2",{className:"title-text second-title-bubble",children:" A Level marking tools "}),Object(Ht.jsxs)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:[Object(Ht.jsxs)(Tr,{to:"/english-aqa",children:[Object(Ht.jsx)("img",{className:"ten-plus-img",src:Uu,alt:"Seven Plus"}),Object(Ht.jsx)("button",{className:"ten-plus-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]}),Object(Ht.jsxs)(Tr,{to:"/edexcel-economics",children:[Object(Ht.jsx)("img",{className:"seven-plus-img",src:Vu,alt:"Seven Plus"}),Object(Ht.jsx)("button",{className:"seven-plus-btn bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Browse"})]})]}),Object(Ht.jsx)("h2",{className:"title-text ks3-title-bubble",children:" KS3 marking tools "}),Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 custom-grid",children:Object(Ht.jsxs)(Tr,{to:"/ks3-language",children:[Object(Ht.jsx)("img",{className:"ks3-lang-img",src:vd,alt:"Language"}),Object(Ht.jsx)("button",{className:"ks3-lang-btn bg-custom-color hover:bg-custom-hover text-white font-bold py-2 px-4 rounded",children:"Language"})]})}),this.experimental.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(MT,{}),Object(Ht.jsx)(FT,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)($T,{children:this.experimental.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[0===t?Object(Ht.jsx)("img",{src:LT,alt:e.title,className:"tool-image"}):1===t||2===t||3===t||4===t||5===t||6===t||7===t||8===t?Object(Ht.jsx)("img",{src:Vu,alt:e.title,className:"tool-image"}):null,Object(Ht.jsx)(BT,{group:e.category,title:e.title,to:e.to,Icon:e.Icon,desc:e.desc,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(MT,{})]}):null]})]})]})}},le(RT.prototype,"permissions",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"permissions"),RT.prototype),le(RT.prototype,"beta",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"beta"),RT.prototype),le(RT.prototype,"experimental",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"experimental"),RT.prototype),le(RT.prototype,"examPaperGenerators",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"examPaperGenerators"),RT.prototype),le(RT.prototype,"generators",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"generators"),RT.prototype),le(RT.prototype,"AQA",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"AQA"),RT.prototype),le(RT.prototype,"edexcel",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"edexcel"),RT.prototype),le(RT.prototype,"cantab",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"cantab"),RT.prototype),le(RT.prototype,"edexhist",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"edexhist"),RT.prototype),le(RT.prototype,"edexecon",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"edexecon"),RT.prototype),le(RT.prototype,"handwriting",[p.g],Object.getOwnPropertyDescriptor(RT.prototype,"handwriting"),RT.prototype),AT=RT))||AT);const MT=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[" ",Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),FT=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6 text-center",children:t})},$T=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},BT=e=>{let{Icon:t,title:n,desc:r,to:o,group:i,fromColor:a,toColor:s}=e;return Object(Ht.jsx)(Tr,{to:o||"/",className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105  hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${a||"green-500"} font-semibold leading-none`,children:i||"New"}),Object(Ht.jsx)("div",{href:"#",className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsxs)("p",{className:"mt-1 pr-1 text-sm ",children:[r," "]})]})})})};var UT;n(193);ae("store")(UT=ee(UT=class extends s.Component{constructor(){super(...arguments),this.state={email:"",message:"",errorMessage:""},this.handleSubmit=async e=>{try{e.preventDefault(),ay.open({message:"Thank you! If you have an account with us, you will soon receive an email with instructions to reset your password."});const{store:t}=this.props,n=await t.api.post("/auth/reset-password",{email:this.state.email});if(200===n.status&&""!==this.state.email){(await n.json()).message&&this.setState({message:"Thank you! If you have an account with us, you will soon receive an email with instructions to reset your password."})}}catch(t){console.log(t),t.response.data.message&&this.setState({errorMessage:t.response.data.message})}},this.handleChange=e=>{this.setState({email:e.target.value})}}render(){return Object(Ht.jsxs)("div",{className:"password-reset-container",children:[Object(Ht.jsxs)("form",{className:"password-reset-form",onSubmit:this.handleSubmit,children:[Object(Ht.jsx)("div",{className:"password-reset-ornamental-break"}),Object(Ht.jsx)("p",{className:"password-reset-text",children:"Kindly provide your email address and we will promptly send you a secure link to reset your password."}),Object(Ht.jsx)("input",{className:"password-reset-email-input",type:"email",placeholder:"Email",value:this.state.email,onChange:this.handleChange}),Object(Ht.jsx)("button",{className:"password-reset-submit-button",type:"submit",children:"Submit"})]}),this.state.message&&Object(Ht.jsx)("div",{className:"messageContainer",children:Object(Ht.jsx)("p",{className:"message",children:this.state.message})}),this.state.errorMessage&&Object(Ht.jsx)("div",{className:"errorMessageContainer",children:Object(Ht.jsx)("p",{className:"errorMessage",children:this.state.errorMessage})})]})}})||UT);var HT=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}));var zT=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var GT=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"}))}));const WT=e=>{let{href:t,children:n}=e;return Object(Ht.jsx)("a",{href:t,className:"mx-2 mb-2 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center whitespace-nowrap",children:n})};var VT=()=>{const e=yr();if(["/my-profile","/my-profile/pricing","/my-profile/referral"].some((t=>e.pathname===t||e.pathname.endsWith(t))))return null;const t=e.pathname.split("/"),n=t.slice(0,-1).join("/"),r=t[t.length-1].replace(/hand|batch|word|multi|zip$/,""),o=[{suffix:"",text:"Single Essay Marking: Typed"},{suffix:"hand",text:"Single Essay Marking: Handwritten Script"},{suffix:"batch",text:"Batch Marking: Typed Essays"},{suffix:"word",text:"Batch Marking: Typed Essays in Word"},{suffix:"multi",text:"Batch Marking: Handwritten Scripts"},{suffix:"zip",text:"Batch Marking: Handwritten Scripts - Barcoded Single PDF"}].map((e=>({path:`${n}/${r}${e.suffix}`,text:e.text})));return Object(Ht.jsx)("div",{className:"flex flex-wrap justify-center items-center",children:o.filter((t=>t.path!==e.pathname)).map(((e,t)=>Object(Ht.jsx)(WT,{href:e.path,children:e.text},t)))})};function qT(e){let{title:t,Icon:n,onClick:r,currentOption:o,color:i}=e,a=o===t;return Object(Ht.jsxs)("div",{className:`lg:py-4 lg:px-8 py-3 px-6 flex transition text-${a?`${i||"green"}-800`:"gray-500"} font-medium border-b -mb-px rounded-t-lg border-${a?`${i||"green"}-500`:"gray-400"} bg-${a?`${i||"green"}-100`:"white"} hover:bg-${a?`${i||"green"}-200`:"gray-100"} cursor-pointer `,onClick:()=>r(t),children:[Object(Ht.jsx)("div",{className:`md:mr-4  transition flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${a?`${i||"green"}`:"gray"}-300 text-${a?`${i||"green"}`:"gray"}-600`,children:Object(Ht.jsx)(n,{className:`h-4 w-4 text-${a?`${i||"green"}`:"gray"}-600`,"aria-hidden":"true"})}),Object(Ht.jsx)("div",{className:"hidden md:block",children:t})]})}var KT=function(e){let{title:t,category:n,desc:r,Icon:o,options:i,currentOption:a,fromColor:s,children:l}=e;const c=yr();return Object(Ht.jsxs)("div",{className:"bg-white md:px-8 pt-4 shadow-lg mb-px border-b border-gray-300",children:[Object(Ht.jsxs)("div",{className:"container mx-auto px-4 md:px-28 flex items-center",children:[o&&Object(Ht.jsx)("div",{className:`mr-4 hidden md:inline-block text-${s||"green-500"}`,children:Object(Ht.jsx)(o,{className:"h-16 w-16 mb-4 mt-4"})}),Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("div",{className:`text-sm font-medium text-${s||"green-500"} -mb-1`,children:n}),Object(Ht.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl text-gray-700 flex align-center -mb-1",children:t}),Object(Ht.jsx)("p",{className:"text-base text-gray-500 text-sm md:text-md lg:text-lg md:mt-2  lg:mx-0 ",children:r})]}),Object(Ht.jsx)("nav",{children:Object(Ht.jsx)(VT,{})}),"/writing/tarigo"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigo2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigo3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/tarigo2"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigo",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigo3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/tarigo3"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigo",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigo2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"})]}),"/writing/tarigosample"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigosample2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigosample3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/tarigosample2"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigosample",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigosample3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/tarigosample3"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/tarigosample",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/tarigosample2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"})]}),"/writing/eaton"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/eaton2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"}),Object(Ht.jsx)("a",{href:"/writing/eaton3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/eaton2"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/eaton",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/eaton3",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking with Word"})]}),"/writing/eaton3"===c.pathname&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("a",{href:"/writing/eaton",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Single Essay Marking"}),Object(Ht.jsx)("a",{href:"/writing/eaton2",className:"ml-4 bg-green-500 hover:bg-green-600 text-white rounded-full px-3 sm:px-4 md:px-5 py-2 text-center flex justify-center items-center",children:"Batch Marking"})]})]}),Object(Ht.jsxs)("div",{className:"container mx-auto px-4 md:px-28 pt-4 select-none ",children:[i&&Object(Ht.jsx)("div",{className:"align-bottom bg-white text-left transform transition-all sm:align-middle transition inline-flex ",children:i.map(((e,t)=>Object(Ht.jsx)(qT,{currentOption:a,...e},t)))}),l]})]})};var YT=function(e){let{title:t,onClick:n,Icon:r,disabled:o,children:i}=e;return Object(Ht.jsxs)("button",{className:o?"select-none py-3 px-6 border-t-2 border-gray-300 bg-gray-300 hover:bg-gray-400 disabled hover:to-gray-700 text-white  rounded-md flex md:inline-flex font-medium text-lg cursor-pointer mt-4 md:mx-0 transition":"select-none py-3 px-6 border-t-2 border-gray-400 bg-gray-500 hover:bg-gray-600 hover:via-blue-700 hover:to-gray-700 text-white  rounded-md flex md:inline-flex font-medium text-lg cursor-pointer mt-4 md:mx-0 transition",onClick:o?null:n,children:[r&&Object(Ht.jsx)(r,{className:o?"h-6 w-6 mr-2 text-gray-100":"h-6 w-6 mr-2 text-gray-200"}),t,i]})},XT=n(96),ZT=n.n(XT);var QT=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var JT=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}))}));var ek=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),tk=n(72),nk=n(80),rk=n.n(nk),ok=n(158),ik=n.n(ok);function ak(e){if(e)throw e}var sk=n(97),lk=n.n(sk),ck=n(121),uk=n.n(ck);function dk(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)}function pk(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(r){const a=e[++o];let s=-1;if(r)i(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(a,i):c instanceof Error?i(c):a(c))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t(e,...o)}}function a(e){i(null,e)}}(a,t)(...c):i(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function fk(e){return mk(e&&e.line)+":"+mk(e&&e.column)}function hk(e){return fk(e&&e.start)+"-"+fk(e&&e.end)}function mk(e){return e&&"number"===typeof e?e:1}class gk extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}var i;t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=((i=t)&&"object"===typeof i?"position"in i||"type"in i?hk(i.position):"start"in i||"end"in i?hk(i):"line"in i||"column"in i?fk(i):"":"")||"1:1",this.message="object"===typeof e?e.message:e,this.stack="","object"===typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}gk.prototype.file="",gk.prototype.name="",gk.prototype.reason="",gk.prototype.message="",gk.prototype.stack="",gk.prototype.fatal=null,gk.prototype.column=null,gk.prototype.line=null,gk.prototype.source=null,gk.prototype.ruleId=null,gk.prototype.position=null;const bk={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');vk(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(vk(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){vk(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)vk(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){vk(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function vk(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yk={cwd:function(){return"/"}};function xk(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function Ok(e){if("string"===typeof e)e=new URL(e);else if(!xk(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Ek=["history","path","basename","stem","extname","dirname"];class wk{constructor(e){let t;t=e?"string"===typeof e||function(e){return lk()(e)}(e)?{value:e}:xk(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=yk.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<Ek.length;){const e=Ek[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Ek.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){xk(e)&&(e=Ok(e)),Sk(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"===typeof this.path?bk.dirname(this.path):void 0}set dirname(e){Tk(this.basename,"dirname"),this.path=bk.join(e||"",this.basename)}get basename(){return"string"===typeof this.path?bk.basename(this.path):void 0}set basename(e){Sk(e,"basename"),jk(e,"basename"),this.path=bk.join(this.dirname||"",e)}get extname(){return"string"===typeof this.path?bk.extname(this.path):void 0}set extname(e){if(jk(e,"extname"),Tk(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bk.join(this.dirname,this.stem+(e||""))}get stem(){return"string"===typeof this.path?bk.basename(this.path,this.extname):void 0}set stem(e){Sk(e,"stem"),jk(e,"stem"),this.path=bk.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new gk(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function jk(e,t){if(e&&e.includes(bk.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bk.sep+"`")}function Sk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Tk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const kk=function e(){const t=pk(),n=[];let r,o={},i=-1;return a.data=function(e,t){if("string"===typeof e)return 2===arguments.length?(Rk("data",r),o[e]=t,a):Ck.call(o,e)&&o[e]||null;if(e)return Rk("data",r),o=e,a;return o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i<n.length;){const[e,...r]=n[i];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(a,...r);"function"===typeof o&&t.use(o)}return r=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];let l;if(Rk("use",r),null===e||void 0===e);else if("function"===typeof e)p(e,...i);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):u(e)}l&&(o.settings=Object.assign(o.settings||{},l));return a;function c(e){if("function"===typeof e)p(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;p(t,...n)}else u(e)}}function u(e){d(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function d(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function p(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(dk(r[1])&&dk(t)&&(t=uk()(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=Dk(e),n=a.Parser;if(Nk("parse",n),_k(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=Dk(t),r=a.Compiler;if(Ak("stringify",r),Ik(e),_k(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,n,r){Ik(e),a.freeze(),r||"function"!==typeof n||(r=n,n=void 0);if(!r)return new Promise(o);function o(o,i){function a(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}t.run(e,Dk(n),a)}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,o),Pk("runSync","run",r),n;function o(e,t){ak(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),Nk("process",a.Parser),Ak("process",a.Compiler),!t)return new Promise(n);function n(n,r){const o=Dk(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=a.stringify(t,n);void 0===o||null===o||("string"===typeof(r=o)||lk()(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),Nk("processSync",a.Parser),Ak("processSync",a.Compiler);const n=Dk(e);return a.process(n,r),Pk("processSync","process",t),n;function r(e){t=!0,ak(e)}},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(uk()(!0,{},o)),t}}().freeze(),Ck={}.hasOwnProperty;function _k(e,t){return"function"===typeof e&&e.prototype&&(function(e){let t;for(t in e)if(Ck.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Nk(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ak(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Rk(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ik(e){if(!dk(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Pk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Dk(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new wk(e)}var Lk=n(160),Mk=n.n(Lk);class Fk{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function $k(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Fk(n,r,t)}function Bk(e){return e.toLowerCase()}Fk.prototype.property={},Fk.prototype.normal={},Fk.prototype.space=null;class Uk{constructor(e,t){this.property=e,this.attribute=t}}Uk.prototype.space=null,Uk.prototype.boolean=!1,Uk.prototype.booleanish=!1,Uk.prototype.overloadedBoolean=!1,Uk.prototype.number=!1,Uk.prototype.commaSeparated=!1,Uk.prototype.spaceSeparated=!1,Uk.prototype.commaOrSpaceSeparated=!1,Uk.prototype.mustUseProperty=!1,Uk.prototype.defined=!1;let Hk=0;const zk=Xk(),Gk=Xk(),Wk=Xk(),Vk=Xk(),qk=Xk(),Kk=Xk(),Yk=Xk();function Xk(){return 2**++Hk}const Zk=Object.keys(o);class Qk extends Uk{constructor(e,t,n,r){let i=-1;if(super(e,t),Jk(this,"space",r),"number"===typeof n)for(;++i<Zk.length;){const e=Zk[i];Jk(this,Zk[i],(n&o[e])===o[e])}}}function Jk(e,t,n){n&&(e[t]=n)}Qk.prototype.defined=!0;const eC={}.hasOwnProperty;function tC(e){const t={},n={};let r;for(r in e.properties)if(eC.call(e.properties,r)){const o=e.properties[r],i=new Qk(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Bk(r)]=r,n[Bk(i.attribute)]=r}return new Fk(t,n,e.space)}const nC=tC({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rC=tC({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function oC(e,t){return t in e?e[t]:t}function iC(e,t){return oC(e,t.toLowerCase())}const aC=tC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:iC,properties:{xmlns:null,xmlnsXLink:null}}),sC=tC({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Gk,ariaAutoComplete:null,ariaBusy:Gk,ariaChecked:Gk,ariaColCount:Vk,ariaColIndex:Vk,ariaColSpan:Vk,ariaControls:qk,ariaCurrent:null,ariaDescribedBy:qk,ariaDetails:null,ariaDisabled:Gk,ariaDropEffect:qk,ariaErrorMessage:null,ariaExpanded:Gk,ariaFlowTo:qk,ariaGrabbed:Gk,ariaHasPopup:null,ariaHidden:Gk,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qk,ariaLevel:Vk,ariaLive:null,ariaModal:Gk,ariaMultiLine:Gk,ariaMultiSelectable:Gk,ariaOrientation:null,ariaOwns:qk,ariaPlaceholder:null,ariaPosInSet:Vk,ariaPressed:Gk,ariaReadOnly:Gk,ariaRelevant:null,ariaRequired:Gk,ariaRoleDescription:qk,ariaRowCount:Vk,ariaRowIndex:Vk,ariaRowSpan:Vk,ariaSelected:Gk,ariaSetSize:Vk,ariaSort:null,ariaValueMax:Vk,ariaValueMin:Vk,ariaValueNow:Vk,ariaValueText:null,role:null}}),lC=tC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:iC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kk,acceptCharset:qk,accessKey:qk,action:null,allow:null,allowFullScreen:zk,allowPaymentRequest:zk,allowUserMedia:zk,alt:null,as:null,async:zk,autoCapitalize:null,autoComplete:qk,autoFocus:zk,autoPlay:zk,blocking:qk,capture:null,charSet:null,checked:zk,cite:null,className:qk,cols:Vk,colSpan:null,content:null,contentEditable:Gk,controls:zk,controlsList:qk,coords:Vk|Kk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zk,defer:zk,dir:null,dirName:null,disabled:zk,download:Wk,draggable:Gk,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zk,formTarget:null,headers:qk,height:Vk,hidden:zk,high:Vk,href:null,hrefLang:null,htmlFor:qk,httpEquiv:qk,id:null,imageSizes:null,imageSrcSet:null,inert:zk,inputMode:null,integrity:null,is:null,isMap:zk,itemId:null,itemProp:qk,itemRef:qk,itemScope:zk,itemType:qk,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zk,low:Vk,manifest:null,max:null,maxLength:Vk,media:null,method:null,min:null,minLength:Vk,multiple:zk,muted:zk,name:null,nonce:null,noModule:zk,noValidate:zk,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:zk,optimum:Vk,pattern:null,ping:qk,placeholder:null,playsInline:zk,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zk,referrerPolicy:null,rel:qk,required:zk,reversed:zk,rows:Vk,rowSpan:Vk,sandbox:qk,scope:null,scoped:zk,seamless:zk,selected:zk,shadowRootClonable:zk,shadowRootDelegatesFocus:zk,shadowRootMode:null,shape:null,size:Vk,sizes:null,slot:null,span:Vk,spellCheck:Gk,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Vk,step:null,style:null,tabIndex:Vk,target:null,title:null,translate:null,type:null,typeMustMatch:zk,useMap:null,value:Gk,width:Vk,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qk,axis:null,background:null,bgColor:null,border:Vk,borderColor:null,bottomMargin:Vk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:zk,declare:zk,event:null,face:null,frame:null,frameBorder:null,hSpace:Vk,leftMargin:Vk,link:null,longDesc:null,lowSrc:null,marginHeight:Vk,marginWidth:Vk,noResize:zk,noHref:zk,noShade:zk,noWrap:zk,object:null,profile:null,prompt:null,rev:null,rightMargin:Vk,rules:null,scheme:null,scrolling:Gk,standby:null,summary:null,text:null,topMargin:Vk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Vk,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:zk,disableRemotePlayback:zk,prefix:null,property:null,results:Vk,security:null,unselectable:null}}),cC=tC({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:oC,properties:{about:Yk,accentHeight:Vk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Vk,amplitude:Vk,arabicForm:null,ascent:Vk,attributeName:null,attributeType:null,azimuth:Vk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Vk,by:null,calcMode:null,capHeight:Vk,className:qk,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Vk,diffuseConstant:Vk,direction:null,display:null,dur:null,divisor:Vk,dominantBaseline:null,download:zk,dx:null,dy:null,edgeMode:null,editable:null,elevation:Vk,enableBackground:null,end:null,event:null,exponent:Vk,externalResourcesRequired:null,fill:null,fillOpacity:Vk,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kk,g2:Kk,glyphName:Kk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Vk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Vk,horizOriginX:Vk,horizOriginY:Vk,id:null,ideographic:Vk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Vk,k:Vk,k1:Vk,k2:Vk,k3:Vk,k4:Vk,kernelMatrix:Yk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Vk,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Vk,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Vk,overlineThickness:Vk,paintOrder:null,panose1:null,path:null,pathLength:Vk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qk,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Vk,pointsAtY:Vk,pointsAtZ:Vk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yk,rev:Yk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yk,requiredFeatures:Yk,requiredFonts:Yk,requiredFormats:Yk,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Vk,specularExponent:Vk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Vk,strikethroughThickness:Vk,string:null,stroke:null,strokeDashArray:Yk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Vk,strokeOpacity:Vk,strokeWidth:null,style:null,surfaceScale:Vk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yk,tabIndex:Vk,tableValues:null,target:null,targetX:Vk,targetY:Vk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yk,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Vk,underlineThickness:Vk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Vk,values:null,vAlphabetic:Vk,vMathematical:Vk,vectorEffect:null,vHanging:Vk,vIdeographic:Vk,version:null,vertAdvY:Vk,vertOriginX:Vk,vertOriginY:Vk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Vk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),uC=$k([rC,nC,aC,sC,lC],"html"),dC=$k([rC,nC,aC,sC,cC],"svg"),pC=/^data[-\w.:]+$/i,fC=/-[a-z]/g,hC=/[A-Z]/g;function mC(e,t){const n=Bk(t);let r=t,o=Uk;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&pC.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(fC,bC);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!fC.test(e)){let n=e.replace(hC,gC);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Qk}return new o(r,t)}function gC(e){return"-"+e.toLowerCase()}function bC(e){return e.charAt(1).toUpperCase()}const vC=/[#.]/g;function yC(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xC(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim();!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}const OC=new Set(["menu","submit","reset","button"]),EC={}.hasOwnProperty;function wC(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,o){let i,a=-1;for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];if(void 0===n||null===n)i={type:"root",children:[]},l.unshift(o);else if(i=function(e,t){const n=e||"",r={};let o,i,a=0;for(;a<n.length;){vC.lastIndex=a;const e=vC.exec(n),t=n.slice(a,e?e.index:n.length);t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,a+=t.length),e&&(o=e[0],a++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}(n,t),i.tagName=i.tagName.toLowerCase(),r&&EC.call(r,i.tagName)&&(i.tagName=r[i.tagName]),function(e,t){if(null===e||void 0===e||"object"!==typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!==typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return OC.has(e.type.toLowerCase());return!("value"in e)}(o,i.tagName)){let t;for(t in o)EC.call(o,t)&&jC(e,i.properties,t,o[t])}else l.unshift(o);for(;++a<l.length;)SC(i.children,l[a]);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function jC(e,t,n,r){const o=mC(e,n);let i,a=-1;if(void 0!==r&&null!==r){if("number"===typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"===typeof r?r:"string"===typeof r?o.spaceSeparated?yC(r):o.commaSeparated?xC(r):o.commaOrSpaceSeparated?yC(xC(r).join(" ")):TC(o,o.property,r):Array.isArray(r)?r.concat():"style"===o.property?function(e){const t=[];let n;for(n in e)EC.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[];for(;++a<i.length;)e[a]=TC(o,o.property,i[a]);i=e}"className"===o.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[o.property]=i}}function SC(e,t){let n=-1;if(void 0===t||null===t);else if("string"===typeof t||"number"===typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)SC(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?SC(e,t.children):e.push(t)}}function TC(e,t,n){if("string"===typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Bk(n)===Bk(t)))return!0}return n}const kC=wC(dC,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),CC=wC(uC,"div");const _C="http://www.w3.org/2000/svg",NC={}.hasOwnProperty,AC=Object.prototype;function RC(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},PC(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:IC(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:function(e){let t=-1;if("number"===typeof e&&e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}return-1}}}(t),o=r.toPoint(0),i=r.toPoint(t.length);n.position={start:o,end:i}}return n}case"#documentType":return n={type:"doctype"},PC(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},PC(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===_C?dC:uC;let r=-1;const o={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;NC.call(AC,n)||(o[n]=e.value)}const i="svg"===e.schema.space?kC:CC,a=i(t.tagName,o,IC(e,t.childNodes));if(PC(e,t,a),"template"===a.tagName){const n=t,r=n.sourceCodeLocation,o=r&&r.startTag&&DC(r.startTag),i=r&&r.endTag&&DC(r.endTag),s=RC(e,n.content);o&&i&&e.file&&(s.position={start:o.end,end:i.start}),a.content=s}return e.schema=n,a}(e,t),n}}function IC(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=RC(e,t[n]);return r}function PC(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=DC(n);if("element"===t.type){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const r={};let o;if(n.attrs)for(o in n.attrs)NC.call(n.attrs,o)&&(r[mC(e.schema,o).property]=DC(n.attrs[o]));t.data={position:{opening:DC(n.startTag),closing:n.endTag?DC(n.endTag):null,properties:r}}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function DC(e){const t=LC({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=LC({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function LC(e){return e.line&&e.column?e:void 0}const MC={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},FC="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",$C={2:!0,1:!1,0:null};class BC{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function UC(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new BC(n,r,t)}function HC(e){return e.toLowerCase()}BC.prototype.property={},BC.prototype.normal={},BC.prototype.space=null;class zC{constructor(e,t){this.property=e,this.attribute=t}}zC.prototype.space=null,zC.prototype.boolean=!1,zC.prototype.booleanish=!1,zC.prototype.overloadedBoolean=!1,zC.prototype.number=!1,zC.prototype.commaSeparated=!1,zC.prototype.spaceSeparated=!1,zC.prototype.commaOrSpaceSeparated=!1,zC.prototype.mustUseProperty=!1,zC.prototype.defined=!1;let GC=0;const WC=QC(),VC=QC(),qC=QC(),KC=QC(),YC=QC(),XC=QC(),ZC=QC();function QC(){return 2**++GC}const JC=Object.keys(i);class e_ extends zC{constructor(e,t,n,r){let o=-1;if(super(e,t),t_(this,"space",r),"number"===typeof n)for(;++o<JC.length;){const e=JC[o];t_(this,JC[o],(n&i[e])===i[e])}}}function t_(e,t,n){n&&(e[t]=n)}e_.prototype.defined=!0;const n_={}.hasOwnProperty;function r_(e){const t={},n={};let r;for(r in e.properties)if(n_.call(e.properties,r)){const o=e.properties[r],i=new e_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[HC(r)]=r,n[HC(i.attribute)]=r}return new BC(t,n,e.space)}const o_=r_({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),i_=r_({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function a_(e,t){return t in e?e[t]:t}function s_(e,t){return a_(e,t.toLowerCase())}const l_=r_({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:s_,properties:{xmlns:null,xmlnsXLink:null}}),c_=r_({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:VC,ariaAutoComplete:null,ariaBusy:VC,ariaChecked:VC,ariaColCount:KC,ariaColIndex:KC,ariaColSpan:KC,ariaControls:YC,ariaCurrent:null,ariaDescribedBy:YC,ariaDetails:null,ariaDisabled:VC,ariaDropEffect:YC,ariaErrorMessage:null,ariaExpanded:VC,ariaFlowTo:YC,ariaGrabbed:VC,ariaHasPopup:null,ariaHidden:VC,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:YC,ariaLevel:KC,ariaLive:null,ariaModal:VC,ariaMultiLine:VC,ariaMultiSelectable:VC,ariaOrientation:null,ariaOwns:YC,ariaPlaceholder:null,ariaPosInSet:KC,ariaPressed:VC,ariaReadOnly:VC,ariaRelevant:null,ariaRequired:VC,ariaRoleDescription:YC,ariaRowCount:KC,ariaRowIndex:KC,ariaRowSpan:KC,ariaSelected:VC,ariaSetSize:KC,ariaSort:null,ariaValueMax:KC,ariaValueMin:KC,ariaValueNow:KC,ariaValueText:null,role:null}}),u_=r_({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:s_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:XC,acceptCharset:YC,accessKey:YC,action:null,allow:null,allowFullScreen:WC,allowPaymentRequest:WC,allowUserMedia:WC,alt:null,as:null,async:WC,autoCapitalize:null,autoComplete:YC,autoFocus:WC,autoPlay:WC,blocking:YC,capture:null,charSet:null,checked:WC,cite:null,className:YC,cols:KC,colSpan:null,content:null,contentEditable:VC,controls:WC,controlsList:YC,coords:KC|XC,crossOrigin:null,data:null,dateTime:null,decoding:null,default:WC,defer:WC,dir:null,dirName:null,disabled:WC,download:qC,draggable:VC,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:WC,formTarget:null,headers:YC,height:KC,hidden:WC,high:KC,href:null,hrefLang:null,htmlFor:YC,httpEquiv:YC,id:null,imageSizes:null,imageSrcSet:null,inert:WC,inputMode:null,integrity:null,is:null,isMap:WC,itemId:null,itemProp:YC,itemRef:YC,itemScope:WC,itemType:YC,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:WC,low:KC,manifest:null,max:null,maxLength:KC,media:null,method:null,min:null,minLength:KC,multiple:WC,muted:WC,name:null,nonce:null,noModule:WC,noValidate:WC,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:WC,optimum:KC,pattern:null,ping:YC,placeholder:null,playsInline:WC,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:WC,referrerPolicy:null,rel:YC,required:WC,reversed:WC,rows:KC,rowSpan:KC,sandbox:YC,scope:null,scoped:WC,seamless:WC,selected:WC,shadowRootClonable:WC,shadowRootDelegatesFocus:WC,shadowRootMode:null,shape:null,size:KC,sizes:null,slot:null,span:KC,spellCheck:VC,src:null,srcDoc:null,srcLang:null,srcSet:null,start:KC,step:null,style:null,tabIndex:KC,target:null,title:null,translate:null,type:null,typeMustMatch:WC,useMap:null,value:VC,width:KC,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:YC,axis:null,background:null,bgColor:null,border:KC,borderColor:null,bottomMargin:KC,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:WC,declare:WC,event:null,face:null,frame:null,frameBorder:null,hSpace:KC,leftMargin:KC,link:null,longDesc:null,lowSrc:null,marginHeight:KC,marginWidth:KC,noResize:WC,noHref:WC,noShade:WC,noWrap:WC,object:null,profile:null,prompt:null,rev:null,rightMargin:KC,rules:null,scheme:null,scrolling:VC,standby:null,summary:null,text:null,topMargin:KC,valueType:null,version:null,vAlign:null,vLink:null,vSpace:KC,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:WC,disableRemotePlayback:WC,prefix:null,property:null,results:KC,security:null,unselectable:null}}),d_=r_({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:a_,properties:{about:ZC,accentHeight:KC,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:KC,amplitude:KC,arabicForm:null,ascent:KC,attributeName:null,attributeType:null,azimuth:KC,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:KC,by:null,calcMode:null,capHeight:KC,className:YC,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:KC,diffuseConstant:KC,direction:null,display:null,dur:null,divisor:KC,dominantBaseline:null,download:WC,dx:null,dy:null,edgeMode:null,editable:null,elevation:KC,enableBackground:null,end:null,event:null,exponent:KC,externalResourcesRequired:null,fill:null,fillOpacity:KC,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:XC,g2:XC,glyphName:XC,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:KC,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:KC,horizOriginX:KC,horizOriginY:KC,id:null,ideographic:KC,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:KC,k:KC,k1:KC,k2:KC,k3:KC,k4:KC,kernelMatrix:ZC,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:KC,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:KC,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:KC,overlineThickness:KC,paintOrder:null,panose1:null,path:null,pathLength:KC,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:YC,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:KC,pointsAtY:KC,pointsAtZ:KC,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ZC,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ZC,rev:ZC,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ZC,requiredFeatures:ZC,requiredFonts:ZC,requiredFormats:ZC,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:KC,specularExponent:KC,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:KC,strikethroughThickness:KC,string:null,stroke:null,strokeDashArray:ZC,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:KC,strokeOpacity:KC,strokeWidth:null,style:null,surfaceScale:KC,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ZC,tabIndex:KC,tableValues:null,target:null,targetX:KC,targetY:KC,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ZC,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:KC,underlineThickness:KC,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:KC,values:null,vAlphabetic:KC,vMathematical:KC,vectorEffect:null,vHanging:KC,vIdeographic:KC,version:null,vertAdvY:KC,vertOriginX:KC,vertOriginY:KC,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:KC,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),p_=UC([i_,o_,l_,c_,u_],"html"),f_=UC([i_,o_,l_,c_,d_],"svg"),h_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],m_={}.hasOwnProperty;const g_=/["&'<>`]/g,b_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,y_=/[|\\{}()[\]^$+*?.]/g,x_=new WeakMap;function O_(e,t){return e=e.replace(t.subset?function(e){let t=x_.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(y_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),x_.set(e,t));return t}(t.subset):g_,n),t.subset||t.escapeOnly?e:e.replace(b_,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(v_,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const E_=/[\dA-Fa-f]/;const w_=/\d/;const j_=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],S_={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},T_=["cent","copy","divide","gt","lt","not","para","times"],k_={}.hasOwnProperty,C_={};let __;for(__ in S_)k_.call(S_,__)&&(C_[S_[__]]=__);const N_=/[^\dA-Za-z]/;function A_(e,t,n){let r,o=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!E_.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const o=String.fromCharCode(e);if(k_.call(C_,o)){const e=C_[o],i="&"+e;return n&&j_.includes(e)&&!T_.includes(e)&&(!r||t&&61!==t&&N_.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!w_.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function R_(e,t){return O_(e,Object.assign({format:A_},t))}function I_(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function P_(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const D_=/^data[-\w.:]+$/i,L_=/-[a-z]/g,M_=/[A-Z]/g;function F_(e){return"-"+e.toLowerCase()}function $_(e){return e.charAt(1).toUpperCase()}function B_(e){return e.join(" ").trim()}function U_(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const H_=G_(1),z_=G_(-1);function G_(e){return function(t,n,r){const o=t?t.children:[];let i=(n||0)+e,a=o&&o[i];if(!r)for(;a&&U_(a);)i+=e,a=o[i];return a}}const W_={}.hasOwnProperty;function V_(e){return function(t,n,r){return W_.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const q_=V_({html:function(e,t,n){const r=H_(n,t);return!r||"comment"!==r.type},head:K_,body:function(e,t,n){const r=H_(n,t);return!r||"comment"!==r.type},p:function(e,t,n){const r=H_(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},li:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&"li"===r.tagName},dt:function(e,t,n){const r=H_(n,t);return r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dd:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},rt:Y_,rp:Y_,optgroup:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},menuitem:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("menuitem"===r.tagName||"hr"===r.tagName||"menu"===r.tagName)},colgroup:K_,caption:K_,thead:function(e,t,n){const r=H_(n,t);return r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},tbody:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},tfoot:function(e,t,n){return!H_(n,t)},tr:function(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&"tr"===r.tagName},td:X_,th:X_});function K_(e,t,n){const r=H_(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&U_(r.value.charAt(0)))}function Y_(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function X_(e,t,n){const r=H_(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const Z_=V_({html:function(e){const t=H_(e,-1);return!t||"comment"!==t.type},head:function(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const e=t[r];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},body:function(e){const t=H_(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&U_(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){const r=z_(n,t),o=H_(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&q_(r,n.children.indexOf(r),n))return!1;return o&&"element"===o.type&&"col"===o.tagName},tbody:function(e,t,n){const r=z_(n,t),o=H_(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&q_(r,n.children.indexOf(r),n))return!1;return o&&"element"===o.type&&"tr"===o.tagName}});const Q_={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function J_(e,t,n){const r=function(e,t){const n=HC(t);let r=t,o=zC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&D_.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(L_,$_);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!L_.test(e)){let n=e.replace(M_,F_);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=e_}return new o(r,t)}(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let a,s=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!==typeof n)&&(n=Boolean(n)):n=!0,void 0===n||null===n||!1===n||"number"===typeof n&&Number.isNaN(n))return"";const l=R_(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Q_.name[o][i]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?P_:B_)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(a=R_(n,Object.assign({},e.settings.characterReferences,{subset:Q_.unquoted[o][i],attribute:!0}))),a!==n&&(e.settings.quoteSmart&&I_(n,s)>I_(n,e.alternative)&&(s=e.alternative),a=s+R_(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?Q_.single:Q_.double)[o][i],attribute:!0}))+s),l+(a?"="+a:a)))}function eN(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?R_(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]})):e.value}const tN=function(e,t){const n=t||{};function r(t){let n=r.invalid;const o=r.handlers;if(t&&m_.call(t,e)){const i=String(t[e]);n=m_.call(o,i)?o[i]:r.unknown}if(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.call(this,t,...a)}}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+R_(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return R_(e,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags;let a="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;"html"===o.space&&"svg"===e.tagName&&(r.schema=f_);const c=function(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(void 0!==t[r]&&null!==t[r]){const o=J_(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):null;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(a=!1),!c&&i&&Z_(e,t,n)||(s.push("<",e.tagName,c?" "+c:""),a&&("svg"===o.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(u),a||i&&q_(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:eN(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:eN}});function nN(e,t,n){return tN(e,t,n,this)}function rN(e){const t=[],n=e&&e.children||[];let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const oN=kk().use((function(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const r=n.fragment?"parseFragment":"parse",o=n.emitParseErrors?function(r){const o=r.code,i=(d=o,d.replace(/-[a-z]/g,(e=>e.charAt(1).toUpperCase()))),a=n[i],s=void 0===a||null===a||a,l="number"===typeof s?s:s?1:0,c={line:r.startLine,column:r.startCol,offset:r.startOffset},u={line:r.endLine,column:r.endCol,offset:r.endOffset};var d;if(l){const e=MC[i]||{reason:"",description:"",url:""},n=t.message(p(e.reason),{start:c,end:u});n.source="parse-error",n.ruleId=o,n.fatal=$C[l],n.note=p(e.description),n.url="url"in e&&!1===e.url?null:FC+o}function p(t){return t.replace(/%c(?:-(\d+))?/g,((t,n)=>{const o=n?-Number.parseInt(n,10):0,i=e.charAt(r.startOffset+o);return"`"===i?"` ` `":i})).replace(/%x/g,(()=>"0x"+e.charCodeAt(r.startOffset).toString(16).toUpperCase()))}}:null;return function(e,t){const n=t||{};let r,o;return"messages"in n?(o=n,r={}):(o=n.file||void 0,r=n),RC({schema:"svg"===r.space?dC:uC,file:o,verbose:r.verbose,location:!1},e)}(new Mk.a({sourceCodeLocationInfo:!0,onParseError:o,scriptingEnabled:!1})[r](e),{space:n.space,file:t,verbose:n.verbose})}})})).use((function(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:function(e){return function(e,t){const n=t||{},r=n.quote||'"',o='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:nN,all:rN,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||h_,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?f_:p_,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,n)}})})).freeze();var iN=n(159),aN=n.n(iN);function sN(e){e.stopPropagation(),e.preventDefault()}class lN{constructor(e){this.elm=void 0,this.start=void 0,this.end=void 0,this.value=void 0;var{selectionStart:t,selectionEnd:n}=e;this.elm=e,this.start=t,this.end=n,this.value=this.elm.value}position(e,t){var{selectionStart:n,selectionEnd:r}=this.elm;return this.start="number"!==typeof e||isNaN(e)?n:e,this.end="number"!==typeof t||isNaN(t)?r:t,this.elm.selectionStart=this.start,this.elm.selectionEnd=this.end,this}insertText(e){return this.elm.focus(),this.elm.setRangeText(e),this.value=this.elm.value,this.position(),this}getSelectedValue(e,t){var{selectionStart:n,selectionEnd:r}=this.elm;return this.value.slice("number"!==typeof e||isNaN(e)?n:e,"number"!==typeof t||isNaN(t)?r:e)}getLineStartNumber(){for(var e=this.start;e>0;)if(e--,"\n"===this.value.charAt(e)){e++;break}return e}getIndentText(){var e=this.getLineStartNumber(),t=this.getSelectedValue(e),n="";return t.replace(/(^(\s)+)/,((e,t)=>n=t)),n}lineStarInstert(e){if(e){var t=this.start,n=this.getLineStartNumber(),r=this.getSelectedValue(n);this.position(n,this.end).insertText(r.split("\n").map((t=>e+t)).join("\n")).position(t+e.length,this.end)}return this}lineStarRemove(e){if(e){var t=this.start,n=this.getLineStartNumber(),r=this.getSelectedValue(n),o=new RegExp("^"+e,"g"),i=t-e.length;o.test(r)||(i=t),this.position(n,this.end).insertText(r.split("\n").map((e=>e.replace(o,""))).join("\n")).position(i,this.end)}}notifyChange(){var e=new Event("input",{bubbles:!0,cancelable:!1});this.elm.dispatchEvent(e)}}var cN={position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},uN={position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",opacity:.8,overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},dN={margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word",outline:0},pN=(n(494),["prefixCls","value","padding","minHeight","placeholder","language","className","style","rehypePlugins","onChange"]),fN=l.a.forwardRef(((e,t)=>{var{prefixCls:n="w-tc-editor",padding:r=10,minHeight:o=16,placeholder:i,language:a,className:l,style:c,rehypePlugins:u,onChange:d}=e,p=ik()(e,pN),[f,h]=Object(s.useState)(e.value||"");Object(s.useEffect)((()=>h(e.value||"")),[e.value]);var m=Object(s.useRef)(null);Object(s.useImperativeHandle)(t,(()=>m.current));var g={paddingTop:r,paddingRight:r,paddingBottom:r,paddingLeft:r},b=Object(s.useMemo)((()=>{return e="<pre aria-hidden=true><code "+(a?'class="language-'+a+'"':"")+" >"+(String(f||"").replace(/```(tsx?|jsx?|html|xml)(.*)\s+([\s\S]*?)(\s.+)?```/g,(e=>e.replace(/[<&"]/g,(e=>({"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[e]))))).replace(/[<&"]/g,(e=>({"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[e])))+"</code><br /></pre>"),void 0===(t=u)&&(t=[[aN.a,{ignoreMissing:!0}]]),oN().data("settings",{fragment:!0}).use([...t]).processSync(""+e).toString();var e,t}),[f,a,u]),v=Object(s.useMemo)((()=>Object(Ht.jsx)("div",{style:rk()({},dN,g,{minHeight:o}),className:n+"-preview "+(a?"language-"+a:""),dangerouslySetInnerHTML:{__html:b}})),[n,a,b]);return Object(Ht.jsxs)("div",{style:rk()({},cN,c),className:n+" "+(l||""),children:[Object(Ht.jsx)("textarea",rk()({autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off"},p,{placeholder:i,onKeyDown:e=>{p.onKeyDown&&!1===p.onKeyDown(e)||function(e){var t=new lN(e.target);if(e.code&&"tab"===e.code.toLowerCase())sN(e),t.start===t.end?t.insertText("  ").position(t.start+2,t.end+2):t.getSelectedValue().indexOf("\n")>-1&&e.shiftKey?t.lineStarRemove("  "):t.getSelectedValue().indexOf("\n")>-1?t.lineStarInstert("  "):t.insertText("  ").position(t.start+2,t.end),t.notifyChange();else if(e.code&&"enter"===e.code.toLowerCase()){sN(e);var n="\n"+t.getIndentText();t.insertText(n).position(t.start+n.length,t.start+n.length),t.notifyChange()}else if(e.code&&/^(quote|backquote|bracketleft|digit9|comma)$/.test(e.code.toLowerCase())&&t.getSelectedValue()){sN(e);var r=t.getSelectedValue(),o="";switch(e.code.toLowerCase()){case"quote":o="'"+r+"'",e.shiftKey&&(o='"'+r+'"');break;case"backquote":o="`"+r+"`";break;case"bracketleft":o="["+r+"]",e.shiftKey&&(o="{"+r+"}");break;case"digit9":o="("+r+")";break;case"comma":o="<"+r+">"}t.insertText(o),t.notifyChange()}}(e)},style:rk()({},dN,uN,g,{minHeight:o},i&&!f?{WebkitTextFillColor:"inherit"}:{}),ref:m,onChange:e=>{h(e.target.value),d&&d(e)},className:n+"-text",value:f})),v]})}));const hN=Object.create(null);hN.open="0",hN.close="1",hN.ping="2",hN.pong="3",hN.message="4",hN.upgrade="5",hN.noop="6";const mN=Object.create(null);Object.keys(hN).forEach((e=>{mN[hN[e]]=e}));const gN={type:"error",data:"parser error"},bN="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),vN="function"===typeof ArrayBuffer,yN=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,xN=(e,t,n)=>{let{type:r,data:o}=e;return bN&&o instanceof Blob?t?n(o):ON(o,n):vN&&(o instanceof ArrayBuffer||yN(o))?t?n(o):ON(new Blob([o]),n):n(hN[r]+(o||""))},ON=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function EN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let wN;const jN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",SN="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let _Q=0;_Q<64;_Q++)SN[jN.charCodeAt(_Q)]=_Q;const TN="function"===typeof ArrayBuffer,kN=(e,t)=>{if("string"!==typeof e)return{type:"message",data:_N(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:CN(e.substring(1),t)};return mN[n]?e.length>1?{type:mN[n],data:e.substring(1)}:{type:mN[n]}:gN},CN=(e,t)=>{if(TN){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=SN[e.charCodeAt(t)],r=SN[e.charCodeAt(t+1)],o=SN[e.charCodeAt(t+2)],i=SN[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c})(e);return _N(n,t)}return{base64:!0,data:e}},_N=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,NN=String.fromCharCode(30);function AN(){return new TransformStream({transform(e,t){!function(e,t){bN&&e.data instanceof Blob?e.data.arrayBuffer().then(EN).then(t):vN&&(e.data instanceof ArrayBuffer||yN(e.data))?t(EN(e.data)):xN(e,!1,(e=>{wN||(wN=new TextEncoder),t(wN.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let RN;function IN(e){return e.reduce(((e,t)=>e+t.length),0)}function PN(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function DN(e){if(e)return function(e){for(var t in DN.prototype)e[t]=DN.prototype[t];return e}(e)}DN.prototype.on=DN.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},DN.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},DN.prototype.off=DN.prototype.removeListener=DN.prototype.removeAllListeners=DN.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},DN.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},DN.prototype.emitReserved=DN.prototype.emit,DN.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},DN.prototype.hasListeners=function(e){return!!this.listeners(e).length};const LN="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),MN="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function FN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const $N=MN.setTimeout,BN=MN.clearTimeout;function UN(e,t){t.useNativeTimers?(e.setTimeoutFn=$N.bind(MN),e.clearTimeoutFn=BN.bind(MN)):(e.setTimeoutFn=MN.setTimeout.bind(MN),e.clearTimeoutFn=MN.clearTimeout.bind(MN))}function HN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class zN extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class GN extends DN{constructor(e){super(),this.writable=!1,UN(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new zN(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=kN(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class WN extends GN{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(NN),r=[];for(let o=0;o<n.length;o++){const e=kN(n[o],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{xN(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(NN))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=HN()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let VN=!1;try{VN="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(CQ){}const qN=VN;function KN(){}class YN extends WN{constructor(e){if(super(e),"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class XN extends DN{constructor(e,t,n){super(),this.createRequest=e,UN(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=FN(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(dD){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(dD){}try{n.setRequestHeader("Accept","*/*")}catch(dD){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"===typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(dD){return void this.setTimeoutFn((()=>{this._onError(dD)}),0)}"undefined"!==typeof document&&(this._index=XN.requestsCount++,XN.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if("undefined"!==typeof this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=KN,e)try{this._xhr.abort()}catch(dD){}"undefined"!==typeof document&&delete XN.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(XN.requestsCount=0,XN.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",ZN);else if("function"===typeof addEventListener){addEventListener("onpagehide"in MN?"pagehide":"unload",ZN,!1)}function ZN(){for(let e in XN.requests)XN.requests.hasOwnProperty(e)&&XN.requests[e].abort()}const QN=function(){const e=JN({xdomain:!1});return e&&null!==e.responseType}();function JN(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||qN))return new XMLHttpRequest}catch(dD){}if(!t)try{return new(MN[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(dD){}}const eA="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class tA extends GN{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=eA?{}:FN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(CQ){return this.emitReserved("error",CQ)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;xN(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(dD){}r&&LN((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=HN()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const nA=MN.WebSocket||MN.MozWebSocket;const rA={websocket:class extends tA{createSocket(e,t,n){return eA?new nA(e,t,n):t?new nA(e,t):new nA(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends GN{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(CQ){return this.emitReserved("error",CQ)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){RN||(RN=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(IN(n)<1)break;const e=PN(n,1);i=128===(128&e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(IN(n)<2)break;const e=PN(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(IN(n)<8)break;const e=PN(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){s.enqueue(gN);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(IN(n)<o)break;const e=PN(n,o);s.enqueue(kN(i?e:RN.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(gN);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=AN();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&LN((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends YN{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=QN&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new XN(JN,this.uri(),e)}}},oA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,iA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function aA(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=oA.exec(e||""),i={},a=14;for(;a--;)i[iA[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}const sA="function"===typeof addEventListener&&"function"===typeof removeEventListener,lA=[];sA&&addEventListener("offline",(()=>{lA.forEach((e=>e()))}),!1);class cA extends DN{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"===typeof e&&(t=e,e=null),e){const n=aA(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=aA(t.host).host);UN(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let e=n[r].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),sA&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},lA.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&cA.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",cA.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,LN((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(cA.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sA&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=lA.indexOf(this._offlineEventListener);-1!==e&&lA.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}cA.protocol=4;class uA extends cA{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;cA.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;cA.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class dA extends uA{constructor(e){const t="object"===typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"===typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>rA[e])).filter((e=>!!e))),super(e,t)}}const pA="function"===typeof ArrayBuffer,fA=Object.prototype.toString,hA="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===fA.call(Blob),mA="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===fA.call(File);function gA(e){return pA&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||hA&&e instanceof Blob||mA&&e instanceof File}function bA(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(bA(e[t]))return!0;return!1}if(gA(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return bA(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&bA(e[n]))return!0;return!1}function vA(e){const t=[],n=e.data,r=e;return r.data=yA(n,t),r.attachments=t.length,{packet:r,buffers:t}}function yA(e,t){if(!e)return e;if(gA(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=yA(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=yA(e[r],t));return n}return e}function xA(e,t){return e.data=OA(e.data,t),delete e.attachments,e}function OA(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=OA(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=OA(e[n],t));return e}const EA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],wA=5;var jA;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(jA||(jA={}));class SA{constructor(e){this.replacer=e}encode(e){return e.type!==jA.EVENT&&e.type!==jA.ACK||!bA(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===jA.EVENT?jA.BINARY_EVENT:jA.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==jA.BINARY_EVENT&&e.type!==jA.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=vA(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function TA(e){return"[object Object]"===Object.prototype.toString.call(e)}class kA extends DN{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===jA.BINARY_EVENT;n||t.type===jA.BINARY_ACK?(t.type=n?jA.EVENT:jA.ACK,this.reconstructor=new CA(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!gA(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===jA[n.type])throw new Error("unknown packet type "+n.type);if(n.type===jA.BINARY_EVENT||n.type===jA.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!kA.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(dD){return!1}}static isPayloadValid(e,t){switch(e){case jA.CONNECT:return TA(t);case jA.DISCONNECT:return void 0===t;case jA.CONNECT_ERROR:return"string"===typeof t||TA(t);case jA.EVENT:case jA.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===EA.indexOf(t[0]));case jA.ACK:case jA.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class CA{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=xA(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function _A(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const NA=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class AA extends DN{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[_A(e,"open",this.onopen.bind(this)),_A(e,"packet",this.onpacket.bind(this)),_A(e,"error",this.onerror.bind(this)),_A(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){var t,n,r;if(NA.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(i.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const s={type:jA.EVENT,data:i,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"===typeof i[i.length-1]){const e=this.ids++,t=i.pop();this._registerAckCallback(e,t),s.id=e}const l=null===(n=null===(t=this.io.engine)||void 0===t?void 0:t.transport)||void 0===n?void 0:n.writable,c=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var n,r=this;const o=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===o)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),o),a=function(){r.io.clearTimeoutFn(i);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.apply(r,n)};a.withError=!0,this.acks[e]=a}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(((t,r)=>{const o=(e,n)=>e?r(e):t(n);o.withError=!0,n.push(o),this.emit(e,...n)}))}_addToQueue(e){var t=this;let n;"function"===typeof e[e.length-1]&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r!==t._queue[0])return;if(null!==e)r.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(e));else if(t._queue.shift(),n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];n(null,...i)}return r.pending=!1,t._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:jA.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case jA.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case jA.EVENT:case jA.BINARY_EVENT:this.onevent(e);break;case jA.ACK:case jA.BINARY_ACK:this.onack(e);break;case jA.DISCONNECT:this.ondisconnect();break;case jA.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t.packet({type:jA.ACK,id:e,data:o})}}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:jA.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function RA(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}RA.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},RA.prototype.reset=function(){this.attempts=0},RA.prototype.setMin=function(e){this.ms=e},RA.prototype.setMax=function(e){this.max=e},RA.prototype.setJitter=function(e){this.jitter=e};class IA extends DN{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,UN(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new RA({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new dA(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=_A(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=_A(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(_A(e,"ping",this.onping.bind(this)),_A(e,"data",this.ondata.bind(this)),_A(e,"error",this.onerror.bind(this)),_A(e,"close",this.onclose.bind(this)),_A(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(dD){this.onclose("parse error",dD)}}ondecoded(e){LN((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new AA(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const PA={};function DA(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=aA(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=PA[o]&&i in PA[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new IA(r,t):(PA[o]||(PA[o]=new IA(r,t)),s=PA[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(DA,{Manager:IA,Socket:AA,io:DA,connect:DA});const{connectedSockets:LA,setCurrentSocketId:MA}=n(58),FA=d.b`
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');
  
  .uiw-react-textarea-code-editor {
    font-family: 'Roboto', sans-serif !important;
  }
`,$A=d.e`
  0% {
    background-position: 0px 0px;
  }
  100% {
    background-position: 40px 0px;
  }
`,BA=d.d.div`
  height: 20px;
  background-color: #4caf50;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 100%);
  background-size: 40px 100%;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
  animation: ${$A} 1s linear infinite;
`,UA=ae("store")(ee((e=>{let{store:t,title:n,desc:r,Icon:o,output:i,code:a,language:c,outputs:u,loading:d,children:p,fromColor:f,toColor:h,outputsColor:m,OutputsIcon:g,scores:b}=e;const[v,y]=Object(s.useState)(null),[x,O]=Object(s.useState)(null),[E,w]=Object(s.useState)(null),[j,S]=Object(s.useState)(null),[T,k]=Object(s.useState)(null),[C,_]=Object(s.useState)(null),[N,A]=Object(s.useState)(""),[R,I]=Object(s.useState)(!1),[P,D]=Object(s.useState)(""),[L,M]=Object(s.useState)([]),[F,$]=Object(s.useState)(null),[B,U]=Object(s.useState)(!1),[H,z]=Object(s.useState)(!1),G=P.split("\n").map(((e,t)=>Object(Ht.jsxs)(l.a.Fragment,{children:[e,Object(Ht.jsx)("br",{})]},t)));Object(s.useEffect)((()=>{"string"===typeof x&&A(x)}),[x]),Object(s.useEffect)((()=>{const e=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SOCKET_URL||"https://server-xsbs.onrender.com:443",t=DA(e,{secure:-1!==e.indexOf("https")});return t.on("connect",(()=>{console.log("Connected to Socket.IO server"),MA(t.id)})),t.on("register_socket",(e=>{console.log("Received socket.id from server:",e.socketId),LA[e.socketId]=t,console.log("Current connectedSockets:",LA)})),t.on("welcome",(e=>{console.log(e)})),t.on("gpt4",(e=>{console.log("internal llm data:",e.data),O(e.data)})),t.on("progress",(e=>{console.log("Progress data:",e.data),S(e.data)})),t.on("running_totals",(e=>{k(e.data)})),t.on("batchdata",(e=>{_(e.data)})),t.on("transcriptionStart",(e=>{console.log("Received transcriptionStart event:",e),U(!0),M((t=>[...t,{type:"transcriptionStart",message:e.message}]))})),t.on("transcriptionEnd",(e=>{console.log("Received transcriptionEnd event:",e),U(!1),M((t=>[...t,{type:"transcriptionEnd",message:e.message}]))})),t.on("gpt3turbo",(e=>{console.log("algorithmic data:",e.data),w(e.data)})),t.on("error",(e=>{console.error("Socket.IO error:",e),U(!1),W(e),S(null),w(null)})),t.on("disconnect",(()=>{console.log("Client disconnected")})),t.on("transcribedText",(e=>{let t;t=e.data?e.data:e.transcribedText,console.log("Transcribed text data:",t),D(t),I(!0)})),()=>{t.off("transcribedText"),t.off("error"),t.disconnect()}}),[D,I]);const W=e=>{let t;if(t="string"===typeof e?e:e.message?e.message:e.error&&e.error.message?e.error.message:"An unknown error occurred",t.includes("No barcodes found"))t="No barcodes found in the uploaded file. Please ensure the file contains barcodes to separate individual essays.";else if(t.includes("is required")){const e=t.split(" ")[0];t=`The ${e} is missing. Please provide the ${e} and try again.`}else t.includes("An internal server error occurred")&&(t="An internal server error occurred. Our team has been notified. Please try again later.");console.error("Error received:",t),$(t),U(!1),setTimeout((()=>$(null)),1e4)};return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(QA,{notifications:L,isTranscribing:B}),Object(Ht.jsx)(eR,{error:F}),R&&Object(Ht.jsxs)("div",{className:"fixed bottom-0 left-0 m-4 bg-white p-4 rounded shadow-lg z-50 border overflow-hidden",style:{height:H?"auto":"90%",width:H?"300px":"auto"},children:[Object(Ht.jsxs)("div",{className:"flex justify-between items-center",children:[Object(Ht.jsx)("h3",{className:"text-lg font-bold",children:"Transcribed Essay"}),Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("button",{className:"mr-3",onClick:()=>{z(!H)},children:H?"Maximize":"Minimize"}),Object(Ht.jsx)("button",{onClick:()=>I(!1),children:"X"})]})]}),!H&&Object(Ht.jsx)("div",{className:"overflow-auto h-full pb-10",children:G})]}),b&&Object(Ht.jsx)("div",{className:"bg-white rounded-lg shadow-md p-7 mb-10 border border-gray-300",children:Object(Ht.jsx)(zA,{scores:b,gpt3TurboData:E,progressData:j,error:F})}),Object(Ht.jsxs)("div",{className:"relative mb-12",children:[Object(Ht.jsx)(FA,{}),Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${f||"green-400"} to-${h||"blue-500"} shadow-lg transform md:skew-y-0 md:-rotate-3 md:rounded-3xl -mt-1 md:mt-0`}),Object(Ht.jsx)("div",{className:"align-bottom bg-white md:rounded-3xl text-left shadow-xl transform transition-all sm:align-middle transition shadow-md hover:shadow-2xl focus:shadow-2xl",children:Object(Ht.jsxs)("div",{className:"px-6 py-6",children:[Object(Ht.jsxs)("div",{className:"sm:flex sm:items-start",children:[d&&!E?Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)(to,{active:d,className:"w-10 h-10"})}):Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)("div",{className:`mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-${x?"green":"gray"}-300 sm:mx-0 sm:h-10 sm:w-10 bg-gradient-to-r from-${f||"green-400"} to-${h||"blue-500"}`,children:o?Object(Ht.jsx)(o,{className:"h-6 w-6 text-white","aria-hidden":"true"}):null})}),Object(Ht.jsxs)("div",{className:"text-center sm:mt-0 sm:ml-4 sm:text-left",children:[Object(Ht.jsx)("div",{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:n}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:r})]})]}),x?Object(Ht.jsx)("div",{className:"whitespace-pre-wrap min-w-full text-gray-800 h-auto text-lg divide-y px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:Object(Ht.jsx)(fN,{style:{fontFamily:"Roboto, sans-serif",fontSize:"1.2rem"},padding:10,value:N,onChange:function(e){A(e.target.value)}})}):null,x&&u&&u.length?Object(Ht.jsxs)("div",{className:"divide-y divide-dashed divide-gray-300",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}):null,u&&u.length?Object(Ht.jsx)(JA,{outputs:u,outputsColor:m,OutputsIcon:g}):null,a&&a.length?Object(Ht.jsx)(fN,{style:{fontFamily:"Roboto, sans-serif",fontSize:"1rem"},padding:30,language:c,value:a}):null,Object(Ht.jsx)(GA,{outputs:u,output:x,code:a})]})})]}),C?Object(Ht.jsx)(VA,{children:Object(Ht.jsx)(Ht.Fragment,{children:C.marked===C.total?Object(Ht.jsx)(qA,{children:Object(Ht.jsxs)("div",{children:["All done! Visit ",Object(Ht.jsx)("a",{href:"/history",children:"History"})," to view results"]})}):Object(Ht.jsxs)(qA,{children:[Object(Ht.jsxs)(KA,{children:[Object(Ht.jsx)(YA,{children:"Marked:"}),Object(Ht.jsx)(XA,{children:C.marked})]}),Object(Ht.jsxs)(KA,{children:[Object(Ht.jsx)(YA,{children:"Total:"}),Object(Ht.jsx)(XA,{children:C.total})]})]})})}):null]})}))),HA=d.d.div`
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 10px 0;
`;function zA(e){let{scores:t,gpt3TurboData:n,progressData:r,error:o}=e;const[i,a]=Object(s.useState)(!1),[l,c]=Object(s.useState)(0),[u,d]=Object(s.useState)(!1);return Object(s.useEffect)((()=>{const e=r&&0!==r.total?r.current/r.total*100:0;if(e<95&&!u&&!o)c(e);else if(u||o){if(u&&!o){c(100);const e=setTimeout((()=>{a(!0)}),1e3);return()=>clearTimeout(e)}o&&(c(0),d(!0),a(!0))}else c(95)}),[r,u,o]),Object(s.useEffect)((()=>{n&&d(!0)}),[n]),Object(Ht.jsxs)("div",{className:"aoscores-window",children:[Object(Ht.jsx)("h2",{className:"text-l mb-3 text-center font-roboto",children:"Numeric Results. Can Take Up To Two Minutes... "}),!i&&r&&!o&&Object(Ht.jsx)("div",{className:"progress-data",children:Object(Ht.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[Object(Ht.jsxs)("p",{children:["The grade will be ready in a few moments! ",r.current," / ",r.total]}),Object(Ht.jsx)(HA,{children:Object(Ht.jsx)(BA,{style:{width:`${l}%`}})})]})}),i&&(o||n&&Object(Ht.jsx)("div",{className:"gpt3turbo-data",children:o?Object(Ht.jsx)("p",{children:o}):0===n.totalScore&&0===Object.keys(n.assessmentScores).length?Object(Ht.jsx)("p",{children:"A potential prompt injection was detected. For security reasons, no feedback or scores have been provided."}):Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsxs)("p",{children:["Assessment Objective Scores: ",n.assessmentScores.join(", ")]}),Object(Ht.jsxs)("p",{children:["Total Score: ",n.totalScore]}),Object(Ht.jsxs)("p",{children:["Percentage likelihood this response has been AI generated: ",n.percentageLikelihood,"%"]})]})}))]})}const GA=ae("store")(ee((e=>{let{store:t,output:n,outputs:r,code:o}=e;const i=n||o||r?"my-output":"";return Object(Ht.jsx)(Ht.Fragment,{children:n||o||r&&r.length?Object(Ht.jsxs)("div",{className:"flex",children:[Object(Ht.jsxs)(ZA,{className:"p-1 rounded-lg cursor-pointer hover:bg-green-200 hover:text-green-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>t.copyToClipboard(n||o||r),children:[Object(Ht.jsx)(GT,{className:"w-10 h-10"}),Object(Ht.jsx)(WA,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Copy text to clipboard"})})]}),Object(Ht.jsxs)(ZA,{className:"p-1 rounded-lg cursor-pointer hover:bg-blue-200 hover:text-blue-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>{const e=new Blob([n||o||r],{type:"text/plain;charset=utf-8"});Object(tk.saveAs)(e,`${i}.doc`)},children:[Object(Ht.jsx)(JT,{className:"w-10 h-10"}),Object(Ht.jsx)(WA,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Download as Word Document"})})]}),Object(Ht.jsx)("div",{className:"flex-1"}),Object(Ht.jsxs)(ZA,{className:"p-1 rounded-lg cursor-pointer hover:bg-red-200 hover:text-red-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>t.reportToFeedback(n||o||r),children:[Object(Ht.jsx)(ek,{className:"w-10 h-10"}),Object(Ht.jsx)(WA,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Report issue with output"})})]})]}):null})}))),WA=d.d.div`
  display: none;
  white-space: nowrap;
`,VA=d.d.div`
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border: 2px solid #007bff;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 200px;
  font-size: 1.2rem;
`,qA=d.d.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
`,KA=d.d.div`
  margin-bottom: 10px;
`,YA=d.d.span`
  font-weight: bold;
  margin-right: 5px;
`,XA=d.d.span`
  color: #007bff;
`,ZA=d.d.div`
  &:hover ${WA} {
    display: flex;
  }
`;function QA(e){let{notifications:t,isTranscribing:n}=e;const[r,o]=Object(s.useState)(null);return Object(s.useEffect)((()=>{if(t.length>0){const e=t[t.length-1];if(o(e),"transcriptionEnd"===e.type){const e=setTimeout((()=>{o(null)}),15e3);return()=>{clearTimeout(e)}}}}),[t]),r||n?Object(Ht.jsx)("div",{className:"fixed top-0 right-0 m-4 z-50",children:Object(Ht.jsxs)("div",{className:"bg-blue-500 text-white p-4 rounded shadow-lg mb-2 flex items-center",children:[Object(Ht.jsx)("div",{className:"mr-2",children:n?Object(Ht.jsxs)("svg",{className:"h-6 w-6 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[Object(Ht.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(Ht.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):Object(Ht.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:Object(Ht.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),Object(Ht.jsx)("div",{children:n?"Transcription in progress. Please wait...":"transcriptionEnd"===(null===r||void 0===r?void 0:r.type)?"Transcription has ended. Marking underway.":""})]})}):null}function JA(e){let{outputs:t,outputsColor:n,OutputsIcon:r}=e;return Object(Ht.jsx)("div",{className:"whitespace-pre-wrap min-w-full py-4 text-gray-800 h-auto text-lg divide-y",children:Object(Ht.jsx)(ZT.a,{stdTypingDelay:0,avgTypingDelay:7,className:"divide-y",cursor:{show:!1,blink:!1,element:"|",hideWhenDone:!0,hideWhenDoneDelay:250},children:t.map(((e,t)=>Object(Ht.jsxs)("div",{className:"py-2 flex items-start",children:[Object(Ht.jsx)("div",{className:`mr-4 flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${n||"green"}-200 text-${n||"green"}-600`,children:!1===r?`${t+1}`:r?Object(Ht.jsx)(r,{className:`h-4 w-4 text-${n||"green"}-600`,"aria-hidden":"true"}):Object(Ht.jsx)(QT,{className:`h-4 w-4 text-${n||"green"}-600`,"aria-hidden":"true"})}),e]},t)))})})}function eR(e){let{error:t}=e;return t?Object(Ht.jsx)("div",{className:"fixed top-0 left-0 m-4 z-50",children:Object(Ht.jsxs)("div",{className:"bg-red-500 text-white p-4 rounded shadow-lg mb-2 flex items-center",children:[Object(Ht.jsx)("div",{className:"mr-2",children:Object(Ht.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:Object(Ht.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),Object(Ht.jsx)("div",{children:t})]})}):null}var tR=UA;function nR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oR(e,t,n){return t&&rR(e.prototype,t),n&&rR(e,n),e}function iR(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&&sR(e,t)}function aR(e){return aR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aR(e)}function sR(e,t){return sR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sR(e,t)}function lR(e,t){return!t||"object"!==typeof 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 cR(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(dD){return!1}}();return function(){var n,r=aR(e);if(t){var o=aR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lR(this,n)}}function uR(e){return function(e){if(Array.isArray(e))return dR(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 dR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(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 dR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);if(0===t)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",i=r?r[3]:"",a=r?r[2]:n,s=a.length>=t?a:(uR(Array(t)).map((function(){return"0"})).join("")+a).slice(-1*t);return"".concat(o).concat(s).concat(i)}var fR={daysInHours:!1,zeroPadTime:2};function hR(e,t){var n=e.days,r=e.hours,o=e.minutes,i=e.seconds,a=Object.assign(Object.assign({},fR),t),s=a.daysInHours,l=a.zeroPadTime,c=a.zeroPadDays,u=void 0===c?l:c,d=Math.min(2,l),p=s?pR(r+24*n,l):pR(r,d);return{days:s?"":pR(n,u),hours:p,minutes:pR(o,d),seconds:pR(i,d)}}var mR=function(e){iR(n,e);var t=cR(n);function n(){var e;return nR(this,n),(e=t.apply(this,arguments)).state={count:e.props.count||3},e.startCountdown=function(){e.interval=window.setInterval((function(){0===e.state.count-1?(e.stopCountdown(),e.props.onComplete&&e.props.onComplete()):e.setState((function(e){return{count:e.count-1}}))}),1e3)},e.stopCountdown=function(){clearInterval(e.interval)},e.addTime=function(t){e.stopCountdown(),e.setState((function(e){return{count:e.count+t}}),e.startCountdown)},e}return oR(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?Object(s.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(s.Component);mR.propTypes={count:rT.number,children:rT.element,onComplete:rT.func};var gR=function(e){iR(n,e);var t=cR(n);function n(e){var r;if(nR(this,n),(r=t.call(this,e)).mounted=!1,r.initialTimestamp=r.calcOffsetStartTimestamp(),r.offsetStartTimestamp=r.props.autoStart?0:r.initialTimestamp,r.offsetTime=0,r.legacyMode=!1,r.legacyCountdownRef=null,r.tick=function(){var e=r.calcTimeDelta(),t=e.completed&&!r.props.overtime?void 0:r.props.onTick;r.setTimeDeltaState(e,void 0,t)},r.setLegacyCountdownRef=function(e){r.legacyCountdownRef=e},r.start=function(){if(!r.isStarted()){var e=r.offsetStartTimestamp;r.offsetStartTimestamp=0,r.offsetTime+=e?r.calcOffsetStartTimestamp()-e:0;var t=r.calcTimeDelta();r.setTimeDeltaState(t,"STARTED",r.props.onStart),r.props.controlled||t.completed&&!r.props.overtime||(r.clearTimer(),r.interval=window.setInterval(r.tick,r.props.intervalDelay))}},r.pause=function(){r.isPaused()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.setTimeDeltaState(r.state.timeDelta,"PAUSED",r.props.onPause))},r.stop=function(){r.isStopped()||(r.clearTimer(),r.offsetStartTimestamp=r.calcOffsetStartTimestamp(),r.offsetTime=r.offsetStartTimestamp-r.initialTimestamp,r.setTimeDeltaState(r.calcTimeDelta(),"STOPPED",r.props.onStop))},r.isStarted=function(){return r.isStatus("STARTED")},r.isPaused=function(){return r.isStatus("PAUSED")},r.isStopped=function(){return r.isStatus("STOPPED")},r.isCompleted=function(){return r.isStatus("COMPLETED")},e.date){var o=r.calcTimeDelta();r.state={timeDelta:o,status:o.completed?"COMPLETED":"STOPPED"}}else r.legacyMode=!0;return r}return oR(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(e){this.legacyMode||this.props.date!==e.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var e=this.props,t=e.date,n=e.now,r=e.precision,o=e.controlled,i=e.overtime;return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,o=void 0===r?Date.now:r,i=n.precision,a=void 0===i?0:i,s=n.controlled,l=n.offsetTime,c=void 0===l?0:l,u=n.overtime;t="string"===typeof e?new Date(e).getTime():e instanceof Date?e.getTime():e,s||(t+=c);var d=s?t:t-o(),p=Math.min(20,Math.max(0,a)),f=Math.round(1e3*parseFloat(((u?d:Math.max(0,d))/1e3).toFixed(p))),h=Math.abs(f)/1e3;return{total:f,days:Math.floor(h/86400),hours:Math.floor(h/3600%24),minutes:Math.floor(h/60%60),seconds:Math.floor(h%60),milliseconds:Number((h%1*1e3).toFixed()),completed:f<=0}}(t,{now:n,precision:r,controlled:o,offsetTime:this.offsetTime,overtime:i})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(e){this.legacyCountdownRef.addTime(e)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(e){return this.state.status===e}},{key:"setTimeDeltaState",value:function(e,t,n){var r=this;if(this.mounted){var o=e.completed&&!this.state.timeDelta.completed,i=e.completed&&"STARTED"===t;o&&!this.props.overtime&&this.clearTimer();return this.setState((function(n){var o=t||n.status;return e.completed&&!r.props.overtime?o="COMPLETED":t||"COMPLETED"!==o||(o="STOPPED"),{timeDelta:e,status:o}}),(function(){n&&n(r.state.timeDelta),r.props.onComplete&&(o||i)&&r.props.onComplete(e,i)}))}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var e=this.props,t=e.daysInHours,n=e.zeroPadTime,r=e.zeroPadDays,o=this.state.timeDelta;return Object.assign(Object.assign({},o),{api:this.getApi(),props:this.props,formatted:hR(o,{daysInHours:t,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var e=this.props,t=e.count,n=e.children,r=e.onComplete;return Object(s.createElement)(mR,{ref:this.setLegacyCountdownRef,count:t,onComplete:r},n)}var o=this.props,i=o.className,a=o.overtime,l=o.children,c=o.renderer,u=this.getRenderProps();if(c)return c(u);if(l&&this.state.timeDelta.completed&&!a)return Object(s.cloneElement)(l,{countdown:u});var d=u.formatted,p=d.days,f=d.hours,h=d.minutes,m=d.seconds;return Object(s.createElement)("span",{className:i},u.total<0?"-":"",p,p?":":"",f,":",h,":",m)}}]),n}(s.Component);gR.defaultProps=Object.assign(Object.assign({},fR),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),gR.propTypes={date:Object(rT.oneOfType)([Object(rT.instanceOf)(Date),rT.string,rT.number]),daysInHours:rT.bool,zeroPadTime:rT.number,zeroPadDays:rT.number,controlled:rT.bool,intervalDelay:rT.number,precision:rT.number,autoStart:rT.bool,overtime:rT.bool,className:rT.string,children:rT.element,renderer:rT.func,now:rT.func,onMount:rT.func,onStart:rT.func,onPause:rT.func,onStop:rT.func,onTick:rT.func,onComplete:rT.func};var bR=gR;const vR=d.b`
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');
  
  .uiw-react-textarea-code-editor {
    font-family: 'Roboto', sans-serif !important;
  }
`,yR=ae("store")(ee((e=>{let{store:t,title:n,desc:r,Icon:o,output:i,code:a,language:s,outputs:l,loading:c,children:u,fromColor:d,toColor:p,outputsColor:f,OutputsIcon:h}=e;return Object(Ht.jsxs)("div",{className:"relative mb-12",children:[Object(Ht.jsx)(vR,{}),Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${d||"green-400"} to-${p||"blue-500"} shadow-lg transform md:skew-y-0 md:-rotate-3 md:rounded-3xl -mt-1 md:mt-0`}),Object(Ht.jsx)("div",{className:" align-bottom bg-white md:rounded-3xl text-left  shadow-xl transform transition-all sm:align-middle transition shadow-md hover:shadow-2xl focus:shadow-2xl",children:Object(Ht.jsxs)("div",{className:" px-6 py-6",children:[Object(Ht.jsxs)("div",{className:"sm:flex sm:items-start",children:[c?Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)(to,{active:c,className:"w-10 h-10"})}):Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)("div",{className:`mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-${i?"green":"gray"}-300 sm:mx-0 sm:h-10 sm:w-10 bg-gradient-to-r from-${d||"green-400"} to-${p||"blue-500"}`,children:o?Object(Ht.jsx)(o,{className:"h-6 w-6 text-white","aria-hidden":"true"}):null})}),Object(Ht.jsxs)("div",{className:"text-center sm:mt-0 sm:ml-4 sm:text-left",children:[Object(Ht.jsx)("div",{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:n}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:r})]})]}),a?null:i?Object(Ht.jsx)("div",{className:"whitespace-pre-wrap min-w-full text-gray-800 h-auto text-lg divide-y px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:i?Object(Ht.jsx)(fN,{style:{fontFamily:"Roboto, sans-serif",fontSize:"1.2rem"},padding:10,value:i}):null}):null,i&&l&&l.length?Object(Ht.jsxs)("div",{className:"divide-y divide-dashed divide-gray-300",children:[" ",Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}):null,l&&l.length?Object(Ht.jsx)(wR,{outputs:l,outputsColor:f,OutputsIcon:h}):null,a&&a.length?Object(Ht.jsx)(fN,{style:{fontFamily:"Roboto, sans-serif",fontSize:"1rem"},padding:30,language:s,value:a}):null,Object(Ht.jsx)(xR,{outputs:l,output:i,code:a})]})})]})}))),xR=ae("store")(ee((e=>{let{store:t,output:n,outputs:r,code:o}=e;const i=n||o||r?"my-output":"";return Object(Ht.jsx)(Ht.Fragment,{children:n||o||r&&r.length?Object(Ht.jsxs)("div",{className:"flex",children:[Object(Ht.jsxs)(ER,{className:"p-1 rounded-lg cursor-pointer hover:bg-green-200 hover:text-green-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>t.copyToClipboard(n||o||r),children:[Object(Ht.jsx)(GT,{className:"w-10 h-10"}),Object(Ht.jsx)(OR,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Copy text to clipboard"})})]}),Object(Ht.jsxs)(ER,{className:"p-1 rounded-lg cursor-pointer hover:bg-blue-200 hover:text-blue-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>{const e=new Blob([n||o||r],{type:"text/plain;charset=utf-8"});Object(tk.saveAs)(e,`${i}.doc`)},children:[Object(Ht.jsx)(JT,{className:"w-10 h-10"}),Object(Ht.jsx)(OR,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Download as Word Document"})})]}),Object(Ht.jsx)("div",{className:"flex-1"}),Object(Ht.jsxs)(ER,{className:"p-1 rounded-lg cursor-pointer hover:bg-red-200 hover:text-red-700 relative group flex flex-col items-center group text-gray-300",onClick:()=>t.reportToFeedback(n||o||r),children:[Object(Ht.jsx)(ek,{className:"w-10 h-10"}),Object(Ht.jsx)(OR,{className:"absolute bottom-2 flex flex-col items-center mb-6 group-hover:flex",children:Object(Ht.jsx)("span",{className:"relative z-10 p-3 text-sm leading-none text-gray-800 bg-white bg-opacity-25 shadow-lg text-center backdrop-filter backdrop-blur rounded-md",children:"Report issue with output"})})]})]}):null})}))),OR=d.d.div`
	display:none;
	white-space: nowrap;
`,ER=d.d.div`
	&:hover ${OR} {
		display: flex;
	}
`;function wR(e){let{outputs:t,outputsColor:n,OutputsIcon:r}=e;return Object(Ht.jsx)("div",{className:"whitespace-pre-wrap min-w-full py-4 text-gray-800 h-auto text-lg divide-y",children:Object(Ht.jsx)(ZT.a,{stdTypingDelay:0,avgTypingDelay:7,className:"divide-y",cursor:{show:!1,blink:!1,element:"|",hideWhenDone:!0,hideWhenDoneDelay:250},children:t.map(((e,t)=>Object(Ht.jsxs)("div",{className:"py-2 flex items-start",children:[Object(Ht.jsx)("div",{className:`mr-4 flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${n||"green"}-200 text-${n||"green"}-600`,children:!1===r?`${t+1}`:r?Object(Ht.jsx)(r,{className:`h-4 w-4 text-${n||"green"}-600`,"aria-hidden":"true"}):Object(Ht.jsx)(QT,{className:`h-4 w-4 text-${n||"green"}-600`,"aria-hidden":"true"})}),e]},t)))})})}var jR=yR;var SR=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))}));var TR,kR=e=>{let{prompts:t,currentPrompt:n,onChange:r}=e;return 1===t.length?null:Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)("div",{className:"select-none align-bottom text-left transform transition-all sm:align-middle transition  flex divide-x divide-gray-300 -mb-1",children:t.map(((e,t)=>Object(Ht.jsxs)("div",{className:`shadow-md hover:relative hover:shadow-2xl  transition py-4 px-4 pr-8 rounded-t-md inline-flex text-${n===t?"gray-800":"gray-600 shadow-3xl"} font-medium border-b-2 border-${n===t?"white":"gray-200"} bg-${n===t?"white":"gray-300"} hover:bg-${n===t?"white":"gray-100"} cursor-pointer`,onClick:()=>r(t),children:[Object(Ht.jsx)("div",{className:`transition mr-4  flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${n===t?"green-300":"gray-200"} text-${n===t?"green":"gray"}`,children:Object(Ht.jsx)(SR,{className:"transition h-4 w-4 text-"+(n===t?"green-600":"gray-400"),"aria-hidden":"true"})}),e.title]},t)))})})};var CR=br(ae("store")(TR=ee(TR=class extends s.Component{constructor(e){super(e),this.startTimer=()=>{!this.state.isTimerActive&&this.state.time>0&&(this.setState({isTimerActive:!0}),this.interval=setInterval((()=>{this.setState((e=>({time:e.time-1})),(()=>{this.state.time<=0&&(clearInterval(this.interval),this.setState({isTimerActive:!1}),alert("Time is up!"))}))}),1e3))},this.formatTime=e=>{const t=e%60;return`${Math.floor(e/60)}:${t<10?"0":""}${t}`},this.downloadFile=()=>{const e=document.createElement("a");e.href="/example.pdf",e.setAttribute("download","example.pdf"),document.body.appendChild(e),e.click(),e.remove()},this.generateIeltsAcademic1PracticePaper=()=>{const e=[{topic:"The graph above shows the number of visitors to four international museums over a period of one year. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.        .",image:"/example1.png"},{topic:"The pie charts above show the percentage distribution of water usage in a typical household in two different countries, Country A and Country B, in the year 2023. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example2.png"},{topic:"The line graph above shows the average monthly temperatures (in degrees Celsius) for London, New York, and Sydney over a 12-month period. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example3.png"},{topic:"The pie charts above show the distribution of spending by a typical household in Country A and Country B in the year 2020. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example4.png"},{topic:"The bar graph above shows the internet usage (in hours per week) of individuals in four different age groups: 16-24, 25-34, 35-44, and 45-54 in Canada. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example5.png"},{topic:"The line graph illustrates the yearly number of visitors (in millions) to three museums: the Louvre, the British Museum, and the Metropolitan Museum of Art over a five-year period. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example6.png"},{topic:"The line graph depicts the growth in the number of registered electric vehicles (EVs) in the United States, China, Norway, and Germany over a period of six years. Summarize the main trends and make comparisons where relevant.",image:"/example7.png"},{topic:"The line graph illustrates the percentage of individuals using the internet in four different countries\u2014Japan, Sweden, India, and Brazil\u2014over a ten-year period. Describe the trends and differences among the countries, and summarize the main points.",image:"/example8.png"},{topic:"The bar chart illustrates the average monthly rainfall (in millimeters) in Bangkok, London, Cairo, and Sydney over the course of a year. Summarize the main features and make comparisons where relevant.",image:"/example9.png"},{topic:"The bar chart displays the total sales revenue (in million USD) of four major technology companies\u2014Apple, Samsung, Google, and Microsoft\u2014over two consecutive years, 2018 and 2019. Summarize the sales trends over the years and compare the performance of these companies.",image:"/example10.png"},{topic:"The line graph depicts the average price of residential electricity per kilowatt-hour in cents for four countries\u2014Germany, the United States, Canada, and Japan\u2014over a five-year period. Summarize the key trends and compare the prices across countries and over time.",image:"/example11.png"},{topic:"The line graph shows the daily average number of steps walked by individuals in four different age groups\u201418-29, 30-49, 50-69, and 70+\u2014over a week. Describe the variations in the daily step count among the different age groups and note any trends over the course of the week.",image:"/example12.png"},{topic:"The bar graph compares the annual greenhouse gas emissions (in million metric tons of CO2 equivalent) of four sectors\u2014Transportation, Industry, Residential, and Agriculture\u2014in a specific country over the course of a single year. Describe the distribution of emissions among these sectors and highlight any significant trends.",image:"/example13.png"},{topic:"The bar graph displays the number of public libraries in four different regions\u2014North, South, East, and West\u2014in a country for the year 2020. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example14.png"},{topic:"The bar graph shows the number of public libraries in four major cities\u2014New York, Los Angeles, Toronto, and London\u2014over two distinct years, 2010 and 2020. Analyze the growth or decline in the number of public libraries in these cities and compare the figures across the two years.",image:"/example15.png"},{topic:"The line graph illustrates the quarterly GDP growth rate (percentage change from the previous quarter) of four countries\u2014Australia, Brazil, France, and India\u2014over a two-year period. Summarize the main trends and compare the growth rates across the countries and over time.",image:"/example16.png"},{topic:"The line graph displays the monthly average air quality index (AQI) in four major cities\u2014Beijing, Los Angeles, Delhi, and London\u2014over the course of one year. Summarize the changes in air quality across these cities and throughout the year, highlighting significant variations.",image:"/example17.png"},{topic:"The two pie charts compare the market share of different smartphone operating systems\u2014Android, iOS, Windows, and Others\u2014in two separate years, 2018 and 2023. Analyze the changes in market share over the five-year period, noting significant trends or shifts.",image:"/example18.png"},{topic:"The two pie charts illustrate the distribution of global energy consumption by source in two different years, 2010 and 2020. Describe the changes in energy source distribution over the ten-year period, highlighting any significant trends.",image:"/example19.png"},{topic:"The two pie charts compare the percentage of government spending in six categories\u2014Healthcare, Education, Defense, Infrastructure, Social Welfare, and Others\u2014in two separate years, 2015 and 2020. Analyze the changes in spending allocation over the five-year period, noting significant trends or shifts.",image:"/example20.png"},{topic:"The two pie charts illustrate the composition of waste management methods\u2014Recycling, Landfill, Incineration, and Composting\u2014in Metro City for the years 2005 and 2015. Summarize the changes in waste management practices over the ten-year period, highlighting significant trends.",image:"/example21.png"},{topic:"The line graph illustrates the annual carbon dioxide (CO2) emissions (in million metric tons) from transportation in four regions\u2014North America, Europe, Asia, and South America\u2014over a decade, from 2010 to 2019. Summarize the trends in emissions over the period, noting any significant changes and comparisons among the regions.",image:"/example22.png"},{topic:"The line graph displays the change in average global surface temperature anomalies (degrees Celsius) from 2000 to 2019, compared to the 20th-century average. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example23.png"},{topic:"The line graph displays the daily number of steps taken by an individual over a month, aiming to achieve a goal of 10,000 steps per day. The graph compares the actual steps taken each day with the goal. Describe the individual's performance over the month, noting any trends and significant deviations from the goal.",image:"/example24.png"},{topic:"The bar chart illustrates the average time spent on various activities in a day by adults in four different countries\u2014Japan, Italy, Canada, and Australia. The activities include work, leisure, and sleep. Summarize the findings and make comparisons where relevant.",image:"/example25.png"},{topic:"The line graph displays the average monthly precipitation (in millimeters) in four different climatic zones\u2014Tropical, Arid, Temperate, and Polar\u2014over the course of one year. Describe the variations in precipitation among these climatic zones and throughout the year, noting any significant patterns or differences.",image:"/example26.png"},{topic:"The line graph illustrates the percentage of households with access to high-speed internet in four countries\u2014Finland, South Korea, Canada, and Italy\u2014over a five-year period. Summarize the trends in internet access among these countries, highlighting significant changes and differences.",image:"/example27.png"},{topic:"The line graph depicts the annual average temperature anomalies (in degrees Celsius compared to a 20th-century average) in four different global regions\u2014North America, Europe, Asia, and Africa\u2014over a decade, from 2010 to 2019. Describe the temperature trends in these regions over the period, highlighting any significant fluctuations and comparisons.",image:"/example28.png"},{topic:"The line chart shows the average yearly income in thousand USD for individuals in the United States, Germany, Japan, and Brazil from 2015 to 2019. The bar chart illustrates the average annual savings rate as a percentage of income for the same countries in the year 2019. Summarize the information by selecting and reporting the main features, and make comparisons where relevant.",image:"/example29.png"},{topic:"The data provided illustrates two aspects of higher education in four different countries\u2014Canada, Australia, the United Kingdom, and India\u2014over a period of five years, from 2015 to 2019. The line chart shows the annual number of international students enrolled in higher education institutions, while the bar chart displays the percentage of graduates in STEM fields (Science, Technology, Engineering, and Mathematics) for the year 2019. Analyze the trends in international student enrollment and the STEM graduates' percentage among these countries, noting significant changes and drawing comparisons where relevant.",image:"/example30.png"}],t=e[Math.floor(Math.random()*e.length)],n=`${t.image}`;fetch(n).then((e=>e.blob())).then((e=>{const r=new FileReader;r.onloadend=()=>{const e=r.result;this.setState({imageUrl:n,imageBase64:e},(()=>{console.log("Updated state with image data:",this.state)})),this.props.prompt.prompts[0].value=t.topic},r.readAsDataURL(e)}))},this.ieltsacademic2=()=>{const e=[{topic:"With the rapid advancement of technology, some argue that the traditional classroom setting is becoming obsolete. To what extent do you agree or disagree with this statement? Provide reasons for your answer and include any relevant examples from your own knowledge or experience.",opening:""},{topic:"The gap between the rich and the poor seems to be increasing in many parts of the world. What do you think are the main causes of this issue, and what measures could be taken to address it? Use examples from your own knowledge or experience to support your response.",opening:""},{topic:"Environmental pollution has become a serious problem globally. Discuss the main contributors to this issue and suggest possible solutions to reduce the impact of pollution on the planet. Reference any relevant examples from your own knowledge or experience.",opening:""},{topic:"Some educators believe that group assignments are more beneficial for students than individual tasks. Discuss the advantages and disadvantages of this approach in education. Include any relevant examples from your own experience or knowledge to support your argument.",opening:""},{topic:"In many countries, the population is aging rapidly, leading to concerns about healthcare and pension systems. What challenges does this present, and how might these challenges be addressed? Draw on examples from your own knowledge or experience in your answer.",opening:""},{topic:"The accessibility of fast food has been linked to increasing rates of obesity in many societies. Discuss the extent to which fast food chains are responsible for this issue and suggest measures that could mitigate the problem. Use examples from your knowledge or experience to illustrate your points.",opening:""},{topic:"Social media has changed the way we communicate and access information. Discuss the advantages and disadvantages of this development. Provide examples from your own experience or knowledge to support your discussion.",opening:""},{topic:"Telecommuting has become increasingly popular, with some suggesting it could replace traditional office jobs entirely. Discuss the potential benefits and drawbacks of telecommuting for both employees and employers. Use your own experience or knowledge to inform your answer.",opening:""},{topic:"Some argue that governments should invest more in public transport to reduce traffic congestion and improve air quality. To what extent do you agree or disagree with this opinion? Justify your answer with reasons and examples from your knowledge or experience.",opening:""},{topic:"The arts (music, theater, visual arts, etc.) are often seen as less important than subjects such as math, science, and language in school curriculums. Discuss the importance of the arts in education and how they contribute to a student's overall development. Provide examples from your knowledge or experience to support your argument.",opening:""},{topic:"Consumerism is often blamed for many social and environmental issues. To what extent do you agree or disagree with this perspective? Provide reasons and examples from your own knowledge or experience to support your view.",opening:""},{topic:"The rise of artificial intelligence (AI) is seen by some as a threat to many jobs. Discuss the potential impacts of AI on the job market and how workers can prepare for the changes it may bring. Include relevant examples from your knowledge or experience.",opening:""},{topic:"Access to clean water is a significant problem in many parts of the world. Discuss the causes of water scarcity and propose potential solutions to ensure global access to clean water. Use examples from your own knowledge or experience.",opening:""},{topic:"Urbanization is accelerating globally, with more people moving to cities every year. Discuss the advantages and disadvantages of urban living. Support your arguments with examples from your own knowledge or experience.",opening:""},{topic:"Mental health issues are becoming increasingly recognized and discussed. Discuss the importance of mental health awareness and suggest ways in which societies can improve support for those affected. Include relevant examples from your experience or research.",opening:""},{topic:"Climate change is often described as one of the biggest challenges of our time. Discuss the role individuals can play in combating climate change. Provide specific examples from your own knowledge or experience to support your viewpoint.",opening:""},{topic:"The digital divide refers to the gap between those who have access to computers and the internet and those who do not. Discuss the implications of the digital divide and suggest how this gap can be reduced. Reference examples from your knowledge or experience.",opening:""},{topic:"Education systems around the world vary greatly. Discuss the merits and drawbacks of your country's education system compared to another system you are familiar with. Use specific examples to support your comparison.",opening:""},{topic:"Gender equality has been a significant topic of discussion in recent years. Discuss the progress that has been made towards achieving gender equality and the challenges that still exist. Use examples from your own knowledge or experience.",opening:""},{topic:"Renewable energy sources are considered crucial for the future of global energy. Discuss the advantages and limitations of renewable energy technologies. Support your argument with examples from your knowledge or experience.",opening:""},{topic:"The impact of tourism on culture can be both positive and negative. Discuss the effects of tourism on local cultures and how negative impacts can be mitigated. Include specific examples from your own knowledge or experience.",opening:""},{topic:"Sports are an essential part of many societies. Discuss the benefits of sports for individuals and communities. Provide reasons and examples from your own experience or knowledge to support your answer.",opening:""},{topic:"The phenomenon of 'brain drain' affects many countries. Discuss the causes of brain drain and suggest measures that could be taken to address this issue. Use examples from your own knowledge or experience to inform your response.",opening:""},{topic:"Public spaces play a crucial role in community wellbeing. Discuss the importance of public spaces in urban areas and how they can be designed to benefit communities. Include examples from your own experience or knowledge.",opening:""},{topic:"The growing dependence on technology raises questions about privacy and security. Discuss the challenges related to privacy in the digital age and suggest how individuals can protect their personal information. Reference examples from your knowledge or experience.",opening:""},{topic:"Nutrition is increasingly recognized as a crucial aspect of public health. Discuss the role of government in promoting healthy eating habits among the population. Use examples from your own knowledge or experience to support your argument.",opening:""},{topic:"The balance between work and life is a topic of concern for many in today's fast-paced society. Discuss strategies that individuals and companies can use to achieve a healthier work-life balance. Support your discussion with examples from your experience or research.",opening:""},{topic:"Cultural exchange programs have the potential to enhance mutual understanding between different societies. Discuss the benefits of such programs and consider their potential limitations. Use examples from your own experience or knowledge.",opening:""},{topic:"The rise of freelance and gig economy jobs presents new opportunities and challenges for workers. Discuss the implications of this trend for the future of work. Include examples from your knowledge or experience to illustrate your points.",opening:""},{topic:"Sustainability is a critical consideration in all areas of development. Discuss how sustainable practices can be incorporated into everyday life and business operations. Provide examples from your own knowledge or experience to support your discussion.",opening:""},{topic:"The globalization of food production and consumption has both positive and negative impacts on societies. Discuss these impacts and suggest ways to mitigate the negative effects while enhancing the positive ones. Use examples from your knowledge or experience.",opening:""},{topic:"Online learning platforms have become increasingly popular. Discuss the advantages and disadvantages of online education compared to traditional classroom-based learning. Reference your own experience or knowledge where applicable.",opening:""},{topic:"The aging population in many countries is seen as a challenge. Discuss the potential social and economic impacts of an aging population and suggest strategies to address these challenges. Include relevant examples from your knowledge or experience.",opening:""},{topic:"Some argue that space exploration is a waste of resources that could be better used to address problems on Earth. To what extent do you agree or disagree? Support your argument with examples from your own knowledge or research.",opening:""},{topic:"Discuss the importance of biodiversity and the main threats it faces today. Suggest measures that can be taken to protect biodiversity, using examples from your own knowledge or experience.",opening:""},{topic:"Social entrepreneurship is gaining popularity as a way to address various societal problems. Discuss the potential impact of social entrepreneurship and provide examples of successful social enterprises from your knowledge or experience.",opening:""},{topic:"With the increase in urban population, public transportation systems are under pressure. Discuss the challenges and opportunities this presents for sustainable urban development. Reference examples from your own experience or research.",opening:""},{topic:"Cybersecurity threats are becoming more prevalent and sophisticated. Discuss the importance of cybersecurity in today\u2019s digital world and suggest measures to improve security. Use examples from your knowledge or experience.",opening:""},{topic:"Language preservation is important for cultural heritage and diversity. Discuss the challenges faced in preserving minority languages and suggest strategies that could be employed to address these challenges. Include examples from your experience or knowledge.",opening:""},{topic:"The role of media in shaping public opinion is significant. Discuss the positive and negative influences of media on public perception and suggest ways to ensure responsible media reporting. Use examples from your own knowledge or experience.",opening:""},{topic:"Discuss the impact of consumer culture on society and the environment, and suggest ways to promote more responsible consumer behavior. Include relevant examples from your experience or research.",opening:""},{topic:"The development of green technology is seen as a key to sustainable future. Discuss the potential benefits and challenges associated with green technology innovations. Use examples from your knowledge or experience.",opening:""},{topic:"Urban green spaces are vital for city-dwellers' well-being. Discuss the benefits of urban green spaces and the challenges in incorporating them into city planning. Reference examples from your experience or knowledge.",opening:""},{topic:"The rise of autonomous vehicles is poised to revolutionize transportation. Discuss the potential impact on society and the environment, and address the challenges that may arise. Include examples from your own knowledge or experience.",opening:""},{topic:"Ethical consumerism aims to promote positive social and environmental change. Discuss the significance of ethical consumerism and the challenges consumers face in making ethical choices. Use examples from your experience or research.",opening:""},{topic:"The arts can play a significant role in community development and social change. Discuss how the arts can be utilized for societal benefits and provide examples of arts-driven community projects from your knowledge or experience.",opening:""},{topic:"Discuss the ethical implications of genetic engineering and its potential to change society. Include considerations of both the benefits and the risks, referencing examples from your own knowledge or research.",opening:""},{topic:"Water scarcity is becoming a critical problem in many regions of the world. Discuss the causes of water scarcity and suggest sustainable solutions to ensure water security. Use examples from your knowledge or experience.",opening:""},{topic:"Debates on immigration policy often reflect broader social and economic issues. Discuss the complex factors that shape immigration policy and its impact on both host and origin countries. Include examples from your own knowledge or experience.",opening:""},{topic:"The concept of a universal basic income has gained attention as a potential solution to job displacement caused by technology. Discuss the advantages and disadvantages of implementing a universal basic income. Reference examples from your research or knowledge.",opening:""},{topic:"With the increasing prevalence of remote work, discuss the long-term impacts this could have on workforce dynamics and urban development. Use examples from your knowledge or experience to inform your answer.",opening:""},{topic:"The phenomenon of over-tourism has impacted both the environment and local communities adversely in popular destinations. Discuss strategies that could be implemented to manage tourist numbers while still promoting sustainable tourism. Include examples from your own experience or research.",opening:""},{topic:"Examine the role of youth activism in shaping policy and public opinion on climate change. Discuss the effectiveness of these movements and provide examples from recent campaigns or initiatives.",opening:""},{topic:"The use of technology in agriculture, often termed 'precision agriculture,' promises to increase efficiency and reduce waste. Discuss the potential benefits and ethical considerations of implementing such technologies, using examples where possible.",opening:""},{topic:"As artificial intelligence becomes more integrated into healthcare, discuss the potential benefits and challenges this presents to patient care and medical ethics. Reference specific examples from current practices or research.",opening:""},{topic:"Examine the impact of microplastics on marine ecosystems and human health. Discuss measures that can be taken to reduce microplastic pollution, citing examples from initiatives around the world.",opening:""},{topic:"Discuss the phenomenon of urban sprawl and its implications for environmental sustainability and quality of life. Suggest policy measures or urban planning strategies to address the challenges of urban sprawl, using examples where relevant.",opening:""},{topic:"The intersection of technology and education opens new avenues for personalized learning. Discuss how technology can be leveraged to cater to diverse learning needs and styles, including examples from recent educational technology innovations.",opening:""},{topic:"Evaluate the role of international aid in disaster relief and development. Discuss the benefits and potential drawbacks of such aid, including considerations of dependency and sustainability. Use examples from recent aid efforts.",opening:""},{topic:"Social media platforms are often criticized for contributing to political polarization. Discuss the mechanisms by which this occurs and propose measures to mitigate polarization while preserving free speech online. Include relevant examples.",opening:""},{topic:"Discuss the cultural and economic impacts of global film and music industries on local cultures. Evaluate the balance between cultural globalization and cultural preservation, using specific instances to illustrate your points.",opening:""},{topic:"Examine the challenges and opportunities presented by the transition to renewable energy sources in developing countries. Discuss how these countries can overcome barriers to adoption, using examples from recent initiatives.",opening:""},{topic:"With the growth of gig economy jobs, discuss the potential long-term economic and social impacts on workers. Propose measures that could offer protections and benefits for gig workers, citing relevant examples.",opening:""},{topic:"The consolidation of media ownership has raised concerns about media diversity and objectivity. Discuss the implications of this trend and suggest how media pluralism can be preserved, including examples from different countries.",opening:""},{topic:"Investigate the role of smart cities in addressing urban challenges such as traffic congestion, public safety, and sustainability. Provide examples of smart city initiatives and discuss their successes and limitations.",opening:""},{topic:"The ethics of animal testing in medical research is a contentious issue. Discuss alternative methods to animal testing and the potential impacts of these alternatives on research efficacy, referencing specific examples.",opening:""},{topic:"The rise in popularity of plant-based diets has implications for health, the environment, and economies. Discuss these implications, providing evidence from recent studies or statistics to support your arguments.",opening:""},{topic:"Examine the impact of cryptocurrency on global finance and banking. Discuss the potential benefits and risks of cryptocurrency adoption, including considerations of security and regulation.",opening:""},{topic:"The practice of mindfulness and meditation has gained popularity as a method for reducing stress. Discuss the scientific evidence supporting the benefits of these practices and consider how they can be integrated into daily life.",opening:""},{topic:"Assess the role of public art in urban spaces. Discuss how public art contributes to community identity and urban aesthetics, and suggest ways to foster a vibrant public art scene in cities.",opening:""},{topic:"Discuss the significance of preserving intangible cultural heritage, such as languages, rituals, and traditions, for future generations. Propose methods for effective preservation, citing examples of successful efforts.",opening:""},{topic:"The intersection of fashion and sustainability presents both challenges and opportunities. Discuss how the fashion industry can adopt more sustainable practices without compromising on style or profitability. Include recent initiatives as examples.",opening:""},{topic:"With an increasing number of people opting for a nomadic lifestyle enabled by digital technology, discuss the social and economic implications of this trend. How does it redefine concepts of home, work, and community?",opening:""},{topic:"The decline in bee populations globally poses a significant threat to agricultural systems. Discuss the causes of this decline and propose interventions to protect and restore bee populations, using specific case studies.",opening:""},{topic:"Examine the role of digital currencies in the future of financial transactions. Discuss the potential for digital currencies to supplant traditional forms of money and the challenges they may face in achieving widespread adoption.",opening:""},{topic:"The concept of zero-waste living aims to eliminate trash and reduce consumerism. Discuss the practicalities, challenges, and impacts of adopting a zero-waste lifestyle, including examples of communities or individuals who have made significant strides.",opening:""},{topic:"Discuss the impact of virtual reality (VR) technology on education and training. How can VR transform learning experiences and outcomes in various fields such as medicine, engineering, and history?",opening:""},{topic:"Explore the ethical and social implications of gene editing technologies, particularly CRISPR. Discuss the potential benefits and risks associated with editing human DNA, including considerations of accessibility and consent.",opening:""},{topic:"The resurgence of vinyl records in a digital age presents an interesting cultural phenomenon. Discuss the reasons behind this revival and the implications for music consumption, production, and community.",opening:""},{topic:"Analyze the role of corporate social responsibility (CSR) in today\u2019s business landscape. How does genuine CSR benefit companies, communities, and the environment? Provide examples of organizations that have integrated CSR into their business model effectively.",opening:""},{topic:"With the advent of autonomous vehicles, discuss the ethical considerations surrounding decision-making algorithms in the event of unavoidable accidents. How should these systems prioritize outcomes?",opening:""},{topic:"Evaluate the potential of urban agriculture to contribute to food security in densely populated areas. Discuss the benefits and limitations of urban farming practices, including vertical farming and community gardens.",opening:""},{topic:"The phenomenon of social media influencers has changed the landscape of marketing and advertising. Discuss the impact of influencer marketing on consumer behavior and its implications for traditional advertising models.",opening:""},{topic:"Examine the implications of the 'right to be forgotten' in the digital age, particularly in relation to personal data and online histories. How does this right interact with the principles of freedom of information and public interest?",opening:""},{topic:"The rise of 'fast fashion' has significant environmental and ethical implications. Discuss strategies that consumers, companies, and governments can employ to promote sustainable fashion consumption.",opening:""},{topic:"With the growing demand for renewable energy sources, evaluate the potential of ocean energy (wave and tidal). Discuss the challenges and opportunities associated with harnessing energy from the ocean.",opening:""},{topic:"The increasing use of drones in various sectors (from agriculture to logistics) presents new challenges and opportunities. Discuss the implications of widespread drone use on privacy, safety, and regulation.",opening:""},{topic:"Analyze the effect of climate change on traditional agriculture practices and food security. Discuss adaptive measures that can help communities sustain agricultural productivity amid changing weather patterns.",opening:""},{topic:"The global push towards digitization of government services aims to increase efficiency and accessibility. Discuss the benefits and potential pitfalls of digitizing public services, with a focus on examples from healthcare and welfare.",opening:""},{topic:"Telehealth and remote medical services have seen a surge in adoption due to global health challenges. Discuss the long-term impacts of telehealth on patient care and the healthcare system, including considerations of equity and accessibility.",opening:""},{topic:"Discuss the role of artificial intelligence in predictive policing and the ethical considerations it raises. How can societies balance the benefits of crime reduction with the protection of individual rights and privacy?",opening:""},{topic:"Evaluate the impact of microfinance on poverty alleviation in developing countries. Discuss the success stories and potential limitations of microfinance initiatives, with a focus on their sustainability and impact on local economies.",opening:""},{topic:"The increasing occurrence of extreme weather events has highlighted the urgency of climate resilience in urban planning. Discuss measures that cities can take to become more resilient against such events, including examples of successful strategies.",opening:""},{topic:"Analyze the role of social enterprises in addressing societal issues. Discuss how social enterprises differ from traditional charities and for-profit businesses in their approach and impact, including case studies of successful social enterprises.",opening:""},{topic:"Explore the concept of digital nomadism and its implications for the future of work and lifestyle. Discuss the benefits and challenges faced by digital nomads and the potential long-term impacts on society.",opening:""},{topic:"The phenomenon of eSports has grown exponentially, attracting a large global audience. Discuss the cultural and economic impacts of eSports becoming mainstream, including its recognition as a professional sport.",opening:""},{topic:"The global trend towards decriminalizing or legalizing cannabis poses new societal and economic questions. Discuss the implications of these policy changes, including potential benefits and challenges, with a focus on public health and safety.",opening:""},{topic:"Innovations in biotechnology offer potential solutions to environmental challenges. Discuss biotechnological approaches to pollution control and resource conservation, providing examples of promising technologies or initiatives.",opening:""},{topic:"Investigate the psychological effects of social media use on teenagers and young adults. Discuss potential positive aspects and harmful impacts, with suggestions for mitigating negative effects while enhancing beneficial outcomes.",opening:""},{topic:"The push for smart cities incorporates technology into urban development for efficiency and sustainability. Analyze the potential social implications of living in highly digitized urban environments, focusing on aspects such as privacy, community, and human interaction.",opening:""}],t=e[Math.floor(Math.random()*e.length)];this.props.prompt.prompts[0].value=t.topic,this.props.prompt.prompts[1].value=t.opening},this.ieltsgeneral1=()=>{const e=[{topic:"Your child's school is organizing a cultural festival and is looking for parents to help in various capacities. Write a letter to the event coordinator volunteering your services. In your letter:\n- Mention your name and your child\u2019s name and grade.\n- Explain why you are interested in volunteering for the cultural festival.\n- Describe the skills or experiences you have that make you a suitable volunteer for the event.",opening:""},{topic:"You are planning to start a community garden in your neighborhood and are seeking participants. Write a letter to your neighbors inviting them to join the initiative. In your letter:\n- Introduce yourself and the concept of the community garden.\n- Explain the benefits of participating in the community garden.\n- Provide details on how they can join or express interest.",opening:""},{topic:"You have discovered a mistake on a bill you received from a local utility company. Write a letter to the company's customer service department. In your letter:\n- Introduce yourself and provide your customer account number.\n- Explain the mistake you found on the bill.\n- Describe what you believe the correct charge should be and request an adjustment.",opening:""},{topic:"Your local library is organizing a book donation drive for underprivileged schools. Write a letter to the library's coordinator expressing your interest in contributing. Include in your letter:\n- A brief self-introduction and why the initiative matters to you.\n- The kinds of books you are planning to donate.\n- Any other ways you are willing to support the drive (e.g., volunteering time, promoting the event).",opening:""},{topic:"You are organizing a surprise retirement party for a colleague. Write a letter to another colleague asking for their help with the preparations. In your letter:\n- Explain who the retirement party is for and why.\n- Suggest ways they could help with the event.\n- Request their discretion to keep the party a surprise.",opening:""},{topic:"You recently experienced excellent customer service at a local business and wish to commend the employee responsible. Write a letter to the manager of the business. In your letter:\n- Describe the nature of your visit to the business.\n- Detail the service you received and the employee who helped you.\n- Express why you felt the service was exceptional and worthy of commendation.",opening:""},{topic:"A new job opportunity requires you to speak a second language which you are currently learning. Write a letter to the language school requesting information about intensive courses. In your letter:\n- Briefly present your current level in the language and your learning goals.\n- Ask for details regarding course options, schedules, and prices.\n- Inquire about the success rate of students who have taken intensive courses for professional purposes.",opening:""},{topic:"You have decided to run for a position on your local community board. Write a letter to your neighbors to ask for their support. In your letter:\n- Introduce yourself and mention the position you are running for.\n- Explain why you decided to run and what you hope to achieve.\n- Encourage them to support you and explain how they can do so.",opening:""},{topic:"You left a personal item on public transportation and wish to retrieve it. Write a letter to the transportation authority's lost and found department. In your letter:\n- Describe the item you lost and any identifiable features.\n- Explain when and where you believe you left it.\n- Request information on how to retrieve the item if it has been found.",opening:""},{topic:"A friend is considering taking a gap year to travel but is uncertain. Write a letter to your friend advising them on their decision. In your letter:\n- Share your thoughts on the benefits and drawbacks of taking a gap year.\n- Suggest possible destinations or activities if they decide to travel.\n- Offer advice on how to make the most out of a gap year based on your own experiences or those of others.",opening:""},{topic:"You are planning a neighborhood clean-up event. Write a letter to your neighbors to invite them to participate. In your letter:\n- Explain the purpose of the clean-up event.\n- Provide details about the time and meeting place.\n- Suggest items or equipment participants might bring.",opening:""},{topic:"After a recent stay at a hotel, you realized you left a personal item behind. Write a letter to the hotel manager. In your letter:\n- Describe the item and where you think you left it.\n- Explain why the item is important to you.\n- Request assistance in returning the item.",opening:""},{topic:"Your local community center is offering classes for adults. You are interested in signing up for one of them. Write a letter to the community center. In your letter:\n- Introduce yourself.\n- State the class you are interested in and ask for more information about it.\n- Explain why you want to take this class.",opening:""},{topic:"You recently had a positive shopping experience in a local store and want to praise the staff. Write a letter to the store manager. In your letter:\n- Mention the date and time of your visit.\n- Describe the service you received.\n- Explain why you were particularly happy with the experience.",opening:""},{topic:"You want to volunteer at a local animal shelter and need more information. Write a letter to the shelter. In your letter:\n- Express your interest in volunteering.\n- Mention any relevant experience you have.\n- Ask about the process for becoming a volunteer.",opening:""},{topic:"Your friend is moving to your city and looking for advice on finding a job. Write a letter to your friend. In your letter:\n- Offer some general advice about job hunting in your city.\n- Suggest some companies or industries they might consider.\n- Invite them to stay with you temporarily if they need.",opening:""},{topic:"You have been invited to speak at a local community event but are unable to attend. Write a letter to the organizers. In your letter:\n- Thank them for the invitation.\n- Explain why you cannot attend.\n- Suggest someone else who could speak in your place.",opening:""},{topic:"You need to cancel a reservation you had made for a banquet hall due to unforeseen circumstances. Write a letter to the manager of the banquet hall. In your letter:\n- Provide details of the reservation.\n- Explain the reason for the cancellation.\n- Inquire about any possible cancellation fees.",opening:""},{topic:"A friend has agreed to house-sit for you while you\u2019re on vacation. Write a letter to your friend. In your letter:\n- Remind them when you will be leaving and returning.\n- Give them instructions on how to care for your pet.\n- Tell them how to use any appliances or items they might need.",opening:""},{topic:"Your local museum is soliciting volunteer guides for a new exhibition. Write a letter to express your interest. In your letter:\n- Mention your background and any relevant experience.\n- Explain why you are interested in this role.\n- Ask about the next steps in the volunteer selection process.",opening:""},{topic:"The public park in your neighborhood is in need of renovation. Write a letter to the city council. In your letter:\n- Describe the current condition of the park.\n- Explain how the community uses the park.\n- Suggest specific improvements that could be made.",opening:""},{topic:"You\u2019ve recently read a book that you found to be extremely valuable and think your friend would benefit from it as well. Write a letter to this friend. In your letter:\n- Describe the book.\n- Explain why you found it valuable.\n- Suggest why they should read it.",opening:""},{topic:"Your child\u2019s school is asking for volunteers to help with a special after-school program. Write a letter to the school. In your letter:\n- Introduce yourself and your child.\n- Express your interest in volunteering.\n- Highlight any relevant skills or experience you have.",opening:""},{topic:"You're submitting an article for a competition in a magazine. Write a cover letter to accompany your submission. In your letter:\n- Introduce yourself briefly.\n- Provide a summary of the article you are submitting.\n- Explain why your article should be considered for the competition.",opening:""},{topic:"You want to install solar panels on your roof and need to seek permission from the local council. Write a letter to the council. In your letter:\n- Explain why you want to install solar panels.\n- Outline your plan for installation.\n- Request the council\u2019s permission or approval.",opening:""},{topic:"You had a memorable meal at a friend\u2019s house and would like to compliment the cook. Write a letter to your friend. In your letter:\n- Thank them for the invitation.\n- Describe what you enjoyed about the meal.\n- Request the recipe for one of the dishes you particularly liked.",opening:""},{topic:"Your company is considering a new uniform and is seeking suggestions from employees. Write a letter to your HR manager. In your letter:\n- Offer your feedback on the current uniform.\n- Suggest improvements or changes for the new uniform design.\n- Explain why these changes would be beneficial.",opening:""},{topic:"You have noticed an error in your latest bank statement. Write a letter to the bank. In your letter:\n- Detail the error you discovered.\n- Explain how this mistake affects your account.\n- Ask the bank to rectify the error and confirm once it has been fixed.",opening:""},{topic:"A recent storm has caused damage to your property and you need to inform your insurance company. Write a letter to the company. In your letter:\n- Describe the damage to your property.\n- Provide specific details about when the storm occurred.\n- Ask about the next steps in the claims process.",opening:""},{topic:"Your neighborhood is considering implementing a recycling program and is gathering resident input. Write a letter to the community board. In your letter:\n- Express your support for the recycling program.\n- Share ideas on how to encourage participation among residents.\n- Offer to help with the program in some way.",opening:""},{topic:"You are planning a local art exhibition and are looking for artists to participate. Write a letter to an artist you admire. In your letter:\n- Introduce yourself and the exhibition.\n- Explain why you think their work would be a good fit.\n- Invite them to participate and provide details on how they can do so.",opening:""},{topic:"Your favorite local radio station is seeking suggestions for new programs. Write a letter to the station manager. In your letter:\n- Mention why you like the radio station.\n- Suggest a new program idea.\n- Explain why listeners would enjoy your suggested program.",opening:""},{topic:"You have a dispute with a neighbor over a boundary line. Write a letter to your neighbor. In your letter:\n- Politely explain the situation from your perspective.\n- Suggest a meeting to discuss the matter in person.\n- Propose possible solutions to resolve the dispute.",opening:""},{topic:"You lost a bag containing important documents in a taxi and need to report it. Write a letter to the taxi company. In your letter:\n- Describe the bag and its contents.\n- Provide details of your journey.\n- Ask for their assistance in locating your lost bag.",opening:""},{topic:"A friend is thinking about starting a small business and has asked for your advice. Write a letter to your friend. In your letter:\n- Share your thoughts on the idea.\n- Offer practical advice based on your own experience.\n- Encourage them and suggest next steps they could take.",opening:""},{topic:"You were impressed by a seminar you attended and want to thank the organizer. Write a letter to the seminar organizer. In your letter:\n- Mention the seminar you attended.\n- Express what you found valuable.\n- Thank them for their efforts in organizing the event.",opening:""},{topic:"You've found a job listing for a position you're interested in but need more information. Write a letter to the HR department of the company. In your letter:\n- Specify the job you\u2019re interested in.\n- Ask specific questions about the job role.\n- Inquire about the application process.",opening:""},{topic:"Your apartment complex is experiencing frequent power outages. Write a letter to the management company. In your letter:\n- Describe the problem and its frequency.\n- Explain how these outages are affecting you.\n- Request that the problem be addressed immediately.",opening:""},{topic:"You are organizing a charity event and need sponsors. Write a letter to a potential sponsor. In your letter:\n- Introduce yourself and the charity event.\n- Explain why their sponsorship would be valuable.\n- Describe what benefits the sponsor would receive.",opening:""},{topic:"After staying at a bed and breakfast, you realized you were overcharged. Write a letter to the owner. In your letter:\n- Describe the situation and the overcharge.\n- Provide details of your stay.\n- Request a refund for the overcharged amount.",opening:""},{topic:"You recently attended a workshop and were particularly impressed by the speaker. Write a letter to the speaker. In your letter:\n- Introduce yourself.\n- Express what you enjoyed about their presentation.\n- Ask for further information on a specific topic they covered.",opening:""},{topic:"Your neighborhood plans to create a community garden and is looking for design ideas. Write a letter to the planning committee. In your letter:\n- Suggest your ideas for the garden layout.\n- Recommend specific plants or features to include.\n- Offer to help with the garden\u2019s creation.",opening:""},{topic:"You borrowed a book from a friend that you accidentally damaged. Write a letter to your friend. In your letter:\n- Explain how the damage occurred.\n- Apologize for the mishap.\n- Suggest how you intend to make amends.",opening:""},{topic:"Your local council has proposed a new road to be built near your home. You have concerns about this. Write a letter to the council. In your letter:\n- Explain your concerns about the new road.\n- Describe how it could affect the local community.\n- Suggest alternative solutions.",opening:""},{topic:"A company you are interested in working for is offering internships. Write a letter to the HR department. In your letter:\n- Introduce yourself and your field of study.\n- Express your interest in the internship and why you think you are a good fit.\n- Inquire about the application process and any additional information needed.",opening:""},{topic:"After dining at a local restaurant, you left your sunglasses behind. Write a letter to the restaurant manager. In your letter:\n- Describe the sunglasses and where you think you left them.\n- Ask if they have been found.\n- Request information on how you can get them back.",opening:""},{topic:"You are planning a special anniversary event and are looking for a venue. Write a letter to a venue that interests you. In your letter:\n- Introduce yourself and the event you are planning.\n- Inquire about the availability of the venue on specific dates.\n- Ask for information regarding pricing and services provided.",opening:""},{topic:"Your local library is seeking suggestions for new books to add to its collection. Write a letter to the librarian. In your letter:\n- Suggest some titles or genres you think should be added.\n- Explain why these additions would benefit the library\u2019s collection.\n- Offer to assist in a book drive to collect donations.",opening:""},{topic:"You recently had a negative experience with a delivery service. Write a letter to the company. In your letter:\n- Describe the service you received.\n- Explain why it was unsatisfactory.\n- Suggest ways the company could improve its service in the future.",opening:""},{topic:"You are interested in a fitness program advertised at a local gym. Write a letter to the gym manager. In your letter:\n- Introduce yourself.\n- Express your interest in the program and ask for more details.\n- Inquire about membership fees and any promotional offers.",opening:""},{topic:"A friend is considering moving to your country and has asked for your advice. Write a letter to your friend. In your letter:\n- Share why you think moving to your country is a good idea.\n- Offer advice on how they can make the transition easier.\n- Propose ways you could help them settle in.",opening:""},{topic:"You've been selected to give a presentation at a conference but need specific equipment for your talk. Write a letter to the organizers. In your letter:\n- Confirm your participation.\n- Detail the equipment you need for your presentation.\n- Ask about the availability of this equipment at the venue.",opening:""},{topic:"You want to nominate a co-worker for an award being offered in your workplace. Write a letter to the nomination committee. In your letter:\n- Introduce yourself and your co-worker.\n- Explain why you believe your co-worker deserves the award.\n- Provide examples of your co-worker\u2019s achievements.",opening:""},{topic:"Your child\u2019s school is seeking donations for upgraded facilities. Write a letter to local businesses asking for sponsorship. In your letter:\n- Introduce yourself and the purpose of the letter.\n- Detail the field trip and its educational value.\n- Explain how businesses can contribute and the benefits of their sponsorship.",opening:""},{topic:"You are planning a community event and need to borrow equipment from a local business. Write a letter to the business owner. In your letter:\n- Describe the event and its purpose.\n- List the equipment you need to borrow.\n- Propose how you will ensure the equipment\u2019s safe return.",opening:""},{topic:"A discrepancy has appeared in your bank account statement. Write a letter to your bank. In your letter:\n- Detail the discrepancy.\n- Provide account details and any relevant transactions.\n- Request an urgent investigation and resolution.",opening:""},{topic:"You would like to participate in a work exchange program you found advertised online. Write a letter to the program coordinator. In your letter:\n- Introduce yourself and your current occupation.\n- Express your interest in the program.\n- Inquire about the application process and any specific requirements.",opening:""},{topic:"A recent storm has caused damage to your neighborhood's communal areas. Write a letter to the local government. In your letter:\n- Describe the damage caused by the storm.\n- Highlight the areas in urgent need of repair.\n- Request swift action to address the damages.",opening:""},{topic:"Your favorite magazine has requested reader submissions for their next issue. Write a letter to the editor. In your letter:\n- Introduce yourself and mention your favorite sections of the magazine.\n- Propose your idea for a submission.\n- Explain why readers would find your contribution interesting.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were impressed by a recent talk at your local library and would like to learn more about the topic. Write a letter to the speaker. In your letter:\n- Comment on what you found interesting in the talk.\n- Pose questions you have on the subject.\n- Request additional resources or readings on the topic.",opening:""},{topic:"There has been a misunderstanding regarding a service charge on your last restaurant bill. Write a letter to the restaurant manager. In your letter:\n- Detail the misunderstanding.\n- Explain what you believe the correct charge should be.\n- Request an adjustment to your bill.",opening:""},{topic:"You and your family are considering adopting a pet from the local shelter. Write a letter to the shelter. In your letter:\n- Introduce your family and living situation.\n- Express your interest in adopting a pet.\n- Inquire about the process, including any home visits or fees.",opening:""},{topic:"A new development is being planned in your neighborhood, and you have concerns about its impact. Write a letter to the development company. In your letter:\n- Share your appreciation for the neighborhood\u2019s current state.\n- Express your concerns about the planned development.\n- Request a meeting to discuss the project in more detail.",opening:""},{topic:"You found a wallet on the street and would like to return it to its owner. Write a letter to your local police station. In your letter:\n- Describe where and when you found the wallet.\n- Mention any attempts you\u2019ve made to find the owner.\n- Ask how you can best return the wallet.",opening:""},{topic:"Your friend's pet often wanders into your yard, causing damage. Write a letter to your friend. In your letter:\n- Politely describe the problem and the damage caused.\n- Suggest solutions to prevent future occurrences.\n- Express your hope for a friendly resolution.",opening:""},{topic:"You are studying a language and would like to practice speaking with a native speaker. Write a letter to a language exchange club. In your letter:\n- Introduce yourself and mention the language you are learning.\n- Explain your current level and your goals for improvement.\n- Ask about opportunities to participate in language exchange.",opening:""},{topic:"A friend gifted you a book that you already own. Write a letter to your friend. In your letter:\n- Thank them for the gift.\n- Mention that you already have a copy of the book.\n- Suggest a solution or an alternative.",opening:""},{topic:"You recently lost an item of sentimental value during a stay at a hotel. Write a letter to the hotel manager. In your letter:\n- Describe the item and its sentimental value to you.\n- Detail where and when you believe you lost it.\n- Request assistance in finding and returning the item.",opening:""},{topic:"Your child\u2019s school is seeking donations for upgraded facilities. Write a letter to local businesses asking for sponsorship. In your letter:\n- Explain the current state of the school\u2019s facilities.\n- Detail what improvements are needed and why.\n- Encourage local businesses to contribute and offer incentives for doing so.",opening:""},{topic:"You are planning a community event and need to borrow equipment from a local business. Write a letter to the business owner. In your letter:\n- Describe the event and its purpose.\n- List the equipment you need to borrow.\n- Propose how you will ensure the equipment\u2019s safe return.",opening:""},{topic:"A discrepancy has appeared in your bank account statement. Write a letter to your bank. In your letter:\n- Detail the discrepancy.\n- Provide account details and any relevant transactions.\n- Request an urgent investigation and resolution.",opening:""},{topic:"You would like to participate in a work exchange program you found advertised online. Write a letter to the program coordinator. In your letter:\n- Introduce yourself and your current occupation.\n- Express your interest in the program.\n- Inquire about the application process and any specific requirements.",opening:""},{topic:"A recent storm has caused damage to your neighborhood's communal areas. Write a letter to the local government. In your letter:\n- Describe the damage caused by the storm.\n- Highlight the areas in urgent need of repair.\n- Request swift action to address the damages.",opening:""},{topic:"Your favorite magazine has requested reader submissions for their next issue. Write a letter to the editor. In your letter:\n- Introduce yourself and mention your favorite sections of the magazine.\n- Propose your idea for a submission.\n- Explain why readers would find your contribution interesting.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""},{topic:"Interest in a local historical building has waned, and it is now at risk of being forgotten. Write a letter to the editor of your local newspaper. In your letter:\n- Express your concern about the building\u2019s neglect.\n- Highlight the building\u2019s historical importance.\n- Suggest ways to revive public interest and preserve the building.",opening:""},{topic:"You were unable to attend an important family gathering. Write a letter to your family. In your letter:\n- Apologize for your absence.\n- Explain the reason why you could not attend.\n- Express your regret and ask about the event.",opening:""},{topic:"You wish to enroll your child in an after-school program but require additional information. Write a letter to the program organizer. In your letter:\n- Introduce yourself and your child.\n- Express your interest in the program.\n- Request detailed information about program activities, schedule, and fees.",opening:""}],t=e[Math.floor(Math.random()*e.length)];this.props.prompt.prompts[0].value=t.topic,this.props.prompt.prompts[1].value=t.opening},this.ieltsgeneral2=()=>{const e=[{topic:"With the advance of technology, many jobs traditionally performed by humans are being automated. Discuss the advantages and disadvantages of automation in the workplace. What measures should be taken to mitigate any negative impacts?",opening:""},{topic:"The rise of fast food has led to an increase in obesity rates worldwide. Some argue that governments should impose taxes on fast food to encourage healthier eating habits. To what extent do you agree or disagree with this approach? What alternative strategies might be more effective?",opening:""},{topic:"Climate change is one of the greatest challenges facing the world today. Some people believe that individuals can make a significant contribution to combatting climate change, while others think that only large-scale actions by governments and corporations will make a difference. Discuss both views and give your own opinion.",opening:""},{topic:"In many countries, the gap between the rich and the poor is widening. What do you think are the causes of this trend? What solutions can be offered to reduce income inequality?",opening:""},{topic:"The rise of social media has changed the way we communicate and interact with each other. While some people believe social media has positive effects on our social life, others argue it has led to a decline in real-life social interactions. Discuss both sides and give your own opinion.",opening:""},{topic:"Urbanization is a trend in many parts of the world. While living in cities offers numerous advantages such as access to jobs, education, and healthcare, it also comes with challenges like pollution and overcrowding. What measures should urban planners and governments take to address these challenges?",opening:""},{topic:"The aging population is becoming a concern for many countries. Discuss the social and economic effects of an aging population. What policies can be implemented to manage these effects?",opening:""},{topic:"With the increasing pressure of work and life, many people are experiencing stress-related issues. What do you think are the main causes of stress in modern life? How can individuals and society as a whole work to reduce stress levels?",opening:""},{topic:"Education systems around the world are constantly evolving. Some argue that the education system should focus more on preparing students for the workforce, while others believe the emphasis should remain on providing a well-rounded education. Discuss both views and give your opinion.",opening:""},{topic:"The availability and consumption of genetically modified (GM) foods have been increasing. Discuss the potential benefits and risks associated with GM foods. Should governments regulate the production and sale of GM foods more strictly?",opening:""},{topic:"As cities grow, public transportation becomes increasingly important. Discuss the benefits of investing in public transportation and the consequences if cities fail to do so. What are some innovative solutions for urban transportation problems?",opening:""},{topic:"The global population is estimated to reach 9 billion by 2050. What challenges does this pose for food security, and what strategies can be employed to ensure everyone has access to adequate nutrition?",opening:""},{topic:"International tourism has grown rapidly in recent decades. Discuss the impact of tourism on local communities and the environment. How can sustainable tourism be promoted?",opening:""},{topic:"Digital currencies and blockchain technology are gaining popularity. Discuss the potential impacts of these technologies on the global economy and financial systems. What challenges do they pose for regulators?",opening:""},{topic:"Remote work has become more prevalent due to advances in technology and recent global events. Discuss the advantages and disadvantages of remote work for individuals and businesses. How can businesses adapt to effectively manage a remote workforce?",opening:""},{topic:"Mental health awareness has increased, but many people still do not seek help when they need it. Discuss the barriers to accessing mental health services and suggest ways to improve mental health care.",opening:""},{topic:"The demand for renewable energy sources is rising as the world seeks to reduce carbon emissions. Discuss the benefits and challenges of transitioning to renewable energy. What role can governments and individuals play in this transition?",opening:""},{topic:"Plastic pollution has become a significant environmental issue. Discuss the impact of plastic waste on the environment and marine life. What measures can be taken to reduce plastic pollution?",opening:""},{topic:"Cultural heritage sites around the world are at risk due to various factors including climate change and urbanization. Discuss the importance of preserving cultural heritage and suggest ways to protect these sites for future generations.",opening:""},{topic:"The trend of online learning has accelerated, offering new opportunities and challenges for education. Discuss the advantages and disadvantages of online education. How can it be improved to benefit students worldwide?",opening:""},{topic:"Water scarcity affects billions of people globally. Discuss the causes of water scarcity and its impact on society and agriculture. What solutions can be implemented to ensure sustainable water management?",opening:""},{topic:"Youth unemployment remains a significant challenge in many countries. Discuss the causes of youth unemployment and propose strategies to improve job opportunities for young people.",opening:""},{topic:"Space exploration has made significant progress in recent years. Discuss the benefits and drawbacks of investing in space exploration. Should the focus be on exploring space or solving Earth's problems first?",opening:""},{topic:"The media plays a vital role in society, but concerns about media bias and misinformation are growing. Discuss the effects of media bias on public opinion and democracy. How can media integrity be ensured?",opening:""},{topic:"Artificial Intelligence (AI) is transforming various sectors. Discuss the implications of AI for employment and ethical considerations. How can society prepare for the changes brought about by AI?",opening:""},{topic:"The fashion industry is often criticized for its environmental impact and unsustainable practices. Discuss the importance of sustainable fashion and how consumers can make more environmentally friendly choices.",opening:""},{topic:"The use of surveillance technology by governments and corporations is increasing. Discuss the benefits and privacy concerns associated with surveillance technology. How can a balance between security and privacy be maintained?",opening:""},{topic:"Biodiversity is declining at an unprecedented rate due to human activities. Discuss the importance of biodiversity for ecosystems and humans. What actions are needed to protect global biodiversity?",opening:""},{topic:"The balance between work and life is crucial for well-being. Discuss the factors contributing to work-life balance challenges. What strategies can individuals and employers implement to improve work-life balance?",opening:""},{topic:"The relationship between humans and animals has evolved, with growing concern for animal rights and welfare. Discuss the importance of animal welfare and the ethical considerations in using animals for food, research, and entertainment.",opening:""},{topic:"Sports serve as an important cultural and social phenomenon. Discuss the role of major sporting events in promoting international unity and understanding. How can these events also contribute to economic development?",opening:""},{topic:"The rise in consumerism has significant environmental and social impacts. Discuss the reasons for increased consumerism and how it affects society and the planet. What steps can be taken to promote a more sustainable consumer culture?",opening:""},{topic:"Cybersecurity threats are becoming more sophisticated and widespread. Discuss the importance of cybersecurity for individuals and businesses. What measures should be taken to protect sensitive information from cyber-attacks?",opening:""},{topic:"Language learning has been shown to have numerous cognitive and social benefits. Discuss the advantages of learning a foreign language and the best methods for language acquisition in today's globalized world.",opening:""},{topic:"The arts are often seen as non-essential, especially in times of economic hardship. Discuss the value of the arts in society and the impact of the arts on individuals and communities. Should public funding for the arts be a priority?",opening:""},{topic:"The rise of gig economy jobs offers flexibility but also poses new challenges for workers' rights and job security. Discuss the advantages and disadvantages of gig economy jobs for workers and the economy. What measures should be in place to protect gig workers?",opening:""},{topic:"The global increase in single-person households has significant societal implications. Discuss the reasons for this trend and its potential impact on communities and social structures. How can societies adapt to this demographic change?",opening:""},{topic:"Nutrition and diet play a crucial role in health, but access to healthy food options is not equal for everyone. Discuss the factors contributing to food deserts and their impact on public health. What solutions can be implemented to ensure equitable access to nutritious foods?",opening:""},{topic:"Urban green spaces provide numerous benefits but are often overlooked in city planning. Discuss the importance of green spaces for urban residents and the environment. How can cities ensure the integration and preservation of green spaces?",opening:""},{topic:"The concept of universal basic income (UBI) has gained attention as a potential solution to poverty and the challenges of automation. Discuss the advantages and disadvantages of UBI. How could it be implemented effectively?",opening:""},{topic:"As life expectancy increases, many countries face the challenge of supporting an aging workforce. Discuss the potential impacts on the economy and society, and suggest measures to address these challenges.",opening:""},{topic:"The digital divide separates those who have access to technology and the internet from those who do not. Discuss the consequences of the digital divide and propose solutions to bridge this gap.",opening:""},{topic:"Parenting styles vary widely and can significantly impact child development. Discuss the effects of different parenting styles on children. What approach do you think is most beneficial?",opening:""},{topic:"The rise of artificial meat and plant-based diets has sparked debate. Discuss the environmental and health implications of this trend. Can artificial or plant-based meat substitutes adequately replace traditional meat?",opening:""},{topic:"With the increasing prevalence of social media, privacy concerns have escalated. Discuss the importance of privacy in the digital age and how individuals can safeguard their personal information.",opening:""},{topic:"Volunteerism has social, economic, and individual benefits. Discuss the importance of volunteer work and how societies can encourage more people to volunteer.",opening:""},{topic:"The gig economy is changing the nature of work and employment. Discuss the positives and negatives of this shift for workers and the economy.",opening:""},{topic:"As global travel becomes more accessible, concerns about 'overtourism' and its effects on local environments and communities have grown. Discuss strategies to manage and mitigate the impact of overtourism.",opening:""},{topic:"Financial literacy is increasingly recognized as a key skill. Discuss the importance of financial education and how it can be improved across different populations.",opening:""},{topic:"As the world becomes more interconnected, cross-cultural communication has become essential. Discuss the barriers to effective cross-cultural communication and how they can be overcome.",opening:""},{topic:"The trend towards minimalism and decluttering has gained popularity. Discuss the psychological and environmental benefits of living with less.",opening:""},{topic:"Renewable energy technologies are evolving rapidly. Discuss the latest developments in renewable energy and their potential to transform the global energy landscape.",opening:""},{topic:"The fashion industry faces criticism for its environmental impact and ethical practices. Discuss the shift towards ethical and sustainable fashion.",opening:""},{topic:"Crowdfunding and peer-to-peer lending have changed the way individuals and businesses raise money. Discuss the benefits and risks associated with these financing methods.",opening:""},{topic:"The integration of drones into civilian life presents new opportunities and challenges. Discuss the potential uses of drones and the ethical considerations they raise.",opening:""},{topic:"With a growing emphasis on STEM education, some worry that the arts and humanities are being undervalued. Discuss the importance of a balanced education that includes the arts and humanities.",opening:""},{topic:"The phenomenon of 'cancel culture' has sparked debate about freedom of speech and accountability. Discuss the implications of cancel culture for society and individual behavior.",opening:""},{topic:"Community gardens and urban farming have been touted as solutions to food insecurity and sustainability issues. Discuss the benefits and challenges of urban agriculture.",opening:""},{topic:"As more businesses commit to corporate social responsibility, questions arise about the motivations and impacts of these efforts. Discuss the effectiveness of corporate social responsibility initiatives.",opening:""},{topic:"Telemedicine has expanded rapidly, offering new opportunities for healthcare delivery. Discuss the advantages and limitations of telemedicine, and its potential to reshape healthcare.",opening:""},{topic:"The rise of esports has transformed video gaming into a spectator sport. Discuss the growth of esports and its implications for traditional sports and entertainment.",opening:""},{topic:"With increased attention on mental health, workplaces are beginning to implement wellness programs. Discuss the benefits of workplace wellness programs and potential improvements.",opening:""},{topic:"The pursuit of happiness is considered a fundamental human goal. Discuss how different cultures pursue and perceive happiness, and the impact this has on society.",opening:""},{topic:"The debate over net neutrality raises questions about internet access and fairness. Discuss the importance of net neutrality and the potential consequences of its repeal.",opening:""},{topic:"Mass transit systems face various challenges and opportunities in modern cities. Discuss the future of mass transit and how cities can create efficient, sustainable transportation options.",opening:""},{topic:"The phenomenon of global warming requires urgent action. Discuss innovative solutions that individuals, communities, and governments can implement to combat climate change.",opening:""},{topic:"Microplastics have emerged as a significant environmental threat. Discuss the sources of microplastic pollution and strategies for reducing their impact on ecosystems.",opening:""},{topic:"The rise of 'smart cities' promises to revolutionize urban living. Discuss the potential benefits and risks associated with the development of smart cities.",opening:""},{topic:"The relationship between humans and wildlife is increasingly strained by habitat loss and climate change. Discuss strategies to promote coexistence and protect biodiversity.",opening:""},{topic:"The sharing economy has reshaped how people live, work, and interact. Discuss the impact of the sharing economy on traditional business models and consumer behavior.",opening:""},{topic:"The increase in surveillance technologies has sparked debate about security versus privacy. Discuss the balance between using surveillance for public safety and protecting individual privacy.",opening:""},{topic:"The trend of remote and flexible working is reshaping the concept of the workplace. Discuss the long-term implications of this shift for employees and employers.",opening:""},{topic:"With advancements in genetic engineering, ethical debates have intensified. Discuss the ethical considerations of genetic modifications in humans, plants, and animals.",opening:""},{topic:"Fan culture has expanded rapidly with the rise of social media, affecting entertainment and media industries. Discuss the impact of fan culture on content creation and distribution.",opening:""},{topic:"The quest for renewable and clean energy sources is more vital than ever. Discuss the role of nuclear energy in the transition to a sustainable energy future.",opening:""},{topic:"Educational technology has transformed learning opportunities worldwide. Discuss the benefits and challenges of incorporating technology in education.",opening:""},{topic:"Professional sports face scrutiny regarding athletes' mental health. Discuss the pressures professional athletes face and how sports organizations can support their mental well-being.",opening:""},{topic:"Public art initiatives can transform urban landscapes and communities. Discuss the value of public art and its impact on cities.",opening:""},{topic:"The normalization of diplomatic relations between historically adversarial countries presents both opportunities and challenges. Discuss the impact of such diplomatic efforts on global stability.",opening:""},{topic:"Economic sanctions are a common tool for international diplomacy. Discuss the effectiveness and ethical implications of using sanctions as a means to influence other countries.",opening:""},{topic:"Language preservation efforts are crucial for maintaining cultural diversity. Discuss the challenges and strategies for preserving endangered languages.",opening:""},{topic:"The phenomenon of social media influencers has transformed marketing and brand engagement. Discuss the impact of influencers on consumer behavior and marketing strategies.",opening:""},{topic:"The implementation of universal healthcare systems varies globally. Discuss the challenges and benefits of providing universal healthcare.",opening:""},{topic:"Urban wildlife adaptation offers insights into resilience and cohabitation. Discuss the impact of urbanization on wildlife and how cities can support biodiversity.",opening:""},{topic:"Mass shootings and gun control are contentious topics in many countries. Discuss the relationship between gun control policies and the incidence of mass shootings.",opening:""},{topic:"The global increase in antisemitism and other forms of racial and ethnic hatred poses a significant challenge. Discuss strategies to combat racism and promote inclusiveness.",opening:""},{topic:"International space collaborations bring together diverse countries for scientific exploration. Discuss the benefits and challenges of international cooperation in space.",opening:""},{topic:"The rise of autonomous vehicles promises to revolutionize transportation. Discuss the potential benefits and challenges associated with self-driving cars.",opening:""},{topic:"Ocean acidification poses a significant threat to marine ecosystems. Discuss the causes of ocean acidification and its impact on marine life and human societies.",opening:""},{topic:"The intersection of technology and healthcare, such as wearable health devices, offers new opportunities for health management. Discuss the benefits and potential privacy concerns of health tracking technologies.",opening:""},{topic:"Craftsmanship and traditional skills are at risk of decline in the modern world. Discuss the importance of preserving traditional crafts and the challenges faced.",opening:""},{topic:"The trade-off between economic development and environmental sustainability presents a significant challenge. Discuss strategies for achieving a balance between these two goals.",opening:""},{topic:"The trend towards global vegetarianism and veganism is growing. Discuss the environmental, health, and ethical motivations behind this shift and its potential impact.",opening:""},{topic:"Digital literacy is essential in the modern world. Discuss the importance of digital literacy and how it can be promoted across different age groups.",opening:""},{topic:"The phenomenon of urban heat islands affects cities worldwide. Discuss the causes and impacts of urban heat islands and mitigation strategies.",opening:""},{topic:"Collective memory and historical narratives play a crucial role in shaping national identities. Discuss the impact of collective memory on society and politics.",opening:""},{topic:"The global response to pandemics, such as COVID-19, requires cooperation and coordination. Discuss the lessons learned from global health crises and the way forward.",opening:""},{topic:"The role of women in STEM fields has gained increasing attention. Discuss the importance of gender diversity in STEM and strategies to encourage more women to pursue careers in these fields.",opening:""},{topic:"Affordable housing remains a critical issue in many urban areas. Discuss the causes of the affordable housing crisis and potential solutions to ensure housing accessibility for all.",opening:""},{topic:"The global trend towards cashless societies has accelerated. Discuss the benefits and challenges of moving towards cashless transactions and the impact on different sectors of society.",opening:""}],t=e[Math.floor(Math.random()*e.length)];this.props.prompt.prompts[0].value=t.topic,this.props.prompt.prompts[1].value=t.opening},this.hkdse2=()=>{const e=[{topic:"Hong Kong's culinary scene is a melting pot where East meets West, offering a unique fusion cuisine that is renowned worldwide. Write an article for a global food magazine where you introduce and explain the concept of fusion cuisine in Hong Kong. Highlight specific dishes that embody this cultural blend and argue why tourists should not leave Hong Kong without trying them.",opening:""},{topic:"During the recent global health crisis, educational institutions in Hong Kong rapidly adjusted by incorporating Virtual Reality (VR) technology to facilitate remote learning. As a tech enthusiast and a student, author a blog post discussing the pros and cons of using VR for educational purposes. Reflect on how this technology could shape the future of education in Hong Kong and beyond.",opening:""},{topic:"With the growing concern over environmental issues, Hong Kong has seen an increase in eco-friendly initiatives aimed at making the city greener. Write an essay for a local environmental newsletter about the impact of urban green spaces, such as parks and roof gardens, on the city's ecology and the well-being of its residents. Discuss the balance between urban development and environmental preservation.",opening:""},{topic:"eSports has rapidly gained popularity in Hong Kong, with many viewing it as both a legitimate form of entertainment and a competitive sport. As a young eSports enthusiast, craft an article for your school's digital newsletter explaining what eSports are, why they are becoming so popular in Hong Kong, and how they are influencing the youth culture. Include insights from interviews with local eSports players or fans.",opening:""},{topic:"Hong Kong is known for its efficient public transportation system. Imagine that a new, innovative form of public transportation has been proposed to make the city even more accessible. As a member of a youth urban planning forum, write a proposal outlining this innovative public transportation idea, its potential benefits for residents and tourists, and how it could position Hong Kong as a leader in urban mobility solutions. This proposal will be presented at the next city council meeting for consideration.",opening:""},{topic:"The tradition of dim sum is one of the hallmarks of Cantonese culture, especially in Hong Kong. Write an article for a cultural heritage magazine exploring the history of dim sum, its significance in family and social gatherings, and how this tradition has evolved in the modern era. Offer suggestions on how tourists can experience authentic dim sum in Hong Kong.",opening:""},{topic:"With the rise of digital media, traditional print newspapers in Hong Kong have seen a significant decline in readership. As an aspiring journalist, write an essay discussing the challenges faced by print media in the digital age. Consider the importance of maintaining journalistic integrity and explore ways print media can innovate to remain relevant in today\u2019s digital landscape.",opening:""},{topic:"Hong Kong's skyline is recognized worldwide, featuring an impressive array of skyscrapers. However, this has also led to concerns about overdevelopment and its impact on the city's natural scenery and biodiversity. Write a letter to the editor of a local newspaper expressing your concern about architectural overdevelopment and suggest sustainable urban planning measures that can help preserve Hong Kong's natural beauty while accommodating its growth.",opening:""},{topic:"In response to the global push for sustainable living, many Hong Kong residents have started adopting zero-waste lifestyles. Write a feature article for an environmental blog sharing stories of individuals or communities in Hong Kong who have embraced this lifestyle. Discuss the challenges they face, the impact of their actions on the environment, and how others can be encouraged to make similar lifestyle changes.",opening:""},{topic:"Hong Kong is famous for its vibrant festivals, which attract tourists from all around the world. Imagine you are organizing a new festival in Hong Kong designed to promote cultural understanding and unity. Write a proposal for the government or potential sponsors, detailing the theme of the festival, the activities planned, how it will attract both locals and tourists, and its expected impact on promoting cultural harmony and boosting tourism.",opening:""},{topic:"The Hong Kong government has announced plans to invest in smart city technologies to improve urban living. As a technology enthusiast, you've been invited to contribute an article to a local tech magazine about the potential benefits and drawbacks of living in a smart city. Discuss how technologies like IoT (Internet of Things), AI (Artificial Intelligence), and Big Data could transform everyday life in Hong Kong, and consider the implications for privacy and security.",opening:""},{topic:"Hong Kong's film industry has historically played a significant role in presenting the city's culture to the world, but it has faced various challenges in recent years. Write an opinion piece for a film critic's blog analyzing the current state of the Hong Kong film industry. Discuss how it can rediscover its glory amidst the competition from Hollywood and other Asian film industries, and the role of digital platforms in this revival.",opening:""},{topic:"Community gardens have started sprouting up in various parts of Hong Kong as more people seek to connect with nature and grow their own food. As a community garden organizer, draft an inspirational story for a community newsletter, detailing the journey of setting up a community garden in an urban area. Highlight the challenges faced, the community involvement, the environmental impact, and the personal fulfillment gained from this initiative.",opening:""},{topic:"Given the high-pressure academic and professional environment in Hong Kong, mental health awareness is increasingly important. You are the founder of a mental health awareness campaign at your school. Write a proposal to the school's administration, suggesting practical steps that could be implemented to support students' mental health, including awareness programs, counseling services, and stress management workshops. Explain how these measures can contribute to a healthier, more supportive school environment.",opening:""},{topic:"Hong Kong's unique blend of Eastern and Western influences is evident in its diverse range of artistic expressions. As an artist or art enthusiast, prepare an article for an art magazine that explores how Hong Kong's unique identity is reflected through its contemporary art scene. Discuss specific artists or art movements within the city that embody this cultural fusion, and consider how the art scene contributes to the ongoing dialogue about Hong Kong's identity.",opening:""},{topic:"With the rapid advancement of technology, Hong Kong has seen an increase in the use of drones for various purposes, ranging from delivery services to aerial photography. However, this rise has also sparked debates over privacy and safety. Write an editorial for a technology magazine, presenting your views on how Hong Kong can balance the benefits of drone technology with the need to protect citizens' privacy and ensure public safety.",opening:""},{topic:"Hong Kong's street markets are famous for their vibrant atmosphere and diverse offerings, from food to fashion. However, modern retail developments and online shopping are threatening their existence. As a cultural analyst, write a feature article for a lifestyle magazine, arguing the importance of preserving these markets. Discuss their cultural significance, economic impact, and role in the community, and propose ways to keep them relevant in the digital age.",opening:""},{topic:"In an effort to promote physical fitness and reduce the city's carbon footprint, the Hong Kong government proposes a city-wide cycling initiative. As a public health advocate, write a proposal to be submitted to the City Council outlining how this initiative could be implemented. Detail the potential health benefits, environmental impact, and the necessary infrastructure improvements to make Hong Kong a bike-friendly city.",opening:""},{topic:"The music scene in Hong Kong is as diverse as its population, offering everything from Cantopop to indie rock. As a young music journalist, you've observed a recent resurgence in interest in local music. Write an article for a youth culture magazine, highlighting the recent trends in Hong Kong's music scene. Focus on emerging artists, the role of live music venues, and how social media is transforming the way music is produced and consumed in the city.",opening:""},{topic:"As a response to global environmental concerns, many cities, including Hong Kong, are striving to increase their green space. However, creating new parks and green areas in a densely populated city presents unique challenges. Draft a report for an urban planning conference discussing these challenges specifically for Hong Kong. Propose innovative solutions that integrate urban development with green space creation, such as vertical gardens, rooftop parks, and the revitalization of underused areas.",opening:""},{topic:"With the growth of the gig economy in Hong Kong, many individuals are choosing freelance work over traditional employment for its flexibility and independence. Write an article for a business magazine analyzing the rise of the gig economy in Hong Kong. Discuss its impact on the workforce, the economy, and how it is reshaping traditional job structures.",opening:""},{topic:"As an environmental club leader at your school, you've noticed an alarming increase in plastic waste on campus. Write a proposal to the school administration suggesting practical ways to reduce plastic usage among students and staff. Include initiatives such as recycling programs, banning single-use plastics, and promoting reusable items. Explain the potential environmental benefits and how these efforts can foster a culture of sustainability in school.",opening:""},{topic:"Hong Kong's rich history and diverse culture have made it a melting pot of traditions and languages. As a cultural studies student, write an essay exploring the significance of preserving linguistic diversity in Hong Kong, particularly focusing on Cantonese and other minority languages. Discuss the role language plays in cultural identity and how it contributes to the city's unique heritage.",opening:""},{topic:"The annual Hong Kong Marathon promotes health, fitness, and community spirit but also brings about road closures and transportation disruptions. As a local journalist, write an article for a community news website weighing the pros and cons of hosting such large-scale events in densely populated urban areas. Suggest ways to balance the benefits of these events with the need to minimize inconvenience for residents.",opening:""},{topic:"Smartphone addiction among teenagers in Hong Kong is becoming a concern for parents and educators alike. As a concerned student, write a letter to a technology magazine editor proposing solutions to mitigate dependency on smartphones. Discuss the importance of digital literacy education, the promotion of alternative leisure activities, and how technology companies can play a role in addressing this issue.",opening:""},{topic:"Hong Kong's iconic Peak Tram is not only a mode of transport but also a tourist attraction offering stunning city views. Imagine you are writing a feature for a travel newsletter aimed at international tourists. Highlight the historical significance, the unique experience it offers compared to other city attractions, and tips for visitors (best times to go, what to expect).",opening:""},{topic:"To celebrate the diversity of its student body, your school is hosting an 'International Day', featuring exhibits from different countries. As part of the organizing committee, write a proposal for an exhibit that showcases traditional and modern aspects of Hong Kong culture. Describe what the exhibit will include (e.g., food, music, art), how it will engage students from other cultures, and what you hope they will learn about Hong Kong.",opening:""},{topic:"The integration of Artificial Intelligence (AI) in everyday life is rapidly advancing. As a science student, write an article for your school's science fair newsletter about the potential roles of AI in Hong Kong's future. Discuss both the benefits, such as efficiency and innovation, and the ethical concerns, such as privacy and job displacement.",opening:""},{topic:"Hong Kong's traditional street markets are facing challenges from modern development and online shopping trends. As a local resident concerned about preserving cultural heritage, write an op-ed for a community newspaper advocating for the conservation of these markets. Argue their value not just as tourist attractions but as vital components of the community's social fabric.",opening:""},{topic:"The concept of 'work-life balance' is gaining attention in Hong Kong, with many seeking a healthier lifestyle amidst the hustle of city life. As a wellness blogger, write a post discussing the importance of achieving work-life balance and share strategies that have helped you or others maintain well-being in a fast-paced urban environment. Include tips on time management, stress reduction, and finding personal fulfillment.",opening:""},{topic:"The use of social media by public figures in Hong Kong has sparked debates about privacy and the blurring of personal and public personas. As a media studies student, write an essay analyzing the impact of social media on the public perception of celebrities and politicians in Hong Kong. Consider the benefits of direct communication with the public against the risks and challenges it poses.",opening:""},{topic:"In recent years, there has been a significant rise in the number of public art installations throughout Hong Kong. As an art enthusiast, write a review for a local cultural magazine about a specific installation that captivated you. Describe the artwork, its location, the intended message or theme as you interpret it, and its impact on the community and visitors.",opening:""},{topic:"Hong Kong's education system has often been criticized for its heavy emphasis on rote learning and examination. As a student experiencing this system firsthand, craft a letter to the Education Bureau proposing reforms you believe would create a more holistic and engaging learning environment. Suggest specific changes in curriculum, teaching methods, and assessment criteria.",opening:""},{topic:"Hong Kong's Victoria Harbour is iconic, known for its stunning skyline and as a symbol of the city's heritage and modernity. Imagine you are tasked with organizing an annual festival that celebrates the harbour. Write a proposal document for potential sponsors, outlining the concept of the festival, the range of events, the expected audience, and how the festival aims to enhance appreciation for Victoria Harbour.",opening:""},{topic:"The MTR (Mass Transit Railway) in Hong Kong is renowned for its efficiency and extends its reach to most parts of the city. However, with the population growing and urban areas expanding, new transportation challenges arise. As an urban planning student, write a report suggesting improvements or expansions to the MTR system that could address future transportation needs of Hong Kong.",opening:""},{topic:"Street food in Hong Kong offers an array of flavors and dishes that reflect the city's cultural diversity. As a food blogger, write a post about your journey discovering street food in various neighborhoods. Describe the foods you tried, the stories of the vendors, and why you think street food is an essential part of Hong Kong's culinary scene.",opening:""},{topic:"Hong Kong's Lion Rock spirit symbolizes resilience, unity, and the hard-working nature of its people. As a young resident inspired by this spirit, write an op-ed for a local newspaper reflecting on how this ethos can guide Hong Kong through current social and economic challenges. Provide examples of how the Lion Rock spirit has been manifest in recent events or initiatives in the community.",opening:""},{topic:"The balance between modernity and tradition presents a unique challenge in the conservation of historical sites in Hong Kong. As a volunteer for a heritage preservation NGO, write a newsletter piece advocating for the preservation of a particular site. Discuss the site\u2019s historical, cultural, and architectural significance, the threats it faces from development, and the potential benefits of its conservation to the community and tourism.",opening:""},{topic:"Hong Kong's film industry has begun embracing virtual reality (VR) technology, offering audiences immersive cinematic experiences. As a film studies student, write an essay evaluating the potential impacts of VR on filmmaking and movie-going in Hong Kong. Discuss the opportunities VR technology offers for storytelling, audience engagement, and the challenges it may present to traditional film formats.",opening:""},{topic:"In response to the global environmental crisis, Hong Kong has set ambitious goals to become carbon neutral. As a member of a school environmental club, write a proposal for a green initiative that students and staff can participate in to contribute to these goals. Outline the objectives, planned activities, and the expected impact of the initiative on reducing the school\u2019s carbon footprint.",opening:""},{topic:"The rise of digital payment systems is changing the way transactions are conducted in Hong Kong, from large businesses to street vendors. Write an article for a financial magazine discussing the impact of digital payment technologies on the traditional cash-based economy. Consider aspects such as convenience, security, and the potential for financial inclusion.",opening:""},{topic:"As a film enthusiast, you've noticed that Hong Kong's unique cityscape often serves as an inspiring backdrop for both local and international films. Write a review for a film festival newsletter, focusing on how Hong Kong's architecture and urban environment enhance the storytelling of a specific movie you admire. Discuss the interplay between the city's visual elements and the film's narrative.",opening:""},{topic:"Hong Kong's public libraries are more than just places to read; they serve as community hubs, educational resources, and cultural archives. As a library volunteer, write a proposal to the city council outlining initiatives to modernize these spaces. Suggest incorporating technology, community programs, and design elements that reinvigorate public libraries as essential civic spaces.",opening:""},{topic:"Climate change poses a significant threat to Hong Kong's coastal areas and urban infrastructure. As an environmental science student, draft a research proposal to study the effects of rising sea levels and extreme weather events on Hong Kong. Outline your research questions, methodologies, and the potential implications of your findings for urban planning and resilience strategies.",opening:""},{topic:"Hong Kong's fashion industry has been known for its dynamic and innovative designs. As an aspiring fashion designer, write a column for a lifestyle magazine exploring the fusion of traditional Chinese elements with modern fashion trends. Highlight examples of your work or others' designs that represent this blend, discussing the cultural significance and appeal to both local and international audiences.",opening:""},{topic:"The concept of \u2018smart homes\u2019 is gaining traction in Hong Kong, with many residents seeking to integrate technology into their living spaces for convenience, efficiency, and security. Write an article for a technology review website, detailing your experience with setting up a smart home in Hong Kong. Discuss the challenges, benefits, and your recommendations for those interested in making their homes smarter.",opening:""},{topic:"Hong Kong is renowned for its competitive academic environment. This pressure can have a profound impact on students' mental health. As the president of your school's mental health club, write a letter to the principal suggesting specific initiatives that could be implemented to help reduce stress among students. Propose activities, policy changes, and supports that promote mental wellness.",opening:""},{topic:"Hong Kong's culinary scene is acclaimed for its diversity and innovation. Envision you are hosting a cooking show segment that aims to introduce international audiences to lesser-known Cantonese dishes. Write a script for the episode, including an introduction to the dishes, cultural background, cooking demonstrations, and tips for sourcing ingredients abroad.",opening:""},{topic:"In recent years, Hong Kong has seen an increase in initiatives aimed at preserving local wildlife and habitats, despite its urban density. As an environmental activist, prepare a report for a conservation conference that outlines successful conservation projects in Hong Kong. Focus on challenges, strategies employed, community involvement, and the impact on biodiversity.",opening:""},{topic:"With the expansion of eSports in Hong Kong, there's a growing debate about whether eSports should be recognized as an official sport. As an eSports team leader, write an opinion piece for a popular gaming magazine arguing for the recognition of eSports as a sport. Consider aspects such as skill requirements, training intensity, team dynamics, and the positive impact on the gaming community.",opening:""},{topic:"Amidst rapid urbanization, Hong Kong has witnessed a significant loss of its historical architecture. As a local history enthusiast and blogger, craft a post advocating for the preservation of a specific historic building or district. Include a discussion of the site's historical relevance, the cultural loss its demolition would represent, and potential adaptive reuses that could satisfy both preservation and modernization needs.",opening:""},{topic:"In response to the global trend towards sustainability, Hong Kong's fashion scene is starting to see a shift towards eco-friendly practices. As an aspiring eco-conscious fashion designer, write a proposal for a sustainable fashion line that aims to minimize environmental impact while still capturing the vibrant style Hong Kong is known for. Describe the materials, production processes, and marketing strategies you would employ.",opening:""},{topic:"Given the increasing problem of electronic waste (e-waste) in Hong Kong, propose a community-based recycling program aimed at reducing e-waste. As an environmental advocate, your proposal should outline the program's objectives, collection methods, potential challenges, and the anticipated impact on the community and environment.",opening:""},{topic:"Hong Kong's nightlife, famous for its vitality and diversity, has faced significant challenges due to recent global events. Write an article for a lifestyle magazine exploring how nightlife venues have adapted to these challenges. Focus on innovative strategies they've implemented to survive and how these changes might redefine the city's nightlife scene in the long term.",opening:""},{topic:"The integration of art in public spaces has the potential to transform urban environments and community interactions. Propose a public art project for Hong Kong that aims to engage the community, enhance the city's aesthetic appeal, and reflect its unique cultural identity. Your proposal should detail the concept, intended locations, artist collaborations, and how it will benefit both locals and tourists.",opening:""},{topic:"Hong Kong's youth are increasingly interested in entrepreneurship, looking to bring innovative solutions to the city's challenges. As a young entrepreneur, write a business plan outline for a startup that addresses a specific issue in Hong Kong. Include the problem you're solving, your solution, target market, and how your business could contribute positively to the community.",opening:""},{topic:"The concept of 'smart cities' is gaining traction globally, with technologies being utilized to improve city living. Imagine Hong Kong is in the process of further transforming into a smart city. Draft a report discussing potential technologies that can be integrated into various sectors such as transportation, healthcare, and energy, and their potential impact on residents' quality of life.",opening:""},{topic:"Hong Kong's traditional festivals are an integral part of its cultural heritage. Write an article for a cultural magazine that focuses on one lesser-known festival, exploring its origins, traditions, and the role it plays in the community today. Discuss how such traditional events can be preserved and promoted among younger generations.",opening:""},{topic:"The rise in global sea levels poses a threat to coastal cities worldwide, including Hong Kong. As a climate change advocate, propose a city-wide initiative aimed at increasing public awareness and community engagement regarding the impacts of climate change on Hong Kong's coastline. Detail activities, educational components, and collaboration with local NGOs or government bodies.",opening:""},{topic:"The balance between technological advancements and privacy concerns has become a hot topic in Hong Kong, especially with the increase in surveillance and data collection. Write an op-ed piece for a local newspaper expressing your views on how the city should navigate the fine line between leveraging technology for public safety and maintaining citizens' privacy rights. Include suggestions for policies or practices that could satisfy both objectives.",opening:""},{topic:"The concept of 'Tiny Homes' is emerging as a solution to urban housing crises in cities worldwide, including Hong Kong. Write an analytical essay discussing the feasibility, advantages, and challenges of adopting the Tiny Homes movement in Hong Kong's unique urban landscape. Address potential social, economic, and environmental impacts.",opening:""},{topic:"Hong Kong's public art installations not only beautify the city but also provoke thought and conversation among its residents. Propose a new public art initiative for a specific location in Hong Kong, outlining the concept, intended message, and materials to be used. Explain how this installation would engage the community and enhance their connection to the city.",opening:""},{topic:"With an aging population, Hong Kong faces challenges in providing adequate care and services for its elderly citizens. As a social entrepreneur, draft a proposal for a startup that offers innovative solutions to improve the quality of life for the elderly in Hong Kong. Include a business model, potential services, and how technology can be utilized.",opening:""},{topic:"Hong Kong is known for its rapid pace and high-stress lifestyle, which can impact mental health. Write a feature article for a health magazine about the rise of mindfulness and meditation practices in Hong Kong. Explore how individuals and corporations are incorporating these practices to combat stress and improve overall well-being.",opening:""},{topic:"The popularity of hiking in Hong Kong has surged, but this increase in foot traffic has raised concerns about environmental degradation and trail erosion. As an environmental blogger, create a guide promoting responsible hiking practices. Detail the importance of leaving no trace, respecting wildlife, and preserving Hong Kong's natural landscapes for future generations.",opening:""},{topic:"Hong Kong's film industry faces the challenge of balancing commercial success with artistic integrity. As an aspiring filmmaker, write an open letter to the Hong Kong Film Development Council proposing initiatives or policies that would support independent filmmakers in Hong Kong, ensuring the industry's creativity and diversity flourish.",opening:""},{topic:"Urban farming is becoming an innovative solution to food security and sustainability in cities. Imagine you are part of a community project initiating an urban farm in the heart of Hong Kong. Write a proposal to the local government detailing the plan, expected benefits like reducing carbon footprint, and community engagement strategies.",opening:""},{topic:"The incorporation of green buildings is essential for sustainable urban development. As a student architect, draft a design proposal for a green mixed-use building in Hong Kong, incorporating innovative features such as renewable energy sources, vertical gardens, and water recycling systems. Discuss how it could serve as a model for future developments.",opening:""},{topic:"Hong Kong's unique East-meets-West culture is reflected in its diverse culinary scene. As a food critic, write a review of a recent culinary festival that celebrated this fusion cuisine. Describe the atmosphere, the dishes that stood out, and how the event showcased the integration of different culinary traditions.",opening:""},{topic:"The growing trend of digital nomadism opens new possibilities for how and where people work. Envision a co-working space in Hong Kong specifically designed for digital nomads. Write a business proposal including the concept, facilities, and services offered, focusing on how it caters to the needs of remote workers from various sectors and cultures.",opening:""},{topic:"As the global push towards renewable energy gathers momentum, Hong Kong faces unique challenges due to its dense urban environment and limited space. Write an essay discussing innovative strategies that could be employed in Hong Kong to increase the use of renewable energy sources. Consider technologies like solar PV facades on skyscrapers or offshore wind farms near its waters.",opening:""},{topic:"Hong Kong's street art scene has exploded, turning the city into a vibrant canvas that tells stories of its cultural identity and current societal issues. Write an article for an art magazine exploring the significance of street art in Hong Kong, highlighting notable artists and their works, and how this form of expression contributes to dialogues within the community.",opening:""},{topic:"The preservation of intangible cultural heritage, such as Cantonese opera and traditional dragon boat racing, is crucial for maintaining Hong Kong's unique cultural identity amidst modernization. As a cultural enthusiast, write a proposal for a community project aimed at educating the youth about these traditions, detailing the activities, learning outcomes, and potential community impact.",opening:""},{topic:"Hong Kong's geography includes a variety of outlying islands, each with its own unique charm and challenges related to conservation and development. Write a travelogue piece for an eco-tourism website about a recent visit to one of these islands, focusing on how the local community balances tourism and the preservation of their natural and cultural heritage.",opening:""},{topic:"In an effort to combat urban heat islands and improve air quality, Hong Kong has started to develop more green roofs and walls within its dense urban areas. As an environmental science student, write a research paper on the benefits and challenges of implementing these green infrastructures in Hong Kong, including any scientific evidence of their impact on urban environments.",opening:""},{topic:"Mindfulness and traditional Eastern practices are becoming increasingly popular as methods for managing stress in Hong Kong's fast-paced lifestyle. Write a feature article for a wellness magazine on how these practices are being integrated into the modern lifestyle of Hong Kong's residents, including interviews with practitioners and experts in the field.",opening:""},{topic:"With the growing trend of pet ownership in Hong Kong, the city faces challenges in ensuring the welfare of pets in urban apartments and public spaces. As an animal welfare advocate, write a letter to the editor of a local newspaper calling for enhanced regulations and facilities for pets, such as pet-friendly parks and better access to veterinary services.",opening:""},{topic:"The impact of climate change on coastal cities like Hong Kong is a pressing concern, with issues like rising sea levels and increased typhoon activity. Write a position paper for a climate change symposium, arguing for specific policies and infrastructure projects that Hong Kong should prioritize to mitigate and adapt to these environmental changes.",opening:""},{topic:"Hong Kong's education system is renowned for its competitive nature, which some argue prepares students well for university and careers but may also contribute to high levels of stress and anxiety. Write a comparative analysis essay examining the educational approaches of Hong Kong versus another country, exploring the potential psychological impacts on students and the balance between academic excellence and well-being.",opening:""},{topic:"The integration of smart city technologies offers promising solutions to urban challenges in Hong Kong, from traffic management to sustainable energy use. Write a report proposing a smart city initiative for Hong Kong, outlining the technology involved, potential benefits, and how it addresses specific urban challenges. Include considerations for data security and privacy.",opening:""},{topic:"Hong Kong\u2019s youth are increasingly drawn to social entrepreneurship as a means to solve societal issues. Imagine you are organizing a youth summit on social entrepreneurship. Write a proposal detailing the event's purpose, the types of workshops and speakers you plan to include, and how this summit will inspire young people to take action for social change.",opening:""},{topic:"The practice of 'plogging'\u2014jogging while picking up litter\u2014has started gaining momentum in Hong Kong as a fitness trend that also benefits the environment. Write an article for a community health and wellness newsletter explaining the concept of plogging, its dual benefits, and how residents can get involved in making their neighborhoods cleaner and greener.",opening:""},{topic:"Hong Kong's architectural heritage is at risk due to rapid urbanization and redevelopment. As a member of a local heritage preservation society, write a feature article highlighting a specific historical building or district in danger of being demolished. Discuss the significance of this site and argue why preservation should take precedence over new development.",opening:""},{topic:"Virtual and Augmented Reality (VR/AR) technologies are being used in Hong Kong for more than just entertainment; they\u2019re transforming education, healthcare, and even retail. Write an essay discussing the various applications of VR/AR technology across these sectors in Hong Kong, examining both the innovative benefits and any potential drawbacks or ethical concerns.",opening:""},{topic:"Hong Kong is a city defined by its bustling streets and vibrant night markets, each offering a unique look into the city\u2019s diverse culture and culinary specialties. Imagine you are a travel blogger; write a blog post detailing a nocturnal culinary adventure through one of Hong Kong's most famous night markets, the sights, smells, tastes, and interactions that define the experience.",opening:""},{topic:"The recent global focus on sustainability has led to increased interest in upcycling in Hong Kong, with individuals and businesses finding creative ways to give old materials new life. Write an article for an eco-conscious lifestyle magazine about the upcycling movement in Hong Kong, featuring case studies of successful upcycle projects and how they contribute to a more sustainable future.",opening:""},{topic:"Amid growing concerns over mental health, Hong Kong\u2019s schools have started implementing mindfulness programs for students. As a student who has participated in these programs, write a reflective essay on your experience. Discuss the impact of mindfulness practices on your academic performance, stress levels, and overall well-being.",opening:""},{topic:"As Hong Kong aims to establish itself as a regional technology hub, there is a growing need for cybersecurity professionals to protect data and infrastructure. Write a report for a career guidance newsletter explaining the importance of the cybersecurity field in Hong Kong, the skills required to enter this profession, and the potential career paths available.",opening:""},{topic:"Hong Kong's public spaces are often hailed as oases in the bustling city, offering respite and recreation to its residents. Write a proposal to the local government suggesting innovative ideas to enhance Hong Kong\u2019s public spaces, such as eco-friendly playgrounds, community gardens, or art installations, detailing how these improvements could benefit the community.",opening:""},{topic:"The traditional craft of lantern making, once a thriving industry in Hong Kong, is facing decline as younger generations show less interest. As a cultural preservation advocate, write an op-ed piece for a local newspaper on the importance of saving this intangible cultural heritage. Propose ways to revitalise the craft, such as incorporating modern designs or using the craft in community events.",opening:""},{topic:"Hong Kong's iconic junk boats are a symbol of the city's maritime heritage. Write an article for a maritime history magazine exploring the history of junk boats, their significance in Hong Kong's development as a trading port, and the efforts to preserve these vessels in the face of modernization.",opening:""},{topic:"The culture of 'Kai Fong' (neighborhood associations) plays a crucial role in maintaining community spirit and cohesion in Hong Kong's densely populated neighborhoods. As a sociology student, write an essay examining the role of Kai Fong in contemporary Hong Kong society, highlighting how these associations contribute to social welfare, community events, and conflict resolution.",opening:""},{topic:"Hong Kong's fashion scene is a vibrant mix of traditional influences and modern styles. As an aspiring fashion designer, create a mood board and write a concept pitch for a fashion collection that melds Hong Kong's traditional elements with contemporary fashion trends. Describe your vision, the materials you would use, and how your collection pays homage to Hong Kong's cultural diversity.",opening:""},{topic:"The concept of 'Small House Policy' in Hong Kong has sparked debates on land use and rural conservation. Write a detailed analysis for an urban planning journal, discussing the impacts of this policy on Hong Kong's rural landscapes, indigenous villages, and the broader implications for urban development and environmental sustainability.",opening:""},{topic:"With an increasing number of digital nomads, co-working spaces have become hotspots for innovation and collaboration in Hong Kong. As a digital nomad, draft a blog post reviewing the top co-working spaces in Hong Kong, focusing on their facilities, community events, and how they cater to the needs of remote workers from various industries.",opening:""},{topic:"Public interest in Hong Kong's local indie music scene is growing, with many young artists seeking to express their unique identities and views. Write an article for a music magazine featuring an up-and-coming indie band in Hong Kong. Discuss their musical influences, the challenges they face in the local industry, and their contributions to the diversity of Hong Kong's music scene.",opening:""},{topic:"The annual migration of the black-faced spoonbill to Hong Kong's wetlands is a vital event for local biodiversity. As an environmental journalist, write a feature article highlighting the importance of conservation efforts for these wetlands. Include interviews with conservationists and discuss the balance between eco-tourism and protecting these critical habitats.",opening:""},{topic:"Hong Kong's dense urban environment presents unique challenges for pet owners. Propose a comprehensive plan for a 'Pet-Friendly Community Initiative' in a residential area of Hong Kong. Outline strategies for integrating pet-friendly facilities, such as dog parks and pet cafes, and consider policies for responsible pet ownership and animal welfare.",opening:""},{topic:"The 'ding ding' tram, an iconic mode of transportation in Hong Kong, offers a unique perspective of the city. Write a creative narrative from the viewpoint of an elderly Hong Kong resident reflecting on how the city has transformed over the decades, as seen through the windows of the tram. Incorporate historical events, cultural changes, and personal memories intertwined with the tram's journey.",opening:""},{topic:"Hong Kong's street food vendors, known as 'Dai Pai Dongs', are essential to the city's culinary culture but face challenges in modern times. As a cultural anthropologist, write a research paper examining the social and economic significance of Dai Pai Dongs in Hong Kong. Discuss the impact of urban development on these vendors and suggest measures to preserve this culinary heritage.",opening:""}],t=e[Math.floor(Math.random()*e.length)];this.props.prompt.prompts[0].value=t.topic,this.props.prompt.prompts[1].value=t.opening},this.toggleVideoModal=()=>{this.setState((e=>({isVideoModalOpen:!e.isVideoModalOpen})))},this.state={imageUrl:"",time:1200,isTimerActive:!1,isVideoModalOpen:!1},this.interval=null}componentWillUnmount(){clearInterval(this.interval)}render(){const{currentPrompt:e,disabled:t,index:n,location:r}=this.props,{imageUrl:o,time:i,isTimerActive:a,isVideoModalOpen:s}=this.state;let l=e!==n;return Object(Ht.jsxs)("div",{className:"align-bottom bg-white md:rounded-md text-left overflow-hidden transform transition-all sm:align-middle transition hover:shadow-md shadow-2xl focus:shadow-2xl md:mb-8 "+(l?"hidden":""),children:[Object(Ht.jsxs)("div",{className:"px-6 py-6",children:[Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{className:`flex-shrink-0 inline-flex items-center justify-center md:h-12 md:w-12 h-6 w-6 rounded-full bg-${t?"gray":"green"}-300 sm:mx-0 sm:h-10 sm:w-10 ${t?"bg-gray-300":"bg-green-300"} `,children:Object(Ht.jsx)(SR,{className:`h-3 w-3 md:h-6 md:w-6 ${t?"text-gray-500":"text-green-700"} text-${t?"gray-500":"green-700"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-0 ml-4 text-left",children:[Object(Ht.jsx)("div",{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:this.props.prompt.title||"Entry Text"}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:this.props.prompt.desc||"Write a small bit of text"})]})]}),Object(Ht.jsx)("div",{className:"flex justify-center mt-4",children:r.pathname.includes("zip")&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 mr-2",onClick:this.downloadFile,children:"Download Barcode"}),Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-blue-400 to-blue-600 hover:from-blue-600 hover:to-blue-800 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:this.toggleVideoModal,children:"Explainer Video"})]})}),Object(Ht.jsxs)("div",{className:"flex justify-center mt-4",children:[r.pathname.includes("/writing/ieltsacademic2")&&Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",onClick:this.ieltsacademic2,children:"Generate a Practice Paper"}),r.pathname.includes("/writing/ieltsgeneral2")&&Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",onClick:this.ieltsgeneral2,children:"Generate a Practice Paper"}),Object(Ht.jsx)("div",{children:r.pathname.includes("/writing/ieltsacademic1")&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 mr-2",onClick:this.generateIeltsAcademic1PracticePaper,children:"Generate a Practice Paper"}),Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-blue-400 to-blue-600 hover:from-blue-600 hover:to-blue-800 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:this.startTimer,children:"Start Timer"}),a&&Object(Ht.jsx)("div",{className:"text-xl font-semibold mt-4",children:this.formatTime(i)}),o&&Object(Ht.jsx)("img",{src:o,alt:"Practice Paper Image"})]})}),r.pathname.includes("/writing/ieltsgeneral1")&&Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",onClick:this.ieltsgeneral1,children:"Generate a Practice Paper"}),r.pathname.includes("/writing/hkdsetwo")&&Object(Ht.jsx)("button",{className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-full bg-gradient-to-r from-green-400 to-green-400 hover:from-green-400 hover:to-green-600 text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",onClick:this.hkdse2,children:"Generate a Practice Paper"})]}),this.props.children]}),s&&Object(Ht.jsx)("div",{className:"fixed z-50 inset-0 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:Object(Ht.jsxs)("div",{className:"flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:[Object(Ht.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true"}),Object(Ht.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),Object(Ht.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-xl sm:w-full",children:[Object(Ht.jsxs)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 relative",children:[Object(Ht.jsxs)("button",{type:"button",className:"absolute top-3 right-3 text-gray-400 hover:text-gray-500 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:this.toggleVideoModal,children:[Object(Ht.jsx)("span",{className:"sr-only",children:"Close"}),Object(Ht.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Object(Ht.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})]}),Object(Ht.jsx)("div",{className:"sm:flex sm:items-start",children:Object(Ht.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[Object(Ht.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:"Explainer Video"}),Object(Ht.jsx)("div",{className:"mt-2 w-full",children:Object(Ht.jsx)("iframe",{src:"https://accoladetuition.hippovideo.io/video/embed/EGimLZqqDpkbTsPp374bGuMwwIVi6w_iiCCirwai8Cc?org_tok=op2ne08u01xuO_ve6yU_iQ&autoplay=false",width:"100%",height:"400",frameBorder:"0",allowFullScreen:!0,className:"w-full"})})]})})]}),Object(Ht.jsx)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:Object(Ht.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm",onClick:this.toggleVideoModal,children:"Close"})})]})]})})]})}})||TR)||TR),_R=s.useLayoutEffect,NR=function(e,t){"function"!==typeof e?e.current=t:e(t)},AR=function(e,t){var n=Object(s.useRef)();return Object(s.useCallback)((function(r){e.current=r,n.current&&NR(n.current,null),n.current=t,t&&NR(t,r)}),[t])},RR={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},IR=function(e){Object.keys(RR).forEach((function(t){e.style.setProperty(t,RR[t],"important")}))},PR=null,DR=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var LR=function(){},MR=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],FR=!!document.documentElement.currentStyle,$R=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,MR.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(FR&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function BR(e,t,n){var r=function(e){var t=s.useRef(e);return _R((function(){t.current=e})),t}(n);s.useLayoutEffect((function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var UR=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],HR=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,o=e.minRows,i=e.onChange,a=void 0===i?LR:i,l=e.onHeightChange,c=void 0===l?LR:l,u=Object(Xn.a)(e,UR),d=void 0!==u.value,p=s.useRef(null),f=AR(p,t),h=s.useRef(0),m=s.useRef(),g=function(){var e=p.current,t=n&&m.current?m.current:$R(e);if(t){m.current=t;var i=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),PR||((PR=document.createElement("textarea")).setAttribute("tabindex","-1"),PR.setAttribute("aria-hidden","true"),IR(PR)),null===PR.parentNode&&document.body.appendChild(PR);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;PR.style[t]=a[t]})),IR(PR),PR.value=t;var l=DR(PR,e);PR.value=t,l=DR(PR,e),PR.value="x";var c=PR.scrollHeight-o,u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",o,r),a=i[0],s=i[1];h.current!==a&&(h.current=a,e.style.setProperty("height",a+"px","important"),c(a,{rowHeight:s}))}};return s.useLayoutEffect(g),BR(window,"resize",g),function(e){BR(document.fonts,"loadingdone",e)}(g),s.createElement("textarea",Object(yn.a)({},u,{onChange:function(e){d||g(),a(e)},ref:f}))},zR=s.forwardRef(HR);var GR=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(dD){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),WR="-ms-",VR="-moz-",qR="-webkit-",KR="comm",YR="rule",XR="decl",ZR="@keyframes",QR=Math.abs,JR=String.fromCharCode,eI=Object.assign;function tI(e,t){return 45^aI(e,0)?(((t<<2^aI(e,0))<<2^aI(e,1))<<2^aI(e,2))<<2^aI(e,3):0}function nI(e){return e.trim()}function rI(e,t){return(e=t.exec(e))?e[0]:e}function oI(e,t,n){return e.replace(t,n)}function iI(e,t){return e.indexOf(t)}function aI(e,t){return 0|e.charCodeAt(t)}function sI(e,t,n){return e.slice(t,n)}function lI(e){return e.length}function cI(e){return e.length}function uI(e,t){return t.push(e),e}function dI(e,t){return e.map(t).join("")}var pI=1,fI=1,hI=0,mI=0,gI=0,bI="";function vI(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pI,column:fI,length:a,return:""}}function yI(e,t){return eI(vI("",null,null,"",null,null,0),e,{length:-e.length},t)}function xI(){return gI=mI<hI?aI(bI,mI++):0,fI++,10===gI&&(fI=1,pI++),gI}function OI(){return aI(bI,mI)}function EI(){return mI}function wI(e,t){return sI(bI,e,t)}function jI(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SI(e){return pI=fI=1,hI=lI(bI=e),mI=0,[]}function TI(e){return bI="",e}function kI(e){return nI(wI(mI-1,NI(91===e?e+2:40===e?e+1:e)))}function CI(e){for(;(gI=OI())&&gI<33;)xI();return jI(e)>2||jI(gI)>3?"":" "}function _I(e,t){for(;--t&&xI()&&!(gI<48||gI>102||gI>57&&gI<65||gI>70&&gI<97););return wI(e,EI()+(t<6&&32==OI()&&32==xI()))}function NI(e){for(;xI();)switch(gI){case e:return mI;case 34:case 39:34!==e&&39!==e&&NI(gI);break;case 40:41===e&&NI(e);break;case 92:xI()}return mI}function AI(e,t){for(;xI()&&e+gI!==57&&(e+gI!==84||47!==OI()););return"/*"+wI(t,mI-1)+"*"+JR(47===e?e:xI())}function RI(e){for(;!jI(OI());)xI();return wI(e,mI)}function II(e){return TI(PI("",null,null,null,[""],e=SI(e),0,[0],e))}function PI(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,O=i,E=r,w=y;g;)switch(h=v,v=xI()){case 40:if(108!=h&&58==aI(w,d-1)){-1!=iI(w+=oI(kI(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=kI(v);break;case 9:case 10:case 13:case 32:w+=CI(h);break;case 92:w+=_I(EI()-1,7);continue;case 47:switch(OI()){case 42:case 47:uI(LI(AI(xI(),EI()),t,n),l);break;default:w+="/"}break;case 123*m:s[c++]=lI(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=oI(w,/\f/g,"")),f>0&&lI(w)-d&&uI(f>32?MI(w+";",r,n,d-1):MI(oI(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(uI(E=DI(w,t,n,c,u,o,s,y,x=[],O=[],d),i),123===v)if(0===u)PI(w,t,E,E,x,i,d,s,O);else switch(99===p&&110===aI(w,3)?100:p){case 100:case 108:case 109:case 115:PI(e,E,E,r&&uI(DI(e,E,E,0,0,o,s,y,o,x=[],d),O),o,O,d,s,r?x:O);break;default:PI(w,E,E,E,[""],O,0,s,O)}}c=u=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+lI(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(gI=mI>0?aI(bI,--mI):0,fI--,10===gI&&(fI=1,pI--),gI))continue;switch(w+=JR(v),v*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(lI(w)-1)*b,b=1;break;case 64:45===OI()&&(w+=kI(xI())),p=OI(),u=d=lI(y=w+=RI(EI())),v++;break;case 45:45===h&&2==lI(w)&&(m=0)}}return i}function DI(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=cI(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=sI(e,d+1,d=QR(m=a[h])),y=e;b<f;++b)(y=nI(m>0?p[b]+" "+v:oI(v,/&\f/g,p[b])))&&(l[g++]=y);return vI(e,t,n,0===o?YR:s,l,c,u)}function LI(e,t,n){return vI(e,t,n,KR,JR(gI),sI(e,2,-2),0)}function MI(e,t,n,r){return vI(e,t,n,XR,sI(e,0,r),sI(e,r+1,-1),r)}function FI(e,t){for(var n="",r=cI(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $I(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case XR:return e.return=e.return||e.value;case KR:return"";case ZR:return e.return=e.value+"{"+FI(e.children,r)+"}";case YR:e.value=e.props.join(",")}return lI(n=FI(e.children,r))?e.return=e.value+"{"+n+"}":""}function BI(e){var t=cI(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var UI=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},HI=n(69),zI="undefined"!==typeof document,GI=function(e,t,n){for(var r=0,o=0;r=o,o=OI(),38===r&&12===o&&(t[n]=1),!jI(o);)xI();return wI(e,mI)},WI=function(e,t){return TI(function(e,t){var n=-1,r=44;do{switch(jI(r)){case 0:38===r&&12===OI()&&(t[n]=1),e[n]+=GI(mI-1,t,n);break;case 2:e[n]+=kI(r);break;case 4:if(44===r){e[++n]=58===OI()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=JR(r)}}while(r=xI());return e}(SI(e),t))},VI=new WeakMap,qI=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||VI.get(n))&&!r){VI.set(e,!0);for(var o=[],i=WI(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},KI=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function YI(e,t){switch(tI(e,t)){case 5103:return qR+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qR+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qR+e+VR+e+WR+e+e;case 6828:case 4268:return qR+e+WR+e+e;case 6165:return qR+e+WR+"flex-"+e+e;case 5187:return qR+e+oI(e,/(\w+).+(:[^]+)/,qR+"box-$1$2"+WR+"flex-$1$2")+e;case 5443:return qR+e+WR+"flex-item-"+oI(e,/flex-|-self/,"")+e;case 4675:return qR+e+WR+"flex-line-pack"+oI(e,/align-content|flex-|-self/,"")+e;case 5548:return qR+e+WR+oI(e,"shrink","negative")+e;case 5292:return qR+e+WR+oI(e,"basis","preferred-size")+e;case 6060:return qR+"box-"+oI(e,"-grow","")+qR+e+WR+oI(e,"grow","positive")+e;case 4554:return qR+oI(e,/([^-])(transform)/g,"$1"+qR+"$2")+e;case 6187:return oI(oI(oI(e,/(zoom-|grab)/,qR+"$1"),/(image-set)/,qR+"$1"),e,"")+e;case 5495:case 3959:return oI(e,/(image-set\([^]*)/,qR+"$1$`$1");case 4968:return oI(oI(e,/(.+:)(flex-)?(.*)/,qR+"box-pack:$3"+WR+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qR+e+e;case 4095:case 3583:case 4068:case 2532:return oI(e,/(.+)-inline(.+)/,qR+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lI(e)-1-t>6)switch(aI(e,t+1)){case 109:if(45!==aI(e,t+4))break;case 102:return oI(e,/(.+:)(.+)-([^]+)/,"$1"+qR+"$2-$3$1"+VR+(108==aI(e,t+3)?"$3":"$2-$3"))+e;case 115:return~iI(e,"stretch")?YI(oI(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==aI(e,t+1))break;case 6444:switch(aI(e,lI(e)-3-(~iI(e,"!important")&&10))){case 107:return oI(e,":",":"+qR)+e;case 101:return oI(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qR+(45===aI(e,14)?"inline-":"")+"box$3$1"+qR+"$2$3$1"+WR+"$2box$3")+e}break;case 5936:switch(aI(e,t+11)){case 114:return qR+e+WR+oI(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qR+e+WR+oI(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qR+e+WR+oI(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qR+e+WR+e+e}return e}var XI=zI?void 0:UI((function(){return Object(HI.a)((function(){var e={};return function(t){return e[t]}}))})),ZI=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case XR:e.return=YI(e.value,e.length);break;case ZR:return FI([yI(e,{value:oI(e.value,"@","@"+qR)})],r);case YR:if(e.length)return dI(e.props,(function(t){switch(rI(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return FI([yI(e,{props:[oI(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return FI([yI(e,{props:[oI(t,/:(plac\w+)/,":"+qR+"input-$1")]}),yI(e,{props:[oI(t,/:(plac\w+)/,":-moz-$1")]}),yI(e,{props:[oI(t,/:(plac\w+)/,WR+"input-$1")]})],r)}return""}))}}],QI=function(e){var t=e.key;if(zI&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||ZI,a={},s=[];zI&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[qI,KI];if(zI){var u,d=[$I,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=BI(c.concat(i,d));o=function(e,t,n,r){u=n,FI(II(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var f=[$I],h=BI(c.concat(i,f)),m=XI(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=FI(II(e?e+"{"+t.styles+"}":t.styles),h)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}var b={key:t,sheet:new GR({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b},JI="undefined"!==typeof document;function eP(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var tP=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===JI&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},nP=function(e,t,n){tP(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);JI||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!JI&&0!==o.length)return o}};var rP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oP=/[A-Z]|^ms/g,iP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,aP=function(e){return 45===e.charCodeAt(1)},sP=function(e){return null!=e&&"boolean"!==typeof e},lP=Object(HI.a)((function(e){return aP(e)?e:e.replace(oP,"-$&").toLowerCase()})),cP=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(iP,(function(e,t,n){return dP={name:t,styles:n,next:dP},t}))}return 1===rP[e]||aP(e)||"number"!==typeof t||0===t?t:t+"px"};function uP(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return dP={name:o.name,styles:o.styles,next:dP},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)dP={name:a.name,styles:a.styles,next:dP},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=uP(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":sP(s)&&(r+=lP(i)+":"+cP(i,s)+";")}else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=uP(e,t,a);switch(i){case"animation":case"animationName":r+=lP(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)sP(a[c])&&(r+=lP(i)+":"+cP(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=dP,l=n(e);return dP=s,uP(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var dP,pP=/label:\s*([^\s;{]+)\s*(;|$)/g;function fP(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";dP=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=uP(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=uP(n,t,e[a]),r)o+=i[a]}pP.lastIndex=0;for(var s,l="";null!==(s=pP.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:dP}}var hP="undefined"!==typeof document,mP=function(e){return e()},gP=!!s.useInsertionEffect&&s.useInsertionEffect,bP=hP&&gP||mP,vP=(gP||s.useLayoutEffect,"undefined"!==typeof document),yP=s.createContext("undefined"!==typeof HTMLElement?QI({key:"css"}):null),xP=yP.Provider,OP=function(e){return Object(s.forwardRef)((function(t,n){var r=Object(s.useContext)(yP);return e(t,r,n)}))};vP||(OP=function(e){return function(t){var n=Object(s.useContext)(yP);return null===n?(n=QI({key:"css"}),s.createElement(yP.Provider,{value:n},e(t,n))):e(t,n)}});var EP=s.createContext({});var wP={}.hasOwnProperty,jP="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",SP=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;tP(t,n,r);var o=bP((function(){return nP(t,n,r)}));if(!vP&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return s.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},TP=OP((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[jP],i=[r],a="";"string"===typeof e.className?a=eP(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=fP(i,void 0,s.useContext(EP));a+=t.key+"-"+l.name;var c={};for(var u in e)wP.call(e,u)&&"css"!==u&&u!==jP&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),s.createElement(s.Fragment,null,s.createElement(SP,{cache:t,serialized:l,isStringTag:"string"===typeof o}),s.createElement(o,c))})),kP=(n(142),function(e,t){var n=arguments;if(null==t||!wP.call(t,"css"))return s.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=TP,o[1]=function(e,t){var n={};for(var r in t)wP.call(t,r)&&(n[r]=t[r]);return n[jP]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return s.createElement.apply(null,o)});function CP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fP(t)}var _P=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var NP=function(e){var t,n=e.cache,r=e.serializedArr,o=bP((function(){for(var e="",t=0;t<r.length;t++){var o=nP(n,r[t],!1);vP||void 0===o||(e+=o)}if(!vP)return e}));return vP||0===o.length?null:s.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:o},t.nonce=n.sheet.nonce,t))},AP=OP((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=fP(r,t.registered);return n.push(i),tP(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=eP(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,_P(n))},theme:s.useContext(EP)},i=e.children(o);return s.createElement(s.Fragment,null,s.createElement(NP,{cache:t,serializedArr:n}),i)}));var RP=n(117),IP=n.n(RP);function PP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DP(Object(n),!0).forEach((function(t){PP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MP(e){return MP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},MP(e)}function FP(e,t){return!t||"object"!==typeof 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 $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(dD){return!1}}();return function(){var n,r=MP(e);if(t){var o=MP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FP(this,n)}}var BP=function(){};function UP(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function HP(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(UP(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var zP=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Object(mp.a)(e)&&null!==e?[e]:[]},GP=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,LP({},Object(Fp.a)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function WP(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function VP(e){return WP(e)?window.pageYOffset:e.scrollTop}function qP(e,t){WP(e)?window.scrollTo(0,t):e.scrollTop=t}function KP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:BP,o=VP(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;qP(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function YP(){try{return document.createEvent("TouchEvent"),!0}catch(dD){return!1}}var XP=!1,ZP={get passive(){return XP=!0}},QP="undefined"!==typeof window?window:{};QP.addEventListener&&QP.removeEventListener&&(QP.addEventListener("p",BP,ZP),QP.removeEventListener("p",BP,!1));var JP=XP;function eD(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=VP(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=m-y,O=g-h,E=x+b,w=u-b-h,j=p-g+b+v,S=b+h-y,T=160;switch(o){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(w>=f&&!a)return i&&KP(l,j,T),{placement:"bottom",maxHeight:t};if(!a&&w>=r||a&&O>=r)return i&&KP(l,j,T),{placement:"bottom",maxHeight:a?O-v:w-v};if("auto"===o||a){var k=t,C=a?x:E;return C>=r&&(k=Math.min(C-v-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return i&&qP(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return i&&KP(l,S,T),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&x>=r){var _=t;return(!a&&E>=r||a&&x>=r)&&(_=a?x-y:E-y),i&&KP(l,S,T),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var tD=function(e){return"auto"===e?"bottom":e},nD=Object(s.createContext)({getPortalPlacement:null}),rD=function(e){Object(Qp.a)(n,e);var t=$P(n);function n(){var e;Object(Up.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=eD({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||tD(t);return LP(LP({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Object(Hp.a)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(s.Component);rD.contextType=nD;var oD=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},iD=oD,aD=oD,sD=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return kP("div",Object(yn.a)({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};sD.defaultProps={children:"No options"};var lD=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return kP("div",Object(yn.a)({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};lD.defaultProps={children:"Loading..."};var cD,uD=function(e){Object(Qp.a)(n,e);var t=$P(n);function n(){var e;Object(Up.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==tD(e.props.menuPlacement)&&e.setState({placement:n})},e}return Object(Hp.a)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,a=e.innerProps,s=e.menuPlacement,l=e.menuPosition,u=e.getStyles,d="fixed"===l;if(!t&&!d||!o)return null;var p=this.state.placement||tD(s),f=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),h=d?0:window.pageYOffset,m={offset:f[p]+h,position:l,rect:f},g=kP("div",Object(yn.a)({css:u("menuPortal",m),className:i({"menu-portal":!0},r)},a),n);return kP(nD.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(c.createPortal)(g,t):g)}}]),n}(s.Component);var dD,pD,fD={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hD=function(e){var t=e.size,n=Object(Fp.a)(e,["size"]);return kP("svg",Object(yn.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:fD},n))},mD=function(e){return kP(hD,Object(yn.a)({size:20},e),kP("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gD=function(e){return kP(hD,Object(yn.a)({size:20},e),kP("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bD=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},vD=bD,yD=bD,xD=function(){var e=CP.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(cD||(dD=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],pD||(pD=dD.slice(0)),cD=Object.freeze(Object.defineProperties(dD,{raw:{value:Object.freeze(pD)}})))),OD=function(e){var t=e.delay,n=e.offset;return kP("span",{css:CP({animation:"".concat(xD," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ED=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return kP("div",Object(yn.a)({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),kP(OD,{delay:0,offset:i}),kP(OD,{delay:160,offset:!0}),kP(OD,{delay:320,offset:!i}))};ED.defaultProps={size:4};var wD=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},jD=function(e){var t=e.children,n=e.innerProps;return kP("div",n,t)},SD=jD,TD=jD;var kD=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return kP(AP,null,(function(r){var h=r.css,m=r.cx;return kP(d,{data:i,innerProps:LP({className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:u},kP(p,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),kP(f,{data:i,innerProps:LP({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))}))};kD.defaultProps={cropWithEllipsis:!0};var CD={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return kP("div",Object(yn.a)({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||kP(mD,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return kP("div",Object(yn.a)({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return kP("div",Object(yn.a)({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||kP(gD,null))},DownChevron:gD,CrossIcon:mD,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return kP("div",Object(yn.a)({css:o("group",e),className:r({group:!0},n)},s),kP(i,Object(yn.a)({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),l),kP("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=GP(e);o.data;var i=Object(Fp.a)(o,["data"]);return kP("div",Object(yn.a)({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return kP("div",Object(yn.a)({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return kP("span",Object(yn.a)({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=GP(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=Object(Fp.a)(o,["innerRef","isDisabled","isHidden"]);return kP("div",{css:r("input",e)},kP(IP.a,Object(yn.a)({className:n({input:!0},t),inputRef:i,inputStyle:wD(s),disabled:a},l)))},LoadingIndicator:ED,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return kP("div",Object(yn.a)({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return kP("div",Object(yn.a)({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:uD,LoadingMessage:lD,NoOptionsMessage:sD,MultiValue:kD,MultiValueContainer:SD,MultiValueLabel:TD,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return kP("div",n,t||kP(mD,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return kP("div",Object(yn.a)({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return kP("div",Object(yn.a)({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return kP("div",Object(yn.a)({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return kP("div",Object(yn.a)({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return kP("div",Object(yn.a)({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}};for(var _D={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ND=function(e){return kP("span",Object(yn.a)({css:_D},e))},AD={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,s=e.selectValue,l=e.isDisabled,c=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(u(s,r),".");if("menu"===t){var d=l?" disabled":"",p="".concat(c?"selected":"focused").concat(d);return"option ".concat(a," ").concat(p,", ").concat(u(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},RD=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,f=c.isMulti,h=c.isOptionDisabled,m=c.isSearchable,g=c.menuIsOpen,b=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,x=c["aria-label"],O=c["aria-live"],E=Object(s.useMemo)((function(){return LP(LP({},AD),u||{})}),[u]),w=Object(s.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),s=LP({isDisabled:a&&h(a),label:a?d(a):""},t);n=E.onChange(s)}return n}),[t,h,d,E]),j=Object(s.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var i={focused:t,label:d(t),isDisabled:h(t),isSelected:o,options:b,context:t===n?"menu":"value",selectValue:a};e=E.onFocus(i)}return e}),[n,r,d,h,E,b,a]),S=Object(s.useMemo)((function(){var e="";if(g&&b.length&&E.onFilter){var t=v({count:o.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,E,b,v]),T=Object(s.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":x,context:t,isDisabled:n&&h(n),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[x,n,r,f,h,m,g,E,y]),k="".concat(j," ").concat(S," ").concat(T);return kP(ND,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text"},i&&kP(l.a.Fragment,null,kP("span",{id:"aria-selection"},w),kP("span",{id:"aria-context"},k)))},ID=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],PD=new RegExp("["+ID.map((function(e){return e.letters})).join("")+"]","g"),DD={},LD=0;LD<ID.length;LD++)for(var MD=ID[LD],FD=0;FD<MD.letters.length;FD++)DD[MD.letters[FD]]=MD.base;var $D=function(e){return e.replace(PD,(function(e){return DD[e]}))},BD=fi($D),UD=function(e){return e.replace(/^\s+|\s+$/g,"")},HD=function(e){return"".concat(e.label," ").concat(e.value)};function zD(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Object(Fp.a)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return kP("input",Object(yn.a)({ref:t},n,{css:CP({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var GD=["boxSizing","height","overflow","paddingRight","position"],WD={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function VD(e){e.preventDefault()}function qD(e){e.stopPropagation()}function KD(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function YD(){return"ontouchstart"in window||navigator.maxTouchPoints}var XD=!("undefined"===typeof window||!window.document||!window.document.createElement),ZD=0,QD={capture:!1,passive:!1};var JD=function(){return document.activeElement&&document.activeElement.blur()},eL={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tL(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=Object(s.useRef)(!1),l=Object(s.useRef)(!1),c=Object(s.useRef)(0),u=Object(s.useRef)(null),d=Object(s.useCallback)((function(e,t){if(null!==u.current){var s=u.current,c=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=u.current,h=t>0,m=d-p-c,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&l.current&&(i&&i(e),l.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!h&&-t>c&&(o&&!l.current&&o(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=Object(s.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=Object(s.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=Object(s.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=Object(s.useCallback)((function(e){if(e){var t=!!JP&&{passive:!1};"function"===typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"===typeof e.addEventListener&&e.addEventListener("touchstart",f,t),"function"===typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}}),[h,f,p]),g=Object(s.useCallback)((function(e){e&&("function"===typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchstart",f,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return Object(s.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=Object(s.useRef)({}),i=Object(s.useRef)(null),a=Object(s.useCallback)((function(e){if(XD){var t=document.body,n=t&&t.style;if(r&&GD.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&ZD<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(WD).forEach((function(e){var t=WD[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&YD()&&(t.addEventListener("touchmove",VD,QD),e&&(e.addEventListener("touchstart",KD,QD),e.addEventListener("touchmove",qD,QD))),ZD+=1}}),[]),l=Object(s.useCallback)((function(e){if(XD){var t=document.body,n=t&&t.style;ZD=Math.max(ZD-1,0),r&&ZD<1&&GD.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&YD()&&(t.removeEventListener("touchmove",VD,QD),e&&(e.removeEventListener("touchstart",KD,QD),e.removeEventListener("touchmove",qD,QD)))}}),[]);return Object(s.useEffect)((function(){if(t){var e=i.current;return a(e),function(){l(e)}}}),[t,a,l]),function(e){i.current=e}}({isEnabled:n});return kP(l.a.Fragment,null,n&&kP("div",{onClick:JD,css:eL}),t((function(e){o(e),i(e)})))}var nL={clearIndicator:yD,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:vD,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:aD,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(Pp.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(Pp.a)(t,"backgroundColor",a.neutral0),Object(Pp.a)(t,"borderRadius",o),Object(Pp.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(Pp.a)(t,"marginBottom",i.menuGutter),Object(Pp.a)(t,"marginTop",i.menuGutter),Object(Pp.a)(t,"position","absolute"),Object(Pp.a)(t,"width","100%"),Object(Pp.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:iD,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var rL,oL={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},iL={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:YP(),captureMenuScroll:!YP(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=LP({ignoreCase:!0,ignoreAccents:!0,stringify:HD,trim:!0,matchFrom:"any"},rL),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?UD(t):t,c=a?UD(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=BD(l),c=$D(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(dD){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function aL(e,t,n,r){return{type:"option",data:t,isDisabled:pL(e,t,n),isSelected:fL(e,t,n),label:uL(e,t),value:dL(e,t),index:r}}function sL(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return aL(e,n,t,r)})).filter((function(t){return cL(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=aL(e,n,t,r);return cL(e,i)?i:void 0})).filter((function(e){return!!e}))}function lL(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Object(Dp.a)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function cL(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!mL(e)||!i)&&hL(e,{label:a,value:s,data:o},r)}var uL=function(e,t){return e.getOptionLabel(t)},dL=function(e,t){return e.getOptionValue(t)};function pL(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function fL(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=dL(e,t);return n.some((function(t){return dL(e,t)===r}))}function hL(e,t,n){return!e.filterOption||e.filterOption(t,n)}var mL=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},gL=1,bL=function(e){Object(Qp.a)(n,e);var t=$P(n);function n(e){var r;return Object(Up.a)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(Object(Dp.a)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return HP.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return uL(r.props,e)},r.getOptionValue=function(e){return dL(r.props,e)},r.getStyles=function(e,t){var n=nL[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,LP(LP({},CD),e.components);var e},r.buildCategorizedOptions=function(){return sL(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return lL(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:LP({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"===typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&WP(e.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return mL(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++gL),r.state.selectValue=zP(e.value),r}return Object(Hp.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?qP(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&qP(e,Math.max(t.offsetTop-o,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(oL):LP(LP({},oL),this.props.theme):oL}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return pL(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return fL(this.props,e,t)}},{key:"filterOption",value:function(e,t){return hL(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=this.getComponents().Input,c=this.state.inputIsHidden,u=this.commonProps,d=r||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?l.a.createElement(s,Object(yn.a)({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},p)):l.a.createElement(zD,Object(yn.a)({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:BP,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:l.a.createElement(s,Object(yn.a)({},c,{key:"placeholder",isDisabled:p,isFocused:y}),m);if(f){var x=b.map((function(t,a){var s=t===v;return l.a.createElement(n,Object(yn.a)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return x}if(h)return null;var O=b[0];return l.a.createElement(a,Object(yn.a)({},c,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return l.a.createElement(e,Object(yn.a)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return l.a.createElement(e,Object(yn.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return l.a.createElement(n,Object(yn.a)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return l.a.createElement(e,Object(yn.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,O=f.menuPlacement,E=f.menuPosition,w=f.menuPortalTarget,j=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,T=f.noOptionsMessage,k=f.onMenuScrollToTop,C=f.onMenuScrollToBottom;if(!x)return null;var _,N=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=p===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return l.a.createElement(u,Object(yn.a)({},d,{innerProps:b,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return l.a.createElement(n,Object(yn.a)({},d,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(g){var A=b({inputValue:m});if(null===A)return null;_=l.a.createElement(s,d,A)}else{var R=T({inputValue:m});if(null===R)return null;_=l.a.createElement(c,d,R)}var I={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:E,menuShouldScrollIntoView:S},P=l.a.createElement(rD,Object(yn.a)({},d,I),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return l.a.createElement(o,Object(yn.a)({},d,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),l.a.createElement(tL,{captureEnabled:h,onTopArrive:k,onBottomArrive:C,lockEnabled:j},(function(t){return l.a.createElement(i,Object(yn.a)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:s,focusedOption:p}),_)})))}));return w||"fixed"===E?l.a.createElement(a,Object(yn.a)({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:E}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return l.a.createElement("input",{name:i,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return l.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):l.a.createElement("input",{name:i,type:"hidden"});return l.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return l.a.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return l.a.createElement(RD,Object(yn.a)({},e,{ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return l.a.createElement(r,Object(yn.a)({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),l.a.createElement(t,Object(yn.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),l.a.createElement(o,Object(yn.a)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),l.a.createElement(n,Object(yn.a)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,s=e.menuIsOpen,l=e.inputValue,c={};if(n&&(a!==n.value||i!==n.options||s!==n.menuIsOpen||l!==n.inputValue)){var u=zP(a),d=s?function(e,t){return lL(sL(e,t))}(e,u):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,u):null,f=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,d);c={selectValue:u,focusedOption:f,focusedValue:p,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return LP(LP(LP({},c),h),{},{prevProps:e})}}]),n}(s.Component);bL.defaultProps=iL;var vL={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},yL=(n(495),n(500),n(502),n(115),n(503),s.Component,function(e){var t,n;return n=t=function(t){Object(Qp.a)(r,t);var n=$P(r);function r(){var e;Object(Up.a)(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Object(Hp.a)(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"===typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=Object(Fp.a)(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return l.a.createElement(e,Object(yn.a)({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(s.Component),t.defaultProps=vL,n}(bL)),xL=yL;class OL extends s.Component{constructor(){super(...arguments),this.state={isClearable:!1,isDisabled:!1,isLoading:!1,isRtl:!1,isSearchable:!0},this.toggleClearable=()=>this.setState((e=>({isClearable:!e.isClearable}))),this.toggleDisabled=()=>this.setState((e=>({isDisabled:!e.isDisabled}))),this.toggleLoading=()=>this.setState((e=>({isLoading:!e.isLoading}))),this.toggleRtl=()=>this.setState((e=>({isRtl:!e.isRtl}))),this.toggleSearchable=()=>this.setState((e=>({isSearchable:!e.isSearchable})))}render(){const{isClearable:e,isSearchable:t,isDisabled:n,isLoading:r,isRtl:o}=this.state;return Object(Ht.jsx)(s.Fragment,{children:Object(Ht.jsx)(xL,{className:"basic-single mt-2",classNamePrefix:"select",defaultValue:this.props.options[0],isDisabled:n,isLoading:r,isClearable:e,isRtl:o,isSearchable:t,name:"color",onChange:this.props.onChange,options:this.props.options,components:{Option:wL,SingleValue:EL}})})}}const EL=e=>{let t=e.data.Icon;return Object(Ht.jsx)(CD.SingleValue,{...e,children:Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{children:Object(Ht.jsx)(t,{className:"w-6 h-6"})}),Object(Ht.jsx)("div",{className:"pl-2",children:e.children})]})})},wL=e=>{let t=e.data.Icon;return Object(Ht.jsx)(CD.Option,{...e,children:Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{children:Object(Ht.jsx)(t,{className:"w-6 h-6"})}),Object(Ht.jsx)("div",{className:"pl-2",children:e.children})]})})};var jL,SL;let TL=ae("store")(jL=ee((SL=class extends s.Component{constructor(){super(...arguments),this.fileInputRef=l.a.createRef(),this.onChange=async e=>{this.props.prompt.value=e.target.value,this.props.prompt.error=""},this.onChangeDropdown=async e=>{this.props.prompt.value=e.value,this.props.prompt.error=""},this.handleEditorChange=(e,t)=>{this.props.prompt.value=e.target.value,this.props.prompt.error=""},this.input=()=>{const{Icon:e}=this.props;return"file"===this.props.prompt.type?Object(Ht.jsx)("input",{ref:this.fileInputRef,type:"file",className:"...",onChange:this.props.onFileChange,accept:".pdf, .png, .jpg, .jpeg, .doc, .docx"}):Object(Ht.jsxs)("div",{className:"relative flex flex-col",children:[Object(Ht.jsxs)("label",{htmlFor:this.props.prompt.attr,className:"relative transition text-gray-600 focus-within:text-gray-800 block",children:[e?Object(Ht.jsx)(e,{className:`\n                ${this.props.size?"":"h-6 w-6 top-5 left-2"}\n                ${"sm"===this.props.size&&"h-4 w-4 top-5 left-2"}\n                ${"lg"===this.props.size&&"h-8 w-8 top-5 left-2"}\n                transition absolute select-none pointer-events-none opacity-75\n              `}):null,this.props.prompt.type?null:Object(Ht.jsx)("input",{name:this.props.prompt.attr,id:this.props.prompt.attr,maxLength:this.props.prompt.maxLength||80,...this.props.prompt,autoFocus:0===this.props.index,className:`outline-none focus:outline-none text-${this.props.size||"lg"} bg-white rounded-md px-4 py-2 w-full border  focus:border-gray-400 ${this.props.prompt.error?"border-red-400":"border-gray-300"} font-regular mt-2 transition-all ${e&&`\n                ${this.props.size?"":"pl-9"}\n                ${"sm"===this.props.size&&"pl-7"}\n                ${"lg"===this.props.size&&"pl-12"}\n              `} `,onChange:this.onChange}),"text"===this.props.prompt.type&&Object(Ht.jsx)("input",{name:this.props.prompt.attr,id:this.props.prompt.attr,maxLength:this.props.prompt.maxLength||400,...this.props.prompt,autoFocus:0===this.props.index,className:`outline-none focus:outline-none text-${this.props.size||"lg"} bg-white rounded-md px-4 py-2 w-full border  focus:border-gray-400  ${this.props.prompt.error?"border-red-400":"border-gray-300"} font-regular mt-2 transition-all ${e&&`\n                ${this.props.size?"":"pl-7"}\n                ${"sm"===this.props.size&&"pl-7"}\n                ${"lg"===this.props.size&&"pl-12"}\n              `}`,onChange:this.onChange})]}),"dropdown"===this.props.prompt.type&&Object(Ht.jsx)(OL,{onChange:this.onChangeDropdown,options:this.props.prompt.options}),"code"===this.props.prompt.type&&Object(Ht.jsx)("div",{className:"mt-4 -mx-6",style:{backgroundColor:"#f5f5f5"},children:Object(Ht.jsx)(fN,{style:{fontFamily:"JetBrains Mono",fontSize:"1rem"},padding:30,language:this.props.language,onChange:this.handleEditorChange,autoFocus:0===this.props.index,name:this.props.prompt.attr,id:this.props.prompt.attr,...this.props.prompt})}),"textarea"===this.props.prompt.type&&Object(Ht.jsx)(zR,{autoFocus:0===this.props.index,minRows:this.props.minRows||2,maxRows:10,name:this.props.prompt.attr,id:this.props.prompt.attr,...this.props.prompt,className:`outline-none focus:outline-none text-${this.props.size||"lg"} bg-white rounded-md ${this.props.size?"px-2 py-2":"px-4 py-4"}  min-w-full border border-gray-300 font-regular focus:border-gray-400 ${this.props.prompt.error?"border-red-400":"border-gray-300"} font-regular mt-2 `,onChange:this.onChange}),"radio"===this.props.prompt.type&&this.props.prompt.options&&Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)("div",{className:"mt-1",children:this.props.prompt.options.map(((e,t)=>Object(Ht.jsx)(kL,{Icon:e.Icon,title:e.title,desc:e.desc,active:e.value===this.props.prompt.value,onClick:()=>this.props.prompt.value=e.value},t)))})})]})}}get isMinLength(){return!!this.props.prompt.min&&("number"!==!this.props.prompt.type&&(0!==this.props.prompt.value.length&&this.props.prompt.value.length<this.props.prompt.min))}get isLongEnoughToDrop(){return this.props.prompt.value.length<30}get currentNumberOfCharacters(){let e=this.props.prompt.value.length,t=80;return"textarea"===this.props.prompt.type&&(t=400),this.props.prompt.maxLength&&(t=this.props.prompt.maxLength),this.props.prompt.max&&(t=this.props.prompt.max),`${e}/${t}`}render(){const{Icon:e}=this.props;return Object(Ht.jsxs)("div",{className:""+(this.props.size,"mt-4"),children:[this.props.prompt.title&&Object(Ht.jsx)("label",{htmlFor:this.props.prompt.attr,className:"text-gray-600 font-medium text-md",children:this.props.prompt.title}),Object(Ht.jsxs)("div",{className:"relative flex flex-col",children:[this.props.prompt.options?null:Object(Ht.jsxs)("div",{className:`text-xs absolute z-30 right-2 select-none pointer-events-none transition-all top bg-white px-2 ${this.isMinLength?"text-red-500":"text-gray-400"} ${!this.isLongEnoughToDrop&&this.props.size,""}`,children:[this.currentNumberOfCharacters," chars"]}),this.input()]})]})}},le(SL.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(SL.prototype,"isMinLength"),SL.prototype),le(SL.prototype,"isLongEnoughToDrop",[p.g],Object.getOwnPropertyDescriptor(SL.prototype,"isLongEnoughToDrop"),SL.prototype),le(SL.prototype,"currentNumberOfCharacters",[p.g],Object.getOwnPropertyDescriptor(SL.prototype,"currentNumberOfCharacters"),SL.prototype),jL=SL))||jL)||jL;const kL=e=>{let{index:t,title:n,desc:r,active:o,onClick:i,Icon:a}=e;return Object(Ht.jsxs)("div",{className:`select-none flex w-full text-left items-center font-medium py-1 px-2 hover:bg-${o?"green":"gray"}-200 bg-${o?"green":"na"}-100 rounded-md cursor-pointer transition`,onClick:i,children:[Object(Ht.jsx)("div",{className:`flex-shrink-0 flex items-center justify-center h-6 w-6 rounded-full bg-${o?"green-500":"gray-300"} mr-4 transition`,children:a?Object(Ht.jsx)(a,{className:"transition h-4 w-4 text-"+(o?"white":"gray-400"),"aria-hidden":"true"}):Object(Ht.jsx)(SR,{className:"transition h-4 w-4 text-"+(o?"white":"gray-400"),"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{children:[n,Object(Ht.jsx)("div",{className:"font-normal text-sm",children:r})]})]})};var CL=TL;function _L(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function NL(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(){let e=requestAnimationFrame(...arguments);return t.add((()=>cancelAnimationFrame(e)))},nextFrame(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.requestAnimationFrame((()=>t.requestAnimationFrame(...n)))},setTimeout(){let e=setTimeout(...arguments);return t.add((()=>clearTimeout(e)))},microTask(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];let o={current:!0};return _L((()=>{o.current&&n[0]()})),t.add((()=>{o.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=NL();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function AL(){let[e]=Object(s.useState)(NL);return Object(s.useEffect)((()=>()=>e.dispose()),[e]),e}var RL=Object.defineProperty,IL=(e,t,n)=>(((e,t,n)=>{t in e?RL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let PL=new class{constructor(){IL(this,"current",this.detect()),IL(this,"handoffState","pending"),IL(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},DL=(e,t)=>{PL.isServer?Object(s.useEffect)(e,t):Object(s.useLayoutEffect)(e,t)};function LL(e){let t=Object(s.useRef)(e);return DL((()=>{t.current=e}),[e]),t}let ML=function(e){let t=LL(e);return l.a.useCallback((function(){return t.current(...arguments)}),[t])};function FL(){let e=Object(s.useRef)(!1);return DL((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function $L(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in s&&s.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=s.useState(PL.isHandoffComplete);return t&&!1===PL.isHandoffComplete&&n(!1),s.useEffect((()=>{!0!==t&&n(!0)}),[t]),s.useEffect((()=>PL.handoff()),[]),!e&&t}let BL=Symbol();function UL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=Object(s.useRef)(t);Object(s.useEffect)((()=>{r.current=t}),[t]);let o=ML((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[BL])))?void 0:o}function HL(e,t){if(e in t){let i=t[e];for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"function"==typeof i?i(...r):i}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,HL),i}function zL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.add(...n)}function GL(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.remove(...n)}function WL(e,t,n,r){let o=n?"enter":"leave",i=NL(),a=void 0!==r?function(e){let t={called:!1};return function(){if(!t.called)return t.called=!0,e(...arguments)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=HL(o,{enter:()=>t.enter,leave:()=>t.leave}),l=HL(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=HL(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return GL(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),zL(e,...t.base,...s,...c),i.nextFrame((()=>{GL(e,...t.base,...s,...c),zL(e,...t.base,...s,...l),function(e,t){let n=NL();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(GL(e,...t.base,...s),zL(e,...t.base,...t.entered),a())))})),i.dispose}let VL=Object(s.createContext)(null);VL.displayName="OpenClosedContext";var qL=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qL||{});function KL(){return Object(s.useContext)(VL)}function YL(e){let{value:t,children:n}=e;return l.a.createElement(VL.Provider,{value:t},n)}function XL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var ZL,QL=((ZL=QL||{})[ZL.None=0]="None",ZL[ZL.RenderStrategy=1]="RenderStrategy",ZL[ZL.Static=2]="Static",ZL),JL=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(JL||{});function eM(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:a=!0,name:s,mergeRefs:l}=e;l=null!=l?l:nM;let c=rM(n,t);if(a)return tM(c,r,o,s,l);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=c;if(e)return tM(t,r,o,s,l)}if(1&u){let{unmount:e=!0,...t}=c;return HL(e?0:1,{0:()=>null,1:()=>tM({...t,hidden:!0,style:{display:"none"}},r,o,s,l)})}return tM(c,r,o,s,l)}function tM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:i=n,children:a,refName:l="ref",...c}=aM(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(i===s.Fragment&&Object.keys(iM(c)).length>0){if(!Object(s.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?function(){return XL(null==e?void 0:e.className(...arguments),c.className)}:XL(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return Object(s.cloneElement)(d,Object.assign({},rM(d.props,iM(aM(c,["ref"]))),p,u,{ref:o(d.ref,u.ref)},n))}return Object(s.createElement)(i,Object.assign({},aM(c,["ref"]),i!==s.Fragment&&u,i!==s.Fragment&&p),d)}function nM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((e=>null==e))?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function rM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let i of t)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=o[e]||(o[e]=[]),o[e].push(i[e])):r[e]=i[e];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(o).map((e=>[e,void 0]))));for(let i in o)Object.assign(r,{[i](e){let t=o[i];for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(let o of t){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;o(e,...r)}}});return r}function oM(e){var t;return Object.assign(Object(s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function iM(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function aM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function sM(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/).filter((e=>e.length>1))}let lM=Object(s.createContext)(null);lM.displayName="TransitionContext";var cM,uM=((cM=uM||{}).Visible="visible",cM.Hidden="hidden",cM);let dM=Object(s.createContext)(null);function pM(e){return"children"in e?pM(e.children):e.current.filter((e=>{let{el:t}=e;return null!==t.current})).filter((e=>{let{state:t}=e;return"visible"===t})).length>0}function fM(e,t){let n=LL(e),r=Object(s.useRef)([]),o=FL(),i=AL(),a=ML((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JL.Hidden,a=r.current.findIndex((t=>{let{el:n}=t;return n===e}));-1!==a&&(HL(t,{[JL.Unmount](){r.current.splice(a,1)},[JL.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!pM(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),l=ML((e=>{let t=r.current.find((t=>{let{el:n}=t;return n===e}));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,JL.Unmount)})),c=Object(s.useRef)([]),u=Object(s.useRef)(Promise.resolve()),d=Object(s.useRef)({enter:[],leave:[],idle:[]}),p=ML(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((t=>{let[n]=t;return n!==e}))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((e=>{let[t,n]=e;return n}))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=ML(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((e=>{let[t,n]=e;return n}))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return Object(s.useMemo)((()=>({children:r,register:l,unregister:a,onStart:p,onStop:f,wait:u,chains:d})),[l,a,r,p,f,d,u])}function hM(){}dM.displayName="NestingContext";let mM=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gM(e){var t;let n={};for(let r of mM)n[r]=null!=(t=e[r])?t:hM;return n}let bM=QL.RenderStrategy;let vM=oM((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Object(s.useRef)(null),c=UL(a,t);$L();let u=KL();if(void 0===n&&null!==u&&(n=(u&qL.Open)===qL.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=Object(s.useState)(n?"visible":"hidden"),f=fM((()=>{p("hidden")})),[h,m]=Object(s.useState)(!0),g=Object(s.useRef)([n]);DL((()=>{!1!==h&&g.current[g.current.length-1]!==n&&(g.current.push(n),m(!1))}),[g,n]);let b=Object(s.useMemo)((()=>({show:n,appear:r,initial:h})),[n,r,h]);Object(s.useEffect)((()=>{if(n)p("visible");else if(pM(f)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&p("hidden")}else p("hidden")}),[n,f]);let v={unmount:o},y=ML((()=>{var t;h&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),x=ML((()=>{var t;h&&m(!1),null==(t=e.beforeLeave)||t.call(e)}));return l.a.createElement(dM.Provider,{value:f},l.a.createElement(lM.Provider,{value:b},eM({ourProps:{...v,as:s.Fragment,children:l.a.createElement(yM,{ref:c,...v,...i,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:s.Fragment,features:bM,visible:"visible"===d,name:"Transition"})))})),yM=oM((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:f,leave:h,leaveFrom:m,leaveTo:g,...b}=e,v=Object(s.useRef)(null),y=UL(v,t),x=null==(n=b.unmount)||n?JL.Unmount:JL.Hidden,{show:O,appear:E,initial:w}=function(){let e=Object(s.useContext)(lM);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[j,S]=Object(s.useState)(O?"visible":"hidden"),T=function(){let e=Object(s.useContext)(dM);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:C}=T;Object(s.useEffect)((()=>k(v)),[k,v]),Object(s.useEffect)((()=>{if(x===JL.Hidden&&v.current)return O&&"visible"!==j?void S("visible"):HL(j,{hidden:()=>C(v),visible:()=>k(v)})}),[j,v,k,C,O,x]);let _=LL({base:sM(b.className),enter:sM(u),enterFrom:sM(d),enterTo:sM(p),entered:sM(f),leave:sM(h),leaveFrom:sM(m),leaveTo:sM(g)}),N=function(e){let t=Object(s.useRef)(gM(e));return Object(s.useEffect)((()=>{t.current=gM(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:c}),A=$L();Object(s.useEffect)((()=>{if(A&&"visible"===j&&null===v.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[v,j,A]);let R=E&&O&&w,I=!A||w&&!E?"idle":O?"enter":"leave",P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=Object(s.useState)(e),r=FL(),o=Object(s.useCallback)((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Object(s.useCallback)((e=>Boolean(t&e)),[t]),a=Object(s.useCallback)((e=>{r.current&&n((t=>t&~e))}),[n,r]),l=Object(s.useCallback)((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:l}}(0),D=ML((e=>HL(e,{enter:()=>{P.addFlag(qL.Opening),N.current.beforeEnter()},leave:()=>{P.addFlag(qL.Closing),N.current.beforeLeave()},idle:()=>{}}))),L=ML((e=>HL(e,{enter:()=>{P.removeFlag(qL.Opening),N.current.afterEnter()},leave:()=>{P.removeFlag(qL.Closing),N.current.afterLeave()},idle:()=>{}}))),M=fM((()=>{S("hidden"),C(v)}),T),F=Object(s.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:i,onStop:a}=e,s=FL(),l=AL(),c=LL(r);DL((()=>{t&&(c.current="enter")}),[t]),DL((()=>{let e=NL();l.add(e.dispose);let t=n.current;if(t&&"idle"!==c.current&&s.current)return e.dispose(),i.current(c.current),e.add(WL(t,o.current,"enter"===c.current,(()=>{e.dispose(),a.current(c.current)}))),e.dispose}),[r])}({immediate:R,container:v,classes:_,direction:I,onStart:LL((e=>{F.current=!0,M.onStart(v,e,D)})),onStop:LL((e=>{F.current=!1,M.onStop(v,e,L),"leave"===e&&!pM(M)&&(S("hidden"),C(v))}))});let $=b,B={ref:y};return R?$={...$,className:XL(b.className,..._.current.enter,..._.current.enterFrom)}:F.current&&($.className=XL(b.className,null==(r=v.current)?void 0:r.className),""===$.className&&delete $.className),l.a.createElement(dM.Provider,{value:M},l.a.createElement(YL,{value:HL(j,{visible:qL.Open,hidden:qL.Closed})|P.flags},eM({ourProps:B,theirProps:$,defaultTag:"div",features:bM,visible:"visible"===j,name:"Transition.Child"})))})),xM=oM((function(e,t){let n=null!==Object(s.useContext)(lM),r=null!==KL();return l.a.createElement(l.a.Fragment,null,!n&&r?l.a.createElement(vM,{ref:t,...e}):l.a.createElement(yM,{ref:t,...e}))})),OM=Object.assign(vM,{Child:xM,Root:vM});function EM(e,t,n,r){let o=LL(n);Object(s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function wM(e){let t=ML(e),n=Object(s.useRef)(!1);Object(s.useEffect)((()=>(n.current=!1,()=>{n.current=!0,_L((()=>{n.current&&t()}))})),[t])}function jM(e){return PL.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function SM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(s.useMemo)((()=>jM(...t)),[...t])}function TM(e,t,n){let r=LL(t);Object(s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var kM=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(kM||{});function CM(e,t){let n=Object(s.useRef)([]),r=ML(e);Object(s.useEffect)((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}var _M=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_M||{});let NM=oM((function(e,t){var n;let{features:r=1,...o}=e;return eM({ourProps:{ref:t,"aria-hidden":2===(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:4===(4&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&r)&&2!==(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}));let AM=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&AM[0]!==e.target&&(AM.unshift(e.target),AM=AM.filter((e=>null!=e&&e.isConnected)),AM.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));let RM=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var IM,PM=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(PM||{}),DM=((IM=DM||{})[IM.Error=0]="Error",IM[IM.Overflow=1]="Overflow",IM[IM.Success=2]="Success",IM[IM.Underflow=3]="Underflow",IM),LM=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(LM||{});function MM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(RM)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var FM=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(FM||{});function $M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n;return e!==(null==(n=jM(e))?void 0:n.body)&&HL(t,{0:()=>e.matches(RM),1(){let t=e;for(;null!==t;){if(t.matches(RM))return!0;t=t.parentElement}return!1}})}var BM=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(BM||{});function UM(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let HM=["textarea","input"].join(",");function zM(e,t){let{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:MM(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,HM))&&n}(s)&&s.select(),2}function GM(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var WM=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(WM||{});let VM=oM((function(e,t){let n=Object(s.useRef)(null),r=UL(n,t),{initialFocus:o,containers:i,features:a=30,...c}=e;$L()||(a=1);let u=SM(n);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Object(s.useRef)(AM.slice());return CM(((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&_L((()=>{t.current.splice(0)})),!1===o&&!0===r&&(t.current=AM.slice())}),[e,AM,t]),ML((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);CM((()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&UM(r())}),[t]),wM((()=>{t&&UM(r())}))}({ownerDocument:u},Boolean(16&a));let d=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,i=Object(s.useRef)(null),a=FL();return CM((()=>{if(!t)return;let e=r.current;e&&_L((()=>{if(!a.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t)return void(i.current=t)}else if(e.contains(t))return void(i.current=t);null!=o&&o.current?UM(o.current):zM(e,PM.First)===DM.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==n?void 0:n.activeElement}))}),[t]),i}({ownerDocument:u,container:n,initialFocus:o},Boolean(2&a));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=e,a=FL();EM(null==n?void 0:n.defaultView,"focus",(e=>{if(!t||!a.current)return;let n=GM(o);r.current instanceof HTMLElement&&n.add(r.current);let s=i.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?KM(n,l)?(i.current=l,UM(l)):(e.preventDefault(),e.stopPropagation(),UM(s)):UM(i.current)}),!0)}({ownerDocument:u,container:n,containers:i,previousActiveElement:d},Boolean(8&a));let p=function(){let e=Object(s.useRef)(0);return TM("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=ML((e=>{let t=n.current;t&&HL(p.current,{[kM.Forwards]:()=>{zM(t,PM.First,{skipElements:[e.relatedTarget]})},[kM.Backwards]:()=>{zM(t,PM.Last,{skipElements:[e.relatedTarget]})}})})),h=AL(),m=Object(s.useRef)(!1),g={ref:r,onKeyDown(e){"Tab"==e.key&&(m.current=!0,h.requestAnimationFrame((()=>{m.current=!1})))},onBlur(e){let t=GM(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(KM(t,r)||(m.current?zM(n.current,HL(p.current,{[kM.Forwards]:()=>PM.Next,[kM.Backwards]:()=>PM.Previous})|PM.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&UM(e.target)))}};return l.a.createElement(l.a.Fragment,null,Boolean(4&a)&&l.a.createElement(NM,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:_M.Focusable}),eM({ourProps:g,theirProps:c,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&l.a.createElement(NM,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:_M.Focusable}))})),qM=Object.assign(VM,{features:WM});function KM(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let YM=Object(s.createContext)(!1);function XM(e){return l.a.createElement(YM.Provider,{value:e.force},e.children)}function ZM(e){let t=Object(s.useContext)(YM),n=Object(s.useContext)(eF),r=SM(e),[o,i]=Object(s.useState)((()=>{if(!t&&null!==n||PL.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return Object(s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),Object(s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}let QM=s.Fragment;let JM=s.Fragment,eF=Object(s.createContext)(null);let tF=Object(s.createContext)(null);let nF=oM((function(e,t){let n=e,r=Object(s.useRef)(null),o=UL(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.assign(e,{[BL]:t})}((e=>{r.current=e})),t),i=SM(r),a=ZM(r),[l]=Object(s.useState)((()=>{var e;return PL.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=Object(s.useContext)(tF),d=$L();return DL((()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))}),[a,l]),DL((()=>{if(l&&u)return u.register(l)}),[u,l]),wM((()=>{var e;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))})),d&&a&&l?Object(c.createPortal)(eM({ourProps:{ref:o},theirProps:n,defaultTag:QM,name:"Portal"}),l):null})),rF=oM((function(e,t){let{target:n,...r}=e,o={ref:UL(t)};return l.a.createElement(eF.Provider,{value:n},eM({ourProps:o,theirProps:r,defaultTag:JM,name:"Popover.Group"}))})),oF=Object.assign(nF,{Group:rF});const iF="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:aF,useEffect:sF,useLayoutEffect:lF,useDebugValue:cF}=s;function uF(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!iF(n,e)}catch{return!0}}const dF=!("undefined"!=typeof window&&"undefined"!=typeof window.document&&"undefined"!=typeof window.document.createElement)?function(e,t,n){return t()}:function(e,t,n){const r=t(),[{inst:o},i]=aF({inst:{value:r,getSnapshot:t}});return lF((()=>{o.value=r,o.getSnapshot=t,uF(o)&&i({inst:o})}),[e,r,t]),sF((()=>(uF(o)&&i({inst:o}),e((()=>{uF(o)&&i({inst:o})})))),[e]),cF(r),r},pF="useSyncExternalStore"in s?(e=>e.useSyncExternalStore)(s):dF;function fF(){let e;return{before(t){let{doc:n}=t;var r;let o=n.documentElement;e=(null!=(r=n.defaultView)?r:window).innerWidth-o.clientWidth},after(t){let{doc:n,d:r}=t,o=n.documentElement,i=o.clientWidth-o.offsetWidth,a=e-i;r.style(o,"paddingRight",`${a}px`)}}}function hF(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mF(){return hF()||/Android/gi.test(window.navigator.userAgent)}function gF(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let bF=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=t[e].call(n,...i);s&&(n=s,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:NL(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let{doc:t,d:n,meta:r}=e,o={doc:t,d:n,meta:gF(r)},i=[hF()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=NL();e.style(t.documentElement,"scrollBehavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!o(a)&&(i=a)}catch{}}),!0),n.addEventListener(t,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})),n.addEventListener(t,"touchmove",(e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}),{passive:!1}),n.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;r!==t&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{},fF(),{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];i.forEach((e=>{let{before:t}=e;return null==t?void 0:t(o)})),i.forEach((e=>{let{after:t}=e;return null==t?void 0:t(o)}))},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});function vF(e,t,n){let r=function(e){return pF(e.subscribe,e.getSnapshot,e.getSnapshot)}(bF),o=e?r.get(e):void 0,i=!!o&&o.count>0;return DL((()=>{if(e&&t)return bF.dispatch("PUSH",e,n),()=>bF.dispatch("POP",e,n)}),[t,e]),i}var yF;bF.subscribe((()=>{let e=bF.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&bF.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&bF.dispatch("TEARDOWN",n)}}));let xF=null!=(yF=l.a.useId)?yF:function(){let e=$L(),[t,n]=l.a.useState(e?()=>PL.nextId():null);return DL((()=>{null===t&&n(PL.nextId())}),[t]),null!=t?""+t:void 0},OF=new Map,EF=new Map;function wF(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];DL((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=EF.get(r))?n:0;return EF.set(r,o+1),0!==o||(OF.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=EF.get(r))?e:1;if(1===t?EF.delete(r):EF.set(r,t-1),1!==t)return;let n=OF.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,OF.delete(r))}}),[e,t])}function jF(e,t,n){let r=LL(t);Object(s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}let SF=Object(s.createContext)((()=>{}));SF.displayName="StackContext";var TF=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(TF||{});function kF(e){let{children:t,onUpdate:n,type:r,element:o,enabled:i}=e,a=Object(s.useContext)(SF),c=ML((function(){null==n||n(...arguments),a(...arguments)}));return DL((()=>{let e=void 0===i||!0===i;return e&&c(0,r,o),()=>{e&&c(1,r,o)}}),[c,r,o,i]),l.a.createElement(SF.Provider,{value:c},t)}function CF(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let _F=Object(s.createContext)(null);function NF(){let e=Object(s.useContext)(_F);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,NF),e}return e}let AF=oM((function(e,t){let n=xF(),{id:r=`headlessui-description-${n}`,...o}=e,i=NF(),a=UL(t);return DL((()=>i.register(r)),[r,i.register]),eM({ourProps:{ref:a,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),RF=Object.assign(AF,{});var IF=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(IF||{}),PF=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PF||{}),DF=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(DF||{});let LF={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},MF=Object(s.createContext)(null);function FF(e){let t=Object(s.useContext)(MF);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,FF),t}return t}function $F(e,t){return HL(t.type,LF,e,t)}MF.displayName="DialogContext";let BF=QL.RenderStrategy|QL.Static;let UF=oM((function(e,t){let n=xF(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:c="dialog",__demoMode:u=!1,...d}=e,[p,f]=Object(s.useState)(0),h=Object(s.useRef)(!1);c="dialog"===c||"alertdialog"===c?c:(h.current||(h.current=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let m=KL();void 0===o&&null!==m&&(o=(m&qL.Open)===qL.Open);let g=Object(s.useRef)(null),b=UL(g,t),v=SM(g),y=e.hasOwnProperty("open")||null!==m,x=e.hasOwnProperty("onClose");if(!y&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if("function"!=typeof i)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let O=o?0:1,[E,w]=Object(s.useReducer)($F,{titleId:null,descriptionId:null,panelRef:Object(s.createRef)()}),j=ML((()=>i(!1))),S=ML((e=>w({type:0,id:e}))),T=!!$L()&&(!u&&0===O),k=p>1,C=null!==Object(s.useContext)(MF),[_,N]=function(){let e=Object(s.useContext)(tF),t=Object(s.useRef)([]),n=ML((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=ML((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),o=Object(s.useMemo)((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,Object(s.useMemo)((()=>function(e){let{children:t}=e;return l.a.createElement(tF.Provider,{value:o},t)}),[o])]}(),A={get current(){var e;return null!=(e=E.panelRef.current)?e:g.current}},{resolveContainers:R,mainTreeNodeRef:I,MainTreeNode:P}=function(){let{defaultContainers:e=[],portals:t,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r;let o=Object(s.useRef)(null!=(r=null==n?void 0:n.current)?r:null),i=SM(o),a=ML((()=>{var n,r,a;let s=[];for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"current"in t&&t.current instanceof HTMLElement&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||e.contains(null==(a=null==(r=o.current)?void 0:r.getRootNode())?void 0:a.host)||s.some((t=>e.contains(t)))||s.push(e));return s}));return{resolveContainers:a,contains:ML((e=>a().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:Object(s.useMemo)((()=>function(){return null!=n?null:l.a.createElement(NM,{features:_M.Hidden,ref:o})}),[o,n])}}({portals:_,defaultContainers:[A]}),D=k?"parent":"leaf",L=null!==m&&(m&qL.Closing)===qL.Closing,M=!C&&!L&&T,F=Object(s.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==v?void 0:v.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(I.current)&&e instanceof HTMLElement))))?t:null}),[I]);wF(F,M);let $=!!k||T,B=Object(s.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==v?void 0:v.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(I.current)&&e instanceof HTMLElement)))?t:null}),[I]);wF(B,$),function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(s.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!$M(i,FM.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}Object(s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=Object(s.useRef)(null);jF("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),jF("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),jF("click",(e=>{mF()||i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),jF("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),TM("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(R,(e=>{e.preventDefault(),j()}),!(!T||k));let U=!(k||0!==O);EM(null==v?void 0:v.defaultView,"keydown",(e=>{U&&(e.defaultPrevented||e.key===IF.Escape&&(e.preventDefault(),e.stopPropagation(),j()))})),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];vF(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(v,!(L||0!==O||C),R),Object(s.useEffect)((()=>{if(0!==O||!g.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&j()}}));return e.observe(g.current),()=>e.disconnect()}),[O,g,j]);let[H,z]=function(){let[e,t]=Object(s.useState)([]);return[e.length>0?e.join(" "):void 0,Object(s.useMemo)((()=>function(e){let n=ML((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=Object(s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return l.a.createElement(_F.Provider,{value:r},e.children)}),[t])]}(),G=Object(s.useMemo)((()=>[{dialogState:O,close:j,setTitleId:S},E]),[O,E,j,S]),W=Object(s.useMemo)((()=>({open:0===O})),[O]),V={ref:b,id:r,role:c,"aria-modal":0===O||void 0,"aria-labelledby":E.titleId,"aria-describedby":H};return l.a.createElement(kF,{type:"Dialog",enabled:0===O,element:g,onUpdate:ML(((e,t)=>{"Dialog"===t&&HL(e,{[TF.Add]:()=>f((e=>e+1)),[TF.Remove]:()=>f((e=>e-1))})}))},l.a.createElement(XM,{force:!0},l.a.createElement(oF,null,l.a.createElement(MF.Provider,{value:G},l.a.createElement(oF.Group,{target:g},l.a.createElement(XM,{force:!1},l.a.createElement(z,{slot:W,name:"Dialog.Description"},l.a.createElement(qM,{initialFocus:a,containers:R,features:T?HL(D,{parent:qM.features.RestoreFocus,leaf:qM.features.All&~qM.features.FocusLock}):qM.features.None},l.a.createElement(N,null,eM({ourProps:V,theirProps:d,slot:W,defaultTag:"div",features:BF,visible:0===O,name:"Dialog"}))))))))),l.a.createElement(P,null))})),HF=oM((function(e,t){let n=xF(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},a]=FF("Dialog.Backdrop"),c=UL(t);Object(s.useEffect)((()=>{if(null===a.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[a.panelRef]);let u=Object(s.useMemo)((()=>({open:0===i})),[i]);return l.a.createElement(XM,{force:!0},l.a.createElement(oF,null,eM({ourProps:{ref:c,id:r,"aria-hidden":!0},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Backdrop"})))})),zF=oM((function(e,t){let n=xF(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},a]=FF("Dialog.Panel"),l=UL(t,a.panelRef),c=Object(s.useMemo)((()=>({open:0===i})),[i]);return eM({ourProps:{ref:l,id:r,onClick:ML((e=>{e.stopPropagation()}))},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),GF=oM((function(e,t){let n=xF(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:a}]=FF("Dialog.Overlay");return eM({ourProps:{ref:UL(t),id:r,"aria-hidden":!0,onClick:ML((e=>{if(e.target===e.currentTarget){if(CF(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}))},theirProps:o,slot:Object(s.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),WF=oM((function(e,t){let n=xF(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=FF("Dialog.Title"),l=UL(t);Object(s.useEffect)((()=>(a(r),()=>a(null))),[r,a]);let c=Object(s.useMemo)((()=>({open:0===i})),[i]);return eM({ourProps:{ref:l,id:r},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),VF=Object.assign(UF,{Backdrop:HF,Panel:zF,Overlay:GF,Title:WF,Description:RF});var qF,KF=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));let YF=ae("store")(qF=ee(qF=class extends s.Component{constructor(){super(...arguments),this.onChange=e=>{},this.onChange=e=>{let t=e.target.value;t<1&&(t=1),t>10&&(t=10),this.props.prompts[this.props.currentPrompt].n=parseInt(t)}}render(){const{prompts:e,currentPrompt:t}=this.props;return Object(Ht.jsx)(Ht.Fragment,{children:e[t].n?Object(Ht.jsxs)("div",{className:"flex items-center relative mt-4",children:[Object(Ht.jsx)("label",{htmlFor:"q",className:"absolute inset-y-0 left-4 md:left-6 top-0 bottom-0 flex items-center text-gray-400 select-none pointer-events-none",children:Object(Ht.jsx)(Nr,{className:"w-6 h-6"})}),Object(Ht.jsx)("input",{name:"promptNumber",id:"promptNumber",type:"number",max:10,min:1,className:"w-24 py-2 px-4 pl-10 pr-2 border rounded-md flex md:inline-flex font-medium text-lg cursor-pointer md:mx-0 hover:shadow-lg transition md:ml-4",value:e[t].n,onChange:this.onChange}),Object(Ht.jsx)("div",{className:"px-4 text-sm flex-shrink-0 text-gray-500",children:"Outputs"}),Object(Ht.jsx)("div",{className:"flex-1"})]}):null})}})||qF)||qF;var XF=YF;var ZF,QF,JF,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$=Object(s.createContext)(null);let f$=new Ft.a,h$=(ZF=ae("store"),QF=p.o.deep,ZF(JF=ee((e$=class extends s.Component{constructor(e){Object(p.p)((()=>this.output),(e=>{console.log("Output changed:",e),this.setState({output:e})})),super(e),this.openModal=()=>{this.setState({showModal:!0})},this.closeModal=()=>{this.setState({showModal:!1})},se(this,"tool",t$,this),se(this,"prompts",n$,this),se(this,"currentPrompt",r$,this),se(this,"currentOption",o$,this),se(this,"error",i$,this),se(this,"output",a$,this),se(this,"outputs",s$,this),se(this,"code",l$,this),this.fileRef=l.a.createRef(),se(this,"loading",c$,this),se(this,"date",u$,this),this.countdown=[],se(this,"isHandwritingModalVisible",d$,this),this.checkMinimumPrompts=()=>{let e=!1;return this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{t.min&&t.value.length<t.min&&(e=!0,t.error=`${t.title} needs to meet the minimum ${t.min} characters`)})),e},this.clearExampleTimeout=[],this.onStartUsing=async()=>{this.loading=!1,this.error="",this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.currentOption="Start Using"},this.onExample=async()=>{this.loading=!0,this.error="",this.output="",this.outputs=[],this.code="",this.currentOption="Example";let e=0;this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.prompts[this.currentPrompt].prompts.forEach(((e,t)=>{this.prompts[this.currentPrompt].prompts[t].value=""})),this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{for(let r=0;r<t.example.length;r++)e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.prompts[this.currentPrompt].prompts[n].value+=t.example[r]}),7*e)})),e++,this.prompts[this.currentPrompt].example.output&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.output=this.prompts[this.currentPrompt].example.output,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using",this.prompts[this.currentPrompt].prompts[0].value+=" "}),7*e+7*this.prompts[this.currentPrompt].example.output.length+500)}),7*e+500)),this.prompts[this.currentPrompt].example.code&&(e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.code=`${this.prompts[this.currentPrompt].example.code}`,this.loading=!1}),7*e+500)),this.prompts[this.currentPrompt].example.outputs&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.outputs=this.prompts[this.currentPrompt].example.outputs,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500)}),7*e+500))},this.sanitizeAllPrompts=()=>{this.prompts[this.currentPrompt].prompts.forEach((e=>{if(!e.value)return!1;if("number"===e.type)return!1;if(e.value=e.value.trim(),f$.isProfane(e.value))throw e.error="Unsafe content , please try different language",Error("Unsafe content")}))},this.contentFilterFlagged=async e=>{this.error=e.message,this.date=Date.now()+5e3,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1},this.checkOutput=e=>(e&&(e=e.replace(/^\s+|\s+$/g,"")),e),this.handleFileChange=(e,t)=>{t.file=e.target.files[0]},this.getModalConfiguration=()=>(console.log("HandwritingConfig:",Gt),Gt),this.onGenerateClick=async()=>{this.loading=!0;try{if(this.error="",this.output="",this.code="",this.outputs=[],this.checkMinimumPrompts())return this.loading=!1,!1;let e,t=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)),n={};t?(e=new FormData,this.prompts[this.currentPrompt].prompts.forEach((t=>{"file"===t.type&&t.file?e.append(t.attr,t.file):e.append(t.attr,t.value)})),n={headers:{"Content-Type":"multipart/form-data"}}):(e={},this.prompts[this.currentPrompt].prompts.forEach((t=>{e[t.attr]=t.value}))),e.currentPrompt=this.prompts[this.currentPrompt].title,this.prompts[this.currentPrompt].n&&(e.n=this.prompts[this.currentPrompt].n);let r=await this.props.store.api.post(this.tool.api,e,n);if(console.log("onGenerateClick - response:",r),!r.data.success)return this.contentFilterFlagged(r.data),!1;r.data.output&&(this.output=this.checkOutput(r.data.output)),r.data.code&&(this.code=r.data.code),r.data.outputs&&(this.outputs=r.data.outputs),console.log("onGenerateClick - updated state:",{output:this.output,code:this.code,outputs:this.outputs}),this.date=Date.now()+1e4,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}catch(e){console.log(e),this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}},Object(p.n)(this),Object(p.p)((()=>this.output),(e=>{console.log("Output changed:",e)})),this.isHandwritingModal=!0,this.tool=this.props.store.getToolByUrl("/ai/writing/handwriting"),console.log("Tool props:",e);const{store:t,location:n,match:r,forceConfig:o}=this.props;this.tool?this.prompts=[...this.tool.prompts]:window.location.href="/",this.state={showModal:!1,config:Gt},this.fileRef=l.a.createRef(),this.date=Date.now()+1e3,this.countdown=[],this.isHandwritingModalVisible=!1}get isGenerateButtonDisabled(){return!!this.loading}get disabled(){return this.prompts[this.currentPrompt].prompts[0].value.length<1}get isMinLength(){return!!this.props.prompt.min&&(this.props.prompt.type,!1)}get language(){let e="";return this.prompts[this.currentPrompt].prompts.forEach((t=>{"language"===t.attr&&(e=`${t.value}`)})),e}render(){console.log("Tool render - state:",this.state),console.log("Tool render - config prop:",this.props.config),console.log("Tool render - config:",this.props.config);this.props.config||this.state.config;const e=this.prompts[this.currentPrompt].prompts[0].value;return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:`${this.tool.title} Tool - Top Marks AI`})}),Object(Ht.jsx)(KT,{title:this.tool.title,desc:this.tool.desc,Icon:this.tool.Icon,fromColor:this.tool.fromColor,category:this.tool.category,options:[{title:"Start Using",Icon:HT,color:this.props.store.profile.credits?"green":"red",onClick:this.onStartUsing}],currentOption:this.currentOption}),Object(Ht.jsx)($r,{children:Object(Ht.jsxs)(Dr,{children:[Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(kR,{prompts:this.prompts,currentPrompt:this.currentPrompt,onChange:this.handleCurrentPrompt}),this.prompts.map(((t,n)=>Object(Ht.jsxs)(CR,{prompt:t,index:n,disabled:this.disabled,currentPrompt:this.currentPrompt,extraButtons:t.extraButtons,children:[t.prompts.map(((e,t)=>Object(Ht.jsx)(CL,{prompt:e,language:this.language,index:t,disabled:this.disabled,fileRef:this.fileRef,onFileChange:t=>this.handleFileChange(t,e),onPerformRequest:this.onGenerateClick},t))),Object(Ht.jsxs)("div",{className:"md:flex",children:[Object(Ht.jsx)(bR,{ref:e=>this.countdown[n]=e,date:this.date,renderer:t=>Object(Ht.jsx)(YT,{title:t.total?`Timeout ${t.total/1e3} secs`:"Perform Request",disabled:t.total||this.isGenerateButtonDisabled,Icon:t.total?Ar:e?GT:HT,onClick:this.onGenerateClick})}),Object(Ht.jsx)(XF,{prompts:this.prompts,currentPrompt:this.currentPrompt})]}),this.error&&Object(Ht.jsx)("div",{className:"mt-4",children:Object(Ht.jsx)("label",{className:(this.error?"text-red-400":"text-gray-400")+" font-medium transition-all",children:this.error})})]},n)))]}),Object(Ht.jsx)(Lr,{span:"6",children:Object(Ht.jsx)(jR,{title:this.tool.output.title,desc:this.tool.output.desc,Icon:this.tool.output.Icon||this.tool.Icon,fromColor:this.tool.fromColor,toColor:this.tool.toColor,loading:this.loading,output:this.output,outputs:this.outputs,code:this.code,language:this.language,outputsColor:this.tool.output.color,OutputsIcon:this.tool.output.Icon})})]})})]})}},t$=le(e$.prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),n$=le(e$.prototype,"prompts",[QF],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r$=le(e$.prototype,"currentPrompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),o$=le(e$.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),i$=le(e$.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),a$=le(e$.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s$=le(e$.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l$=le(e$.prototype,"code",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c$=le(e$.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u$=le(e$.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),d$=le(e$.prototype,"isHandwritingModalVisible",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le(e$.prototype,"isGenerateButtonDisabled",[p.g],Object.getOwnPropertyDescriptor(e$.prototype,"isGenerateButtonDisabled"),e$.prototype),le(e$.prototype,"disabled",[p.g],Object.getOwnPropertyDescriptor(e$.prototype,"disabled"),e$.prototype),le(e$.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(e$.prototype,"isMinLength"),e$.prototype),le(e$.prototype,"language",[p.g],Object.getOwnPropertyDescriptor(e$.prototype,"language"),e$.prototype),JF=e$))||JF)||JF);ae("store")(h$);var m$,g$,b$,v$,y$,x$,O$,E$,w$,j$,S$,T$,k$,C$,_$,N$,A$,R$,I$=function(e){let{showModal:t,closeModal:n,store:r,output:o}=e;const[i,a]=Object(s.useState)(t);return Object(s.useEffect)((()=>{a(t)}),[t,o]),console.log("HandwritingModal - handwritingConfig:",Gt),Object(Ht.jsx)(OM,{show:i,as:s.Fragment,children:Object(Ht.jsx)(VF,{as:"div",className:"fixed inset-0 z-200 overflow-y-auto",onClose:n,children:Object(Ht.jsxs)("div",{className:"min-h-screen px-4 text-center",children:[Object(Ht.jsx)(OM.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Object(Ht.jsx)(VF.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75"})}),Object(Ht.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"\u200b"}),Object(Ht.jsx)(OM.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:Object(Ht.jsx)("div",{className:"inline-block w-full max-w-9xl py-100 my-8 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl",children:Object(Ht.jsxs)("div",{className:"relative px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:[Object(Ht.jsx)("div",{className:"absolute top-0 right-0 pt-4 pr-4",children:Object(Ht.jsxs)("button",{type:"button",className:"text-gray-400 hover:text-gray-500",onClick:n,children:[Object(Ht.jsx)("span",{className:"sr-only",children:"Close"}),Object(Ht.jsx)(KF,{className:"h-6 w-6","aria-hidden":"true"})]})}),Object(Ht.jsx)(p$.Provider,{value:Gt,children:Object(Ht.jsx)(h$,{store:r,output:o})})]})})})]})})})},P$=n(58);let D$=new Ft.a,L$=(m$=ae("store"),g$=p.o.deep,m$(b$=ee((R$=class extends s.Component{constructor(e){super(e),this.openModal=()=>{this.setState({showModal:!0})},this.closeModal=()=>{this.setState({showModal:!1})},se(this,"tool",y$,this),se(this,"prompts",x$,this),se(this,"currentPrompt",O$,this),se(this,"currentOption",E$,this),se(this,"error",w$,this),se(this,"hasFileInput",j$,this),se(this,"output",S$,this),se(this,"scores",T$,this),se(this,"outputs",k$,this),se(this,"code",C$,this),this.fileRef=l.a.createRef(),se(this,"loading",_$,this),se(this,"date",N$,this),this.countdown=[],se(this,"isHandwritingModalVisible",A$,this),this.checkMinimumPrompts=()=>{let e=!1;return this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{t.min&&t.value.length<t.min&&(e=!0,t.error=`${t.title} needs to meet the minimum ${t.min} characters`)})),e},this.clearExampleTimeout=[],this.onStartUsing=async()=>{this.loading=!1,this.error="",this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.currentOption="Start Using"},this.onExample=async()=>{if(this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)))return;this.loading=!0,this.error="",this.output="",this.outputs=[],this.code="",this.currentOption="Example";let e=0;this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.prompts[this.currentPrompt].prompts.forEach(((e,t)=>{this.prompts[this.currentPrompt].prompts[t].value=""})),this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{for(let r=0;r<t.example.length;r++)e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.prompts[this.currentPrompt].prompts[n].value+=t.example[r]}),7*e)})),e++,this.prompts[this.currentPrompt].example.output&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.output=this.prompts[this.currentPrompt].example.output,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using",this.prompts[this.currentPrompt].prompts[0].value+=" "}),7*e+7*this.prompts[this.currentPrompt].example.output.length+500)}),7*e+500)),this.prompts[this.currentPrompt].example.code&&(e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.code=`${this.prompts[this.currentPrompt].example.code}`,this.loading=!1}),7*e+500)),this.prompts[this.currentPrompt].example.outputs&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.outputs=this.prompts[this.currentPrompt].example.outputs,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500)}),7*e+500))},this.sanitizeAllPrompts=()=>{this.prompts[this.currentPrompt].prompts.forEach((e=>{if(!e.value)return!1;if("number"===e.type)return!1;if(e.value=e.value.trim(),D$.isProfane(e.value))throw e.error="Unsafe content , please try different language",Error("Unsafe content")}))},this.contentFilterFlagged=async e=>{this.error=e.message,this.date=Date.now()+5e3,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1},this.checkOutput=e=>(e&&(e=e.replace(/^\s+|\s+$/g,"")),e),this.handleFileChange=(e,t)=>{t.file=e.target.files[0]},this.getModalConfiguration=()=>(console.log("HandwritingConfig:",this.context),this.context),this.onGenerateClick=async()=>{try{if(this.error="",this.output="",this.code="",this.outputs=[],this.loading=!0,console.log("Current socketId:",Object(P$.getCurrentSocketId)()),this.checkMinimumPrompts())return this.loading=!1,!1;let e=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)),t=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type&&("scheme"===e.name||"essays1"===e.name||"essays2"===e.name))),n={};n.socketId=Object(P$.getCurrentSocketId)(),console.log("Sending socketId:",n.socketId);let r,o={};if(e)this.formData=new FormData,this.formData.append("socketId",Object(P$.getCurrentSocketId)()),this.prompts[this.currentPrompt].prompts.forEach((e=>{if("file"===e.type&&e.file)if(t)"scheme"!==e.name&&"essays1"!==e.name&&"essays2"!==e.name||this.formData.append(e.name,e.file,e.file.name);else{const t=e.file.type.startsWith("image/"),n=t?"imageFiles":"essays";console.log(`Appending file to FormData: isImage=${t}, formFieldName=${n}, fileName=${e.file.name}`),this.formData.append(n,e.file,e.file.name)}else this.formData.append(e.attr,e.value)})),o={headers:{}},r=await this.props.store.api.post(this.tool.api,this.formData,o);else{n={...n,...this.prompts[this.currentPrompt].prompts.reduce((function(e,t){return e[t.attr]=t.value,e}),{})};let e=[];const t=Object.keys(n).filter((e=>e.startsWith("essay_")));for(let r of t){const t=r.replace("essay","essay_title");n[t]&&(e.push({essay:n[r],essay_title:n[t]}),delete n[r],delete n[t])}n.essays=e,o={headers:{"content-type":"application/json"}},r=await this.props.store.api.post(this.tool.api,n,o)}if(!r.data.success)return this.contentFilterFlagged(r.data),!1;r.data.output&&(this.output=this.checkOutput(r.data.output)),r.data.code&&(this.code=r.data.code),r.data.outputs&&(this.outputs=r.data.outputs,this.scores=r.data.scores),this.date=Date.now()+1e4,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}catch(e){console.log(e),this.error="Something went wrong, please try again",this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}},Object(p.n)(this),this.isHandwritingModal=this.props.isHandwritingModal||!1,this.tool=this.props.store.getToolByUrl(this.props.location.pathname),console.log("Tool props:",e);const{store:t,location:n,match:r,forceConfig:o}=this.props;this.tool?this.prompts=[...this.tool.prompts]:window.location.href="/",this.state={showModal:!1},this.fileRef=l.a.createRef(),this.date=Date.now()+1e3,this.countdown=[],this.isHandwritingModalVisible=!1}componentDidUpdate(e){e.config!==this.props.config?this.setState({config:this.props.config}):e.forceConfig!==this.props.forceConfig&&this.setState({config:this.props.forceConfig}),console.log("Tool componentDidUpdate - prevProps:",e),console.log("Tool componentDidUpdate - nextProps:",this.props),console.log("Tool componentDidUpdate - prevState:",this.state);const t=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type));this.hasFileInput=t}get isGenerateButtonDisabled(){return!!this.loading}get disabled(){return this.prompts[this.currentPrompt].prompts[0].value.length<1}get isMinLength(){return!!this.props.prompt.min&&(this.props.prompt.type,!1)}get language(){let e="";return this.prompts[this.currentPrompt].prompts.forEach((t=>{"language"===t.attr&&(e=`${t.value}`)})),e}render(){console.log("Tool render - config prop:",this.props.config),console.log("Tool render - config:",this.props.config);this.context;const e=this.prompts[this.currentPrompt].prompts[0].value;return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:`${this.tool.title} Tool - Top Marks AI`})}),Object(Ht.jsx)(KT,{title:this.tool.title,desc:this.tool.desc,Icon:this.tool.Icon,fromColor:this.tool.fromColor,category:this.tool.category,options:[{title:"Start Using",Icon:HT,color:this.props.store.profile.credits?"green":"red",onClick:this.onStartUsing},{title:"Example",color:"yellow",Icon:zT,onClick:this.onExample,disabled:this.hasFileInput,style:this.hasFileInput?{pointerEvents:"none",opacity:.5}:{}}],currentOption:this.currentOption}),Object(Ht.jsxs)($r,{children:[Object(Ht.jsx)(YT,{title:"Open Handwriting to Text Converter",onClick:()=>{console.log("Button clicked"),this.openModal()}})," ",Object(Ht.jsx)(I$,{showModal:this.state.showModal,closeModal:this.closeModal,store:this.props.store}),Object(Ht.jsxs)(Dr,{children:[Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(kR,{prompts:this.prompts,currentPrompt:this.currentPrompt,onChange:this.handleCurrentPrompt}),this.prompts.map(((t,n)=>Object(Ht.jsxs)(CR,{prompt:t,index:n,disabled:this.disabled,currentPrompt:this.currentPrompt,extraButtons:t.extraButtons,children:[t.prompts.map(((e,t)=>Object(Ht.jsx)(CL,{prompt:e,language:this.language,index:t,disabled:this.disabled,fileRef:this.fileRef,onFileChange:t=>this.handleFileChange(t,e),onPerformRequest:this.onGenerateClick},t))),Object(Ht.jsxs)("div",{className:"md:flex",children:[Object(Ht.jsx)(bR,{ref:e=>this.countdown[n]=e,date:this.date,renderer:t=>Object(Ht.jsx)(YT,{title:t.total?`Timeout ${t.total/1e3} secs`:"Perform Request",disabled:t.total||this.isGenerateButtonDisabled,Icon:t.total?Ar:e?GT:HT,onClick:this.onGenerateClick})}),Object(Ht.jsx)(XF,{prompts:this.prompts,currentPrompt:this.currentPrompt})]}),this.error&&Object(Ht.jsx)("div",{className:"mt-4",children:Object(Ht.jsx)("label",{className:(this.error?"text-red-400":"text-gray-400")+" font-medium transition-all",children:this.error})})]},n)))]}),Object(Ht.jsx)(Lr,{span:"6",children:Object(Ht.jsx)(tR,{title:this.tool.output.title,desc:this.tool.output.desc,Icon:this.tool.output.Icon||this.tool.Icon,fromColor:this.tool.fromColor,toColor:this.tool.toColor,loading:this.loading,scores:this.scores,output:this.output,outputs:this.outputs,code:this.code,language:this.language,outputsColor:this.tool.output.color,OutputsIcon:this.tool.output.Icon})})]})]})]})}},R$.contextType=p$,y$=le((v$=R$).prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),x$=le(v$.prototype,"prompts",[g$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),O$=le(v$.prototype,"currentPrompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),E$=le(v$.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),w$=le(v$.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),j$=le(v$.prototype,"hasFileInput",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S$=le(v$.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),T$=le(v$.prototype,"scores",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k$=le(v$.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C$=le(v$.prototype,"code",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_$=le(v$.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N$=le(v$.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),A$=le(v$.prototype,"isHandwritingModalVisible",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le(v$.prototype,"isGenerateButtonDisabled",[p.g],Object.getOwnPropertyDescriptor(v$.prototype,"isGenerateButtonDisabled"),v$.prototype),le(v$.prototype,"disabled",[p.g],Object.getOwnPropertyDescriptor(v$.prototype,"disabled"),v$.prototype),le(v$.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(v$.prototype,"isMinLength"),v$.prototype),le(v$.prototype,"language",[p.g],Object.getOwnPropertyDescriptor(v$.prototype,"language"),v$.prototype),b$=v$))||b$)||b$);var M$,F$,$$,B$,U$,H$,z$,G$,W$,V$,q$,K$,Y$,X$,Z$,Q$,J$,eB,tB=br(L$);let nB=new Ft.a,rB=(M$=ae("store"),F$=p.o.deep,M$($$=ee((eB=class extends s.Component{constructor(e){super(e),this.openModal=()=>{this.setState({showModal:!0})},this.closeModal=()=>{this.setState({showModal:!1})},se(this,"tool",U$,this),se(this,"prompts",H$,this),se(this,"currentPrompt",z$,this),se(this,"currentOption",G$,this),se(this,"error",W$,this),se(this,"hasFileInput",V$,this),se(this,"output",q$,this),se(this,"scores",K$,this),se(this,"outputs",Y$,this),se(this,"code",X$,this),se(this,"loading",Z$,this),se(this,"date",Q$,this),se(this,"isHandwritingModalVisible",J$,this),this.checkMinimumPrompts=()=>{var e;let t=!1;return null===(e=this.prompts[this.currentPrompt])||void 0===e||e.prompts.forEach(((e,n)=>{e.min&&e.value.length<e.min&&(t=!0,e.error=`${e.title} needs to meet the minimum ${e.min} characters`)})),t},this.onStartUsing=async()=>{this.loading=!1,this.error="",this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.currentOption="Start Using"},this.onExample=async()=>{console.log("Tool object in onExample:",this.tool);if(this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)))return;this.loading=!0,this.error="",this.output="",this.outputs=[],this.code="",this.currentOption="Example";let e=0;this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.clearExampleTimeout=[],this.prompts[this.currentPrompt].prompts.forEach(((e,t)=>{this.prompts[this.currentPrompt].prompts[t].value=""}));const t={essay_title:"exessaytitle",essay:"exessay",extract1:"exextract1",extract2:"exextract2",extract3:"exextract3",extract4:"exextract4"};this.prompts[this.currentPrompt].prompts.forEach(((n,r)=>{const o=t[n.attr];if(console.log(`Prompt ${r}:`,n.attr,"Example field:",o,"Value:",this.tool[o]),o&&this.tool[o]){const t=this.tool[o];for(let n=0;n<t.length;n++)e++,this.clearExampleTimeout.push(setTimeout((()=>{this.prompts[this.currentPrompt].prompts[r].value=t.slice(0,n+1)}),1*e))}})),e++,this.tool.example&&this.tool.example.output&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.output=this.tool.example.output,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using",this.prompts[this.currentPrompt].prompts[0].value+=" "}),7*e+7*this.tool.example.output.length+500)}),7*e+500)),this.tool.example&&this.tool.example.code&&(e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.code=this.tool.example.code,this.loading=!1}),7*e+500)),this.tool.example&&this.tool.example.outputs&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.outputs=this.tool.example.outputs,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500)}),7*e+500)),this.tool.example&&(this.tool.example.output||this.tool.example.code||this.tool.example.outputs)||(this.clearExampleTimeout[e+1]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500))},this.sanitizeAllPrompts=()=>{this.prompts[this.currentPrompt].prompts.forEach((e=>{if(!e.value)return!1;if("number"===e.type)return!1;if(e.value=e.value.trim(),nB.isProfane(e.value))throw e.error="Unsafe content , please try different language",Error("Unsafe content")}))},this.contentFilterFlagged=async e=>{this.error=e.message,this.date=Date.now()+5e3,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1},this.checkOutput=e=>(e&&(e=e.replace(/^\s+|\s+$/g,"")),e),this.handleFileChange=(e,t)=>{t.file=e.target.files[0]},this.getModalConfiguration=()=>(console.log("HandwritingConfig:",this.context),this.context),this.onGenerateClick=async()=>{try{if(this.error="",this.output="",this.code="",this.outputs=[],this.loading=!0,console.log("Current socketId:",Object(P$.getCurrentSocketId)()),this.checkMinimumPrompts())return this.loading=!1,!1;let e=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)),t={};t.socketId=Object(P$.getCurrentSocketId)(),console.log("Sending socketId:",t.socketId);let n,r={};if(e)this.formData=new FormData,this.formData.append("socketId",Object(P$.getCurrentSocketId)()),this.prompts[this.currentPrompt].prompts.forEach((e=>{if("file"===e.type&&e.file)if("essay"===e.attr&&this.state.isHandVersion)this.formData.append("essays",e.file,e.file.name);else{const t=e.file.type.startsWith("image/"),n=t?"imageFiles":"essays";console.log(`Appending file to FormData: isImage=${t}, formFieldName=${n}, fileName=${e.file.name}`),this.formData.append(n,e.file,e.file.name)}else this.formData.append(e.attr,e.value)})),r={headers:{"Content-Type":"multipart/form-data"}},console.log("Sending request to:",this.tool.api),n=await this.props.store.api.post(this.tool.api,this.formData,r);else{t={...t,...this.prompts[this.currentPrompt].prompts.reduce(((e,t)=>(e[t.attr]=t.value,e)),{})};let e=[];const o=Object.keys(t).filter((e=>e.startsWith("essay_")));for(let n of o){const r=n.replace("essay","essay_title");t[r]&&(e.push({essay:t[n],essay_title:t[r]}),delete t[n],delete t[r])}t.essays=e,r={headers:{"content-type":"application/json"}},console.log("Sending request to:",this.tool.api),n=await this.props.store.api.post(this.tool.api,t,r)}if(!n.data.success)return this.contentFilterFlagged(n.data),!1;n.data.output&&(this.output=this.checkOutput(n.data.output)),n.data.code&&(this.code=n.data.code),n.data.outputs&&(this.outputs=n.data.outputs,this.scores=n.data.scores),this.date=Date.now()+1e4,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}catch(e){console.error("Error in onGenerateClick:",e),this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}},Object(p.n)(this),this.state={showModal:!1,tool:null,loading:!0,error:null,isHandVersion:!1},this.fileRef=l.a.createRef(),this.date=Date.now()+1e3,this.countdown=[],this.isHandwritingModalVisible=!1,this.clearExampleTimeout=[]}async componentDidMount(){const e=this.props.match.params.id,t=e.endsWith("batch"),n=e.endsWith("hand"),r=e.endsWith("word"),o=e.endsWith("multi"),i=e.endsWith("zip"),a=i?e.slice(0,-3):o?e.slice(0,-5):r?e.slice(0,-4):t?e.slice(0,-5):n?e.slice(0,-4):e;try{const s=await fetch(`https://app.topmarks.ai/api/user/tools/${a}`,{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}});if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);const l=await s.json();console.log("Received tool data:",l);let c=[{name:"essay_title",type:"textarea",required:!0,rows:2}];l.image_description_prompt&&(console.log("Image description prompt found, adding image upload field..."),c.push({name:"imageUpload",type:"file",required:!0,accept:"image/png, image/jpeg",title:"Upload Image (in PNG or JPG format)",label:"Image Upload"})),l.input_fields&&(c=[...c,...l.input_fields.filter((e=>"imageDescription"!==e.name&&"essay_title"!==e.name)).map((e=>({...e,type:"text"===e.type?"textarea":e.type,rows:"essay"===e.name?10:5})))]);let u=0;for(let e=1;e<=4&&l[`exextract${e}`];e++)u=e;if(c.push(...Array.from({length:u},((e,t)=>({name:`extract${t+1}`,type:"textarea",required:!1,rows:5})))),i)c.push({name:"essays",type:"file",required:!0,accept:".pdf",title:"Essays (Upload .pdf - containing multiple essays)",label:"Upload your PDF file"});else if(o)for(let e=1;e<=10;e++)c.push({name:`pdf_file${e}`,type:"file",required:e<=1,accept:".pdf",title:`Essay ${e} (Upload .pdf - each essay in a separate pdf)`,label:"Upload your PDF file"});else if(r)for(let e=1;e<=10;e++)c.push({name:`word_file${e}`,type:"file",required:e<=2,accept:".doc,.docx",title:`Essay ${e} (Upload .docx or .doc)`,label:"Upload your Word file"});else if(t)for(let e=1;e<=10;e++)c.push({name:`essay_${e}`,type:"textarea",required:e<=2,maxLength:15e3,rows:10});else c.some((e=>"essay"===e.name))||c.push({name:"essay",type:n?"file":"textarea",required:!0,rows:n?void 0:10,accept:n?".pdf":void 0,title:n?"Handwritten Essay (Upload .pdf format)":void 0,label:n?"Upload your PDF file containing the handwritten essay":void 0});const d=()=>i?`${l.title||"Untitled Tool"} - Batch Marking for Handwritten PDF Scripts using Barcoded Master PDF`:o?`${l.title||"Untitled Tool"} - Batch Marking with Handwritten PDF Scripts`:r?`${l.title||"Untitled Tool"} - Batch Marking with Word`:t?`${l.title||"Untitled Tool"} - Batch Marking`:n?`${l.title||"Untitled Tool"} - Mark Handwritten Script`:l.title||"Untitled Tool",p=()=>{const e=l.category||"eduqasalevel";return i?`${e}zip`:o?`${e}multi`:r?`${e}word`:t?`${e}batch`:n?`${e}hand`:e},f=()=>{const e="/ai/zeus";return i?`${e}/zip/${a}`:o?`${e}/multi/${a}`:r?`${e}/word/${a}`:t?`${e}/batch/${a}`:n?`${e}/hand/${a}`:`${e}/single/${a}`},h=()=>i?"Upload a PDF containing multiple essays with barcodes. Please make sure no cover pages or other non-essay pages are included in the PDF":o?"Upload PDF documents for batch marking of handwritten scripts":r?"Upload Word documents for batch marking":t?"Enter multiple essay responses":n?"Upload the handwritten essay":"Enter your essay response.",m={...l,title:d(),description:l.description||"",category:p(),Icon:$t,permissions:l.permissions||["user"],fromColor:l.fromColor||"green-400",toColor:l.toColor||"green-600",to:`/ai/writing/${e}`,api:f(),output:{title:l.title||"Untitled Tool",desc:"Please wait as we query AI models. This can take up to 2 minutes."},prompts:[{title:l.title||"Untitled Tool",desc:h(),prompts:c.map((e=>{const t=`ex${e.name}`;return{title:e.title||e.name.charAt(0).toUpperCase()+e.name.slice(1).replace("_"," "),attr:e.name,value:"",placeholder:"file"===e.type?"Upload file":`Enter the ${e.name.replace("_"," ")} here`,label:e.label||e.name.charAt(0).toUpperCase()+e.name.slice(1).replace("_"," "),type:e.type,accept:e.accept,maxLength:e.name.startsWith("essay")?15e3:5e3,required:e.required||!1,error:"",example:l[t]||"",rows:e.rows}}))}]};console.log("Transformed tool data:",m),console.log("Input fields:",c),this.setState({tool:m,loading:!1,isHandVersion:n,isBatchVersion:t,isWordVersion:r,isMultiVersion:o,isZipVersion:i,hasImageInput:!!l.image_description_prompt}),this.tool=m,this.prompts=m.prompts}catch(s){console.error("Failed to fetch tool:",s),this.setState({error:s.message,loading:!1})}}componentDidUpdate(e){if(e.config!==this.props.config?this.setState({config:this.props.config}):e.forceConfig!==this.props.forceConfig&&this.setState({config:this.props.forceConfig}),this.prompts&&this.prompts[this.currentPrompt]){const e=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type));this.hasFileInput=e}}get isGenerateButtonDisabled(){return this.loading}get disabled(){var e,t;return(null===(e=this.prompts[this.currentPrompt])||void 0===e||null===(t=e.prompts[0])||void 0===t?void 0:t.value.length)<1}get isMinLength(){var e,t;return!(null===(e=this.props.prompt)||void 0===e||!e.min||"number"!==(null===(t=this.props.prompt)||void 0===t?void 0:t.type))}get language(){var e;let t="";return null===(e=this.prompts[this.currentPrompt])||void 0===e||e.prompts.forEach((e=>{"language"===e.attr&&(t=`${e.value}`)})),t}render(){const{tool:e,loading:t,error:n}=this.state;if(t)return Object(Ht.jsx)(no,{});if(n)return Object(Ht.jsxs)("div",{children:["Error: ",n]});if(!e)return Object(Ht.jsx)("div",{children:"Tool not found"});console.log("5. In render - tool object:",e),console.log("6. In render - tool.desc:",e.desc);this.context;const r=this.prompts&&this.prompts[this.currentPrompt]&&this.prompts[this.currentPrompt].prompts[0]?this.prompts[this.currentPrompt].prompts[0].value:"";return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:`${e.title} Tool - Top Marks AI`})}),Object(Ht.jsx)(KT,{title:e.title,desc:e.desc,Icon:e.Icon,fromColor:e.fromColor,category:e.category,options:[{title:"Start Using",Icon:HT,color:this.props.store.profile.credits?"green":"red",onClick:this.onStartUsing},{title:"Example",color:"yellow",Icon:zT,onClick:this.onExample,disabled:this.hasFileInput,style:this.hasFileInput?{pointerEvents:"none",opacity:.5}:{}}],currentOption:this.currentOption}),Object(Ht.jsxs)($r,{children:[Object(Ht.jsx)(YT,{title:"Open Handwriting to Text Converter",onClick:()=>{console.log("Button clicked"),this.openModal()}}),Object(Ht.jsx)(I$,{showModal:this.state.showModal,closeModal:this.closeModal,store:this.props.store}),Object(Ht.jsxs)(Dr,{children:[Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(kR,{prompts:this.prompts,currentPrompt:this.currentPrompt,onChange:this.handleCurrentPrompt}),this.prompts.map(((e,t)=>Object(Ht.jsxs)(CR,{prompt:e,index:t,disabled:this.disabled,currentPrompt:this.currentPrompt,extraButtons:e.extraButtons,children:[this.prompts[this.currentPrompt].prompts.map(((e,t)=>Object(Ht.jsxs)("div",{children:["file"===e.type&&this.state.isHandVersion&&Object(Ht.jsx)("div",{className:"instruction-text mb-2",children:Object(Ht.jsx)("p",{children:"Please upload your handwritten essay in PDF format."})}),Object(Ht.jsx)(CL,{prompt:e,index:t,language:this.language,disabled:this.disabled,fileRef:this.fileRef,onFileChange:t=>this.handleFileChange(t,e),onPerformRequest:this.onGenerateClick})]},t))),Object(Ht.jsxs)("div",{className:"md:flex",children:[Object(Ht.jsx)(bR,{ref:e=>this.countdown[t]=e,date:this.date,renderer:e=>Object(Ht.jsx)(YT,{title:e.total?`Timeout ${e.total/1e3} secs`:"Perform Request",disabled:e.total||this.isGenerateButtonDisabled,Icon:e.total?Ar:r?GT:HT,onClick:this.onGenerateClick})}),Object(Ht.jsx)(XF,{prompts:this.prompts,currentPrompt:this.currentPrompt})]})]},t)))]}),Object(Ht.jsx)(Lr,{span:"6",children:Object(Ht.jsx)(tR,{title:e.output.title,desc:e.output.desc,Icon:e.output.Icon||e.Icon,fromColor:e.fromColor,toColor:e.toColor,loading:this.loading,scores:this.scores,output:this.output,outputs:this.outputs,code:this.code,language:this.language,outputsColor:e.output.color,OutputsIcon:e.output.Icon})})]})]})]})}},eB.contextType=p$,U$=le((B$=eB).prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),H$=le(B$.prototype,"prompts",[F$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z$=le(B$.prototype,"currentPrompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),G$=le(B$.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),W$=le(B$.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),V$=le(B$.prototype,"hasFileInput",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q$=le(B$.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),K$=le(B$.prototype,"scores",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Y$=le(B$.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),X$=le(B$.prototype,"code",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Z$=le(B$.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q$=le(B$.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),J$=le(B$.prototype,"isHandwritingModalVisible",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le(B$.prototype,"isGenerateButtonDisabled",[p.g],Object.getOwnPropertyDescriptor(B$.prototype,"isGenerateButtonDisabled"),B$.prototype),le(B$.prototype,"disabled",[p.g],Object.getOwnPropertyDescriptor(B$.prototype,"disabled"),B$.prototype),le(B$.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(B$.prototype,"isMinLength"),B$.prototype),le(B$.prototype,"language",[p.g],Object.getOwnPropertyDescriptor(B$.prototype,"language"),B$.prototype),$$=B$))||$$)||$$);var oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,hB,mB,gB,bB,vB=br(rB);let yB=new Ft.a,xB=(oB=ae("store"),iB=p.o.deep,oB(aB=ee((sB=class extends s.Component{constructor(e){super(e),se(this,"tool",lB,this),se(this,"prompts",cB,this),se(this,"currentPrompt",uB,this),se(this,"currentOption",dB,this),se(this,"error",pB,this),se(this,"output",fB,this),se(this,"outputs",hB,this),se(this,"code",mB,this),se(this,"loading",gB,this),se(this,"date",bB,this),this.countdown=[],this.handleCurrentPrompt=e=>{this.currentPrompt=e},this.checkMinimumPrompts=()=>{let e=!1;return this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{t.min&&t.value.length<t.min&&(e=!0,t.error=`${t.title} needs to meet the minimum ${t.min} characters`)})),e},this.clearExampleTimeout=[],this.onStartUsing=async()=>{this.loading=!1,this.error="",this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.currentOption="Start Using"},this.onExample=async()=>{this.loading=!0,this.error="",this.output="",this.outputs=[],this.code="",this.currentOption="Example";let e=0;this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.prompts[this.currentPrompt].prompts.forEach(((e,t)=>{this.prompts[this.currentPrompt].prompts[t].value=""})),this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{for(let r=0;r<t.example.length;r++)e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.prompts[this.currentPrompt].prompts[n].value+=t.example[r]}),7*e)})),e++,this.prompts[this.currentPrompt].example.output&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.output=this.prompts[this.currentPrompt].example.output,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using",this.prompts[this.currentPrompt].prompts[0].value+=" "}),7*e+7*this.prompts[this.currentPrompt].example.output.length+500)}),7*e+500)),this.prompts[this.currentPrompt].example.code&&(e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.code=`${this.prompts[this.currentPrompt].example.code}`}),7*e+500)),this.prompts[this.currentPrompt].example.outputs&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.outputs=this.prompts[this.currentPrompt].example.outputs,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500)}),7*e+500))},this.sanitizeAllPrompts=()=>{this.prompts[this.currentPrompt].prompts.forEach((e=>{if(!e.value)return!1;if("number"===e.type)return!1;if(e.value=e.value.trim(),yB.isProfane(e.value))throw e.error="Unsafe content , please try different language",Error("Unsafe content")}))},this.contentFilterFlagged=async e=>{this.error=e.message,this.date=Date.now()+5e3,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1},this.checkOutput=e=>(e&&(e=e.replace(/^\s+|\s+$/g,"")),e),this.onGenerateClick=async()=>{try{if(this.error="",this.output="",this.code="",this.outputs=[],this.loading=!0,this.checkMinimumPrompts())return this.loading=!1,!1;let e={};this.prompts[this.currentPrompt].prompts.forEach((t=>{e[t.attr]=t.value})),e.currentPrompt=this.prompts[this.currentPrompt].title,this.prompts[this.currentPrompt].n&&(e.n=this.prompts[this.currentPrompt].n);let t=await this.props.store.api.post(this.tool.api,e);if(!t.data.success)return this.contentFilterFlagged(t.data),!1;t.data.output&&(this.output=this.checkOutput(t.data.output)),t.data.code&&(this.code=t.data.code),t.data.outputs&&(this.outputs=t.data.outputs),this.date=Date.now()+1e4,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}catch(e){console.log(e),this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}},Object(p.n)(this),this.tool=this.props.store.getToolByUrl(this.props.location.pathname),this.tool?this.prompts=[...this.tool.prompts]:window.location.href="/"}get isGenerateButtonDisabled(){return!!this.loading}get disabled(){return this.prompts[this.currentPrompt].prompts[0].value.length<1}get isMinLength(){return!!this.props.prompt.min&&(this.props.prompt.type,!1)}get language(){let e="";return this.prompts[this.currentPrompt].prompts.forEach((t=>{"language"===t.attr&&(e=`${t.value}`)})),e}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:`${this.tool.title} Tool - Top Marks AI`})}),Object(Ht.jsx)(KT,{title:this.tool.title,desc:this.tool.desc,Icon:this.tool.Icon,fromColor:this.tool.fromColor,category:this.tool.category,options:[{title:"Start Using",Icon:HT,color:this.props.store.profile.credits?"green":"red",onClick:this.onStartUsing},{title:"Example",color:"yellow",Icon:zT,onClick:this.onExample}],currentOption:this.currentOption}),Object(Ht.jsx)($r,{className:"flex flex-1",children:Object(Ht.jsxs)(wB,{className:"flex flex-col flex-1",children:[Object(Ht.jsx)(OB,{className:"flex flex-1 border border-red-400 p",children:"AllMessages"}),Object(Ht.jsx)(EB,{className:"pb-8",children:Object(Ht.jsx)(CL,{Icon:HT,prompt:{name:"",value:"",placeholder:"Write a message..."}})})]})})]})}},lB=le(sB.prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),cB=le(sB.prototype,"prompts",[iB],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),uB=le(sB.prototype,"currentPrompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dB=le(sB.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),pB=le(sB.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),fB=le(sB.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),hB=le(sB.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),mB=le(sB.prototype,"code",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gB=le(sB.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bB=le(sB.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),le(sB.prototype,"isGenerateButtonDisabled",[p.g],Object.getOwnPropertyDescriptor(sB.prototype,"isGenerateButtonDisabled"),sB.prototype),le(sB.prototype,"disabled",[p.g],Object.getOwnPropertyDescriptor(sB.prototype,"disabled"),sB.prototype),le(sB.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(sB.prototype,"isMinLength"),sB.prototype),le(sB.prototype,"language",[p.g],Object.getOwnPropertyDescriptor(sB.prototype,"language"),sB.prototype),aB=sB))||aB)||aB);const OB=d.d.div`

`,EB=d.d.div`

`,wB=d.d.div`

`;br(xB);var jB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))}));var SB,TB,kB,CB,_B,NB,AB,RB,IB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))})),PB=n.p+"static/media/new-logo.7c39f821.png";n(506);let DB=ae("store")(SB=ee((TB=class extends s.Component{constructor(){super(),se(this,"email",kB,this),se(this,"password",CB,this),se(this,"fname",_B,this),se(this,"lname",NB,this),se(this,"institution",AB,this),se(this,"errorMessage",RB,this),this.onChangeAny=(e,t)=>{this[t]=e,this.errorMessage=""},this.onLogin=async e=>{try{e.preventDefault();let t=await this.props.store.api.post("/auth/signin",{email:this.email,password:this.password}).then((e=>{let{data:t}=e;return t}));this.props.store.loginWithDataTokenAndProfile(t)}catch(CQ){var t,n;console.log(CQ),null!==CQ&&void 0!==CQ&&null!==(t=CQ.response)&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.message&&(this.errorMessage=CQ.response.data.message)}},this.onSignup=async e=>{try{if(e.preventDefault(),!this.institution.trim())return void(this.errorMessage="Please enter your school or educational institution");this.errorMessage="",console.log("signup");let t=await this.props.store.api.post("/auth/signup",{email:this.email,password:this.password,fname:this.fname,lname:this.lname,institution:this.institution,referral:this.props.store.referral}).then((e=>{let{data:t}=e;return t}));t.token&&t.profile&&this.props.store.loginWithDataTokenAndProfile(t)}catch(CQ){var t,n;console.log(CQ),null!==CQ&&void 0!==CQ&&null!==(t=CQ.response)&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.message&&(this.errorMessage=CQ.response.data.message)}},Object(p.n)(this)}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Login - Top Marks AI"})}),Object(Ht.jsxs)("div",{className:"container mx-auto lg:px-4 py-4 min-h-screen flex flex-col md:items-center md:justify-center",children:[Object(Ht.jsxs)("div",{className:"text-center mb-6",children:[Object(Ht.jsx)("img",{src:PB,alt:"new logo",className:"logo-image"}),Object(Ht.jsxs)("div",{className:"text-3xl md:text-4xl relative font-medium text-transparent bg-clip-text bg-gradient-to-r from-gray-700 to-gray-600 mb-4",children:[Object(Ht.jsx)("div",{children:"Top Marks"}),Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("span",{className:"font-normal",children:"School Marking"}),Object(Ht.jsx)("div",{className:"absolute top-0 ml-3 left-full bg-gradient-to-r from-gray-500 to-gray-500 text-white text-sm px-2 py-0.5 hidden md:inline-block rounded-md font-normal ",children:"ai"})]})]})]}),Object(Ht.jsxs)("div",{className:"min-w-full md:min-w-0 bg-white rounded-xl shadow-xl transform transition-all transition shadow-md hover:shadow-2xl focus:shadow-2xl w-1/2",children:[Object(Ht.jsxs)("div",{className:"align-bottom flex transform transition-all sm:align-middle transition flex divide-x divide-gray-300 ",children:[Object(Ht.jsxs)(_r,{to:"/login",className:`flex-1 justify-center transition py-4 px-4 pr-8 rounded-t-md flex text-${"/login"===this.props.location.pathname?"gray-800":"gray-600"} font-medium bg-${"/login"===this.props.location.pathname?"white":"gray-300"} hover:bg-${"/login"===this.props.location.pathname?"white":"gray-100"} cursor-pointer`,children:[Object(Ht.jsx)("div",{className:`transition mr-4 flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${"/login"===this.props.location.pathname?"green-300":"gray-200"} text-${"/login"===this.props.location.pathname?"green":"gray"}`,children:Object(Ht.jsx)(SR,{className:"transition h-4 w-4 text-"+("/login"===this.props.location.pathname?"green-600":"gray-400"),"aria-hidden":"true"})}),"Login"]}),Object(Ht.jsxs)(_r,{to:"/signup",className:`flex-1 justify-center transition py-4 px-4 pr-8 rounded-t-md flex text-${"/signup"===this.props.location.pathname?"gray-800":"gray-600"} font-medium bg-${"/signup"===this.props.location.pathname?"white":"gray-300"} hover:bg-${"/signup"===this.props.location.pathname?"white":"gray-100"} cursor-pointer`,children:[Object(Ht.jsx)("div",{className:`transition mr-4 flex-shrink-0 inline-flex items-center justify-center text-sm h-6 w-6 rounded-full bg-${"/signup"===this.props.location.pathname?"green-300":"gray-200"} text-${"/signup"===this.props.location.pathname?"green":"gray"}`,children:Object(Ht.jsx)(SR,{className:"transition h-4 w-4 text-"+("/signup"===this.props.location.pathname?"green-600":"gray-400"),"aria-hidden":"true"})}),"Signup"]})]}),Object(Ht.jsxs)("div",{className:"px-4 py-4 md:px-12 md:py-12",children:[Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{path:"/login",children:Object(Ht.jsx)(LB,{landingPageUrl:this.props.store.landingPageUrl,email:this.email,password:this.password,onChange:this.onChangeAny,onLogin:this.onLogin})}),Object(Ht.jsx)(ur,{path:"/signup",children:Object(Ht.jsx)(MB,{email:this.email,password:this.password,fname:this.fname,lname:this.lname,institution:this.institution,onChange:this.onChangeAny,onSignup:this.onSignup})}),Object(Ht.jsx)(ur,{children:Object(Ht.jsx)(ar,{to:"/login"})})]}),this.errorMessage?Object(Ht.jsx)("div",{className:"text-red-600 bg-red-50 rounded-md p-1 text-center mt-4",children:this.errorMessage}):null,Object(Ht.jsx)("a",{className:"mt-4 text-gray-400 text-sm block text-center",href:"/forgotPassword",children:"Forgot your password?"})]}),Object(Ht.jsx)("a",{href:"https://www.topmarks.ai/",className:"block text-center bg-gray-100 text-gray-500 text-sm p-3 rounded-b-lg hover:bg-gray-200 cursor-pointer",children:"Back to landing page"})]})]})]})}},kB=le(TB.prototype,"email",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),CB=le(TB.prototype,"password",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_B=le(TB.prototype,"fname",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),NB=le(TB.prototype,"lname",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),AB=le(TB.prototype,"institution",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),RB=le(TB.prototype,"errorMessage",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),SB=TB))||SB)||SB;const LB=ee((e=>{let{active:t,email:n,password:r,onChange:o,onLogin:i}=e;return Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)("form",{onSubmit:i,children:[Object(Ht.jsx)("div",{className:`mx-auto flex-shrink-0 flex items-center justify-center h-16 w-16 rounded-full bg-${n&&r?"green":"gray"}-300 ${n&&r?"bg-green-300":"bg-gray-300"}`,children:Object(Ht.jsx)(jB,{className:`h-8 w-8 ${t?"text-green-700":"text-gray-500"} text-${n&&r?"green-700":"gray-500"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-3 text-center",children:[Object(Ht.jsx)("div",{className:"text-3xl font-medium text-gray-900",children:"Log in"}),Object(Ht.jsx)("p",{className:"text-lg text-gray-500",children:"Login to your account"}),Object(Ht.jsxs)("div",{className:"flex flex-col flex-1",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Email Address"}),Object(Ht.jsx)("input",{value:n,onChange:e=>o(e.target.value,"email"),focus:"true",type:"email",className:"rounded-md text-lg px-4 py-2 border border-gray-300",placeholder:"john@smith.com",required:!0})]}),Object(Ht.jsxs)("div",{className:"flex flex-col flex-1",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Password"}),Object(Ht.jsx)("input",{value:r,onChange:e=>o(e.target.value,"password"),type:"password",className:"rounded-md text-lg px-4 py-2 border border-gray-300 inline-block",placeholder:"*******",required:!0})]}),Object(Ht.jsx)("div",{className:"flex flex-col",children:Object(Ht.jsx)("button",{type:"submit",className:"hover:bg-gray-600 font-medium rounded-lg text-lg px-4 py-2 bg-gray-500 text-white mt-4 border border-gray-300 inline-block",children:"Log in"})})]})]})})})),MB=ee((e=>{let{active:t,email:n,password:r,fname:o,lname:i,institution:a,onChange:s,onSignup:l}=e;return Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)("form",{onSubmit:l,children:[Object(Ht.jsx)("div",{className:`mx-auto flex-shrink-0 flex items-center justify-center h-16 w-16 rounded-full bg-${n&&r?"green":"gray"}-300 ${n&&r?"bg-green-300":"bg-gray-300"}`,children:Object(Ht.jsx)(IB,{className:`h-8 w-8 ${t?"text-green-700":"text-gray-500"} text-${n&&r?"green-700":"gray-500"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-3 text-center",children:[Object(Ht.jsx)("div",{className:"text-3xl font-medium text-gray-900",children:"Sign Up"}),Object(Ht.jsx)("p",{className:"text-lg text-gray-500",children:"Create your account"}),Object(Ht.jsxs)("div",{className:"md:flex",children:[Object(Ht.jsxs)("div",{className:"flex flex-col min-w-0 md:pr-2 flex-1",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"First Name"}),Object(Ht.jsx)("input",{value:o,onChange:e=>s(e.target.value,"fname"),type:"text",className:"rounded-md text-lg px-4 py-2 border border-gray-300 inline-block w-auto",placeholder:"John",required:!0})]}),Object(Ht.jsxs)("div",{className:"flex flex-col min-w-0 md:pl-2 flex-1",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Last Name"}),Object(Ht.jsx)("input",{value:i,onChange:e=>s(e.target.value,"lname"),type:"text",className:"rounded-md text-lg px-4 py-2 border border-gray-300 inline-block w-auto",placeholder:"Smith",required:!0})]})]}),Object(Ht.jsxs)("div",{className:"flex flex-col",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"School / Educational Institution"}),Object(Ht.jsx)("input",{value:a,onChange:e=>s(e.target.value,"institution"),type:"text",className:"rounded-md text-lg px-4 py-2 border border-gray-300 inline-block",placeholder:"Enter your school or institution",required:!0})]}),Object(Ht.jsxs)("div",{className:"flex flex-col",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Email Address"}),Object(Ht.jsx)("input",{value:n,onChange:e=>s(e.target.value,"email"),focus:"true",type:"email",className:"rounded-md text-lg px-4 py-2 border border-gray-300",placeholder:"john@smith.com",required:!0})]}),Object(Ht.jsxs)("div",{className:"flex flex-col",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Password"}),Object(Ht.jsx)("input",{value:r,onChange:e=>s(e.target.value,"password"),type:"password",className:"rounded-md text-lg px-4 py-2 border border-gray-300 inline-block",placeholder:"*******",required:!0})]}),Object(Ht.jsx)("div",{className:"flex flex-col",children:Object(Ht.jsx)("button",{type:"submit",className:"hover:bg-green-600 bg-green-500 font-medium rounded-lg text-lg px-4 py-2 bg-gray-200 text-white mt-4 border border-gray-300 inline-block",children:"Sign Up"})})]})]})})}));var FB=br(DB);var $B=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))}));var BB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9a2 2 0 10-4 0v5a2 2 0 01-2 2h6m-6-4h4m8 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var UB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"}))}));var HB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var zB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"}))}));var GB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"}))}));var WB=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}))}));var VB=function(e){return Object(Ht.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171.505 139.378",...e,children:Object(Ht.jsx)("path",{d:"M171.505 16.499a70.337 70.337 0 01-20.208 5.54c7.264-4.354 12.844-11.25 15.47-19.466a70.437 70.437 0 01-22.344 8.538A35.136 35.136 0 00118.74 0C99.308 0 83.553 15.754 83.553 35.185c0 2.758.311 5.444.912 8.019C55.22 41.737 29.295 27.728 11.94 6.44a35.019 35.019 0 00-4.764 17.69c0 12.207 6.211 22.977 15.653 29.286a35.047 35.047 0 01-15.937-4.4c-.004.146-.004.294-.004.442 0 17.048 12.129 31.268 28.225 34.503a35.224 35.224 0 01-15.89.602c4.478 13.979 17.472 24.152 32.87 24.435-12.042 9.438-27.214 15.063-43.7 15.063-2.84 0-5.64-.167-8.393-.492 15.572 9.984 34.067 15.81 53.938 15.81 64.72 0 100.113-53.616 100.113-100.114 0-1.526-.035-3.043-.102-4.553a71.483 71.483 0 0017.556-18.213z",fill:"#2aa9e0"})})};var qB,KB=function(e){return Object(Ht.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:1365.331,height:1365.331,viewBox:"0 0 14222 14222",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",...e,children:Object(Ht.jsxs)("g",{fillRule:"nonzero",children:[Object(Ht.jsx)("path",{d:"M14222 7111C14222 3184 11038 0 7111 0S0 3184 0 7111c0 3549 2600 6491 6000 7025V9167H4194V7111h1806V5544c0-1782 1062-2767 2686-2767 778 0 1592 139 1592 139v1750h-897c-883 0-1159 548-1159 1111v1334h1972l-315 2056H8222v4969c3400-533 6000-3475 6000-7025z",fill:"#1977f3"}),Object(Ht.jsx)("path",{d:"M9879 9167l315-2056H8222V5777c0-562 275-1111 1159-1111h897V2916s-814-139-1592-139c-1624 0-2686 984-2686 2767v1567H4194v2056h1806v4969c362 57 733 86 1111 86s749-30 1111-86V9167h1657z",fill:"#fefefe"})]})})};let YB=ae("store")(qB=ee(qB=class extends s.Component{constructor(){super(...arguments),this.value=`${window.store.landingPageUrl}/signup?referral=${this.props.store.profile.referralId}`}render(){const{referralCredits:e,freeReferrals:t,paidReferrals:n}=this.props.store.profile;return Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsx)("div",{className:"align-bottom bg-white md:rounded-md text-left overflow-hidden shadow-xl transform transition-all sm:align-middle transition shadow-md hover:shadow-2xl focus:shadow-2xl mb-4 md:mb-8",children:Object(Ht.jsxs)("div",{className:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:[Object(Ht.jsx)("h2",{className:"text-4xl",children:"Referral Program"}),Object(Ht.jsx)("h2",{className:"text-gray-500 mb-8",children:"Earn credits by referring people to Top Marks AI!"}),Object(Ht.jsxs)("div",{className:"flex items-center mb-4",children:[Object(Ht.jsx)("div",{className:"flex-shrink-0 inline-flex items-center justify-center md:h-12 md:w-12 h-6 w-6 rounded-full bg-yellow-200 sm:mx-0 sm:h-10 sm:w-10",children:Object(Ht.jsx)(Nr,{className:"h-3 w-3 md:h-6 md:w-6 text-yellow-700","aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-0 ml-4 text-left",children:[Object(Ht.jsxs)("div",{className:"text-lg leading-6 font-medium text-gray-900",children:["Total Referral Credits Earned: ",e||0]}),Object(Ht.jsxs)("p",{className:"text-sm text-gray-500",children:["Free Plan Referrals: ",t||0," | Paid Plan Referrals: ",n||0]})]})]}),Object(Ht.jsxs)("div",{className:"bg-blue-100 border-l-4 border-blue-500 text-blue-700 p-4 mb-4",role:"alert",children:[Object(Ht.jsx)("p",{className:"font-bold",children:"How to earn referral credits:"}),Object(Ht.jsxs)("ul",{className:"list-disc list-inside",children:[Object(Ht.jsx)("li",{children:"Earn 10 credits when someone signs up for a free plan using your link"}),Object(Ht.jsx)("li",{children:"Earn 100 credits when someone signs up for a paid plan using your link"}),Object(Ht.jsx)("li",{children:"If a free plan user upgrades to a paid plan, you'll earn an additional 90 credits"})]})]}),Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{className:"flex-shrink-0 inline-flex items-center justify-center md:h-12 md:w-12 h-6 w-6 rounded-full bg-green-200 sm:mx-0 sm:h-10 sm:w-10",children:Object(Ht.jsx)(GB,{className:"h-3 w-3 md:h-6 md:w-6 text-green-700","aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-0 ml-4 text-left",children:[Object(Ht.jsx)("div",{className:"text-lg leading-6 font-medium text-gray-900",children:"Share your referral link"}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:"Use the link below to share on social media and earn credits!"})]})]}),Object(Ht.jsx)("div",{className:"flex mt-4 mb-4",children:Object(Ht.jsx)("div",{className:"mt-1 flex rounded-md flex-1",children:Object(Ht.jsx)("input",{id:"referral",type:"text",value:this.value,className:"focus:ring-indigo-500 border focus:border-indigo-500 flex-1 rounded border-gray-300 py-3 px-6 flex-1 bg-gray-100 hover:bg-gray-200",placeholder:"www.example.com",onChange:()=>{},onClick:()=>{document.getElementById("referral").select(),this.props.store.copyToClipboard(this.value)},readOnly:!0})})}),Object(Ht.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[Object(Ht.jsx)("div",{className:"flex items-center",onClick:()=>this.props.store.copyToClipboard(this.value),children:Object(Ht.jsx)("div",{className:"cursor-pointer bg-gray-200 text-gray-700 hover:bg-gray-300 hover:text-gray-800 flex-shrink-0 inline-flex items-center justify-center md:h-16 md:w-16 h-6 w-6 rounded-full sm:mx-0 sm:h-12 sm:w-12",children:Object(Ht.jsx)(WB,{className:"h-3 w-3 md:h-8 md:w-8","aria-hidden":"true"})})}),Object(Ht.jsx)("a",{rel:"noopener noreferrer",href:`https://twitter.com/intent/tweet?text=Check out Top Marks AI and give it a try with the following link: ${this.value}`,className:"flex items-center",target:"_blank",children:Object(Ht.jsx)("div",{className:"cursor-pointer bg-gray-200 text-gray-700 hover:bg-gray-300 hover:text-gray-800 flex-shrink-0 inline-flex items-center justify-center md:h-16 md:w-16 h-6 w-6 rounded-full sm:mx-0 sm:h-12 sm:w-12",children:Object(Ht.jsx)(VB,{className:"h-3 w-3 md:h-8 md:w-8","aria-hidden":"true"})})}),Object(Ht.jsx)("a",{rel:"noopener noreferrer",href:`https://www.facebook.com/sharer.php?u=${encodeURIComponent(this.value)}`,className:"flex items-center",target:"_blank",children:Object(Ht.jsx)("div",{className:"cursor-pointer bg-gray-200 text-gray-700 hover:bg-gray-300 hover:text-gray-800 flex-shrink-0 inline-flex items-center justify-center md:h-16 md:w-16 h-6 w-6 rounded-full sm:mx-0 sm:h-12 sm:w-12",children:Object(Ht.jsx)(KB,{className:"h-3 w-3 md:h-8 md:w-8","aria-hidden":"true"})})})]})]})})})}})||qB)||qB;var XB,ZB=YB;let QB=ae("store")(XB=ee(XB=class extends s.Component{render(){const{onChangePromptNumber:e,promptNumber:t,title:n,desc:r,prompt:o,onChange:i,active:a,error:s,hidden:l,disabled:c,placeholder:u,children:d}=this.props;return Object(Ht.jsx)("div",{className:"align-bottom bg-white md:rounded-md text-left overflow-hidden shadow-xl transform transition-all sm:align-middle transition shadow-md hover:shadow-2xl focus:shadow-2xl mb-4 md:mb-8 "+(l?"hidden":""),children:Object(Ht.jsxs)("div",{className:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:[Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{className:`flex-shrink-0 inline-flex items-center justify-center md:h-12 md:w-12 h-6 w-6 rounded-full bg-${s?"red":o?"green":"gray"}-300 sm:mx-0 sm:h-10 sm:w-10 ${s?"bg-red-300":a?"bg-green-300":"bg-gray-300"}`,children:s?Object(Ht.jsx)(KF,{className:"h-6 w-6 text-red-600","aria-hidden":"true"}):Object(Ht.jsx)(SR,{className:`h-3 w-3 md:h-6 md:w-6 ${a?"text-green-700":"text-gray-500"} text-${o?"green-700":"gray-500"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:" mt-0 ml-4 text-left",children:[Object(Ht.jsx)("div",{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:n||"Entry Text"}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:r||"Write a short statement you wish to fix up."})]})]}),d||Object(Ht.jsxs)("div",{className:"relative",children:[Object(Ht.jsxs)("div",{className:"text-gray-400 text-xs absolute top-0 right-1",children:[o?o.length:0,"/600 characters"]}),Object(Ht.jsx)("textarea",{disabled:c,maxLength:600,className:"mt-6 focus:outline-none text-lg bg-white rounded-md px-4 py-4  min-w-full border border-gray-300 font-regular h-48 "+(c?"bg-gray-200 text-gray-500":""),onChange:i,value:o,placeholder:u||"Enter some text to get started"})]}),t?Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("input",{name:"promptNumber",id:"promptNumber",type:"number",max:10,min:1,className:"w-20 text-center focus:outline-none text-sm bg-white rounded-md px-2 py-1 border border-gray-300 font-regular",value:t,onChange:e}),Object(Ht.jsx)("div",{className:"px-4 text-sm flex-shrink-0 text-gray-500",children:"Number of results and used credits."}),Object(Ht.jsx)("div",{className:"flex-1"})]}):null,s&&Object(Ht.jsx)("div",{className:"text-xs text-red-600",children:s})]})})}})||XB)||XB;ee((e=>{let{title:t,desc:n,prompts:r,hidden:o,onChange:i,getColor:a,disabled:s}=e;return Object(Ht.jsx)("div",{className:"align-bottom bg-white md:rounded-md text-left overflow-hidden shadow-xl transform transition-all sm:align-middle transition shadow-md hover:shadow-2xl focus:shadow-2xl mb-4 md:mb-8  "+(o?"hidden":""),children:Object(Ht.jsxs)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:[Object(Ht.jsxs)("div",{className:"flex items-center",children:[Object(Ht.jsx)("div",{className:`flex-shrink-0 inline-flex items-center justify-center md:h-12 md:w-12 h-6 w-6 rounded-full bg-${s?"gray":"green"}-300 sm:mx-0 sm:h-10 sm:w-10  ${s?"bg-gray-300":"bg-green-300"} `,children:Object(Ht.jsx)(SR,{className:`h-3 w-3 md:h-6 md:w-6 ${s?"text-gray-500":"text-green-700"} text-${s?"gray-500":"green-700"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-0 ml-4 text-left",children:[Object(Ht.jsx)("div",{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:t||"Entry Text"}),Object(Ht.jsx)("p",{className:"text-sm text-gray-500",children:n||"Write a short statement you wish to fix up."})]})]}),r?r.map(((e,t)=>Object(Ht.jsx)(JB,{index:t,...e,onChange:i},t))):null]})})}));const JB=ee((e=>{let{title:t,value:n,onChange:r,placeholder:o,examples:i,index:a,...s}=e;return Object(Ht.jsxs)("div",{className:"mt-6",children:[Object(Ht.jsx)("label",{htmlFor:t,className:"text-gray-600 font-medium text-md",children:t}),"textarea"===s.type?Object(Ht.jsx)("textarea",{name:t,id:t,...s,className:"focus:outline-none text-lg bg-white rounded-md px-4 py-2  min-w-full border border-gray-300 font-regular mt-2",value:n,onChange:e=>r(e.target.value,a),placeholder:o}):Object(Ht.jsx)("input",{name:t,id:t,...s,className:"focus:outline-none text-lg bg-white rounded-md px-4 py-2  min-w-full border border-gray-300 font-regular mt-2",value:n,onChange:e=>r(e.target.value,a),placeholder:o}),i&&Object(Ht.jsx)("label",{htmlFor:t,className:"text-gray-400 text-xs",children:i})]})}));var eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,hU,mU,gU,bU,vU=QB;let yU=ae("store")(eU=ee((tU=class extends s.Component{constructor(e){super(e),se(this,"output",nU,this),se(this,"outputs",rU,this),se(this,"outputError",oU,this),se(this,"option",iU,this),se(this,"options",aU,this),se(this,"currentOption",sU,this),se(this,"loading",lU,this),se(this,"date",cU,this),se(this,"prompt",uU,this),se(this,"promptError",dU,this),se(this,"promptNumber",pU,this),se(this,"promptOptions",fU,this),se(this,"currentPromptOption",hU,this),se(this,"prompts",mU,this),se(this,"feedbacks",gU,this),se(this,"tool",bU,this),this.init=async()=>{this.refreshFeedback()},this.refreshFeedback=async()=>{let e=await this.props.store.api.post("/user/feedback/view");this.feedbacks=[...e.data]},this.handleFeedback=async()=>{try{await this.props.store.api.post("/user/feedback",{feedback:this.props.store.feedback}),this.refreshFeedback(),this.output="Thank you for your feedback!",this.props.store.feedback=""}catch(CQ){console.log(CQ),this.output="There seems to have been an error, please try submitting again"}},this.onClick=async()=>{this.loading=!0,await this.handleFeedback(),this.date=Date.now()+1e4,this.props.store.feedback="",this.countdown.start(),this.loading=!1},this.onChange=e=>{this.props.store.feedback=e.target.value},Object(p.n)(this),this.init()}render(){return Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)(Dr,{children:[Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(vU,{title:"Feedback",desc:"Provide some feedback about your experience",prompt:this.props.store.feedback,onChange:this.onChange}),Object(Ht.jsx)(bR,{ref:e=>this.countdown=e,date:this.date,renderer:e=>Object(Ht.jsx)(YT,{title:e.total?`Timeout ${e.total/1e3} secs`:"Submit Feedback",disabled:e.total,Icon:e.total?Ar:HT,onClick:this.onClick})})]}),Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(tR,{title:"EnhanceAI.ai",desc:"Feedback Response",Icon:op,fromColor:"yellow-300",toColor:"yellow-400",loading:this.loading,output:this.output}),this.feedbacks&&this.feedbacks.map(((e,t)=>Object(Ht.jsx)(tR,{title:"Feedback Received",desc:`${e.created}`,Icon:HT,fromColor:e.response?"green-400":"gray-300",toColor:e.response?"green-600":"gray-400",output:e.feedback,outputs:e.response?[e.response]:null},e._id)))]})]})})}},nU=le(tU.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rU=le(tU.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),oU=le(tU.prototype,"outputError",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),iU=le(tU.prototype,"option",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),aU=le(tU.prototype,"options",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),sU=le(tU.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),lU=le(tU.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cU=le(tU.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),uU=le(tU.prototype,"prompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),dU=le(tU.prototype,"promptError",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),pU=le(tU.prototype,"promptNumber",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),fU=le(tU.prototype,"promptOptions",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),hU=le(tU.prototype,"currentPromptOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),mU=le(tU.prototype,"prompts",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gU=le(tU.prototype,"feedbacks",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bU=le(tU.prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),eU=tU))||eU)||eU;var xU=yU;n(507);var OU,EU,wU,jU,SU=ee((e=>{let{priceId:t,currentPeriodEnd:n,isCancelled:r}=e;const[o,i]=Object(s.useState)(""),[a,l]=Object(s.useState)(""),[c,u]=Object(s.useState)("");return Object(s.useEffect)((()=>{if(r)return i("Subscription cancelled"),l(""),void u("");if(n){const e=new Date(n);"Invalid Date"===e.toString()?(l("N/A"),u("N/A")):(l(e.toLocaleDateString()),u(e.toLocaleTimeString()))}else l("N/A"),u("N/A");switch(t){case"STRIPEPRODUCTFREE":case"price_1MP5pmC4gpAfet0jSlSAxYOK":i("Free");break;case"STRIPEPRODUCTENTRY":case"price_1MP3iZC4gpAfet0j167o41rX":i("Entry (\xa320 per month)");break;case"STRIPEPRODUCTPRO":case"price_1MP5kzC4gpAfet0j9zefq8Yv":i("Pro (\xa340 per month)");break;default:i("Unknown")}}),[t,n,r]),Object(Ht.jsx)("div",{className:"status-container",children:Object(Ht.jsxs)("div",{className:"status-bubble",children:[Object(Ht.jsxs)("p",{className:"status-text",children:["Current Pricing Tier: ",o]}),r?Object(Ht.jsx)("p",{className:"status-text",children:"Subscription Ends On: Subscription cancelled"}):Object(Ht.jsxs)("p",{className:"status-text",children:["Subscription Ends On: ",a," at ",c]})]})})}));let TU=ae("store")(OU=ee((EU=class extends s.Component{constructor(e){super(e),se(this,"showCancelModal",wU,this),se(this,"plan",jU,this),this.init=async()=>{const e=await this.props.store.api.post("/user/stripe/plan");this.plan=e.data},this.onBack=()=>{this.props.history.push("/my-profile")},this.onCancelClick=e=>{e.preventDefault(),this.showCancelModal=!0},this.handleConfirmCancel=()=>{this.showCancelModal=!1,document.getElementById("cancel-form").submit()},this.handleCloseModal=()=>{this.showCancelModal=!1},Object(p.n)(this)}get headerMessage(){const{status:e,plan:t,cancel_at_period_end:n}=this.props.store.profile;return"trialing"===e?"7 Day Trial":"active"===e?n?"Cancels at end of period":`${t} Plan`:"incomplete"===e?`${t} Plan Restarted`:"Expired"}get ifNotActive(){const{cancel_at_period_end:e,status:t}=this.props.store.profile;return e?"Canceling":"trialing"===t&&"Trialing"}get fromColor(){const{status:e,cancel_at_period_end:t}=this.props.store.profile;return"trialing"===e?"gray-400":"active"===e?t?"yellow-500":"green-500":"incomplete"===e?"yellow-600":"red-500"}get currentPeriodEnd(){const{current_period_end:e}=this.props.store.profile;if(e){const t=Math.round((new Date(e).getTime()-(new Date).getTime())/864e5);return t<0?0:t}return 0}componentDidMount(){this.props.store.refreshTokenAndProfile(),this.init()}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(KT,{title:this.props.store.profile.email,desc:`${this.props.store.profile.fname} ${this.props.store.profile.lname}`,category:"Your Profile",Icon:Rr,fromColor:this.fromColor,options:"/my-profile"!==this.props.location.pathname?[{title:"Back to Profile",Icon:$B,onClick:this.onBack}]:null,children:Object(Ht.jsx)(ur,{exact:!0,path:"/my-profile",children:Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"My Profile - TopMarks.Ai"})})})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[Object(Ht.jsx)("div",{className:"container mx-auto p-5",children:Object(Ht.jsx)(SU,{priceId:this.plan.priceId,currentPeriodEnd:this.plan.current_period_end,isCancelled:this.plan.cancel_at_period_end})}),Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{exact:!0,path:"/my-profile/pricing",children:Object(Ht.jsx)(pp,{})}),Object(Ht.jsx)(ur,{exact:!0,path:"/my-profile/referral",children:Object(Ht.jsx)(ZB,{})}),Object(Ht.jsx)(ur,{exact:!0,path:"/my-profile/feedback",children:Object(Ht.jsx)(xU,{})}),Object(Ht.jsx)(ur,{children:Object(Ht.jsxs)(kU,{children:[Object(Ht.jsx)(NU,{Icon:BB,title:"Pricing Plans",api:this.props.store.api,desc:"Upgrade, downgrade or cancel anytime.",to:"/my-profile/pricing",fromColor:"green-400"}),Object(Ht.jsx)(NU,{Icon:UB,title:"Referral Program",desc:"Earn credits by referring friends!",to:"/my-profile/referral",fromColor:"yellow-400"}),"trialing"===this.plan.status&&Object(Ht.jsx)(_U,{Icon:SR,title:"Active Subscription",desc:("Entry"===this.plan.plan?"$30":"Pro"===this.plan.plan?"$90":"")+" billing immediately. Ends trial and starts billing plan.",to:this.props.store.baseURL+"/user/stripe/activate",api:this.props.store.api,fromColor:"purple-500",toColor:"indigo-600"}),"Expired"!==this.headerMessage&&Object(Ht.jsx)(Ht.Fragment,{children:this.plan.cancel_at_period_end?Object(Ht.jsx)(_U,{Icon:SR,title:"Reactivate Subscription",api:this.props.store.api,desc:"Reactivate your subscription and continue your current plan.",to:this.props.store.baseURL+"user/stripe/resubscribe",fromColor:"green-500",toColor:"green-600"}):Object(Ht.jsx)(_U,{Icon:HB,title:"Cancel Subscription",api:this.props.store.api,desc:"Schedule your subscription to cancel at the end of the billing period. You will retain access to your credits until then.",to:this.props.store.baseURL+"user/stripe/cancel",fromColor:"red-500",toColor:"red-600",onClick:this.onCancelClick})}),Object(Ht.jsx)(CU,{Icon:zB,title:"Log Out",desc:"Sign out of your account",onClick:this.props.store.handleLogout,fromColor:"gray-400",toColor:"gray-400"})]})})]}),this.showCancelModal&&Object(Ht.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:Object(Ht.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:[Object(Ht.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Confirm Cancellation"}),Object(Ht.jsx)("p",{children:"Your subscription will be canceled at the end of your current billing period. You will retain access to your credits until then, but your credits will be reset to 0 when your subscription ends. Are you sure you want to proceed?"}),Object(Ht.jsxs)("div",{className:"flex justify-end mt-4",children:[Object(Ht.jsx)("button",{className:"mr-4 px-4 py-2 bg-gray-300 text-gray-800 rounded",onClick:this.handleCloseModal,children:"No, Keep Subscription"}),Object(Ht.jsx)("button",{className:"px-4 py-2 bg-red-600 text-white rounded",onClick:this.handleConfirmCancel,children:"Yes, Cancel Subscription"})]})]})}),Object(Ht.jsx)("form",{id:"cancel-form",action:this.props.store.baseURL+"user/stripe/cancel",method:"POST",children:Object(Ht.jsx)("input",{type:"hidden",name:"token",value:this.props.store.api.defaults.headers.common["x-access-token"]})})]})]})}},wU=le(EU.prototype,"showCancelModal",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le(EU.prototype,"headerMessage",[p.g],Object.getOwnPropertyDescriptor(EU.prototype,"headerMessage"),EU.prototype),le(EU.prototype,"ifNotActive",[p.g],Object.getOwnPropertyDescriptor(EU.prototype,"ifNotActive"),EU.prototype),le(EU.prototype,"fromColor",[p.g],Object.getOwnPropertyDescriptor(EU.prototype,"fromColor"),EU.prototype),le(EU.prototype,"currentPeriodEnd",[p.g],Object.getOwnPropertyDescriptor(EU.prototype,"currentPeriodEnd"),EU.prototype),jU=le(EU.prototype,"plan",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{plan:"",cancel_at_period_end:!1,status:"active"}}}),OU=EU))||OU)||OU;const kU=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3",children:t})},CU=e=>{let{Icon:t,title:n,desc:r,fromColor:o,toColor:i,onClick:a}=e;return Object(Ht.jsxs)("div",{className:"flex relative",onClick:a,children:[Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${o||"green-400"} to-${i||"blue-500"} shadow-lg transform skew-y-0 -rotate-3 rounded-3xl`}),Object(Ht.jsxs)("div",{className:`flex-1 bg-white rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border-t-2 border- hover:border-${o||"blue-400"} md:flex relative transform hover:scale-105 hover:text-black`,children:[t&&Object(Ht.jsx)("div",{className:`md:flex-shrink-0 flex justify-start items-center ml-8 text-${o||"green-500"}`,children:Object(Ht.jsx)(t,{className:"h-16 w-16 mb-4 mt-4"})}),Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${o||"green-500"} font-semibold leading-none`}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})]})]})},_U=e=>{let{Icon:t,title:n,desc:r,to:o,fromColor:i,toColor:a,api:s,onClick:l}=e;return Object(Ht.jsxs)("form",{action:o,method:"POST",className:"flex relative",onClick:l,children:[Object(Ht.jsx)("input",{type:"hidden",name:"token",value:s.defaults.headers.common["x-access-token"]}),Object(Ht.jsxs)("button",{type:"submit",className:"flex-1 text-left",children:[Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${i||"green-400"} to-${a||"blue-500"} shadow-lg transform skew-y-0 -rotate-3 rounded-3xl`}),Object(Ht.jsxs)("div",{className:`flex-1 bg-white rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border-t-2 border- hover:border-${i||"blue-400"} md:flex relative transform hover:scale-105 hover:text-black`,children:[t&&Object(Ht.jsx)("div",{className:`md:flex-shrink-0 flex justify-start items-center ml-8 text-${i||"green-500"}`,children:Object(Ht.jsx)(t,{className:"h-16 w-16 mb-4 mt-4"})}),Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})]})]})]})},NU=e=>{let{Icon:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return Object(Ht.jsx)(Tr,{to:o,className:"flex relative",children:Object(Ht.jsxs)("div",{className:"flex-1 text-left",children:[Object(Ht.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r from-${i||"green-400"} to-${a||"blue-500"} shadow-lg transform skew-y-0 -rotate-3 rounded-3xl`}),Object(Ht.jsxs)("div",{className:`flex-1 bg-white rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border-t-2 border- hover:border-${i||"blue-400"} md:flex relative transform hover:scale-105 hover:text-black`,children:[t&&Object(Ht.jsx)("div",{className:`md:flex-shrink-0 flex justify-start items-center ml-8 text-${i||"green-500"}`,children:Object(Ht.jsx)(t,{className:"h-16 w-16 mb-4 mt-4"})}),Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})]})]})})};var AU,RU,IU,PU=br(TU);let DU=ae("store")(AU=ee((RU=class extends s.Component{constructor(e){super(e),se(this,"loading",IU,this),Object(p.n)(this)}componentDidMount(){this.refresh=setInterval((()=>{this.props.store.refreshTokenAndProfile(),this.props.store.profile.status&&(this.loading=!1)}),1e3)}componentWillUnmount(){clearInterval(this.refresh)}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[this.loading?null:Object(Ht.jsx)(ar,{to:"/"}),Object(Ht.jsxs)("div",{className:"container mx-auto lg:px-4 py-4 min-h-screen flex flex-col md:items-center md:justify-center",children:[Object(Ht.jsxs)("div",{className:"text-center mb-6",children:[Object(Ht.jsx)(LU,{}),Object(Ht.jsx)("div",{children:Object(Ht.jsxs)("div",{className:"text-4xl font-bold text-gray-700",children:["Mark",Object(Ht.jsx)("span",{className:"text-green-600 font-medium",children:"It"}),Object(Ht.jsx)("span",{className:"text-gray-500 font-normal ",children:".ai"})]})})]}),Object(Ht.jsxs)("div",{className:"min-w-full md:min-w-0 bg-white rounded-xl shadow-xl transform transition-all  transition shadow-md hover:shadow-2xl focus:shadow-2xl w-1/2",children:[Object(Ht.jsx)("div",{className:"px-4 py-8 text-center",children:Object(Ht.jsx)(to,{className:"w-24 h-24",active:!0})}),Object(Ht.jsxs)("div",{className:"text-center ",children:[Object(Ht.jsx)("div",{className:"text-3xl font-medium text-gray-900",children:"Generating Your Profile"}),Object(Ht.jsx)("p",{className:"text-lg text-gray-500",children:"1. Preparing your credits"}),Object(Ht.jsx)("div",{className:"flex flex-col p-4",children:Object(Ht.jsx)("div",{className:"font-medium rounded-lg text-lg px-4 py-4 bg-gray-300 text-white mt-4 border border-gray-300 inline-block",children:"Nearly Done..."})})]})]})]})]})}},IU=le(RU.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),AU=RU))||AU)||AU;const LU=()=>Object(Ht.jsx)("img",{src:PB,alt:"New logo",className:"w-24 h-24 inline-block"});var MU,FU,$U,BU,UU,HU=DU,zU=n.p+"static/media/new-logo.7c39f821.png";let GU=ae("store")(MU=ee((FU=class extends s.Component{constructor(){super(),se(this,"email",$U,this),se(this,"errorMessage",BU,this),se(this,"successMessage",UU,this),this.onChange=e=>{this.currentPromptOption=e,console.log(this.currentPromptOption)},this.onChangeAny=(e,t)=>{this[t]=e,this.errorMessage=""},this.onSubmit=async e=>{try{e.preventDefault();await this.props.store.api.post("/auth/forgotPassword",{email:this.email}).then((e=>{let{data:t}=e;null!==t&&void 0!==t&&t.message&&(this.successMessage=null===t||void 0===t?void 0:t.message)}))}catch(CQ){var t,n,r,o,i,a;if(console.log(null===CQ||void 0===CQ||null===(t=CQ.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message),null!==CQ&&void 0!==CQ&&null!==(r=CQ.response)&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&o.message)this.errorMessage=null===CQ||void 0===CQ||null===(i=CQ.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.message}},Object(p.n)(this)}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Forgot Password"})}),Object(Ht.jsxs)("div",{className:"container mx-auto lg:px-4 py-4 min-h-screen flex flex-col md:items-center md:justify-center",children:[Object(Ht.jsxs)("div",{className:"text-center mb-6",children:[Object(Ht.jsx)("img",{src:zU,alt:"new logo",style:{width:"200",height:"200px"}}),Object(Ht.jsxs)("div",{className:"text-3xl md:text-5xl relative font-medium text-transparent bg-clip-text bg-gradient-to-r from-gray-700 to-gray-600 mb-4",children:["Top",Object(Ht.jsx)("span",{className:"font-normal ",children:" Marks"}),Object(Ht.jsx)("div",{className:"absolute top-0 ml-3 left-full bg-gradient-to-r from-gray-500 to-gray-500 text-white text-sm px-2 py-0.5 hidden md:inline-block rounded-md font-normal ",children:"ai"})]})]}),Object(Ht.jsxs)("div",{className:"min-w-full md:min-w-0 bg-white rounded-xl shadow-xl transform transition-all  transition shadow-md hover:shadow-2xl focus:shadow-2xl w-1/2",children:[Object(Ht.jsx)("div",{className:"align-bottom flex  transform transition-all sm:align-middle transition flex divide-x divide-gray-300 "}),Object(Ht.jsxs)("div",{className:"px-4 py-4 md:px-12 md:py-12",children:[Object(Ht.jsx)(gr,{children:Object(Ht.jsx)(ur,{path:"/forgotPassword",children:Object(Ht.jsx)(WU,{email:this.email,onChange:this.onChangeAny,onSubmit:this.onSubmit})})}),this.errorMessage?Object(Ht.jsx)("div",{className:"text-red-600 bg-red-50 rounded-md p-1 text-center mt-4",children:this.errorMessage}):null,this.successMessage?Object(Ht.jsx)("div",{className:"text-green-600 bg-green-50 rounded-md p-1 text-center mt-4",children:this.successMessage}):null]}),Object(Ht.jsx)("a",{href:"/login",className:"block text-center bg-gray-100 text-gray-500 text-sm p-3 rounded-b-lg hover:bg-gray-200 cursor-pointer",children:"Back to Login Page"})]})]})]})}},$U=le(FU.prototype,"email",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),BU=le(FU.prototype,"errorMessage",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),UU=le(FU.prototype,"successMessage",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),MU=FU))||MU)||MU;const WU=ee((e=>{let{active:t,email:n,onChange:r,onSubmit:o}=e;return Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)("form",{onSubmit:o,children:[Object(Ht.jsx)("div",{className:`mx-auto flex-shrink-0 flex items-center justify-center h-16 w-16 rounded-full bg-${n?"green":"gray"}-300  ${n?"bg-green-300":"bg-gray-300"} `,children:Object(Ht.jsx)(jB,{className:`h-8 w-8 ${t?"text-green-700":"text-gray-500"} text-${n?"green-700":"gray-500"}`,"aria-hidden":"true"})}),Object(Ht.jsxs)("div",{className:"mt-3 text-center ",children:[Object(Ht.jsx)("div",{className:"text-3xl font-medium text-gray-900",children:"Forgot Password"}),Object(Ht.jsxs)("div",{className:"flex flex-col flex-1",children:[Object(Ht.jsx)("label",{className:"text-gray-400 text-sm block mt-4 inline-block text-left",children:"Email Address"}),Object(Ht.jsx)("input",{value:n,onChange:e=>r(e.target.value,"email"),focus:"true",type:"email",className:"rounded-md text-lg px-4 py-2  border border-gray-300 ",placeholder:"john@smith.com"})]}),Object(Ht.jsx)("div",{className:"flex flex-col",children:Object(Ht.jsx)("button",{type:"submit",className:"hover:bg-gray-600 font-medium rounded-lg text-lg px-4 py-2 bg-gray-500 text-white mt-4 border border-gray-300 inline-block",children:"Submit"})})]})]})})}));var VU,qU=br(GU);n(508);const KU={labelCol:{span:24},wrapperCol:{span:24}};let YU=ae("store")(VU=ee(VU=class extends s.Component{constructor(){super(...arguments),this.state={isReset:!1},this.handleSubmit=async e=>{const{store:t}=this.props,{password:n,confirmPassword:r,resetToken:o}=e;if(n===r)try{200===(await t.api.post("/auth/reset-password",{password:n,resetToken:o})).status&&(this.setState({isReset:!0}),ay.success({message:"Password Reset",description:"Your password has been reset."}))}catch(i){console.log("Error while resetting password:",i),ay.error({message:"Error",description:"An error occurred while resetting your password. Please try again later."})}else ay.error({message:"Error",description:"Passwords do not match"})}}render(){const{isReset:e}=this.state;return e?Object(Ht.jsx)("h3",{style:{textAlign:"center",color:"#5B5B5B"},children:"Your password has been reset!"}):Object(Ht.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundColor:"#F8F8F8"},children:Object(Ht.jsxs)(Mj,{...KU,style:{width:"40%",backgroundColor:"#FFFFFF",padding:"30px",borderRadius:"10px"},onFinish:this.handleSubmit,children:[Object(Ht.jsx)(Mj.Item,{children:Object(Ht.jsx)("h2",{style:{textAlign:"center",fontSize:"40px",color:"#5B5B5B"},children:"Reset Password"})}),Object(Ht.jsx)(Mj.Item,{name:"resetToken",rules:[{required:!0,message:"Please input your reset token!"}],style:{textAlign:"center"},children:Object(Ht.jsx)(QS,{className:"reset-password-input",placeholder:"Reset Token"})}),Object(Ht.jsx)(Mj.Item,{name:"password",rules:[{required:!0,message:"Please input your password!"}],style:{textAlign:"center"},children:Object(Ht.jsx)(QS.Password,{className:"reset-password-input",placeholder:"Password"})}),Object(Ht.jsx)(Mj.Item,{name:"confirmPassword",rules:[{required:!0,message:"Please confirm your password!"}],style:{textAlign:"center"},children:Object(Ht.jsx)(QS.Password,{className:"reset-password-input",placeholder:"Confirm Password"})}),Object(Ht.jsx)(Mj.Item,{style:{textAlign:"center"},children:Object(Ht.jsx)(vO,{type:"primary",htmlType:"submit",style:{width:"40%",height:"50px",fontSize:"20px"},children:"Reset Password"})})]})})}})||VU)||VU;var XU=YU;var ZU,QU,JU,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH;let pH=new Ft.a,fH=(ZU=ae("store"),QU=p.o.deep,ZU(JU=ee((eH=class extends s.Component{constructor(e){Object(p.p)((()=>this.output),(e=>{console.log("Output changed:",e),this.setState({output:e})})),super(e),this.openModal=()=>{this.setState({showModal:!0})},this.closeModal=()=>{this.setState({showModal:!1})},se(this,"tool",tH,this),se(this,"prompts",nH,this),se(this,"currentPrompt",rH,this),se(this,"currentOption",oH,this),se(this,"error",iH,this),se(this,"output",aH,this),se(this,"outputs",sH,this),se(this,"code",lH,this),this.fileRef=l.a.createRef(),se(this,"loading",cH,this),se(this,"date",uH,this),this.countdown=[],se(this,"isHandwritingModalVisible",dH,this),this.checkMinimumPrompts=()=>{let e=!1;return this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{t.min&&t.value.length<t.min&&(e=!0,t.error=`${t.title} needs to meet the minimum ${t.min} characters`)})),e},this.clearExampleTimeout=[],this.onStartUsing=async()=>{this.loading=!1,this.error="",this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.currentOption="Start Using"},this.onExample=async()=>{this.loading=!0,this.error="",this.output="",this.outputs=[],this.code="",this.currentOption="Example";let e=0;this.clearExampleTimeout.forEach(((e,t)=>{clearTimeout(this.clearExampleTimeout[t])})),this.prompts[this.currentPrompt].prompts.forEach(((e,t)=>{this.prompts[this.currentPrompt].prompts[t].value=""})),this.prompts[this.currentPrompt].prompts.forEach(((t,n)=>{for(let r=0;r<t.example.length;r++)e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.prompts[this.currentPrompt].prompts[n].value+=t.example[r]}),7*e)})),e++,this.prompts[this.currentPrompt].example.output&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.output=this.prompts[this.currentPrompt].example.output,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using",this.prompts[this.currentPrompt].prompts[0].value+=" "}),7*e+7*this.prompts[this.currentPrompt].example.output.length+500)}),7*e+500)),this.prompts[this.currentPrompt].example.code&&(e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.code=`${this.prompts[this.currentPrompt].example.code}`,this.loading=!1}),7*e+500)),this.prompts[this.currentPrompt].example.outputs&&(this.clearExampleTimeout[e]=setTimeout((()=>{this.outputs=this.prompts[this.currentPrompt].example.outputs,e++,this.clearExampleTimeout[e]=setTimeout((()=>{this.loading=!1,this.currentOption="Start Using"}),7*e+500)}),7*e+500))},this.sanitizeAllPrompts=()=>{this.prompts[this.currentPrompt].prompts.forEach((e=>{if(!e.value)return!1;if("number"===e.type)return!1;if(e.value=e.value.trim(),pH.isProfane(e.value))throw e.error="Unsafe content , please try different language",Error("Unsafe content")}))},this.contentFilterFlagged=async e=>{this.error=e.message,this.date=Date.now()+5e3,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1},this.checkOutput=e=>(e&&(e=e.replace(/^\s+|\s+$/g,"")),e),this.handleFileChange=(e,t)=>{t.file=e.target.files[0]},this.getModalConfiguration=()=>(console.log("HandwritingConfig:",Gt),Gt),this.onGenerateClick=async()=>{this.loading=!0;try{if(this.error="",this.output="",this.code="",this.outputs=[],this.checkMinimumPrompts())return this.loading=!1,!1;let e,t=this.prompts[this.currentPrompt].prompts.some((e=>"file"===e.type)),n={};t?(e=new FormData,this.prompts[this.currentPrompt].prompts.forEach((t=>{"file"===t.type&&t.file?e.append(t.attr,t.file):e.append(t.attr,t.value)})),n={headers:{"Content-Type":"multipart/form-data"}}):(e={},this.prompts[this.currentPrompt].prompts.forEach((t=>{e[t.attr]=t.value}))),e.currentPrompt=this.prompts[this.currentPrompt].title,this.prompts[this.currentPrompt].n&&(e.n=this.prompts[this.currentPrompt].n);let r=await this.props.store.api.post(this.tool.api,e,n);if(console.log("onGenerateClick - response:",r),!r.data.success)return this.contentFilterFlagged(r.data),!1;r.data.output&&(this.output=this.checkOutput(r.data.output)),r.data.code&&(this.code=r.data.code),r.data.outputs&&(this.outputs=r.data.outputs),console.log("onGenerateClick - updated state:",{output:this.output,code:this.code,outputs:this.outputs}),this.date=Date.now()+1e4,this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}catch(e){console.log(e),this.countdown.forEach((e=>{e&&(e.stop(),e.start())})),this.loading=!1}},Object(p.n)(this),Object(p.p)((()=>this.output),(e=>{console.log("Output changed:",e)})),this.isHandwritingModal=!0,this.tool=this.props.store.getToolByUrl("/ai/writing/handwriting"),console.log("Tool props:",e);const{store:t,location:n,match:r,forceConfig:o}=this.props;this.tool?this.prompts=[...this.tool.prompts]:window.location.href="/",this.state={showModal:!1,config:Gt},this.fileRef=l.a.createRef(),this.date=Date.now()+1e3,this.countdown=[],this.isHandwritingModalVisible=!1}get isGenerateButtonDisabled(){return!!this.loading}get disabled(){return this.prompts[this.currentPrompt].prompts[0].value.length<1}get isMinLength(){return!!this.props.prompt.min&&(this.props.prompt.type,!1)}get language(){let e="";return this.prompts[this.currentPrompt].prompts.forEach((t=>{"language"===t.attr&&(e=`${t.value}`)})),e}render(){console.log("Tool render - state:",this.state),console.log("Tool render - config prop:",this.props.config),console.log("Tool render - config:",this.props.config);this.props.config||this.state.config;const e=this.prompts[this.currentPrompt].prompts[0].value;return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:`${this.tool.title} Tool - Top Marks AI`})}),Object(Ht.jsx)(KT,{title:this.tool.title,desc:this.tool.desc,Icon:this.tool.Icon,fromColor:this.tool.fromColor,category:this.tool.category,options:[{title:"Start Using",Icon:HT,color:this.props.store.profile.credits?"green":"red",onClick:this.onStartUsing}],currentOption:this.currentOption}),Object(Ht.jsx)($r,{children:Object(Ht.jsxs)(Dr,{children:[Object(Ht.jsxs)(Lr,{span:"6",children:[Object(Ht.jsx)(kR,{prompts:this.prompts,currentPrompt:this.currentPrompt,onChange:this.handleCurrentPrompt}),this.prompts.map(((t,n)=>Object(Ht.jsxs)(CR,{prompt:t,index:n,disabled:this.disabled,currentPrompt:this.currentPrompt,extraButtons:t.extraButtons,children:[t.prompts.map(((e,t)=>Object(Ht.jsx)(CL,{prompt:e,language:this.language,index:t,disabled:this.disabled,fileRef:this.fileRef,onFileChange:t=>this.handleFileChange(t,e),onPerformRequest:this.onGenerateClick},t))),Object(Ht.jsxs)("div",{className:"md:flex",children:[Object(Ht.jsx)(bR,{ref:e=>this.countdown[n]=e,date:this.date,renderer:t=>Object(Ht.jsx)(YT,{title:t.total?`Timeout ${t.total/1e3} secs`:"Perform Request",disabled:t.total||this.isGenerateButtonDisabled,Icon:t.total?Ar:e?GT:HT,onClick:this.onGenerateClick})}),Object(Ht.jsx)(XF,{prompts:this.prompts,currentPrompt:this.currentPrompt})]}),this.error&&Object(Ht.jsx)("div",{className:"mt-4",children:Object(Ht.jsx)("label",{className:(this.error?"text-red-400":"text-gray-400")+" font-medium transition-all",children:this.error})})]},n)))]}),Object(Ht.jsx)(Lr,{span:"6",children:Object(Ht.jsx)(jR,{title:this.tool.output.title,desc:this.tool.output.desc,Icon:this.tool.output.Icon||this.tool.Icon,fromColor:this.tool.fromColor,toColor:this.tool.toColor,loading:this.loading,output:this.output,outputs:this.outputs,code:this.code,language:this.language,outputsColor:this.tool.output.color,OutputsIcon:this.tool.output.Icon})})]})})]})}},tH=le(eH.prototype,"tool",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),nH=le(eH.prototype,"prompts",[QU],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),rH=le(eH.prototype,"currentPrompt",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),oH=le(eH.prototype,"currentOption",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Start Using"}}),iH=le(eH.prototype,"error",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),aH=le(eH.prototype,"output",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),sH=le(eH.prototype,"outputs",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),lH=le(eH.prototype,"code",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),cH=le(eH.prototype,"loading",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uH=le(eH.prototype,"date",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Date.now()+1e3}}),dH=le(eH.prototype,"isHandwritingModalVisible",[p.o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le(eH.prototype,"isGenerateButtonDisabled",[p.g],Object.getOwnPropertyDescriptor(eH.prototype,"isGenerateButtonDisabled"),eH.prototype),le(eH.prototype,"disabled",[p.g],Object.getOwnPropertyDescriptor(eH.prototype,"disabled"),eH.prototype),le(eH.prototype,"isMinLength",[p.g],Object.getOwnPropertyDescriptor(eH.prototype,"isMinLength"),eH.prototype),le(eH.prototype,"language",[p.g],Object.getOwnPropertyDescriptor(eH.prototype,"language"),eH.prototype),JU=eH))||JU)||JU);ae("store")(fH);var hH,mH=fH;n(14);let gH=ae("store")(hH=ee(hH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexgeogi",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vH,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(yH,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(xH,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(bH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vH,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Geography"}),": Edexcel IGCSE Marking Assistants"]})}),Object(Ht.jsx)(yH,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(xH,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(bH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||hH)||hH;const bH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),vH=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},yH=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},xH=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var OH,EH=gH;let wH=ae("store")(OH=ee(OH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/AQA",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(SH,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(TH,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(kH,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(jH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(SH,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": AQA GCSE Marking Assistants"]})}),Object(Ht.jsx)(TH,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(kH,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(jH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||OH)||OH;const jH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),SH=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},TH=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},kH=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var CH,_H=wH;let NH=ae("store")(CH=ee(CH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/Cantab",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(RH,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(IH,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(PH,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(AH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(RH,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": Cambridge IGCSE Marking Assistants"]})}),Object(Ht.jsx)(IH,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(PH,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(AH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||CH)||CH;const AH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),RH=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},IH=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},PH=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var DH,LH=NH;let MH=ae("store")(DH=ee(DH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/cambridge",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)($H,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(BH,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(UH,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(FH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)($H,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IGCSE History"}),": Cambridge IGCSE Marking Assistants"]})}),Object(Ht.jsx)(BH,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(UH,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(FH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||DH)||DH;const FH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),$H=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},BH=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},UH=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var HH,zH=MH;let GH=ae("store")(HH=ee(HH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexcel",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(VH,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(qH,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(KH,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(WH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(VH,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": Edexcel IGCSE Marking Assistants"]})}),Object(Ht.jsx)(qH,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(KH,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(WH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||HH)||HH;const WH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),VH=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},qH=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},KH=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var YH,XH=GH;let ZH=ae("store")(YH=ee(YH=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexhist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(JH,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(ez,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(tz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(QH,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(JH,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE History"}),": Edexcel GCSE Marking Assistants"]})}),Object(Ht.jsx)(ez,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(tz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(QH,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||YH)||YH;const QH=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),JH=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},ez=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},tz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-yellow-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var nz,rz=ZH;let oz=ae("store")(nz=ee(nz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/Eduqas",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(az,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(sz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(lz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(iz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(az,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": Eduqas GCSE Marking Assistants"]})}),Object(Ht.jsx)(sz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(lz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(iz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||nz)||nz;const iz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),az=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},sz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},lz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var cz,uz=oz;let dz=ae("store")(cz=ee(cz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/EdexEcon",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(fz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(hz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(mz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(pz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(fz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Economics"}),": Marking Assistants"]})}),Object(Ht.jsx)(hz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(mz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(pz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||cz)||cz;const pz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),fz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},hz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},mz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var gz,bz=dz;let vz=ae("store")(gz=ee(gz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/KS3",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(xz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Oz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Ez,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(yz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(xz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"KS3 English Language"}),": Marking Assistants"]})}),Object(Ht.jsx)(Oz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Ez,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(yz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||gz)||gz;const yz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),xz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Oz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Ez=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var wz,jz=vz;let Sz=ae("store")(wz=ee(wz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/AQAEnglish",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(kz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Cz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(_z,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Tz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(kz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level English"}),": AQA Marking Assistants"]})}),Object(Ht.jsx)(Cz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(_z,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(Tz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||wz)||wz;const Tz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),kz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Cz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},_z=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Nz,Az=Sz;let Rz=ae("store")(Nz=ee(Nz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ibenglish",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Pz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Dz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Lz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Iz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Pz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IB English A, Literature"}),": Marking Assistants"]})}),Object(Ht.jsx)(Dz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Lz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Iz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Nz)||Nz;const Iz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Pz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Dz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Lz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-yellow-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Mz,Fz=Rz;let $z=ae("store")(Mz=ee(Mz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ibhistory",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Uz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Hz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(zz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Bz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Uz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IB History A, Literature"}),": Marking Assistants"]})}),Object(Ht.jsx)(Hz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(zz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Bz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Mz)||Mz;const Bz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Uz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Hz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},zz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-yellow-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Gz,Wz=$z;let Vz=ae("store")(Gz=ee(Gz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/engmyp",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Kz,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Yz,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Xz,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(qz,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Kz,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IB English A, Language and Literature"}),": Marking Assistants"]})}),Object(Ht.jsx)(Yz,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Xz,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(qz,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Gz)||Gz;const qz=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Kz=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Yz=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Xz=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Zz,Qz=Vz;let Jz=ae("store")(Zz=ee(Zz=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqahistory",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(tG,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(nG,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(rG,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(eG,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(tG,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE History"}),": AQA GCSE Marking Assistants"]})}),Object(Ht.jsx)(nG,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(rG,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(eG,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Zz)||Zz;const eG=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),tG=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},nG=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},rG=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var oG,iG=Jz;let aG=ae("store")(oG=ee(oG=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqageog",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(lG,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(cG,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(uG,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(sG,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(lG,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Geography"}),": AQA GCSE Marking Assistants"]})}),Object(Ht.jsx)(cG,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(uG,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(sG,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||oG)||oG;const sG=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),lG=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},cG=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},uG=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var dG,pG=aG;let fG=ae("store")(dG=ee(dG=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/historyaqa",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(mG,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(gG,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(bG,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(hG,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(mG,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level History"}),": AQA A Level Marking Assistants"]})}),Object(Ht.jsx)(gG,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(bG,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(hG,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||dG)||dG;const hG=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),mG=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},gG=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},bG=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var vG=fG,yG=n(46),xG=n.n(yG),OG=n(63),EG=n.n(OG);var wG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))}));var jG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}));var SG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"}))}));var TG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}));var kG,CG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))}));n(519);let _G=ae("store")(kG=ee(kG=class extends s.Component{constructor(){super(...arguments),this.state={history:[],groupedHistory:{},folders:[],loading:!0,selectedHistory:null,modalIsOpen:!1,folderModalIsOpen:!1,renameModalIsOpen:!1,newFolderName:"",draggedItem:null,selectedFolder:null,folderToRename:null,multiSelectMode:!1,selectedItems:[],editingHistoryItem:null,newLabel:"",showConfirmationModal:!1,historyToDelete:null,folderItemsOrder:{},currentHistoryIndex:0},this.downloadFolderCSV=async e=>{const t={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},n=JSON.stringify({folderId:e});try{const e=await fetch("https://app.topmarks.ai/api/user/download-folder-csv",{method:"POST",headers:t,body:n});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.blob(),o=window.URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=o,i.download=`${this.state.selectedFolder.name}_export.csv`,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(o)}catch(r){console.error("Failed to download CSV:",r)}},this.fetchFolders=()=>{const e=this.props.store.jwtToken;fetch("https://app.topmarks.ai/api/user/fetch-folders",{method:"GET",headers:{Authorization:`Bearer ${e}`}}).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{this.setState({folders:e.folders})})).catch((e=>{console.error("Failed to fetch folders:",e)}))},this.toggleMultiSelect=()=>{this.setState((e=>({multiSelectMode:!e.multiSelectMode,selectedItems:[],selectedFolder:null,folderModalIsOpen:!1})))},this.createFolder=()=>{const{newFolderName:e}=this.state,t={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},n=JSON.stringify({name:e});fetch("https://app.topmarks.ai/api/user/create-folder",{method:"POST",headers:t,body:n}).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((t=>{const n={_id:t.folderId,name:e,items:[]};this.setState((e=>({folders:[...e.folders,n],newFolderName:""})))})).catch((e=>{console.error("Failed to create folder:",e)}))},this.updateFolder=(e,t)=>{const n={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},r=JSON.stringify({folderId:e,historyItem:t});fetch("https://app.topmarks.ai/api/user/update-folder",{method:"PUT",headers:n,body:r}).then((e=>e.json())).then((n=>{this.fetchFolders(),this.setState((n=>({folders:n.folders.map((n=>n._id===e?{...n,items:[...n.items,t]}:n)),history:n.history.filter((e=>e._id!==t._id))})))})).catch((e=>{console.error("Failed to update folder:",e)}))},this.removeFromFolder=async(e,t)=>{const n={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},r=JSON.stringify({folderId:e,historyItemId:t});try{const o=await fetch("https://app.topmarks.ai/api/user/remove-from-folder",{method:"PUT",headers:n,body:r});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const i=this.state.selectedFolder.items.find((e=>e._id===t));i?this.setState((n=>{const r=[...n.history,i],o=r.reduce(((e,t)=>{const n=xG()(t.created).format("MMMM YYYY");return e[n]||(e[n]=[]),e[n].push(t),e}),{});for(let e in o)o[e].sort(((e,t)=>xG()(t.created).toDate()-xG()(e.created).toDate()));return{history:r,groupedHistory:o,folders:n.folders.map((n=>n._id===e?{...n,items:n.items.filter((e=>e._id!==t))}:n)),selectedFolder:{...n.selectedFolder,items:n.selectedFolder.items.filter((e=>e._id!==t))}}})):console.error("History item not found in selectedFolder.items")}catch(o){console.error("Failed to remove item from folder:",o)}},this.deleteFolder=e=>{const t=`https://app.topmarks.ai/api/user/delete-folder/${e}`,n=this.props.store.jwtToken;fetch(t,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((()=>{this.fetchFolders(),this.fetchUserHistory()})).catch((e=>{console.error("Failed to delete folder:",e)}))},this.renameFolder=(e,t)=>{const n=`https://app.topmarks.ai/api/user/rename-folder/${e}`,r={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},o=JSON.stringify({newName:t});fetch(n,{method:"PUT",headers:r,body:o}).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{this.fetchFolders()})).catch((e=>{console.error("Failed to rename folder:",e)}))},this.downloadAsWord=()=>{const{selectedHistory:e}=this.state;let t=e.input;const n=t.indexOf("QUESTION");-1!==n&&(t=t.slice(n)),fetch("https://app.topmarks.ai/api/user/download-word",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:t,output:e.output})}).then((e=>e.blob())).then((e=>{const t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download="history.docx",n.click()}))},this.downloadFolder=async e=>{const t={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},n=JSON.stringify({folderId:e});try{const r=await fetch("https://app.topmarks.ai/api/user/download-folder",{method:"POST",headers:t,body:n});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const o=await r.blob();Object(tk.saveAs)(o,`${e}.zip`)}catch(r){console.error("Failed to download folder:",r)}},this.handleLabelEdit=e=>{this.setState({editingHistoryItem:e,newLabel:e.label||""})},this.handleLabelChange=e=>{this.setState({newLabel:e.target.value})},this.openConfirmationModal=e=>{this.setState({showConfirmationModal:!0,historyToDelete:e})},this.closeConfirmationModal=()=>{this.setState({showConfirmationModal:!1,historyToDelete:null})},this.confirmDeleteHistory=()=>{const{historyToDelete:e}=this.state;console.log("Delete history confirmed: ",{historyToDelete:e}),e&&(this.handleDeleteHistory(e),this.closeConfirmationModal())},this.handleDeleteHistory=async e=>{const t=`https://app.topmarks.ai/api/user/delete-history/${e}`,n={Authorization:`Bearer ${this.props.store.jwtToken}`};try{const r=await fetch(t,{method:"PUT",headers:n});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);console.log("History item deleted:",{historyItemId:e}),this.setState((t=>{const n=t.history.filter((t=>t._id!==e)),r={};return Object.keys(t.groupedHistory).forEach((n=>{r[n]=t.groupedHistory[n].filter((t=>t._id!==e))})),{history:n,groupedHistory:r}}))}catch(r){console.error("Failed to delete history item:",r)}},this.saveLabel=async()=>{const{editingHistoryItem:e,newLabel:t,selectedFolder:n,selectedHistory:r}=this.state;if(e&&t!==e.label){const i="https://app.topmarks.ai/api/user/update-history-label",a={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},s=JSON.stringify({historyItemId:e._id,newLabel:t});try{const o=await fetch(i,{method:"PUT",headers:a,body:s});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);this.setState((o=>{const i=o.history.map((n=>n._id===e._id?{...n,label:t}:n)),a={...o.groupedHistory};Object.keys(a).forEach((n=>{a[n]=a[n].map((n=>n._id===e._id?{...n,label:t}:n))}));const s=n?{...n,items:n.items.map((n=>n._id===e._id?{...n,label:t}:n))}:null,l=r&&r._id===e._id?{...r,label:t}:r;return{history:i,groupedHistory:a,selectedFolder:s,selectedHistory:l,editingHistoryItem:null,newLabel:""}})),n&&this.fetchFolders()}catch(o){console.error("Failed to update history label:",o)}}},this.handleHistoryItemClick=(e,t)=>{const{multiSelectMode:n,selectedItems:r,selectedFolder:o}=this.state,i=t.target.tagName;if(n&&!o)t.stopPropagation(),this.setState((t=>({selectedItems:t.selectedItems.includes(e._id)?t.selectedItems.filter((t=>t!==e._id)):[...t.selectedItems,e._id]})));else if("INPUT"!==i&&"BUTTON"!==i){const t=o?o.items.findIndex((t=>t._id===e._id)):-1;this.setState({selectedHistory:e,modalIsOpen:!0,folderModalIsOpen:!1,currentHistoryIndex:t})}},this.handleFolderClick=e=>{this.setState({selectedFolder:e,folderModalIsOpen:!0,multiSelectMode:!1})},this.closeFolderModal=()=>{this.setState({folderModalIsOpen:!1})},this.closeModal=()=>{this.setState({modalIsOpen:!1})},this.handleFolderNameChange=e=>{this.setState({newFolderName:e.target.value})},this.handleDragStart=(e,t,n)=>{e.dataTransfer.setData("text/plain",JSON.stringify({item:t,source:n}))},this.handleDragOver=e=>{e.preventDefault()},this.handleDrop=(e,t,n)=>{e.preventDefault();const r=JSON.parse(e.dataTransfer.getData("text")),{item:o,source:i}=r;"folder"===n?this.state.multiSelectMode&&this.state.selectedItems.length>0?this.handleDropIntoFolder(this.state.selectedItems,t):this.handleDropIntoFolder([o],t):"folderItem"===n&&"folderItem"===i&&this.reorderFolderItems(o,t)},this.handleDropIntoFolder=(e,t)=>{const{history:n,groupedHistory:r,folders:o}=this.state,i=Array.isArray(e)?e:[e];this.debugLog("Drop event",{folderId:t,itemsToAdd:i});const a=o.map((e=>{if(e._id===t){const t=i.map((e=>n.find((t=>t._id===e)))).filter(Boolean);return{...e,items:[...e.items,...t],isHighlighted:!0}}return e})),s=n.filter((e=>!i.includes(e._id))),l={...r};Object.keys(l).forEach((e=>{l[e]=l[e].filter((e=>!i.includes(e._id))),0===l[e].length&&delete l[e]})),this.setState({folders:a,history:s,groupedHistory:l,draggedItem:null,selectedItems:[]},(()=>{setTimeout((()=>{this.setState((e=>({folders:e.folders.map((e=>({...e,isHighlighted:!1})))})))}),500),i.forEach((e=>{const r=n.find((t=>t._id===e));r&&(this.debugLog("Updating folder for item",{folderId:t,historyItem:r}),this.updateFolder(t,r))}))}))},this.reorderFolderItems=(e,t)=>{const{selectedFolder:n}=this.state;if(!n)return;const r=Array.from(n.items),[o]=r.splice(e,1);r.splice(t,0,o),this.setState((e=>({selectedFolder:{...e.selectedFolder,items:r},folderItemsOrder:{...e.folderItemsOrder,[n._id]:r.map((e=>e._id))}})),(()=>this.updateFolderOrderOnServer(n._id,r.map((e=>e._id)))))},this.updateFolderOrderOnServer=(e,t)=>{const n={Authorization:`Bearer ${this.props.store.jwtToken}`,"Content-Type":"application/json"},r=JSON.stringify({folderId:e,newOrder:t});fetch("https://app.topmarks.ai/api/user/update-folder-order",{method:"PUT",headers:n,body:r}).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{console.log("Folder order updated successfully")})).catch((e=>{console.error("Failed to update folder order:",e)}))},this.handleNextHistory=()=>{const{selectedFolder:e,currentHistoryIndex:t}=this.state;e&&t<e.items.length-1&&this.setState((t=>({currentHistoryIndex:t.currentHistoryIndex+1,selectedHistory:e.items[t.currentHistoryIndex+1]})))},this.handlePreviousHistory=()=>{const{currentHistoryIndex:e}=this.state;e>0&&this.setState((e=>({currentHistoryIndex:e.currentHistoryIndex-1,selectedHistory:e.selectedFolder.items[e.currentHistoryIndex-1]})))}}debugLog(e,t){console.log(`[DEBUG] ${e}`,t)}colorGradient(e,t){const n=(t-e)/t*.3+.2;return`rgba(${[68,108,179].join(",")}, ${n})`}extractFinalScore(e){const t=e.match(/Final score:\s*([\d.]+)\s*out of\s*(\d+)/i);return t?`${t[1]}/${t[2]}`:null}parseInput(e){const t={},n=e.split("\n");let r="";return n.forEach((e=>{const n=e.match(/^(QUESTION|STUDENT|IMAGE DESCRIPTION):\s*(.*)/);n?(r=n[1],t[r]=n[2]):r&&(t[r]+="\n"+e)})),t}componentDidMount(){const e=this.props.store.jwtToken;if("string"!==typeof e||""===e)return console.error("jwtToken is missing or not a string in the store:",e),void this.setState({loading:!1});fetch("https://app.topmarks.ai/api/user/fetch-user-history",{method:"GET",headers:{Authorization:`Bearer ${e}`}}).then((e=>e.ok?e.json():e.text().then((t=>{let n="Error: ";switch(e.status){case 401:n+="Unauthorized";break;case 403:n+="Forbidden";break;case 404:n+="Not Found";break;default:n+=`Unknown (${e.status})`}throw new Error(n)})))).then((e=>{const t=e.userHistory.filter((e=>{const t=xG()(e.created),n=xG()("July 2023","MMMM YYYY");return t.isSameOrAfter(n)&&!e.forgotten}));this.setState({history:t,loading:!1},this.groupHistoryByMonth),this.fetchFolders()})).catch((e=>{console.error("Failed to fetch user history:",e),this.setState({loading:!1})}))}groupHistoryByMonth(){const e=this.state.history.reduce(((e,t)=>{const n=xG()(t.created).format("MMMM YYYY");return e[n]||(e[n]=[]),e[n].push(t),e}),{});for(let t in e)e[t].sort(((e,t)=>xG()(t.created).toDate()-xG()(e.created).toDate()));this.setState({groupedHistory:e})}renderHistoryDetails(){const{selectedHistory:e,modalIsOpen:t,editingHistoryItem:n,newLabel:r,selectedFolder:o,currentHistoryIndex:i}=this.state;if(!e||!e.input)return console.error("Selected history or its input is undefined"),null;let a=e.input;const s=a.indexOf("QUESTION");-1!==s&&(a=a.slice(s));const c=this.parseInput(a),u={fontSize:"1em",color:"#000000",padding:"20px",borderRadius:"25px",backgroundColor:"white",boxShadow:"0 10px 15px rgba(0, 0, 0, 0.1)",margin:"20px 0",border:"1px solid rgba(0, 0, 0, 0.1)",textAlign:"left",whiteSpace:"pre-wrap",transition:"all 0.5s ease"},d={fontSize:"1.2em",padding:"10px",borderRadius:"15px",boxShadow:"0 5px 10px rgba(0, 0, 0, 0.1)",margin:"10px 0",textAlign:"center",whiteSpace:"pre-wrap",transition:"all 0.5s ease",color:"white",background:"linear-gradient(to right, #000000, #434343)",fontFamily:"Arial, sans-serif",textShadow:"2px 2px 4px #000000"},p={padding:"8px 16px",margin:"0 5px",border:"1px solid #ccc",borderRadius:"4px",backgroundColor:"#f8f8f8",cursor:"pointer",transition:"all 0.3s ease"},f={...p,backgroundColor:"#007bff",color:"white",border:"none",padding:"8px 16px",margin:"0 5px",borderRadius:"4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};return Object(Ht.jsxs)(EG.a,{isOpen:t,onRequestClose:this.closeModal,contentLabel:"Selected History Details",style:{content:{width:"60%",margin:"0 auto"},overlay:{}},children:[Object(Ht.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[Object(Ht.jsx)("div",{children:n===e?Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("input",{type:"text",value:r,onChange:this.handleLabelChange,onBlur:this.saveLabel,onKeyPress:e=>{"Enter"===e.key&&this.saveLabel()},className:"edit-label-input"}),Object(Ht.jsx)("button",{onClick:this.saveLabel,className:"save-label-button",children:"Save"})]}):Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("span",{style:{fontSize:"1.2em",fontWeight:"bold",marginRight:"10px"},children:e.label||e.api.split("/").pop()}),Object(Ht.jsx)("button",{onClick:()=>this.handleLabelEdit(e),className:"edit-label-button",children:"Edit Label"})]})}),Object(Ht.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[o&&o.items.some((t=>t._id===e._id))&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsxs)("button",{style:f,onClick:this.handlePreviousHistory,disabled:0===i,children:[Object(Ht.jsx)($B,{className:"h-5 w-5 mr-2","aria-hidden":"true"}),"Previous"]}),Object(Ht.jsxs)("button",{style:f,onClick:this.handleNextHistory,disabled:i===o.items.length-1,children:["Next",Object(Ht.jsx)(wG,{className:"h-5 w-5 ml-2","aria-hidden":"true"})]})]}),Object(Ht.jsx)("button",{style:{...p,backgroundColor:"#4CAF50",color:"white",border:"none",marginLeft:"10px"},onClick:this.downloadAsWord,children:Object(Ht.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[Object(Ht.jsx)("p",{style:{marginRight:"10px"},children:"Download to Word"}),Object(Ht.jsx)(jG,{className:"h-7 w-7","aria-hidden":"true"})]})}),o&&Object(Ht.jsx)("button",{style:p,onClick:()=>{this.closeModal(),this.setState({folderModalIsOpen:!0})},children:"Back to Folder"}),Object(Ht.jsx)("button",{style:p,onClick:this.closeModal,children:"Close"})]})]}),"handwriting"!==e.tool&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("div",{style:d,children:"Question & Student Response"}),Object(Ht.jsxs)("div",{style:u,children:[Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("strong",{children:"QUESTION:"})," ",c.QUESTION||"No question available"]}),Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("strong",{children:"STUDENT:"}),c.STUDENT?c.STUDENT.split("\n").map(((e,t)=>Object(Ht.jsxs)(l.a.Fragment,{children:[e,Object(Ht.jsx)("br",{})]},t))):"No student response available"]}),c["IMAGE DESCRIPTION"]&&Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("strong",{children:"IMAGE DESCRIPTION:"})," ",c["IMAGE DESCRIPTION"]]})]})]}),Object(Ht.jsx)("div",{style:d,children:"Feedback"}),Object(Ht.jsx)("div",{style:u,dangerouslySetInnerHTML:{__html:e.output}})]})}renderFolderDetails(){const{selectedFolder:e,folderModalIsOpen:t}=this.state;return e?Object(Ht.jsxs)(EG.a,{isOpen:t,onRequestClose:this.closeFolderModal,contentLabel:"Folder Contents",style:{content:{width:"60%",margin:"0 auto"},overlay:{}},children:[Object(Ht.jsx)("button",{onClick:this.closeFolderModal,children:"Close"}),Object(Ht.jsx)("h2",{className:"folder-modal-title",children:Object(Ht.jsx)("span",{children:e.name})}),Object(Ht.jsxs)("div",{className:"download-buttons",children:[Object(Ht.jsxs)("button",{className:"download-all-button",onClick:()=>this.downloadFolder(e._id),children:[Object(Ht.jsx)(jG,{className:"h-6 w-6 mr-2","aria-hidden":"true"}),"Download All (ZIP file)"]}),Object(Ht.jsxs)("button",{className:"download-csv-button",onClick:()=>this.downloadFolderCSV(e._id),children:[Object(Ht.jsx)(SG,{className:"h-6 w-6 mr-2","aria-hidden":"true"}),"Download CSV"]})]}),0===e.items.length?Object(Ht.jsx)("p",{children:"No items in this folder."}):e.items.map(((t,n)=>{const r=this.extractFinalScore(t.output);return Object(Ht.jsx)("div",{className:"folder-item",draggable:!0,onDragStart:e=>this.handleDragStart(e,n,"folderItem"),onDragOver:this.handleDragOver,onDrop:e=>this.handleDrop(e,n,"folderItem"),onClick:e=>{e.stopPropagation(),this.handleHistoryItemClick(t,e)},children:Object(Ht.jsx)("div",{className:"item-details",children:Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)(TG,{className:"icon h-6 w-6 inline-block mr-2","aria-hidden":"true"}),this.state.editingHistoryItem===t?Object(Ht.jsx)("input",{className:"edit-label-input",type:"text",value:this.state.newLabel,onChange:this.handleLabelChange,onBlur:this.saveLabel,onClick:e=>e.stopPropagation(),onKeyPress:e=>{"Enter"===e.key&&this.saveLabel()}}):Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("p",{className:"label inline-block",children:t.label||t.api.split("/").pop()}),r&&Object(Ht.jsxs)("span",{className:"score-display",children:["\xa0- Score: ",r]}),Object(Ht.jsxs)("div",{className:"actions",children:[Object(Ht.jsx)("button",{style:{backgroundColor:"#007bff",color:"white",border:"none",padding:"5px 10px",marginLeft:"10px",borderRadius:"5px",cursor:"pointer",transition:"background-color 0.3s ease"},onClick:e=>{e.stopPropagation(),this.handleLabelEdit(t)},children:"Edit Label"}),Object(Ht.jsx)("p",{className:"date",children:xG()(t.created).format("MMMM D")}),Object(Ht.jsx)("button",{style:{backgroundColor:"#dc3545",color:"white",border:"none",padding:"5px 10px",marginLeft:"10px",borderRadius:"5px",cursor:"pointer",transition:"background-color 0.3s ease"},onClick:n=>{n.stopPropagation(),this.removeFromFolder(e._id,t._id)},children:"Remove from Folder"})]})]})]})})},t._id)}))]}):null}renderError(){return Object(Ht.jsx)("h2",{children:"Error loading user histories"})}renderNoHistory(){return Object(Ht.jsx)("h2",{className:"no-history",children:"No previous enquiries found"})}renderHistory(){const{multiSelectMode:e,selectedItems:t}=this.state,n=Object.keys(this.state.groupedHistory).sort(((e,t)=>xG()(t,"MMMM YYYY").toDate()-xG()(e,"MMMM YYYY").toDate()));return n.length?Object(Ht.jsx)("div",{className:"history-container",children:n.map(((r,o)=>Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)("h3",{style:{fontSize:"1.5em",color:"#000000",padding:"10px 20px",borderRadius:"20px",backgroundColor:this.colorGradient(o,n.length-1),boxShadow:"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)",margin:"40px 0 10px 0",border:"1px solid #000000",display:"inline-block",textAlign:"center"},children:r}),Object(Ht.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},children:this.state.groupedHistory[r].map(((n,r)=>{const o=this.extractFinalScore(n.output);return Object(Ht.jsxs)("div",{style:{border:"1px solid black",padding:"10px",margin:"10px",cursor:"pointer",borderRadius:"10px",width:"18%",textAlign:"center",backgroundColor:"#ffffff",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.15)",transition:"all 0.3s ease-in-out",wordWrap:"break-word",opacity:e&&t.includes(n._id)?.6:1},draggable:!0,onDragStart:e=>this.handleDragStart(e,n._id,"history"),onClick:e=>this.handleHistoryItemClick(n,e),onMouseEnter:e=>{e.currentTarget.style.boxShadow="0 5px 15px rgba(0, 0, 0, 0.3)",e.currentTarget.style.transform="scale(1.05)"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",e.currentTarget.style.transform="scale(1)"},children:[Object(Ht.jsxs)("div",{children:[Object(Ht.jsx)(TG,{className:"h-6 w-6 inline-block mr-2","aria-hidden":"true"}),this.state.editingHistoryItem===n?Object(Ht.jsx)("input",{className:"edit-label-input",type:"text",value:this.state.newLabel,onChange:this.handleLabelChange,onBlur:this.saveLabel,onClick:e=>e.stopPropagation(),onKeyPress:e=>{"Enter"===e.key&&this.saveLabel()}}):Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)("p",{className:"inline-block",onClick:e=>{e.stopPropagation(),this.handleLabelEdit(n)},children:n.label||n.api.split("/").pop()}),o&&Object(Ht.jsxs)("span",{className:"score-display",children:["\xa0- Score: ",o]}),Object(Ht.jsx)("button",{style:{backgroundColor:"#007bff",color:"white",border:"none",padding:"5px 10px",marginLeft:"10px",borderRadius:"5px",cursor:"pointer",transition:"background-color 0.3s ease"},onClick:e=>{e.stopPropagation(),this.handleLabelEdit(n)},children:"Edit Label"})]})]}),Object(Ht.jsx)("div",{children:Object(Ht.jsx)("p",{className:"inline-block",children:xG()(n.created).format("MMMM D")})}),Object(Ht.jsx)("button",{className:"delete-button",onClick:()=>this.openConfirmationModal(n._id),children:"Delete"})]},r)}))})]},r)))}):Object(Ht.jsx)("h2",{children:"No history available"})}renderFolders(){const{folders:e,newFolderName:t}=this.state;return Object(Ht.jsxs)("div",{className:"folders-container",children:[Object(Ht.jsx)("h2",{className:"create-folder-title",children:"Folders"}),Object(Ht.jsxs)("div",{className:"create-folder create-folder-input",children:[Object(Ht.jsx)("input",{type:"text",placeholder:"New Folder Name",value:t,onChange:this.handleFolderNameChange}),Object(Ht.jsx)("button",{className:"create-folder-button",onClick:this.createFolder,children:"Create Folder"})]}),e.map((e=>Object(Ht.jsxs)("div",{className:"folder "+(e.isHighlighted?"highlighted":""),onDragOver:this.handleDragOver,onDrop:t=>this.handleDrop(t,e._id,"folder"),onClick:()=>this.handleFolderClick(e),children:[Object(Ht.jsx)(CG,{className:"h-6 w-6 inline-block mr-2","aria-hidden":"true"}),Object(Ht.jsx)("h3",{className:"inline-block",children:e.name}),Object(Ht.jsx)("span",{className:"folder-count",children:e.items.length}),e.isHighlighted&&Object(Ht.jsx)("span",{className:"plus-sign",children:"+"}),Object(Ht.jsx)("button",{className:"delete-folder-button",onClick:t=>{t.stopPropagation(),this.deleteFolder(e._id)},children:"Delete"})]},e._id)))]})}render(){if(this.debugLog("Render state",{historyLength:this.state.history.length,foldersLength:this.state.folders.length,folderContents:this.state.folders.map((e=>({name:e.name,itemCount:e.items.length})))}),this.state.loading)return Object(Ht.jsx)(no,{});if(!(this.state.history.length>0||this.state.folders.some((e=>e.items.length>0))))return this.renderNoHistory();const{showConfirmationModal:e}=this.state;return Object(Ht.jsxs)("div",{className:"user-history-container",children:[Object(Ht.jsx)("div",{className:"left-panel",children:this.renderFolders()}),Object(Ht.jsxs)("div",{className:"right-panel",children:[Object(Ht.jsxs)("div",{className:"multi-select-container",children:[Object(Ht.jsxs)("button",{className:"multi-select-button",onClick:this.toggleMultiSelect,children:[this.state.multiSelectMode?"Disable":"Enable"," Multi-Select"]}),Object(Ht.jsx)("div",{className:"help-text",children:Object(Ht.jsx)("p",{children:"Drag and drop histories into folders. Use the button to select multiple histories to drag."})})]}),this.state.history.length>0?this.renderHistory():Object(Ht.jsx)("p",{children:"All items are in folders. Use the folder view to access your history."}),this.renderHistoryDetails(),this.renderFolderDetails(),Object(Ht.jsxs)(EG.a,{isOpen:e,onRequestClose:this.closeConfirmationModal,contentLabel:"Confirm Delete",className:"confirmation-modal",overlayClassName:"react-modal-overlay",children:[Object(Ht.jsx)("h2",{children:"Are you sure you want to delete this history?"}),Object(Ht.jsxs)("div",{className:"confirmation-buttons",children:[Object(Ht.jsx)("button",{className:"confirm-button",onClick:this.confirmDeleteHistory,children:"Yes"}),Object(Ht.jsx)("button",{className:"cancel-button",onClick:this.closeConfirmationModal,children:"No"})]})]})]})]})}})||kG)||kG;var NG,AG=_G;let RG=ae("store")(NG=ee(NG=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/global",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(PG,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(DG,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(LG,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(IG,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(PG,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IB DP Global Politics"}),": IB DP Global Politics Marking Assistants"]})}),Object(Ht.jsx)(DG,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(LG,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(IG,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||NG)||NG;const IG=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),PG=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},DG=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},LG=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var MG=RG;var FG=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var $G=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ob()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=ob()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),c=s.useMemo((()=>"number"===typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return s.createElement("span",{className:ob()(t,a,l,n),style:Object.assign(Object.assign({},c),r)})};const BG=new Ph("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),UG=e=>({height:e,lineHeight:hf(e)}),HG=e=>Object.assign({width:e},UG(e)),zG=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:BG,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),GG=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},UG(e)),WG=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},HG(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},HG(o)),[`${t}${t}-sm`]:Object.assign({},HG(i))}},VG=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},GG(t,s)),[`${r}-lg`]:Object.assign({},GG(o,s)),[`${r}-sm`]:Object.assign({},GG(i,s))}},qG=e=>Object.assign({width:e},UG(e)),KG=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},qG(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},qG(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},YG=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},XG=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},UG(e)),ZG=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},XG(r,s))},YG(e,r,n)),{[`${n}-lg`]:Object.assign({},XG(o,s))}),YG(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},XG(i,s))}),YG(e,i,`${n}-sm`))},QG=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:b,controlHeightXS:v,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},HG(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},HG(c)),[`${n}-sm`]:Object.assign({},HG(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ZG(e)),WG(e)),VG(e)),KG(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${s}\n      `]:Object.assign({},zG(e))}}};var JG=jv("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=hv(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[QG(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var eW=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=s.useContext(Ap),c=l("skeleton",t),[u,d,p]=JG(c),f=Object(sy.a)(e,["prefixCls","className"]),h=ob()(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,p);return u(s.createElement("div",{className:h},s.createElement($G,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},f))))};var tW=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=s.useContext(Ap),l=a("skeleton",t),[c,u,d]=JG(l),p=ob()(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(s.createElement("div",{className:p},s.createElement("div",{className:ob()(`${l}-image`,n),style:o},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))};var nW=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Ap),c=l("skeleton",t),[u,d,p]=JG(c),f=Object(sy.a)(e,["prefixCls"]),h=ob()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,p);return u(s.createElement("div",{className:h},s.createElement($G,Object.assign({prefixCls:`${c}-input`,size:a},f))))};var rW=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=s.useContext(Ap),c=l("skeleton",t),[u,d,p]=JG(c),f=ob()(c,`${c}-element`,{[`${c}-active`]:i},d,n,r,p);return u(s.createElement("div",{className:f},s.createElement("div",{className:ob()(`${c}-image`,n),style:o},a)))};const oW=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var iW=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Object(Dp.a)(new Array(o)).map(((t,n)=>s.createElement("li",{key:n,style:{width:oW(n,e)}})));return s.createElement("ul",{className:ob()(t,n),style:r},i)};var aW=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return s.createElement("h3",{className:ob()(t,n),style:Object.assign({width:r},o)})};function sW(e){return e&&"object"===typeof e?e:{}}const lW=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:f,direction:h,skeleton:m}=s.useContext(Ap),g=f("skeleton",t),[b,v,y]=JG(g);if(n||!("loading"in e)){const e=!!l,t=!!c,n=!!u;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),sW(l));a=s.createElement("div",{className:`${g}-header`},s.createElement($G,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),sW(c));r=s.createElement(aW,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),sW(u));o=s.createElement(iW,Object.assign({},n))}f=s.createElement("div",{className:`${g}-content`},r,o)}const x=ob()(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:d,[`${g}-rtl`]:"rtl"===h,[`${g}-round`]:p},null===m||void 0===m?void 0:m.className,r,o,v,y);return b(s.createElement("div",{className:x,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),i)},a,f))}return null!==a&&void 0!==a?a:null};lW.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Ap),c=l("skeleton",t),[u,d,p]=JG(c),f=Object(sy.a)(e,["prefixCls"]),h=ob()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,p);return u(s.createElement("div",{className:h},s.createElement($G,Object.assign({prefixCls:`${c}-button`,size:a},f))))},lW.Avatar=eW,lW.Input=nW,lW.Image=tW,lW.Node=rW;var cW=lW,uW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},dW=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:uW}))};var pW=s.forwardRef(dW),fW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},hW=function(e,t){return s.createElement(vb,Object(yn.a)({},e,{ref:t,icon:fW}))};var mW=s.forwardRef(hW),gW=n(94),bW=Object(s.createContext)(null),vW=n(44),yW=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,c=i.align,u=void 0===c?"center":c,d=Object(s.useState)(),p=Object(Ip.a)(d,2),f=p[0],h=p[1],m=Object(s.useRef)(),g=l.a.useCallback((function(e){return"function"===typeof a?a(e):"number"===typeof a?a:e}),[a]);function b(){my.a.cancel(m.current)}return Object(s.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var o=r?"right":"left";"start"===u&&(e[o]=t[o]),"center"===u&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return b(),m.current=Object(my.a)((function(){h(e)})),b}),[t,n,r,u,g]),{style:f}},xW={width:0,height:0,left:0,top:0};function OW(e,t){var n=s.useRef(e),r=s.useState({}),o=Object(Ip.a)(r,2)[1];return[n.current,function(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var EW=Math.pow(.995,20);function wW(e){var t=Object(s.useState)(0),n=Object(Ip.a)(t,2),r=n[0],o=n[1],i=Object(s.useRef)(0),a=Object(s.useRef)();return a.current=e,Object(yf.b)((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var jW={width:0,height:0,left:0,top:0,right:0};function SW(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function TW(e){return String(e).replace(/"/g,"TABS_DQ")}function kW(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var CW=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===o||void 0===o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var _W=s.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==Object(mp.a)(i)||s.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?s.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),NW=Lb.a.ESC,AW=Lb.a.TAB;var RW=Object(s.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=Object(s.useMemo)((function(){return"function"===typeof n?n():n}),[n]),a=Object(ly.a)(t,null===i||void 0===i?void 0:i.ref);return l.a.createElement(l.a.Fragment,null,r&&l.a.createElement("div",{className:"".concat(o,"-arrow")}),l.a.cloneElement(i,{ref:Object(ly.c)(i)?a:void 0}))})),IW={adjustX:1,adjustY:1},PW=[0,0],DW={topLeft:{points:["bl","tl"],overflow:IW,offset:[0,-4],targetOffset:PW},top:{points:["bc","tc"],overflow:IW,offset:[0,-4],targetOffset:PW},topRight:{points:["br","tr"],overflow:IW,offset:[0,-4],targetOffset:PW},bottomLeft:{points:["tl","bl"],overflow:IW,offset:[0,4],targetOffset:PW},bottom:{points:["tc","bc"],overflow:IW,offset:[0,4],targetOffset:PW},bottomRight:{points:["tr","br"],overflow:IW,offset:[0,4],targetOffset:PW}},LW=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function MW(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,c=e.transitionName,u=e.animation,d=e.align,p=e.placement,f=void 0===p?"bottomLeft":p,h=e.placements,m=void 0===h?DW:h,g=e.getPopupContainer,b=e.showAction,v=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,O=e.visible,E=e.trigger,w=void 0===E?["hover"]:E,j=e.autoFocus,S=e.overlay,T=e.children,k=e.onVisibleChange,C=Object(Fp.a)(e,LW),_=l.a.useState(),N=Object(Ip.a)(_,2),A=N[0],R=N[1],I="visible"in e?O:A,P=l.a.useRef(null),D=l.a.useRef(null),L=l.a.useRef(null);l.a.useImperativeHandle(t,(function(){return P.current}));var M=function(e){R(e),null===k||void 0===k||k(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null===r||void 0===r||r(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus)&&(i.current.focus(),a.current=!0,!0)},u=function(e){switch(e.keyCode){case NW:l();break;case AW:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};s.useEffect((function(){return t?(window.addEventListener("keydown",u),o&&Object(my.a)(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}({visible:I,triggerRef:L,onVisibleChange:M,autoFocus:j,overlayRef:D});var F=function(){return l.a.createElement(RW,{ref:D,overlay:S,prefixCls:a,arrow:o})},$=l.a.cloneElement(T,{className:ob()(null===(n=T.props)||void 0===n?void 0:n.className,I&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(a,"-open")}()),ref:Object(ly.c)(T)?Object(ly.a)(L,T.ref):void 0}),B=v;return B||-1===w.indexOf("contextMenu")||(B=["click"]),l.a.createElement(Zw.a,Object(yn.a)({builtinPlacements:m},C,{prefixCls:a,ref:P,popupClassName:ob()(y,Object(Pp.a)({},"".concat(a,"-show-arrow"),o)),popupStyle:x,action:w,showAction:b,hideAction:B,popupPlacement:f,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:I,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof S?F:F(),onPopupVisibleChange:M,onPopupClick:function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},getPopupContainer:g}),$)}var FW=l.a.forwardRef(MW),$W=n(123),BW=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,c=void 0===l?{}:l,u=e.style,d=e.className,p=e.editable,f=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=Object(s.useState)(!1),x=Object(Ip.a)(y,2),O=x[0],E=x[1],w=Object(s.useState)(null),j=Object(Ip.a)(w,2),S=j[0],T=j[1],k=c.icon,C=void 0===k?"More":k,_="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),A=null!==S?"".concat(_,"-").concat(S):null,R=null===i||void 0===i?void 0:i.dropdownAriaLabel;var I=s.createElement($W.b,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),E(!1)},prefixCls:"".concat(N,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[S],"aria-label":void 0!==R?R:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=kW(t,o,p,n);return s.createElement($W.a,{key:i,id:"".concat(_,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},s.createElement("span",null,a),l&&s.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},o||p.removeIcon||"\xd7"))})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===S}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void T(a.key)}}Object(s.useEffect)((function(){var e=document.getElementById(A);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[S]),Object(s.useEffect)((function(){O||T(null)}),[O]);var D=Object(Pp.a)({},h?"marginRight":"marginLeft",f);o.length||(D.visibility="hidden",D.order=1);var L=ob()(Object(Pp.a)({},"".concat(N,"-rtl"),h)),M=a?null:s.createElement(FW,Object(yn.a)({prefixCls:N,overlay:I,visible:!!o.length&&O,onVisibleChange:E,overlayClassName:ob()(L,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},c),s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:function(e){var t=e.which;if(O)switch(t){case Lb.a.UP:P(-1),e.preventDefault();break;case Lb.a.DOWN:P(1),e.preventDefault();break;case Lb.a.ESC:E(!1);break;case Lb.a.SPACE:case Lb.a.ENTER:null!==S&&g(S,e)}else[Lb.a.DOWN,Lb.a.SPACE,Lb.a.ENTER].includes(t)&&(E(!0),e.preventDefault())}},C));return s.createElement("div",{className:ob()("".concat(n,"-nav-operations"),d),style:u,ref:t},M,s.createElement(CW,{prefixCls:n,locale:i,editable:p}))})),UW=s.memo(BW,(function(e,t){return t.tabMoving})),HW=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.tab,i=o.key,a=o.label,l=o.disabled,c=o.closeIcon,u=o.icon,d=e.closable,p=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,m=e.onClick,g=e.onFocus,b=e.style,v="".concat(t,"-tab"),y=kW(d,c,h,l);function x(e){l||m(e)}var O=s.useMemo((function(){return u&&"string"===typeof a?s.createElement("span",null,a):a}),[a,u]),E=s.createElement("div",{key:i,"data-node-key":TW(i),className:ob()(v,Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},"".concat(v,"-with-remove"),y),"".concat(v,"-active"),r),"".concat(v,"-disabled"),l)),style:b,onClick:x},s.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(v,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Lb.a.SPACE,Lb.a.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:g},u&&s.createElement("span",{className:"".concat(v,"-icon")},u),a&&O),y&&s.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(v,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:i,event:t})}},c||h.removeIcon||"\xd7"));return p?p(E):E},zW=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-r)<1)return[s,l]}return[r,i]},GW=function(e,t){return e[t?0:1]},WW=s.forwardRef((function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,d=e.locale,p=e.tabPosition,f=e.tabBarGutter,h=e.children,m=e.onTabClick,g=e.onTabScroll,b=e.indicator,v=s.useContext(bW),y=v.prefixCls,x=v.tabs,O=Object(s.useRef)(null),E=Object(s.useRef)(null),w=Object(s.useRef)(null),j=Object(s.useRef)(null),S=Object(s.useRef)(null),T=Object(s.useRef)(null),k=Object(s.useRef)(null),C="top"===p||"bottom"===p,_=OW(0,(function(e,t){C&&g&&g({direction:e>t?"left":"right"})})),N=Object(Ip.a)(_,2),A=N[0],R=N[1],I=OW(0,(function(e,t){!C&&g&&g({direction:e>t?"top":"bottom"})})),P=Object(Ip.a)(I,2),D=P[0],L=P[1],M=Object(s.useState)([0,0]),F=Object(Ip.a)(M,2),$=F[0],B=F[1],U=Object(s.useState)([0,0]),H=Object(Ip.a)(U,2),z=H[0],G=H[1],W=Object(s.useState)([0,0]),V=Object(Ip.a)(W,2),q=V[0],K=V[1],Y=Object(s.useState)([0,0]),X=Object(Ip.a)(Y,2),Z=X[0],Q=X[1],J=function(e){var t=Object(s.useRef)([]),n=Object(s.useState)({}),r=Object(Ip.a)(n,2)[1],o=Object(s.useRef)("function"===typeof e?e():e),i=wW((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),i()}]}(new Map),ee=Object(Ip.a)(J,2),te=ee[0],ne=ee[1],re=function(e,t,n){return Object(s.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||xW,i=o.left+o.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||xW);var u=r.get(l)||Object(oo.a)({},c);u.right=i-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(x,te,z[0]),oe=GW($,C),ie=GW(z,C),ae=GW(q,C),se=GW(Z,C),le=Math.floor(oe)<Math.floor(ie+ae),ce=le?oe-se:oe-ae,ue="".concat(y,"-nav-operations-hidden"),de=0,pe=0;function fe(e){return e<de?de:e>pe?pe:e}C&&l?(de=0,pe=Math.max(0,ie-ce)):(de=Math.min(0,ce-ie),pe=0);var he=Object(s.useRef)(null),me=Object(s.useState)(),ge=Object(Ip.a)(me,2),be=ge[0],ve=ge[1];function ye(){ve(Date.now())}function xe(){he.current&&clearTimeout(he.current)}!function(e,t){var n=Object(s.useState)(),r=Object(Ip.a)(n,2),o=r[0],i=r[1],a=Object(s.useState)(0),l=Object(Ip.a)(a,2),c=l[0],u=l[1],d=Object(s.useState)(0),p=Object(Ip.a)(d,2),f=p[0],h=p[1],m=Object(s.useState)(),g=Object(Ip.a)(m,2),b=g[0],v=g[1],y=Object(s.useRef)(),x=Object(s.useRef)(),O=Object(s.useRef)(null);O.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(o){var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var s=r-o.x,l=a-o.y;t(s,l);var d=Date.now();u(d),h(d-c),v({x:s,y:l})}},onTouchEnd:function(){if(o&&(i(null),v(null),b)){var e=b.x/f,n=b.y/f,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var s=e,l=n;y.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(y.current):t(20*(s*=EW),20*(l*=EW))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===x.current?n:r:i>a?(o=n,x.current="x"):(o=r,x.current="y"),t(-o,-o)&&e.preventDefault()}},s.useEffect((function(){function t(e){O.current.onTouchMove(e)}function n(e){O.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){O.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){O.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return fe(e+t)}))}return!!le&&(C?n(R,e):n(L,t),xe(),ye(),!0)})),Object(s.useEffect)((function(){return xe(),be&&(he.current=setTimeout((function(){ve(0)}),100)),xe}),[be]);var Oe=function(e,t,n,r,o,i,a){var l,c,u,d=a.tabs,p=a.tabPosition,f=a.rtl;return["top","bottom"].includes(p)?(l="width",c=f?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),Object(s.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||jW;if(Math.floor(i[c]+i[l])>Math.floor(u+t)){r=o-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||jW)[c]<u){a=s+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,u,p,d.map((function(e){return e.key})).join("_"),f])}(re,ce,C?A:D,ie,ae,se,Object(oo.a)(Object(oo.a)({},e),{},{tabs:x})),Ee=Object(Ip.a)(Oe,2),we=Ee[0],je=Ee[1],Se=Object(hy.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(C){var n=A;l?t.right<A?n=t.right:t.right+t.width>A+ce&&(n=t.right+t.width-ce):t.left<-A?n=-t.left:t.left+t.width>-A+ce&&(n=-(t.left+t.width-ce)),L(0),R(fe(n))}else{var r=D;t.top<-D?r=-t.top:t.top+t.height>-D+ce&&(r=-(t.top+t.height-ce)),R(0),L(fe(r))}})),Te={};"top"===p||"bottom"===p?Te[l?"marginRight":"marginLeft"]=f:Te.marginTop=f;var ke=x.map((function(e,t){var n=e.key;return s.createElement(HW,{id:o,prefixCls:y,key:n,tab:e,style:0===t?void 0:Te,closable:e.closable,editable:u,active:n===a,renderWrapper:h,removeAriaLabel:null===d||void 0===d?void 0:d.removeAriaLabel,onClick:function(e){m(n,e)},onFocus:function(){Se(n),ye(),j.current&&(l||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),Ce=function(){return ne((function(){var e,t=new Map,n=null===(e=S.current)||void 0===e?void 0:e.getBoundingClientRect();return x.forEach((function(e){var r,o=e.key,i=null===(r=S.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(TW(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.left,u=a.top;return Math.abs(s-n)<1?[s,l,c-t.left,u-t.top]:[n,r,i,o]}(i,n),s=Object(Ip.a)(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(o,{width:l,height:c,left:u,top:d})}})),t}))};Object(s.useEffect)((function(){Ce()}),[x.map((function(e){return e.key})).join("_")]);var _e=wW((function(){var e=zW(O),t=zW(E),n=zW(w);B([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=zW(k);K(r);var o=zW(T);Q(o);var i=zW(S);G([i[0]-r[0],i[1]-r[1]]),Ce()})),Ne=x.slice(0,we),Ae=x.slice(je+1),Re=[].concat(Object(Dp.a)(Ne),Object(Dp.a)(Ae)),Ie=re.get(a),Pe=yW({activeTabOffset:Ie,horizontal:C,indicator:b,rtl:l}).style;Object(s.useEffect)((function(){Se()}),[a,de,pe,SW(Ie),SW(re),C]),Object(s.useEffect)((function(){_e()}),[l]);var De,Le,Me,Fe,$e=!!Re.length,Be="".concat(y,"-nav-wrap");return C?l?(Le=A>0,De=A!==pe):(De=A<0,Le=A!==de):(Me=D<0,Fe=D!==de),s.createElement(vW.a,{onResize:_e},s.createElement("div",{ref:Object(ly.d)(t,O),role:"tablist",className:ob()("".concat(y,"-nav"),n),style:r,onKeyDown:function(){ye()}},s.createElement(_W,{ref:E,position:"left",extra:c,prefixCls:y}),s.createElement(vW.a,{onResize:_e},s.createElement("div",{className:ob()(Be,Object(Pp.a)(Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},"".concat(Be,"-ping-left"),De),"".concat(Be,"-ping-right"),Le),"".concat(Be,"-ping-top"),Me),"".concat(Be,"-ping-bottom"),Fe)),ref:j},s.createElement(vW.a,{onResize:_e},s.createElement("div",{ref:S,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(D,"px)"),transition:be?"none":void 0}},ke,s.createElement(CW,{ref:k,prefixCls:y,locale:d,editable:u,style:Object(oo.a)(Object(oo.a)({},0===ke.length?void 0:Te),{},{visibility:$e?"hidden":null})}),s.createElement("div",{className:ob()("".concat(y,"-ink-bar"),Object(Pp.a)({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:Pe}))))),s.createElement(UW,Object(yn.a)({},e,{removeAriaLabel:null===d||void 0===d?void 0:d.removeAriaLabel,ref:T,prefixCls:y,tabs:Re,className:!$e&&ue,tabMoving:!!be})),s.createElement(_W,{ref:w,position:"right",extra:c,prefixCls:y})))})),VW=WW;var qW=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:ob()(n,a&&"".concat(n,"-active"),r),ref:t},c)})),KW=["renderTabBar"],YW=["label","key"];var XW=function(e){var t=e.renderTabBar,n=Object(Fp.a)(e,KW),r=s.useContext(bW).tabs;return t?t(Object(oo.a)(Object(oo.a)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Object(Fp.a)(e,YW);return s.createElement(qW,Object(yn.a)({tab:t,key:n,tabKey:n},r))}))}),VW):s.createElement(VW,n)},ZW=["key","forceRender","style","className","destroyInactiveTabPane"],QW=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=s.useContext(bW),l=a.prefixCls,c=a.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return s.createElement("div",{className:ob()("".concat(l,"-content-holder"))},s.createElement("div",{className:ob()("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Object(Pp.a)({},"".concat(l,"-content-animated"),u))},c.map((function(e){var o=e.key,a=e.forceRender,l=e.style,c=e.className,p=e.destroyInactiveTabPane,f=Object(Fp.a)(e,ZW),h=o===n;return s.createElement(Sg.c,Object(yn.a)({key:o,visible:h,forceRender:a,removeOnLeave:!(!i&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return s.createElement(qW,Object(yn.a)({},f,{prefixCls:d,id:t,tabKey:o,animated:u,active:h,style:Object(oo.a)(Object(oo.a)({},l),r),className:ob()(c,i),ref:n}))}))}))))};var JW=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],eV=0,tV=s.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,p=e.animated,f=e.tabPosition,h=void 0===f?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.more,x=e.destroyInactiveTabPane,O=e.renderTabBar,E=e.onChange,w=e.onTabClick,j=e.onTabScroll,S=e.getPopupContainer,T=e.popupClassName,k=e.indicator,C=Object(Fp.a)(e,JW),_=s.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===Object(mp.a)(e)&&"key"in e}))}),[a]),N="rtl"===l,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Object(oo.a)({inkBar:!0},"object"===Object(mp.a)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),R=Object(s.useState)(!1),I=Object(Ip.a)(R,2),P=I[0],D=I[1];Object(s.useEffect)((function(){D(Object(gW.a)())}),[]);var L=Object(rx.a)((function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),M=Object(Ip.a)(L,2),F=M[0],$=M[1],B=Object(s.useState)((function(){return _.findIndex((function(e){return e.key===F}))})),U=Object(Ip.a)(B,2),H=U[0],z=U[1];Object(s.useEffect)((function(){var e,t=_.findIndex((function(e){return e.key===F}));-1===t&&(t=Math.max(0,Math.min(H,_.length-1)),$(null===(e=_[t])||void 0===e?void 0:e.key));z(t)}),[_.map((function(e){return e.key})).join("_"),F,H]);var G=Object(rx.a)(null,{value:n}),W=Object(Ip.a)(G,2),V=W[0],q=W[1];Object(s.useEffect)((function(){n||(q("rc-tabs-".concat(eV)),eV+=1)}),[]);var K={id:V,activeKey:F,animated:A,tabPosition:h,rtl:N,mobile:P},Y=Object(oo.a)(Object(oo.a)({},K),{},{editable:d,locale:v,more:y,tabBarGutter:m,onTabClick:function(e,t){null===w||void 0===w||w(e,t);var n=e!==F;$(e),n&&(null===E||void 0===E||E(e))},onTabScroll:j,extra:b,style:g,panes:null,getPopupContainer:S,popupClassName:T,indicator:k});return s.createElement(bW.Provider,{value:{tabs:_,prefixCls:o}},s.createElement("div",Object(yn.a)({ref:t,id:n,className:ob()(o,"".concat(o,"-").concat(h),Object(Pp.a)(Object(Pp.a)(Object(Pp.a)({},"".concat(o,"-mobile"),P),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),N),i)},C),s.createElement(XW,Object(yn.a)({},Y,{renderTabBar:O})),s.createElement(QW,Object(yn.a)({destroyInactiveTabPane:x},K,{animated:A}))))}));var nV=tV;const rV={motionAppear:!1,motionEnter:!0,motionLeave:!0};var oV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iV={"slide-up":{inKeyframes:new Ph("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Ph("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Ph("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Ph("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Ph("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Ph("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Ph("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Ph("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},aV=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=iV[t];return[IE(r,o,i,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var sV=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[aV(e,"slide-up"),aV(e,"slide-down")]]};const lV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${hf(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:hf(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:hf(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${hf(e.borderRadiusLG)} 0 0 ${hf(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},cV=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},$g(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${hf(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Fg),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${hf(e.paddingXXS)} ${hf(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},uV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:hf(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${hf(e.borderRadius)} ${hf(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${hf(e.borderRadius)} ${hf(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${hf(e.borderRadius)} ${hf(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${hf(e.borderRadius)} 0 0 ${hf(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},pV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Hg(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},fV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:hf(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:hf(e.marginXS)},marginLeft:{_skip_check_:!0,value:hf(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},hV=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$g(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${hf(e.paddingXS)}`,background:"transparent",border:`${hf(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Hg(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),pV(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var mV=jv("Tabs",(e=>{const t=hv(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${hf(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${hf(e.horizontalItemGutter)}`});return[dV(t),fV(t),uV(t),cV(t),lV(t),hV(t),sV(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var gV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bV=e=>{var t,n,r,o,i,a,l,c,u,d,p;const{type:f,className:h,rootClassName:m,size:g,onEdit:b,hideAdd:v,centered:y,addIcon:x,removeIcon:O,moreIcon:E,more:w,popupClassName:j,children:S,items:T,animated:k,style:C,indicatorSize:_,indicator:N}=e,A=gV(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=A,{direction:I,tabs:P,getPrefixCls:D,getPopupContainer:L}=s.useContext(Ap),M=D("tabs",R),F=Zb(M),[$,B,U]=mV(M,F);let H;"editable-card"===f&&(H={onEdit:(e,t)=>{let{key:n,event:r}=t;null===b||void 0===b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!==O&&void 0!==O?O:null===P||void 0===P?void 0:P.removeIcon)&&void 0!==t?t:s.createElement(Tb,null),addIcon:(null!==x&&void 0!==x?x:null===P||void 0===P?void 0:P.addIcon)||s.createElement(mW,null),showAdd:!0!==v});const z=D();const G=wy(g),W=function(e,t){return e||function(e){return e.filter((e=>e))}(Object(jy.a)(t).map((e=>{if(s.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=oV(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(T,S),V=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},rV),{motionName:Ex(e,"switch")})),t}(M,k),q=Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),C),K={align:null!==(n=null===N||void 0===N?void 0:N.align)&&void 0!==n?n:null===(r=null===P||void 0===P?void 0:P.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(i=null!==(o=null===N||void 0===N?void 0:N.size)&&void 0!==o?o:_)&&void 0!==i?i:null===(a=null===P||void 0===P?void 0:P.indicator)||void 0===a?void 0:a.size)&&void 0!==l?l:null===P||void 0===P?void 0:P.indicatorSize};return $(s.createElement(nV,Object.assign({direction:I,getPopupContainer:L},A,{items:W,className:ob()({[`${M}-${G}`]:G,[`${M}-card`]:["card","editable-card"].includes(f),[`${M}-editable-card`]:"editable-card"===f,[`${M}-centered`]:y},null===P||void 0===P?void 0:P.className,h,m,B,U,F),popupClassName:ob()(j,B,U,F),style:q,editable:H,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(c=null===P||void 0===P?void 0:P.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null===P||void 0===P?void 0:P.moreIcon)&&void 0!==d?d:E)&&void 0!==p?p:s.createElement(pW,null),transitionName:`${z}-slide-up`},w),prefixCls:M,animated:V,indicator:K})))};bV.TabPane=()=>null;var vV=bV,yV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var xV=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=yV(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=s.useContext(Ap),a=i("card",t),l=ob()(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},o,{className:l}))};const OV=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${hf(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Fg),{[`\n          > ${n}-typography,\n          > ${n}-typography-edit-content\n        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${hf(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},EV=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n      ${hf(o)} 0 0 0 ${n},\n      0 ${hf(o)} 0 0 ${n},\n      ${hf(o)} ${hf(o)} 0 0 ${n},\n      ${hf(o)} 0 0 0 ${n} inset,\n      0 ${hf(o)} 0 0 ${n} inset;\n    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},wV=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${hf(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:hf(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:hf(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${hf(e.lineWidth)} ${e.lineType} ${i}`}}})},jV=e=>Object.assign(Object.assign({margin:`${hf(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Fg),"&-description":{color:e.colorTextDescription}}),SV=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${hf(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${hf(e.padding)} ${hf(n)}`}}},TV=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},kV=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},$g(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:OV(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:EV(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:wV(e),[`${t}-meta`]:jV(e)}),[`${t}-bordered`]:{border:`${hf(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${hf(e.borderRadiusLG)} ${hf(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:SV(e),[`${t}-loading`]:TV(e),[`${t}-rtl`]:{direction:"rtl"}}},CV=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${hf(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var _V=jv("Card",(e=>{const t=hv(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[kV(t),CV(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),NV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const AV=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return s.createElement("li",{style:{width:100/n.length+"%"},key:r},s.createElement("span",null,e))})))};var RV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var IV=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=RV(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(Ap),c=l("card",t),u=ob()(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,p=o?s.createElement("div",{className:`${c}-meta-title`},o):null,f=i?s.createElement("div",{className:`${c}-meta-description`},i):null,h=p||f?s.createElement("div",{className:`${c}-meta-detail`},p,f):null;return s.createElement("div",Object.assign({},a,{className:u}),d,h)};const PV=s.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:m,actions:g,tabList:b,children:v,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:O,hoverable:E,tabProps:w={},classNames:j,styles:S}=e,T=NV(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:k,direction:C,card:_}=s.useContext(Ap);const N=e=>{var t;return ob()(null===(t=null===_||void 0===_?void 0:_.classNames)||void 0===t?void 0:t[e],null===j||void 0===j?void 0:j[e])},A=e=>{var t;return Object.assign(Object.assign({},null===(t=null===_||void 0===_?void 0:_.styles)||void 0===t?void 0:t[e]),null===S||void 0===S?void 0:S[e])},R=s.useMemo((()=>{let e=!1;return s.Children.forEach(v,(t=>{(null===t||void 0===t?void 0:t.type)===xV&&(e=!0)})),e}),[v]),I=k("card",n),[P,D,L]=_V(I),M=s.createElement(cW,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),F=void 0!==y,$=Object.assign(Object.assign({},w),{[F?"activeKey":"defaultActiveKey"]:F?y:x,tabBarExtraContent:O});let B;const U=wy(f),H=U&&"default"!==U?U:"large",z=b?s.createElement(vV,Object.assign({size:H},$,{className:`${I}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map((e=>{var{tab:t}=e,n=NV(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||a||z){const e=ob()(`${I}-head`,N("header")),t=ob()(`${I}-head-title`,N("title")),n=ob()(`${I}-extra`,N("extra")),r=Object.assign(Object.assign({},l),A("header"));B=s.createElement("div",{className:e,style:r},s.createElement("div",{className:`${I}-head-wrapper`},u&&s.createElement("div",{className:t,style:A("title")},u),a&&s.createElement("div",{className:n,style:A("extra")},a)),z)}const G=ob()(`${I}-cover`,N("cover")),W=m?s.createElement("div",{className:G,style:A("cover")},m):null,V=ob()(`${I}-body`,N("body")),q=Object.assign(Object.assign({},c),A("body")),K=s.createElement("div",{className:V,style:q},d?M:v),Y=ob()(`${I}-actions`,N("actions")),X=(null===g||void 0===g?void 0:g.length)?s.createElement(AV,{actionClasses:Y,actionStyle:A("actions"),actions:g}):null,Z=Object(sy.a)(T,["onTabChange"]),Q=ob()(I,null===_||void 0===_?void 0:_.className,{[`${I}-loading`]:d,[`${I}-bordered`]:p,[`${I}-hoverable`]:E,[`${I}-contain-grid`]:R,[`${I}-contain-tabs`]:null===b||void 0===b?void 0:b.length,[`${I}-${U}`]:U,[`${I}-type-${h}`]:!!h,[`${I}-rtl`]:"rtl"===C},r,o,D,L),J=Object.assign(Object.assign({},null===_||void 0===_?void 0:_.style),i);return P(s.createElement("div",Object.assign({ref:t},Z,{className:Q,style:J}),B,W,K,X))}));PV.Grid=xV,PV.Meta=IV;var DV,LV=PV;function MV(e){return e.replace(/\n\n/g,"</p><p>")}let FV=ae("store")(DV=ee(DV=class extends s.Component{constructor(){super(...arguments),this.state={students:null,loading:!0,modalIsOpen:!1,historyModalIsOpen:!1,nestedModalIsOpen:!1,selectedStudent:null,selectedStudentHistories:null,selectedHistory:null},this.loadStudents=async()=>{const{store:e}=this.props,t={Authorization:`Bearer ${e.jwtToken}`};try{const e=await fetch("http://localhost:3080/api/user/get-students",{method:"GET",headers:t}),n=await e.json();this.setState({students:n.students||[],loading:!1})}catch(n){console.error("Failed to fetch students:",n),this.setState({loading:!1})}},this.getStudentHistories=async e=>{const{store:t}=this.props,n={Authorization:`Bearer ${t.jwtToken}`};try{const t=await fetch(`http://localhost:3080/api/user/get-student-histories/${e}`,{method:"GET",headers:n}),r=((await t.json()).histories||[]).sort(((e,t)=>new Date(t.createdAt)-new Date(e.createdAt)));this.setState({selectedStudentHistories:r})}catch(r){console.error("Failed to fetch student histories:",r)}},this.openModal=()=>{this.setState({modalIsOpen:!0})},this.closeModal=()=>{this.setState({modalIsOpen:!1})},this.openHistoryModal=e=>{this.setState({historyModalIsOpen:!0,selectedStudent:e},(()=>{this.getStudentHistories(e._id)}))},this.closeHistoryModal=()=>{this.setState({historyModalIsOpen:!1})},this.handleAddStudent=async e=>{const{store:t}=this.props,n={Authorization:`Bearer ${t.jwtToken}`,"Content-Type":"application/json"};try{const r=await t.api.post("/user/add-student",e,{headers:n});r&&201===r.status&&(this.setState((e=>({students:[...e.students,r.data.student],modalIsOpen:!1}))),ay.success({message:"Student Added",description:"The student has been added successfully."}))}catch(r){console.error("Failed to add student:",r),ay.error({message:"Error",description:"Failed to add student. Please try again."})}},this.openNestedModal=e=>{this.setState({nestedModalIsOpen:!0,selectedHistory:e})},this.closeNestedModal=()=>{this.setState({nestedModalIsOpen:!1})}}componentDidMount(){this.loadStudents()}render(){const{students:e,loading:t,modalIsOpen:n,historyModalIsOpen:r,nestedModalIsOpen:o,selectedStudent:i,selectedStudentHistories:a,selectedHistory:s}=this.state;if(t)return Object(Ht.jsx)(no,{});if(this.state.selectedHistory){console.log("Input:",JSON.stringify(this.state.selectedHistory.input,null,2));const e=MV(JSON.stringify(this.state.selectedHistory.input,null,2));console.log("Converted Input:",e)}return Object(Ht.jsxs)("div",{className:"container",children:[Object(Ht.jsxs)("div",{style:{textAlign:"center",width:"100%",marginBottom:"20px"},children:[" ",Object(Ht.jsx)("h2",{style:{fontSize:"2em",color:"#FFFFFF",padding:"0px 20px",borderRadius:"20px",backgroundColor:"#305f80",boxShadow:"0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23)",border:"1px solid #FFFFFF",margin:"20px 0",display:"inline-block",textAlign:"center"},children:"Your Students"})]}),Object(Ht.jsx)("div",{className:"students-list",style:{display:"flex",flexWrap:"wrap"},children:e&&e.length>0?e.map(((e,t)=>e?Object(Ht.jsxs)("div",{className:"bubble",onClick:()=>this.openHistoryModal(e),children:[e.firstName," ",e.lastNameInitial,"."]},t):null)):Object(Ht.jsx)("div",{style:{width:"100%",textAlign:"center",marginBottom:"20px"},children:"No students found. Click the button below to add students."})}),Object(Ht.jsx)(vO,{onClick:this.openModal,className:"button",children:Object(Ht.jsxs)("div",{style:{display:"inline-flex",alignItems:"center"},children:[Object(Ht.jsx)(FG,{className:"h-6 w-6 mr-2","aria-hidden":"true"}),"Add Student"]})}),Object(Ht.jsxs)(EG.a,{isOpen:n,onRequestClose:this.closeModal,contentLabel:"Add Student",children:[Object(Ht.jsx)("div",{className:"close-button",children:Object(Ht.jsx)(vO,{onClick:this.closeModal,children:"Close"})}),Object(Ht.jsx)("h2",{children:"Add a New Student"}),Object(Ht.jsxs)(Mj,{onFinish:this.handleAddStudent,children:[Object(Ht.jsx)(Mj.Item,{name:"firstName",rules:[{required:!0,message:"Please input the first name!"}],children:Object(Ht.jsx)(QS,{placeholder:"First Name"})}),Object(Ht.jsx)(Mj.Item,{name:"lastNameInitial",rules:[{required:!0,message:"Please input the last name initial!"}],children:Object(Ht.jsx)(QS,{placeholder:"Last Name Initial",maxLength:1})}),Object(Ht.jsxs)(Mj.Item,{children:[Object(Ht.jsx)(vO,{type:"primary",htmlType:"submit",children:"Add"}),Object(Ht.jsx)(vO,{onClick:this.closeModal,children:"Cancel"})]})]}),Object(Ht.jsx)(vO,{onClick:this.closeModal,children:"Close"})," "]}),Object(Ht.jsxs)(EG.a,{isOpen:r,onRequestClose:this.closeHistoryModal,contentLabel:"Student Histories",children:[Object(Ht.jsx)("div",{className:"close-button",children:Object(Ht.jsx)(vO,{onClick:this.closeHistoryModal,children:"Close"})}),Object(Ht.jsx)("h2",{className:"modal-title",children:i?`${i.firstName} ${i.lastNameInitial}'s Essays`:""}),a?a.map(((e,t)=>{const n=e.api.split("/").pop();let r=e.input.split("QUESTION:")[1]||"";r=r.split(" ").slice(0,10).join(" "),console.log(e.output);let o=e.output.match(/Final score:\s*([\s\S]*?)(\n|$)/);return o=o&&o[1].trim()||"",console.log("Score is: ",o),Object(Ht.jsxs)(LV,{title:`${n} - ${new Date(e.created).toLocaleDateString()}`,className:"card",extra:Object(Ht.jsx)("a",{href:"#",className:"card-extra",onClick:()=>this.openNestedModal(e),children:"More"}),style:{width:350,margin:"10px"},children:[Object(Ht.jsx)("p",{children:r}),Object(Ht.jsx)("p",{children:o})]},t)})):Object(Ht.jsx)(no,{}),Object(Ht.jsxs)(EG.a,{isOpen:o,onRequestClose:this.closeNestedModal,contentLabel:"History Details",children:[Object(Ht.jsx)("div",{className:"close-button",children:Object(Ht.jsx)(vO,{onClick:this.closeNestedModal,children:"Back"})}),s&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsxs)("div",{className:"section-container",children:[Object(Ht.jsx)("div",{className:"section-title",children:"Essay"}),Object(Ht.jsx)("div",{className:"section-content",dangerouslySetInnerHTML:{__html:MV(s.input)}})]}),Object(Ht.jsxs)("div",{className:"section-container",children:[Object(Ht.jsx)("div",{className:"section-title",children:"Feedback & Score"}),Object(Ht.jsx)("div",{className:"section-content",dangerouslySetInnerHTML:{__html:MV(s.output)}})]})]})]})]})]})}})||DV)||DV;var $V,BV=FV;let UV=ae("store")($V=ee($V=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/OCR",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(zV,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(GV,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(WV,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(HV,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(zV,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": OCR Marking Assistants"]})}),Object(Ht.jsx)(GV,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(WV,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(HV,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||$V)||$V;const HV=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),zV=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},GV=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},WV=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var VV,qV=UV;let KV=ae("store")(VV=ee(VV=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ocralevel",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(XV,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(ZV,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(QV,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(YV,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(XV,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level English"}),": OCR Marking Assistants"]})}),Object(Ht.jsx)(ZV,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(QV,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(YV,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||VV)||VV;const YV=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),XV=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},ZV=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},QV=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var JV,eq=KV;let tq=ae("store")(JV=ee(JV=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ocrecon",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(rq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(oq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(iq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(nq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(rq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Economics"}),": Marking Assistants"]})}),Object(Ht.jsx)(oq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(iq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(nq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||JV)||JV;const nq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),rq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},oq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},iq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var aq,sq=tq;let lq=ae("store")(aq=ee(aq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ocralevelhist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(uq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(dq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(pq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(cq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(uq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level History"}),": OCR A Level Marking Assistants"]})}),Object(Ht.jsx)(dq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(pq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(cq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||aq)||aq;const cq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),uq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},dq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},pq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var fq,hq=lq;let mq=ae("store")(fq=ee(fq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ocrhist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(bq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(vq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(yq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(gq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(bq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE History"}),": OCR GCSE Marking Assistants"]})}),Object(Ht.jsx)(vq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(yq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(gq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||fq)||fq;const gq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),bq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},vq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},yq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var xq,Oq=mq;let Eq=ae("store")(xq=ee(xq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/rsocr",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(jq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Sq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Tq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(wq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(jq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Religious Studies"}),": OCR GCSE Marking Assistants"]})}),Object(Ht.jsx)(Sq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Tq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(wq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||xq)||xq;const wq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),jq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Sq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Tq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var kq,Cq=Eq;let _q=ae("store")(kq=ee(kq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/poledex",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Aq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Rq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Iq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Nq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Aq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Politics"}),": Edexcel A Level Marking Assistants"]})}),Object(Ht.jsx)(Rq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Iq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Nq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||kq)||kq;const Nq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Aq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Rq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Iq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Pq,Dq=_q;let Lq=ae("store")(Pq=ee(Pq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqars",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Fq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)($q,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(Bq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Mq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Fq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Religious Studies"}),": AQA GCSE Marking Assistants"]})}),Object(Ht.jsx)($q,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(Bq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Mq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Pq)||Pq;const Mq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Fq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},$q=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},Bq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Uq,Hq=Lq;let zq=ae("store")(Uq=ee(Uq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ibenglishlang",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Wq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Vq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(qq,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Gq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Wq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IB English A, Literature & Language"}),": Marking Assistants"]})}),Object(Ht.jsx)(Vq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(qq,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Gq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Uq)||Uq;const Gq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Wq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Vq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},qq=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var Kq,Yq=zq;let Xq=ae("store")(Kq=ee(Kq=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/wjec",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Qq,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(Jq,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(eK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(Zq,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(Qq,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"WJEC English"}),": WJEC GCSE Marking Assistants"]})}),Object(Ht.jsx)(Jq,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(eK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(Zq,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||Kq)||Kq;const Zq=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),Qq=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},Jq=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},eK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var tK,nK=Xq;let rK=ae("store")(tK=ee(tK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/busaqa",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)("div",{children:"Loading..."});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(iK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(aK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(sK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(oK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(iK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Business Studies"}),": AQA GCSE Marking Assistants"]})}),Object(Ht.jsx)(aK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(sK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(oK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||tK)||tK;const oK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),iK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},aK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},sK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var lK,cK=rK;let uK=ae("store")(lK=ee(lK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexbus",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(pK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(fK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(hK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(dK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(pK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Business Studies"}),": Edexcel GCSE Marking Assistants"]})}),Object(Ht.jsx)(fK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(hK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(dK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||lK)||lK;const dK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),pK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},fK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},hK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var mK,gK=uK;let bK=ae("store")(mK=ee(mK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/busedex",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(yK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(xK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(OK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(vK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(yK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Business Studies"}),": Edexcel A Level Marking Assistants"]})}),Object(Ht.jsx)(xK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(OK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(vK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||mK)||mK;const vK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),yK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},xK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},OK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var EK,wK=bK;let jK=ae("store")(EK=ee(EK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/geogedex",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(TK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(kK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(CK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(SK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(TK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level Geography"}),": Edexcel Marking Assistants"]})}),Object(Ht.jsx)(kK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(CK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(SK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||EK)||EK;const SK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),TK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},kK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},CK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var _K,NK=jK;let AK=ae("store")(_K=ee(_K=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/rs",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(IK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(PK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(DK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(RK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(IK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Religious Studies"}),": Edexcel GCSE Marking Assistants"]})}),Object(Ht.jsx)(PK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(DK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(RK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||_K)||_K;const RK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),IK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},PK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},DK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var LK,MK=AK;let FK=ae("store")(LK=ee(LK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqabus",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(BK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(UK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(HK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)($K,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(BK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Business Studies"}),": AQA Marking Assistants"]})}),Object(Ht.jsx)(UK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(HK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)($K,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||LK)||LK;const $K=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),BK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},UK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},HK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var zK,GK=FK;let WK=ae("store")(zK=ee(zK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqadrama",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(qK,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(KK,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(YK,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(VK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(qK,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Drama"}),": Marking Assistants"]})}),Object(Ht.jsx)(KK,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(YK,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(VK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||zK)||zK;const VK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),qK=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},KK=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},YK=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var XK,ZK=WK;let QK=ae("store")(XK=ee(XK=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/histedex",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(eY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(tY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(nY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(JK,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(eY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level History"}),": Edexcel A Level Marking Assistants"]})}),Object(Ht.jsx)(tY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(nY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(JK,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||XK)||XK;const JK=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),eY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},tY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},nY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var rY,oY=QK;let iY=ae("store")(rY=ee(rY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/engedex",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(sY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(lY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(cY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(aY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(sY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level English"}),": Edexcel Marking Assistants"]})}),Object(Ht.jsx)(lY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(cY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(aY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||rY)||rY;const aY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),sY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},lY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},cY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var uY,dY=iY;let pY=ae("store")(uY=ee(uY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/eduqasalevel",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(hY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(mY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(gY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(fY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(hY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level English"}),": Eduqas Marking Assistants"]})}),Object(Ht.jsx)(mY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(gY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(fY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||uY)||uY;const fY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),hY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},mY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},gY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var bY,vY=pY;let yY=ae("store")(bY=ee(bY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ccea",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(OY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(EY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(wY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(xY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(OY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": CCEA GCSE Marking Assistants"]})}),Object(Ht.jsx)(EY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(wY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(xY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||bY)||bY;const xY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),OY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},EY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},wY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var jY,SY=yY;let TY=ae("store")(jY=ee(jY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/KS2",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(CY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(_Y,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(NY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(kY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(CY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"KS2 English Language"}),": Marking Assistants"]})}),Object(Ht.jsx)(_Y,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(NY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(kY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||jY)||jY;const kY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),CY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},_Y=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},NY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var AY,RY=TY;let IY=ae("store")(AY=ee(AY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/SPEC",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(DY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(LY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(MY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(PY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(DY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"NCFE"}),": Spectator Events Marking Assistants"]})}),Object(Ht.jsx)(LY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(MY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(PY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||AY)||AY;const PY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),DY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},LY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},MY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var FY,$Y=IY;let BY=ae("store")(FY=ee(FY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ciesoc",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(HY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(zY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(GY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(UY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(HY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"CIE A Level & AS Level Sociology"}),": CIE A Level Marking Assistants"]})}),Object(Ht.jsx)(zY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(GY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(UY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||FY)||FY;const UY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),HY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},zY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},GY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var WY,VY=BY;let qY=ae("store")(WY=ee(WY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/cielang",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(YY,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(XY,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(ZY,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(KY,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(YY,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level English Language"}),": CIE Marking Assistants"]})}),Object(Ht.jsx)(XY,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(ZY,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(KY,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||WY)||WY;const KY=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),YY=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},XY=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},ZY=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var QY,JY=qY;let eX=ae("store")(QY=ee(QY=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ocrpsych",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(nX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(rX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(oX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(tX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(nX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"OCR A Level & AS Level Psychology"}),": OCR A Level Marking Assistants"]})}),Object(Ht.jsx)(rX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(oX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(tX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||QY)||QY;const tX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),nX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},rX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},oX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-yellow-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var iX,aX=eX;let sX=ae("store")(iX=ee(iX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqasoc",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(cX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(uX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(dX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(lX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(cX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"AQA A Level & AS Level Sociology"}),": AQA A Level Marking Assistants"]})}),Object(Ht.jsx)(uX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(dX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(lX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||iX)||iX;const lX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),cX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},uX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},dX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var pX,fX=sX;let hX=ae("store")(pX=ee(pX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/geogocr",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(gX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(bX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(vX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(mX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(gX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Geography"}),": OCR A Level Marking Assistants"]})}),Object(Ht.jsx)(bX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(vX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(mX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||pX)||pX;const mX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),gX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},bX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},vX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var yX,xX=hX;let OX=ae("store")(yX=ee(yX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/sococr",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(wX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(jX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(SX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(EX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(wX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Sociology"}),": OCR Marking Assistants"]})}),Object(Ht.jsx)(jX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(SX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(EX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||yX)||yX;const EX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),wX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},jX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},SX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-pink-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var TX,kX=OX;let CX=ae("store")(TX=ee(TX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexihist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(NX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(AX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(RX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(_X,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(NX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IGCSE History"}),": Edexcel Marking Assistants"]})}),Object(Ht.jsx)(AX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(RX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(_X,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||TX)||TX;const _X=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),NX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},AX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},RX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-red-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var IX,PX=CX;let DX=ae("store")(IX=ee(IX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqaphilo",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(MX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(FX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)($X,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(LX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(MX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level Philosophy"}),": AQA Marking Assistants"]})}),Object(Ht.jsx)(FX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)($X,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(LX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||IX)||IX;const LX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),MX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},FX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},$X=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${i||"green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var BX,UX=DX;let HX=ae("store")(BX=ee(BX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexpsych",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(GX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(WX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(VX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(zX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(GX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level Psychology"}),": Edexcel A Level Marking Assistants"]})}),Object(Ht.jsx)(WX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(VX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(zX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||BX)||BX;const zX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),GX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},WX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},VX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-purple-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var qX,KX=HX;let YX=ae("store")(qX=ee(qX=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ciehist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ZX,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(QX,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(JX,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(XX,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ZX,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"KS3 English Language"}),": Marking Assistants"]})}),Object(Ht.jsx)(QX,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(JX,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(XX,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||qX)||qX;const XX=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),ZX=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},QX=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},JX=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var eZ,tZ=YX;let nZ=ae("store")(eZ=ee(eZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/wjecsoc",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)("div",{children:"Loading..."});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(oZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(iZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(aZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(rZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(oZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"WJEC A Level & AS Level Sociology"}),": WJEC A Level Marking Assistants"]})}),Object(Ht.jsx)(iZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(aZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(rZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||eZ)||eZ;const rZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),oZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},iZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},aZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var sZ,lZ=nZ;let cZ=ae("store")(sZ=ee(sZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexgeog",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(dZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(pZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(fZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(uZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(dZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE Geography"}),": Edexcel GCSE Marking Assistants"]})}),Object(Ht.jsx)(pZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(fZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(uZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||sZ)||sZ;const uZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),dZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},pZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},fZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-yellow-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var hZ,mZ=cZ;let gZ=ae("store")(hZ=ee(hZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/eduqashist",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(yZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(xZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(bZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE History"}),": Eduqas GCSE Marking Assistants"]})}),Object(Ht.jsx)(yZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(xZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(bZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||hZ)||hZ;const bZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),vZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},yZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},xZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var OZ,EZ=gZ;let wZ=ae("store")(OZ=ee(OZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/aqapsych",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(SZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(TZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(kZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(jZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(SZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level & AS Level Psychology"}),": AQA A Level Marking Assistants"]})}),Object(Ht.jsx)(TZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(kZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(jZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||OZ)||OZ;const jZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),SZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},TZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},kZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var CZ,_Z=wZ;let NZ=ae("store")(CZ=ee(CZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/edexeng",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(RZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(IZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(PZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(AZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(RZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"GCSE English"}),": Edexcel GCSE Marking Assistants"]})}),Object(Ht.jsx)(IZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(PZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(AZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||CZ)||CZ;const AZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),RZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},IZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},PZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-green-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var DZ,LZ=NZ;let MZ=ae("store")(DZ=ee(DZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/ielts",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)($Z,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(BZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(UZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(FZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)($Z,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"IELTS"}),": Marking Assistants"]})}),Object(Ht.jsx)(BZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(UZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(FZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||DZ)||DZ;const FZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),$Z=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},BZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},UZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var HZ,zZ=MZ;let GZ=ae("store")(HZ=ee(HZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/hkdse",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(VZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(qZ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(KZ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(WZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(VZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"HKDSE English"}),": HKDSE Marking Assistants"]})}),Object(Ht.jsx)(qZ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(KZ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(WZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||HZ)||HZ;const WZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),VZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},qZ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},KZ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var YZ,XZ=GZ;let ZZ=ae("store")(YZ=ee(YZ=class extends s.Component{constructor(){super(...arguments),this.state={tools:[],loading:!0}}async componentDidMount(){try{const e=await fetch("https://app.topmarks.ai/api/user/tools/oet",{headers:{Authorization:`Bearer ${this.props.store.jwtToken}`}}),t=await e.json(),n=[{_id:"handwritingtool",title:"Turn Handwritten Scripts into Text!",category:"Experimental",description:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",image:"handwriting.png"},...t];this.setState({tools:n,loading:!1})}catch(e){console.error("Failed to fetch tools:",e),this.setState({loading:!1})}}render(){const{tools:e,loading:t}=this.state;if(t)return Object(Ht.jsx)(no,{});const n=e.find((e=>"handwritingtool"===e._id)),r=e.filter((e=>"handwritingtool"!==e._id));return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12",children:[n&&Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(JZ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(eQ,{children:Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:LT,alt:n.title,className:"tool-image"}),Object(Ht.jsx)(tQ,{category:n.category,title:n.title,to:n._id,desc:n.description,fromColor:n.fromColor,toColor:n.toColor})]})}),Object(Ht.jsx)(QZ,{})]}),r.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(JZ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"OET"}),": Marking Assistants"]})}),Object(Ht.jsx)(eQ,{children:r.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[Object(Ht.jsx)("img",{src:`/${e.image||"default.png"}`,alt:e.title,className:"tool-image"})," ",Object(Ht.jsx)(tQ,{category:e.category,title:e.title,to:e._id,desc:e.description,fromColor:e.fromColor,toColor:e.toColor,isHandwritingTool:!1},t)]},t)))}),Object(Ht.jsx)(QZ,{})]}):Object(Ht.jsx)("div",{children:"No tools available"})]})]})}})||YZ)||YZ;const QZ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),JZ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},eQ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},tQ=e=>{let{category:t,title:n,desc:r,to:o,fromColor:i,toColor:a,isHandwritingTool:s}=e;return console.log("Tool ID in Tool component:",o),Object(Ht.jsx)(Tr,{to:`/writing/${o}`,className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105 hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm ${s?`text-${i}`:"text-blue-500"} font-semibold leading-none`,children:t}),Object(Ht.jsx)("div",{className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsx)("p",{className:"mt-1 pr-1 text-sm",children:r})]})})})};var nQ,rQ,oQ=ZZ,iQ=(n.p,n.p,n.p,n.p+"static/media/ocrengone.a4354929.png"),aQ=n.p+"static/media/ocrengtwo.a2b3961f.png";n.p;let sQ=ae("store")(nQ=ee((rQ=class extends s.Component{get permissions(){return this.props.store.tools.filter((e=>e.permissions.some((e=>this.props.store.profile.permissions.includes(e)))))}get beta(){return this.permissions.filter((e=>"Beta"===e.category))}get experimental(){return[...this.permissions.filter((e=>"Experimental"===e.category)),{title:"Turn Handwritten Scripts into Text!",category:"Experimental",to:"/writing/handwritingtool",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",Icon:null}]}get examPaperGenerators(){return this.permissions.filter((e=>"ExamPaperGenerators"===e.category))}get generators(){return this.permissions.filter((e=>"Generators"===e.category))}get AQA(){return this.permissions.filter((e=>"AQA"===e.category))}get OCRhand(){return this.permissions.filter((e=>"OCRhand"===e.category))}get pareto(){return this.permissions.filter((e=>"pareto"===e.category))}get OCRbatch(){return this.permissions.filter((e=>"OCRbatch"===e.category))}get OCRword(){return this.permissions.filter((e=>"OCRword"===e.category))}get handwriting(){return this.permissions.filter((e=>"Handwriting"===e.category))}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 ",children:[this.experimental.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(cQ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(uQ,{children:this.experimental.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[0===t||1===t||2===t||3===t||4===t||5===t||6===t||7===t||8===t?Object(Ht.jsx)("img",{src:LT,alt:e.title,className:"tool-image"}):null,Object(Ht.jsx)(dQ,{group:e.category,title:e.title,to:e.to,Icon:e.Icon,desc:e.desc,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(lQ,{})]}):null,this.pareto.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(cQ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"Pareto"}),": Demo Marking Tools"]})}),Object(Ht.jsx)(uQ,{children:this.pareto.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[0===t||1===t||2===t||3===t?Object(Ht.jsx)("img",{src:aQ,alt:e.title,className:"tool-image"}):4===t||5===t?Object(Ht.jsx)("img",{src:DT,alt:e.title,className:"tool-image"}):6===t||7===t?Object(Ht.jsx)("img",{src:PT,alt:e.title,className:"tool-image"}):8===t||9===t||10===t||11===t?Object(Ht.jsx)("img",{src:iQ,alt:e.title,className:"tool-image"}):12===t||13===t||14===t||15===t||16===t||17===t?Object(Ht.jsx)("img",{src:aQ,alt:e.title,className:"tool-image"}):null,Object(Ht.jsx)(dQ,{group:e.category,title:e.title,to:e.to,Icon:e.Icon,desc:e.desc,fromColor:e.fromColor,toColor:e.toColor})]},t)))}),Object(Ht.jsx)(lQ,{})]}):null]})]})}},le(rQ.prototype,"permissions",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"permissions"),rQ.prototype),le(rQ.prototype,"beta",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"beta"),rQ.prototype),le(rQ.prototype,"experimental",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"experimental"),rQ.prototype),le(rQ.prototype,"examPaperGenerators",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"examPaperGenerators"),rQ.prototype),le(rQ.prototype,"generators",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"generators"),rQ.prototype),le(rQ.prototype,"AQA",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"AQA"),rQ.prototype),le(rQ.prototype,"OCRhand",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"OCRhand"),rQ.prototype),le(rQ.prototype,"pareto",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"pareto"),rQ.prototype),le(rQ.prototype,"OCRbatch",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"OCRbatch"),rQ.prototype),le(rQ.prototype,"OCRword",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"OCRword"),rQ.prototype),le(rQ.prototype,"handwriting",[p.g],Object.getOwnPropertyDescriptor(rQ.prototype,"handwriting"),rQ.prototype),nQ=rQ))||nQ)||nQ;const lQ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[" ",Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),cQ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},uQ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},dQ=e=>{let{Icon:t,title:n,desc:r,to:o,group:i,fromColor:a,toColor:s}=e;return Object(Ht.jsx)(Tr,{to:o||"/",className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105  hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${a||"green-500"} font-semibold leading-none`,children:i||"New"}),Object(Ht.jsx)("div",{href:"#",className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsxs)("p",{className:"mt-1 pr-1 text-sm ",children:[r," "]})]})})})};var pQ,fQ,hQ=sQ,mQ=n.p+"static/media/create.62572612.png";let gQ=ae("store")(pQ=ee((fQ=class extends s.Component{get permissions(){return this.props.store.tools.filter((e=>e.permissions.some((e=>this.props.store.profile.permissions.includes(e)))))}get beta(){return this.permissions.filter((e=>"Beta"===e.category))}get experimental(){return[...this.permissions.filter((e=>"Experimental"===e.category)),{title:"Turn Handwritten Scripts into Text!",category:"Experimental",to:"/writing/handwritingtool",desc:"Use this tool to convert PDFs of handwritten scripts into fully editable text (that we can then mark!).",fromColor:"blue-400",toColor:"blue-600",Icon:null}]}get examPaperGenerators(){return this.permissions.filter((e=>"ExamPaperGenerators"===e.category))}get generators(){return this.permissions.filter((e=>"Generators"===e.category))}get ks2multi(){return this.permissions.filter((e=>"ks2multi"===e.category))}get ks2hand(){return this.permissions.filter((e=>"ks2hand"===e.category))}get eaton(){return this.permissions.filter((e=>"eaton"===e.category))}get ks2batch(){return this.permissions.filter((e=>"ks2batch"===e.category))}get ks2englang(){return this.permissions.filter((e=>"KS2"===e.category))}get handwriting(){return this.permissions.filter((e=>"Handwriting"===e.category))}render(){return Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(ro.a,{children:Object(Ht.jsx)("title",{children:"Tools - Exam Paper Autopilot"})}),Object(Ht.jsxs)($r,{className:"px-4 py-4 md:px-28 md:py-8 lg:py-12 ",children:[this.experimental.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vQ,{title:Object(Ht.jsx)("p",{children:Object(Ht.jsx)("b",{children:"Turn Handwritten Work into Editable Text"})})}),Object(Ht.jsx)(yQ,{children:this.experimental.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[0===t||1===t||2===t||3===t||4===t||5===t||6===t||7===t||8===t?Object(Ht.jsx)("img",{src:LT,alt:e.title,className:"tool-image"}):null,Object(Ht.jsx)(xQ,{group:e.category,title:e.title,to:e.to,Icon:e.Icon,desc:e.desc,fromColor:e.fromColor,toColor:e.toColor},t)]},t)))}),Object(Ht.jsx)(bQ,{})]}):null,this.eaton.length?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsx)(vQ,{title:Object(Ht.jsxs)("p",{children:[Object(Ht.jsx)("b",{children:"A Level English"}),": Eduqas Marking Assistants"]})}),Object(Ht.jsx)(yQ,{children:this.eaton.map(((e,t)=>Object(Ht.jsxs)("div",{className:"tool-container",children:[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===t||16===t||17===t||18===t||19===t||20===t||21===t||22===t||23===t||24===t||25===t||26===t||27===t||28===t||29===t||30===t?Object(Ht.jsx)("img",{src:mQ,alt:e.title,className:"tool-image"}):null,Object(Ht.jsx)(xQ,{group:e.category,title:e.title,to:e.to,Icon:e.Icon,desc:e.desc,fromColor:e.fromColor,toColor:e.toColor})]},t)))}),Object(Ht.jsx)(bQ,{})]}):null]})]})}},le(fQ.prototype,"permissions",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"permissions"),fQ.prototype),le(fQ.prototype,"beta",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"beta"),fQ.prototype),le(fQ.prototype,"experimental",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"experimental"),fQ.prototype),le(fQ.prototype,"examPaperGenerators",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"examPaperGenerators"),fQ.prototype),le(fQ.prototype,"generators",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"generators"),fQ.prototype),le(fQ.prototype,"ks2multi",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"ks2multi"),fQ.prototype),le(fQ.prototype,"ks2hand",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"ks2hand"),fQ.prototype),le(fQ.prototype,"eaton",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"eaton"),fQ.prototype),le(fQ.prototype,"ks2batch",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"ks2batch"),fQ.prototype),le(fQ.prototype,"ks2englang",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"ks2englang"),fQ.prototype),le(fQ.prototype,"handwriting",[p.g],Object.getOwnPropertyDescriptor(fQ.prototype,"handwriting"),fQ.prototype),pQ=fQ))||pQ)||pQ;const bQ=()=>Object(Ht.jsxs)("div",{className:"divide-y-2 divide-dashed divide-gray-300 py-8 md:py-12",children:[" ",Object(Ht.jsx)("div",{}),Object(Ht.jsx)("div",{})]}),vQ=e=>{let{title:t}=e;return Object(Ht.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl text-gray-700 mb-4 md:mb-6",children:t})},yQ=e=>{let{children:t}=e;return Object(Ht.jsx)("div",{className:"grid grid-cols-1 gap-8 mt-4 lg:grid-cols-2 xl:grid-cols-3 ",children:t})},xQ=e=>{let{Icon:t,title:n,desc:r,to:o,group:i,fromColor:a,toColor:s}=e;return Object(Ht.jsx)(Tr,{to:o||"/",className:"flex relative ",children:Object(Ht.jsx)("div",{className:"bg-white flex-1 rounded-xl transition hover:shadow-md overflow-hidden md:max-w-1lg text-gray-500 cursor-pointer border border-gray-300 md:flex relative transform hover:scale-105  hover:text-black",children:Object(Ht.jsxs)("div",{className:"p-4",children:[Object(Ht.jsx)("div",{className:`uppercase tracking-wide text-sm text-${a||"green-500"} font-semibold leading-none`,children:i||"New"}),Object(Ht.jsx)("div",{href:"#",className:"block text-lg xl:text-xl 2xl:text-2xl leading-tight font-medium text-black leading-none",children:n}),Object(Ht.jsxs)("p",{className:"mt-1 pr-1 text-sm ",children:[r," "]})]})})})};var OQ=gQ;n(520);var EQ,wQ=br(ae("store")(ee((e=>{let{store:t,history:n}=e;return Object(Ht.jsxs)("div",{className:"email-verification",children:[Object(Ht.jsx)("h2",{style:{color:"#1890ff",textAlign:"center",fontSize:"2em",fontWeight:"bold"},children:"We Need To Verify Your Email!"}),Object(Ht.jsx)("p",{children:"We sent a verification email to your inbox upon signup. Can't find it? Take a peek in your spam folder, it might be hiding there."}),Object(Ht.jsx)("p",{children:"No luck? No worries! Simply click the button below, and we'll send you another one right away."}),Object(Ht.jsx)(vO,{type:"primary",onClick:async()=>{try{if(t.profile&&t.profile.email){const e=t.profile.email,n=await t.api.post("/user/resend-verification-email",{email:e});console.log(n.data),alert("Verification email has been sent successfully.")}else console.error("User's email is undefined.")}catch(e){console.error(e),alert("An error occurred while sending the verification email. Please try again later.")}},children:"Resend Verification Email"}),Object(Ht.jsx)("p",{style:{marginTop:"2em",fontSize:"1em",textAlign:"center"},children:"If you have just verified your account and are still seeing this message, you may need to log out, then log back in again."}),Object(Ht.jsx)(vO,{type:"default",onClick:async()=>{try{await t.handleLogout(),n.push("/login")}catch(e){console.error(e),alert("An error occurred while logging out. Please try again later.")}},children:"Log Out"})]})})))),jQ=n(122),SQ=n.n(jQ);n(521);window.store||(window.store=new mn);var TQ=ee(EQ=class extends s.Component{constructor(e){super(e),this.toggleModal=()=>{this.setState((e=>({showModal:!e.showModal})))},this.state={showModal:!1}}componentDidMount(){const e={token:SQ.a.get("token"),profile:SQ.a.get("profile")};e.profile&&e.token&&window.store.loginWithDataTokenAndProfile(e)}render(){const{showModal:e}=this.state;return Object(Ht.jsx)(d.a,{theme:bn.a,children:Object(Ht.jsx)(oe,{store:window.store,children:Object(Ht.jsxs)(xr,{children:[window.store.redirect?Object(Ht.jsx)(ar,{to:window.store.redirect}):null,window.store.isLoggedIn?Object(Ht.jsx)(Ht.Fragment,{children:window.store.profile.status?Object(Ht.jsxs)(Ht.Fragment,{children:[Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{path:"/writing/document",children:Object(Ht.jsx)("div",{})}),Object(Ht.jsx)(ur,{component:Yr})]}),Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{path:"/",exact:!0,component:Yd}),Object(Ht.jsx)(ur,{path:"/dashboard",exact:!0,component:Yd}),Object(Ht.jsx)(ur,{path:"/search",exact:!0,component:Zd}),Object(Ht.jsx)(ur,{path:"/ai/",render:t=>Object(Ht.jsx)(tB,{...t,showModal:e,toggleModal:this.toggleModal})}),Object(Ht.jsx)(ur,{path:"/my-profile",component:PU}),Object(Ht.jsx)(ur,{path:"/signup/failed",component:PU}),Object(Ht.jsx)(ur,{path:"/signup/success",component:HU}),Object(Ht.jsx)(ur,{path:"/login/success",component:HU}),Object(Ht.jsx)(ur,{path:"/verify",exact:!0,component:nT}),Object(Ht.jsx)(ur,{path:"/payment-details",exact:!0,component:IT}),Object(Ht.jsx)(ur,{path:"/handwriting",exact:!0,component:zt}),Object(Ht.jsx)(ur,{path:"/handwritingtool",exact:!0,component:mH}),Object(Ht.jsx)(ur,{path:"/writing/handwritingtool",exact:!0,component:mH}),Object(Ht.jsx)(ur,{path:"/aqa-english",exact:!0,component:_H}),Object(Ht.jsx)(ur,{path:"/cantab-english",exact:!0,component:LH}),Object(Ht.jsx)(ur,{path:"/edexcel-english",exact:!0,component:XH}),Object(Ht.jsx)(ur,{path:"/edexcel-history",exact:!0,component:rz}),Object(Ht.jsx)(ur,{path:"/edexcel-rs",exact:!0,component:MK}),Object(Ht.jsx)(ur,{path:"/aqa-rs",exact:!0,component:Hq}),Object(Ht.jsx)(ur,{path:"/eduqas-english",exact:!0,component:uz}),Object(Ht.jsx)(ur,{path:"/edexcel-economics",exact:!0,component:bz}),Object(Ht.jsx)(ur,{path:"/ks3-language",exact:!0,component:jz}),Object(Ht.jsx)(ur,{path:"/english-edexcel",exact:!0,component:LZ}),Object(Ht.jsx)(ur,{path:"/edu-history",exact:!0,component:EZ}),Object(Ht.jsx)(ur,{path:"/spectator-two",exact:!0,component:$Y}),Object(Ht.jsx)(ur,{path:"/oet",exact:!0,component:oQ}),Object(Ht.jsx)(ur,{path:"/email-verification",exact:!0,component:wQ}),Object(Ht.jsx)(ur,{path:"/english-aqa",exact:!0,component:Az}),Object(Ht.jsx)(ur,{path:"/ib-english",exact:!0,component:Fz}),Object(Ht.jsx)(ur,{path:"/cie-soc",exact:!0,component:VY}),Object(Ht.jsx)(ur,{path:"/cie-english",exact:!0,component:JY}),Object(Ht.jsx)(ur,{path:"/edex-geog",exact:!0,component:mZ}),Object(Ht.jsx)(ur,{path:"/edex-geogi",exact:!0,component:EH}),Object(Ht.jsx)(ur,{path:"/pol-edex",exact:!0,component:Dq}),Object(Ht.jsx)(ur,{path:"/geog-edex",exact:!0,component:NK}),Object(Ht.jsx)(ur,{path:"/ib-englishlang",exact:!0,component:Yq}),Object(Ht.jsx)(ur,{path:"/wjec-english",exact:!0,component:nK}),Object(Ht.jsx)(ur,{path:"/psych-ocr",exact:!0,component:aX}),Object(Ht.jsx)(ur,{path:"/soc-aqa",exact:!0,component:fX}),Object(Ht.jsx)(ur,{path:"/aqa-drama",exact:!0,component:ZK}),Object(Ht.jsx)(ur,{path:"/aqa-geog",exact:!0,component:pG}),Object(Ht.jsx)(ur,{path:"/aqa-bus",exact:!0,component:GK}),Object(Ht.jsx)(ur,{path:"/bus-aqa",exact:!0,component:cK}),Object(Ht.jsx)(ur,{path:"/wjec-soc",exact:!0,component:lZ}),Object(Ht.jsx)(ur,{path:"/geog-ocr",exact:!0,component:xX}),Object(Ht.jsx)(ur,{path:"/edexcel-ihistory",exact:!0,component:PX}),Object(Ht.jsx)(ur,{path:"/history-aqa",exact:!0,component:vG}),Object(Ht.jsx)(ur,{path:"/soc-ocr",exact:!0,component:kX}),Object(Ht.jsx)(ur,{path:"/cie-hist",exact:!0,component:tZ}),Object(Ht.jsx)(ur,{path:"/ib-history",exact:!0,component:Wz}),Object(Ht.jsx)(ur,{path:"/eng-myp",exact:!0,component:Qz}),Object(Ht.jsx)(ur,{path:"/aqa-history",exact:!0,component:iG}),Object(Ht.jsx)(ur,{path:"/history",exact:!0,component:AG}),Object(Ht.jsx)(ur,{path:"/global-pol",exact:!0,component:MG}),Object(Ht.jsx)(ur,{path:"/students",exact:!0,component:BV}),Object(Ht.jsx)(ur,{path:"/ocr-english",exact:!0,component:qV}),Object(Ht.jsx)(ur,{path:"/ocr-rs",exact:!0,component:Cq}),Object(Ht.jsx)(ur,{path:"/english-ocr",exact:!0,component:eq}),Object(Ht.jsx)(ur,{path:"/history-ocr",exact:!0,component:hq}),Object(Ht.jsx)(ur,{path:"/edex-english",exact:!0,component:dY}),Object(Ht.jsx)(ur,{path:"/ocr-history",exact:!0,component:Oq}),Object(Ht.jsx)(ur,{path:"/aqa-philosophy",exact:!0,component:UX}),Object(Ht.jsx)(ur,{path:"/ocr-economics",exact:!0,component:sq}),Object(Ht.jsx)(ur,{path:"/english-eduqas",exact:!0,component:vY}),Object(Ht.jsx)(ur,{path:"/english-ccea",exact:!0,component:SY}),Object(Ht.jsx)(ur,{path:"/english-ks2",exact:!0,component:RY}),Object(Ht.jsx)(ur,{path:"/cantab-history",exact:!0,component:zH}),Object(Ht.jsx)(ur,{path:"/psych-edex",exact:!0,component:KX}),Object(Ht.jsx)(ur,{path:"/ielts",exact:!0,component:zZ}),Object(Ht.jsx)(ur,{path:"/hkdse",exact:!0,component:XZ}),Object(Ht.jsx)(ur,{path:"/history-edexcel",exact:!0,component:oY}),Object(Ht.jsx)(ur,{path:"/psych-aqa",exact:!0,component:_Z}),Object(Ht.jsx)(ur,{path:"/bus-edex",exact:!0,component:wK}),Object(Ht.jsx)(ur,{path:"/edex-bus",exact:!0,component:gK}),Object(Ht.jsx)(ur,{path:"/pareto",exact:!0,component:hQ}),Object(Ht.jsx)(ur,{path:"/eaton",exact:!0,component:OQ}),Object(Ht.jsx)(ur,{path:"/writing/:id",component:vB}),Object(Ht.jsx)(ur,{path:"/writing/:id(hand)",component:vB}),Object(Ht.jsx)(ur,{path:"/writing/:id(batch)",component:vB}),Object(Ht.jsx)(ur,{path:"/writing/:id(word)",component:vB}),Object(Ht.jsx)(ur,{path:"/writing/:id(zip)",component:vB})]}),Object(Ht.jsx)(I$,{config:Gt,showModal:e,closeModal:this.toggleModal,onEntered:()=>console.log("config",Gt)})]}):Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{path:"/signup/success",component:HU}),Object(Ht.jsx)(ur,{children:Object(Ht.jsx)(pp,{})})]})})}):Object(Ht.jsx)(Ht.Fragment,{children:Object(Ht.jsxs)(gr,{children:[Object(Ht.jsx)(ur,{path:"/",exact:!0,children:Object(Ht.jsx)(ar,{to:"/login"})}),Object(Ht.jsx)(ur,{path:"/forgotPassword",exact:!0,children:Object(Ht.jsx)(qU,{})}),Object(Ht.jsx)(ur,{path:"/reset-password",exact:!0,children:Object(Ht.jsx)(XU,{})}),Object(Ht.jsx)(ur,{path:"/",component:FB})]})})]})})})}})||EQ;var kQ=e=>{e&&e instanceof Function&&n.e(1).then(n.bind(null,541)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))};u.a.render(Object(Ht.jsx)(l.a.StrictMode,{children:Object(Ht.jsx)(TQ,{})}),document.getElementById("root")),kQ()}]);
//# sourceMappingURL=main.06df306a.js.map