pxt-core 13.2.17 → 13.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! For license information please see main.9894b09b.js.LICENSE.txt */
2
- (()=>{var e={46(e,t,n){"use strict";var r=n(5550)(),i=n(1061)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},71(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)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s,l,c={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(s,n);var r,a=o(s);function s(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o=a.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(n);c[e]=r}function d(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,i){var o,a,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(0,4)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(o," ").concat(d(t,"type"))}return l+". Received type ".concat(r(i))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(3575));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(6362)),s(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=c},225(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(543),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)f.push(String(v));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||f.push(String(g));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!i.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},465(e,t,n){"use strict";e.exports=n(1923)},543(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},690(e,t,n){"use strict";var r=n(7375),i=n(9460),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},757(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1e3(e,t,n){"use strict";var r=n(6806),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===i.call(s)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},1016(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1061(e,t,n){"use strict";var r=n(7375),i=n(3629),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},1157(e,t,n){"use strict";var r=n(7839),i=n(3175)(),o=n(1061),a=Object,s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var u=a(arguments[o]),d=r(u),f=i&&(Object.getOwnPropertySymbols||c);if(f)for(var p=f(u),h=0;h<p.length;++h){var m=p[h];l(u,m)&&s(d,m)}for(var v=0;v<d.length;++v){var g=d[v];if(l(u,g)){var y=u[g];n[g]=y}}}return n}},1173(e,t,n){"use strict";e.exports=n(5636)},1253(e,t,n){"use strict";var r,i,o,a,s=n(3705);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var d=null,f=null,p=function(){if(null!==d)try{var e=t.unstable_now();d(!0,e),d=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==d?setTimeout(r,0,e):(d=e,setTimeout(p,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.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 v&&s.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,y=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?S.postMessage(null):(g=!1,y=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){y=e,g||(g=!0,S.postMessage(null))},i=function(e,n){b=h(function(){e(t.unstable_now())},n)},o=function(){m(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+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[o]=n,r=o);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 P=[],I=[],A=1,O=null,j=3,N=!1,M=!1,R=!1;function L(e){for(var t=C(I);null!==t;){if(null===t.callback)_(I);else{if(!(t.startTime<=e))break;_(I),t.sortIndex=t.expirationTime,k(P,t)}t=C(I)}}function D(e){if(R=!1,L(e),!M)if(null!==C(P))M=!0,r(F);else{var t=C(I);null!==t&&i(D,t.startTime-e)}}function F(e,n){M=!1,R&&(R=!1,o()),N=!0;var r=j;try{for(L(n),O=C(P);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,j=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?O.callback=s:O===C(P)&&_(P),L(n)}else _(P);O=C(P)}if(null!==O)var l=!0;else{var c=C(I);null!==c&&i(D,c.startTime-n),l=!1}return l}finally{O=null,j=r,N=!1}}var B=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(){M||N||(M=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<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:A++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(I,e),null===C(P)&&e===C(I)&&(R?o():R=!0,i(D,a-s))):(e.sortIndex=l,k(P,e),M||N||(M=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},1264(e){"use strict";e.exports=Function.prototype.apply},1338(e,t,n){"use strict";var r=n(4961);e.exports=function(e){return!!r(e)}},1555(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1581(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},1596(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1619(e){"use strict";e.exports=URIError},1923(e,t,n){"use strict";n(8898);var r=n(1173),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("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,o={},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)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},2155(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6989);e.exports=o.call(r,i)},2938(e){"use strict";e.exports=Math.max},3110(e,t,n){"use strict";var r=n(6989),i=n(1264),o=n(7858),a=n(6265);e.exports=a||r.call(o,i)},3123(e){"use strict";e.exports=EvalError},3175(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3500(e,t,n){"use strict";var r=n(3705),i=n(1173),o=n(8898),a=n(5664);function s(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(!i)throw Error(s(227));var l=new Set,c={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===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]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){y[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];y[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){y[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){y[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){y[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){y[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){y[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){y[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){y[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.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||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,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(b,w);y[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(b,w);y[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(b,w);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,k=60106,C=60107,_=60108,T=60114,P=60109,I=60110,A=60112,O=60113,j=60120,N=60115,M=60116,R=60121,L=60128,D=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;S=U("react.element"),k=U("react.portal"),C=U("react.fragment"),_=U("react.strict_mode"),T=U("react.profiler"),P=U("react.provider"),I=U("react.context"),A=U("react.forward_ref"),O=U("react.suspense"),j=U("react.suspense_list"),N=U("react.memo"),M=U("react.lazy"),R=U("react.block"),U("react.scope"),L=U("react.opaque.id"),D=U("react.debug_trace_mode"),F=U("react.offscreen"),B=U("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function H(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function W(e,t){if(!e||q)return"";q=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function G(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function X(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 C:return"Fragment";case k:return"Portal";case T:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case R:return X(e._render);case M:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(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 te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(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 ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=Y(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,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(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&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(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 de(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"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 ve(e,t)})}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach(function(e){we.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]})});var Se=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 ke(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Ce(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 _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Pe=null,Ie=null;function Ae(e){if(e=ri(e)){if("function"!=typeof Te)throw Error(s(280));var t=e.stateNode;t&&(t=oi(t),Te(e.stateNode,e.type,t))}}function Oe(e){Pe?Ie?Ie.push(e):Ie=[e]:Pe=e}function je(){if(Pe){var e=Pe,t=Ie;if(Ie=Pe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ne(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var Le=Ne,De=!1,Fe=!1;function Be(){null===Pe&&null===Ie||(Re(),je())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=oi(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(s(231,t,typeof n));return n}var ze=!1;if(f)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function $e(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var He=!1,qe=null,We=!1,Ge=null,Xe={onError:function(e){He=!0,qe=e}};function Ye(e,t,n,r,i,o,a,s,l){He=!1,qe=null,$e.apply(Xe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(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 Je(e){if(Ke(e)!==e)throw Error(s(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(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,it,ot=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,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 vt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&null!==(t=ri(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ni(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void it(e.lanePriority,function(){a.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 yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function Et(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==lt&&xt(lt,e),null!==ct&&xt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)gt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ct={},_t={};function Tt(e){if(Ct[e])return Ct[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return Ct[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Pt=Tt("animationend"),It=Tt("animationiteration"),At=Tt("animationstart"),Ot=Tt("transitionend"),jt=new Map,Nt=new Map,Mt=["abort","abort",Pt,"animationEnd",It,"animationIteration",At,"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",Ot,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Nt.set(r,t),jt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Lt=8;function Dt(e){if(1&e)return Lt=15,1;if(2&e)return Lt=14,2;if(4&e)return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):32&e?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):256&e?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):4096&e?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):134217728&e?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):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,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Lt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Lt):0!==(s&=o)&&(r=Dt(s),i=Lt)}else 0!==(o=n&~a)?(r=Dt(o),i=Lt):0!==s&&(r=Dt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Dt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function Bt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ut(10,t):e;case 10:return 0===(e=zt(192&~t))?Ut(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Wt|0)|0},qt=Math.log,Wt=Math.LN2,Gt=a.unstable_UserBlockingPriority,Xt=a.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){De||Re();var i=Jt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||Be()}}function Qt(e,t,n,r){Xt(Gt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=!(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var o=Zt(e,t,n,r);if(null===o)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return lt=vt(lt,e,t,n,r,i),!0;case"mouseover":return ct=vt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,vt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dt.set(o,vt(dt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;mt(e,r)}Rr(e,t,r,null,n)}}}function Zt(e,t,n,r){var i=_e(r);if(null!==(i=ni(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Rr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.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,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.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,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(fn),hn=o({},fn,{view:0,detail:0}),mn=ln(hn),vn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,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}}),gn=ln(vn),yn=ln(o({},vn,{dataTransfer:0})),bn=ln(o({},hn,{relatedTarget:0})),wn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=ln(xn),Sn=ln(o({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Pn(){return Tn}var In=o({},hn,{key:function(e){if(e.key){var t=kn[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?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,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}}),An=ln(In),On=ln(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Nn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=o({},vn,{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}),Rn=ln(Mn),Ln=[9,13,27,32],Dn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var Bn=f&&"TextEvent"in window&&!Fn,Un=f&&(!Dn||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Vn=!1;function $n(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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Xn(e,t,n,r){Oe(r),0<(t=Dr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Kn=null;function Qn(e){Ir(e,0)}function Jn(e){if(J(ii(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Yn&&(Yn.detachEvent("onpropertychange",or),Kn=Yn=null)}function or(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];if(Xn(t,Kn,e,_e(e)),e=Qn,De)e(t);else{De=!0;try{Ne(e,t)}finally{De=!1,Be()}}}}function ar(e,t,n){"focusin"===e?(ir(),Kn=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function lr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(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 fr(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 pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function 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 vr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,Er=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==br||br!==Z(r)||(r="selectionStart"in(r=br)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&fr(xr,r)||(xr=r,0<(r=Dr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Rt("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),Rt("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),Rt(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<kr.length;Cr++)Nt.set(kr[Cr],0);d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Pr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,l,c){if(Ye.apply(this,arguments),He){if(!He)throw Error(s(198));var u=qe;He=!1,qe=null,We||(We=!0,Ge=u)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=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!==o&&i.isPropagationStopped())break e;Pr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Pr(i,s,c),o=l}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Ar(e,t){var n=ai(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Or]||(e[Or]=!0,l.forEach(function(t){Tr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)}))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Tr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Mr(o,e,i,t),a.add(s))}function Mr(e,t,n,r){var i=Nt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,i){var o=r;if(!(1&t||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===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ni(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{return Le(e,t,n)}finally{Fe=!1,Be()}}(function(){var r=o,i=_e(n),a=[];e:{var s=jt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Pt:case It:case At:l=wn;break;case Ot:l=Nn;break;case"scroll":l=mn;break;case"wheel":l=Rn;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=On}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ue(h,f))&&u.push(Lr(h,m,p))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!ni(c)&&!c[ei])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ni(c):null)&&(c!==(d=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ii(l),p=null==c?s:ii(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,ni(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Fr(p))h++;for(p=0,m=f;m;m=Fr(m))p++;for(;0<h-p;)u=Fr(u),h--;for(;0<p-h;)f=Fr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Fr(u),f=Fr(f)}u=null}else u=null;null!==l&&Br(a,s,l,u,!1),null!==c&&null!==d&&Br(a,d,c,u,!0)}if("select"===(l=(s=r?ii(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Zn;else if(Gn(s))if(er)v=cr;else{v=sr;var g=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=lr);switch(v&&(v=v(e,r))?Xn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&oe(s,"number",s.value)),g=r?ii(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(br=g,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Sr(a,n,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Un&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,qn=!0)),0<(g=Dr(r,b)).length&&(b=new Sn(b,e,null,n,i),a.push({event:b,listeners:g}),(y||null!==(y=Hn(n)))&&(b.data=y))),(y=Bn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Vn=!0,zn);case"textInput":return(e=t.data)===zn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&$n(e,t)?(e=rn(),nn=tn=en=null,qn=!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 Un&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Dr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Ir(a,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ue(e,n))&&r.unshift(Lr(e,o,i)),null!=(o=Ue(e,t))&&r.push(Lr(e,o,i))),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 Br(e,t,n,r,i){for(var o=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,i?null!=(l=Ue(n,o))&&a.unshift(Lr(n,l,s)):i||null!=(l=Ue(n,o))&&a.push(Lr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Ur(){}var zr=null,Vr=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function Gr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Xr(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 Kr=0,Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,Zr="__reactProps$"+Qr,ei="__reactContainer$"+Qr,ti="__reactEvents$"+Qr;function ni(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Jr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Jr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function oi(e){return e[Zr]||null}function ai(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var si=[],li=-1;function ci(e){return{current:e}}function ui(e){0>li||(e.current=si[li],si[li]=null,li--)}function di(e,t){li++,si[li]=e.current,e.current=t}var fi={},pi=ci(fi),hi=ci(!1),mi=fi;function vi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ui(hi),ui(pi)}function bi(e,t,n){if(pi.current!==fi)throw Error(s(168));di(pi,t),di(hi,n)}function wi(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(s(108,X(t)||"Unknown",i));return o({},n,r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,mi=pi.current,di(pi,e),di(hi,hi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=wi(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(pi),di(pi,e)):ui(hi),di(hi,n)}var Si=null,ki=null,Ci=a.unstable_runWithPriority,_i=a.unstable_scheduleCallback,Ti=a.unstable_cancelCallback,Pi=a.unstable_shouldYield,Ii=a.unstable_requestPaint,Ai=a.unstable_now,Oi=a.unstable_getCurrentPriorityLevel,ji=a.unstable_ImmediatePriority,Ni=a.unstable_UserBlockingPriority,Mi=a.unstable_NormalPriority,Ri=a.unstable_LowPriority,Li=a.unstable_IdlePriority,Di={},Fi=void 0!==Ii?Ii:function(){},Bi=null,Ui=null,zi=!1,Vi=Ai(),$i=1e4>Vi?Ai:function(){return Ai()-Vi};function Hi(){switch(Oi()){case ji:return 99;case Ni:return 98;case Mi:return 97;case Ri:return 96;case Li:return 95;default:throw Error(s(332))}}function qi(e){switch(e){case 99:return ji;case 98:return Ni;case 97:return Mi;case 96:return Ri;case 95:return Li;default:throw Error(s(332))}}function Wi(e,t){return e=qi(e),Ci(e,t)}function Gi(e,t,n){return e=qi(e),_i(e,t,n)}function Xi(){if(null!==Ui){var e=Ui;Ui=null,Ti(e)}Yi()}function Yi(){if(!zi&&null!==Bi){zi=!0;var e=0;try{var t=Bi;Wi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),_i(ji,Xi),t}finally{zi=!1}}}var Ki=E.ReactCurrentBatchConfig;function Qi(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 Ji=ci(null),Zi=null,eo=null,to=null;function no(){to=eo=Zi=null}function ro(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function io(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 oo(e,t){Zi=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function ao(e,t){if(to!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Zi)throw Error(s(308));eo=t,Zi.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var so=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(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 uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(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 po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=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===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var i=e.updateQueue;so=!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 f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(f=i.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=m.payload)?h.call(p,f,l):h)||void 0===l)break e;f=o({},f,l);break e;case 2:so=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,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=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Bs|=s,e.lanes=s,e.memoizedState=f}}function mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var vo=(new i.Component).refs;function go(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 yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),o=uo(r,i);o.payload=t,null!=n&&(o.callback=n),fo(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),o=uo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),fo(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=dl(e),i=uo(n,r);i.tag=2,null!=t&&(i.callback=t),fo(e,i),fl(e,r,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&fr(n,r)&&fr(i,o))}function wo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=ao(o):(i=gi(t)?mi:pi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?vi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function xo(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&&yo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vo,lo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ao(o):(o=gi(t)?mi:pi.current,i.context=vi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function ko(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(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===vo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _o(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 i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(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 a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=ql(n.type,n.key,n.props,null,e.mode,r)).ref=ko(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=Yl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=ql(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case k:return(t=Yl(t,e.mode,n)).return=e,t}if(So(t)||$(t))return(t=Wl(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===C?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null}if(So(n)||$(n))return null!==i?null:d(e,t,n,r,null);Co(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(So(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);Co(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach(function(e){return t(i,e)}),c}function v(i,a,l,c){var u=$(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,m=a,v=a=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),a=o(b,a,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,c))&&(a=o(y,a,v),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),a=o(y,a,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===C&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case S:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===C){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===C?((r=Wl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=ql(o.type,o.key,o.props,null,e.mode,l)).ref=ko(e,r,o),l.return=e,e=l)}return a(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yl(o,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Xl(o,e.mode,l)).return=e,e=r),a(e);if(So(o))return m(e,r,o,l);if($(o))return v(e,r,o,l);if(u&&Co(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,X(e.type)||"Component"))}return n(e,r)}}var To=_o(!0),Po=_o(!1),Io={},Ao=ci(Io),Oo=ci(Io),jo=ci(Io);function No(e){if(e===Io)throw Error(s(174));return e}function Mo(e,t){switch(di(jo,t),di(Oo,e),di(Ao,Io),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)}ui(Ao),di(Ao,t)}function Ro(){ui(Ao),ui(Oo),ui(jo)}function Lo(e){No(jo.current);var t=No(Ao.current),n=he(t,e.type);t!==n&&(di(Oo,e),di(Ao,n))}function Do(e){Oo.current===e&&(ui(Ao),ui(Oo))}var Fo=ci(0);function Bo(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(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 Uo=null,zo=null,Vo=!1;function $o(e,t){var n=Vl(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 Ho(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 qo(e){if(Vo){var t=zo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Xr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Vo=!1,void(Uo=e);$o(Uo,n)}Uo=e,zo=Xr(t.firstChild)}else e.flags=-1025&e.flags|2,Vo=!1,Uo=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uo=e}function Go(e){if(e!==Uo)return!1;if(!Vo)return Wo(e),Vo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=zo;t;)$o(e,t),t=Xr(t.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zo=Xr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zo=null}}else zo=Uo?Xr(e.stateNode.nextSibling):null;return!0}function Xo(){zo=Uo=null,Vo=!1}var Yo=[];function Ko(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Qo=E.ReactCurrentDispatcher,Jo=E.ReactCurrentBatchConfig,Zo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(s(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,i,o){if(Zo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Na:Ma,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(s(301));o+=1,na=ta=null,t.updateQueue=null,Qo.current=Ra,e=n(r,i)}while(ia)}if(Qo.current=ja,t=null!==ta&&null!==ta.next,Zo=0,na=ta=ea=null,ra=!1,t)throw Error(s(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(s(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(s(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,c=i;do{var u=c.lane;if((Zo&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?(a=l=d,o=r):l=l.next=d,ea.lanes|=u,Bs|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=a,ur(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);ur(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(t._workInProgressVersionPrimary=r,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(s(350))}function ha(e,t,n,r){var i=Os;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Qo.current,c=l.useState(function(){return pa(i,t,n)}),u=c[1],d=c[0];c=na;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var v=ea;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!ur(a,e)){e=n(t._source),ur(d,e)||(u(e),e=dl(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-Ht(s),c=1<<l;r[l]|=e,s&=~c}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=dl(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Oa.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=pa(i,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function va(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=Oa.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function wa(e,t,n,r){var i=la();ea.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,o,r)}ea.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function Ea(e,t){return wa(516,4,e,t)}function Sa(e,t){return xa(516,4,e,t)}function ka(e,t){return xa(4,2,e,t)}function Ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _a(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Ca.bind(null,t,e),n)}function Ta(){}function Pa(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 Ia(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 Aa(e,t){var n=Hi();Wi(98>n?98:n,function(){e(!0)}),Wi(97<n?97:n,function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}})}function Oa(e,t,n){var r=ul(),i=dl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=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(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(e){}fl(e,i,r)}}var ja={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Na={readContext:ao,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(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=Oa.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:va,useDebugValue:Ta,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return Ea(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ya(e=Aa.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(Vo){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(s(355))}),n=va(t)[1];return!(2&ea.mode)&&(ea.flags|=516,ga(5,function(){n("r:"+(Kr++).toString(36))},void 0,null)),t}return va(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ao,useCallback:Pa,useContext:ao,useEffect:Sa,useImperativeHandle:_a,useLayoutEffect:ka,useMemo:Ia,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Ra={readContext:ao,useCallback:Pa,useContext:ao,useEffect:Sa,useImperativeHandle:_a,useLayoutEffect:ka,useMemo:Ia,useReducer:fa,useRef:ba,useState:function(){return fa(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return Sa(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=fa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},La=E.ReactCurrentOwner,Da=!1;function Fa(e,t,n,r){t.child=null===e?Po(t,null,n,r):To(t,e.child,n,r)}function Ba(e,t,n,r,i){n=n.render;var o=t.ref;return oo(t,i),r=sa(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Fa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function Ua(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||$l(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ql(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(i,r)&&e.ref===t.ref)?rs(e,t,o):(t.flags|=1,(e=Hl(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,i,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(o&i))return t.lanes=e.lanes,rs(e,t,o);16384&e.flags&&(Da=!0)}return Ha(e,t,n,r,o)}function Va(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wl(t,e),null;t.memoizedState={baseLanes:0},wl(t,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},wl(t,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,wl(t,r);return Fa(e,t,i,n),t.child}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,i){var o=gi(n)?mi:pi.current;return o=vi(t,o),oo(t,i),n=sa(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Fa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function qa(e,t,n,r,i){if(gi(n)){var o=!0;xi(t)}else o=!1;if(oo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wo(t,n,r),Eo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?ao(c):vi(t,c=gi(n)?mi:pi.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)&&xo(t,a,r,c),so=!1;var f=t.memoizedState;a.state=f,ho(t,r,a,i),l=t.memoizedState,s!==r||f!==l||hi.current||so?("function"==typeof u&&(go(t,n,u,r),l=t.memoizedState),(s=so||bo(t,n,s,r,f,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,co(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qi(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ao(l):vi(t,l=gi(n)?mi:pi.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&xo(t,a,r,l),so=!1,f=t.memoizedState,a.state=f,ho(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||hi.current||so?("function"==typeof p&&(go(t,n,p,r),h=t.memoizedState),(c=so||bo(t,n,c,r,f,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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,o,i)}function Wa(e,t,n,r,i,o){$a(e,t);var a=!!(64&t.flags);if(!r&&!a)return i&&Ei(t,n,!1),rs(e,t,o);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=To(t,e.child,null,o),t.child=To(t,null,s,o)):Fa(e,t,s,o),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Mo(e,t.containerInfo)}var Xa,Ya,Ka,Qa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,i=t.pendingProps,o=Fo.current,a=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),di(Fo,1&o),null===e?(void 0!==i.fallback&&qo(t),e=i.children,o=i.fallback,a?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,e):"number"==typeof i.unstable_expectedLoadTime?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,t.lanes=33554432,e):((n=Gl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===a?n=Hl(a,s):((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),null!==e?r=Hl(e,r):(r=Wl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Qa,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),!(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}(e,t,i.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},2&i||null===o?o=Gl(t,i,0,null):(o.childLanes=0,o.pendingProps=t),n=Wl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),io(e.return,t)}function ts(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ns(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fa(e,t,r.children,n),2&(r=Fo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(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(di(Fo,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ts(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ts(t,!0,n,null,o,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!Vo)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 os(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 gi(t.type)&&yi(),null;case 3:return Ro(),ui(hi),ui(pi),Ko(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Do(t);var i=No(jo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=No(Ao.current),Go(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Jr]=t,r[Zr]=a,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":te(r,a),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ar("invalid",r);break;case"textarea":ce(r,a),Ar("invalid",r)}for(var l in ke(n,a),e=null,a)a.hasOwnProperty(l)&&(i=a[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):c.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Ar("scroll",r));switch(n){case"input":Q(r),ie(r,a,!0);break;case"textarea":Q(r),de(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Xa(e,t),t.stateNode=e,l=Ce(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Ar(_r[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Ar("invalid",e);break;case"option":i=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":ce(e,r),i=le(e,r),Ar("invalid",e);break;default:i=r}ke(n,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var d=u[a];"style"===a?Ee(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===a?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(c.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Ar("scroll",e):null!=d&&x(e,a,d,l))}switch(n){case"input":Q(e),ie(e,r,!1);break;case"textarea":Q(e),de(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?se(e,!!r.multiple,a,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Ur)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=No(jo.current),No(Ao.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ui(Fo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Fo.current?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Os||!(134217727&Bs)&&!(134217727&Us)||vl(Os,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Ro(),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ui(Fo),null===(r=t.memoizedState))return null;if(a=!!(64&t.flags),null===(l=r.rendering))if(a)is(r,!1);else{if(0!==Ls||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(l=Bo(e))){for(t.flags|=64,is(r,!1),null!==(a=l.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return di(Fo,1&Fo.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Hs&&(t.flags|=64,a=!0,is(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Bo(l))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Vo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,a=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=Fo.current,di(Fo,a?1&t|2:1&t),n):null;case 23:case 24:return xl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ro(),ui(hi),ui(pi),Ko(),64&(t=e.flags))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Do(e),null;case 13:return ui(Fo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Fo),null;case 4:return Ro(),null;case 10:return ro(e),null;case 23:case 24:return xl(),null;default:return null}}function ss(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ls(e,t){try{r.error(t.value)}catch(e){setTimeout(function(){throw e})}}Xa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,No(Ao.current);var a,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=ae(e,i),r=ae(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Ur)}for(d in ke(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var l=i[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(c.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(l=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==l&&(null!=u||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[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,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(c.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Ar("scroll",e),s||l===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var cs="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Ys=r),ls(0,t)},n}function ds(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ls(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function hs(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:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(s(163))}function ms(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&~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 i=e;r=i.next,!!(4&(i=i.tag))&&!!(1&i)&&(Rl(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:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mo(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}mo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(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(s(163))}function vs(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 i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}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 gs(e,t){if(ki&&"function"==typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(Si,t)}catch(e){}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,i=r.destroy;if(r=r.tag,void 0!==i)if(4&r)Rl(t,n);else{r=t;try{i()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ps(t);break;case 4:Ss(e,t)}}function ys(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 bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(s(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(s(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(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?xs(e,n,t):Es(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?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=Ur));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Es(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,c=l;;)if(gs(a,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?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.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&~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 i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ce(e,i),t=Ce(e,r),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Ee(n,l):"dangerouslySetInnerHTML"===a?ge(n,l):"children"===a?ye(n,l):x(n,a,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?se(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(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&&($s=$i(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach(function(t){var r=Ul.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 Ts=Math.ceil,Ps=E.ReactCurrentDispatcher,Is=E.ReactCurrentOwner,As=0,Os=null,js=null,Ns=0,Ms=0,Rs=ci(0),Ls=0,Ds=null,Fs=0,Bs=0,Us=0,zs=0,Vs=null,$s=0,Hs=1/0;function qs(){Hs=$i()+500}var Ws,Gs=null,Xs=!1,Ys=null,Ks=null,Qs=!1,Js=null,Zs=90,el=[],tl=[],nl=null,rl=0,il=null,ol=-1,al=0,sl=0,ll=null,cl=!1;function ul(){return 48&As?$i():-1!==ol?ol:ol=$i()}function dl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Hi()?1:2;if(0===al&&(al=Fs),0!==Ki.transition){0!==sl&&(sl=null!==Vs?Vs.pendingLanes:0),e=al;var t=4186112&~sl;return 0===(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Hi(),e=Ut(4&As&&98===e?12: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),al)}function fl(e,t,n){if(50<rl)throw rl=0,il=null,Error(s(185));if(null===(e=pl(e,t)))return null;$t(e,t,n),e===Os&&(Us|=t,4===Ls&&vl(e,Ns));var r=Hi();1===t?8&As&&!(48&As)?gl(e):(hl(e,n),0===As&&(qs(),Xi())):(!(4&As)||98!==r&&99!==r||(null===nl?nl=new Set([e]):nl.add(e)),hl(e,n)),Vs=e}function pl(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 hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Ht(a),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Dt(c);var d=Lt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(r=Ft(e,e===Os?Ns:0),t=Lt,0===r)null!==n&&(n!==Di&&Ti(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&Ti(n)}15===t?(n=gl.bind(null,e),null===Bi?(Bi=[n],Ui=_i(ji,Yi)):Bi.push(n),n=Di):14===t?n=Gi(99,gl.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(s(358,e))}}(t),n=Gi(n,ml.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ml(e){if(ol=-1,sl=al=0,48&As)throw Error(s(327));var t=e.callbackNode;if(Nl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Os?Ns:0);if(0===n)return null;var r=n,i=As;As|=16;var o=kl();for(Os===e&&Ns===r||(qs(),El(e,r));;)try{Tl();break}catch(t){Sl(e,t)}if(no(),Ps.current=o,As=i,null!==js?r=0:(Os=null,Ns=0,r=Ls),0!==(Fs&Us))El(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Bt(e))&&(r=Cl(e,n))),1===r)throw t=Ds,El(e,0),vl(e,n),hl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Al(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=$s+500-$i())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qr(Al.bind(null,e),r);break}Al(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Ht(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=$i()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=qr(Al.bind(null,e),n);break}Al(e);break;default:throw Error(s(329))}}return hl(e,$i()),e.callbackNode===t?ml.bind(null,e):null}function vl(e,t){for(t&=~zs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(48&As)throw Error(s(327));if(Nl(),e===Os&&0!==(e.expiredLanes&Ns)){var t=Ns,n=Cl(e,t);0!==(Fs&Us)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Bt(e))&&(n=Cl(e,t))),1===n)throw n=Ds,El(e,0),vl(e,t),hl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),hl(e,$i()),null}function yl(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}}function bl(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}}function wl(e,t){di(Rs,Ms),Ms|=t,Fs|=t}function xl(){Ms=Rs.current,ui(Rs)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Ro(),ui(hi),ui(pi),Ko();break;case 5:Do(r);break;case 4:Ro();break;case 13:case 19:ui(Fo);break;case 10:ro(r);break;case 23:case 24:xl()}n=n.return}Os=e,js=Hl(e.current,null),Ns=Ms=Fs=t,Ls=0,Ds=null,zs=Us=Bs=0}function Sl(e,t){for(;;){var n=js;try{if(no(),Qo.current=ja,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Zo=0,na=ta=ea=null,ia=!1,Is.current=null,null===n||null===n.return){Ls=1,Ds=t,js=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(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=!!(1&Fo.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var v=f.updateQueue;if(null===v){var g=new Set;g.add(c),f.updateQueue=g}else v.add(c);if(!(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,fo(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new cs,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Bl.bind(null,o,c,s);c.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((X(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!==Ls&&(Ls=2),l=ss(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,po(f,us(0,o,t));break e;case 1:o=l;var x=f.type,E=f.stateNode;if(!(64&f.flags||"function"!=typeof x.getDerivedStateFromError&&(null===E||"function"!=typeof E.componentDidCatch||null!==Ks&&Ks.has(E)))){f.flags|=4096,t&=-t,f.lanes|=t,po(f,ds(f,o,t));break e}}f=f.return}while(null!==f)}Il(n)}catch(e){t=e,js===n&&null!==n&&(js=n=n.return);continue}break}}function kl(){var e=Ps.current;return Ps.current=ja,null===e?ja:e}function Cl(e,t){var n=As;As|=16;var r=kl();for(Os===e&&Ns===t||El(e,t);;)try{_l();break}catch(t){Sl(e,t)}if(no(),As=n,Ps.current=r,null!==js)throw Error(s(261));return Os=null,Ns=0,Ls}function _l(){for(;null!==js;)Pl(js)}function Tl(){for(;null!==js&&!Pi();)Pl(js)}function Pl(e){var t=Ws(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Il(e):js=t,Is.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=as(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=os(n,t,Ms)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&!(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))}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ls&&(Ls=5)}function Al(e){var t=Hi();return Wi(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{Nl()}while(null!==Js);if(48&As)throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Ht(o),u=1<<c;i[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==nl&&!(24&r)&&nl.has(e)&&nl.delete(e),e===Os&&(js=Os=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Is.current=null,zr=Yt,gr(a=vr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,v=a,g=null;t:for(;;){for(var y;v!==l||0!==o&&3!==v.nodeType||(f=d+o),v!==c||0!==u&&3!==v.nodeType||(p=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===a)break t;if(g===l&&++h===o&&(f=d),g===c&&++m===u&&(p=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Vr={focusedElem:a,selectionRange:l},Yt=!1,ll=null,cl=!1,Gs=r;do{try{jl()}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);ll=null,Gs=r;do{try{for(a=e;null!==Gs;){var b=Gs.flags;if(16&b&&ye(Gs.stateNode,""),128&b){var w=Gs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ws(Gs),Gs.flags&=-3;break;case 6:ws(Gs),Gs.flags&=-3,ks(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,ks(Gs.alternate,Gs);break;case 4:ks(Gs.alternate,Gs);break;case 8:Ss(a,l=Gs);var E=l.alternate;ys(l),null!==E&&ys(E)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(x=Vr,w=vr(),b=x.focusedElem,a=x.selectionRange,w!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==a&&gr(b)&&(w=a.start,void 0===(x=a.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,E=Math.min(a.start,l),a=void 0===a.end?E:Math.min(a.end,l),!x.extend&&E>a&&(l=a,a=E,E=l),l=hr(b,E),o=hr(b,a),l&&o&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),E>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!zr,Vr=zr=null,e.current=n,Gs=r;do{try{for(b=e;null!==Gs;){var S=Gs.flags;if(36&S&&ms(b,Gs.alternate,Gs),128&S){w=void 0;var k=Gs.ref;if(null!==k){var C=Gs.stateNode;Gs.tag,w=C,"function"==typeof k?k(w):k.current=w}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Fi(),As=i}else e.current=n;if(Qs)Qs=!1,Js=e,Zs=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((S=Gs).sibling=null,S.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&(Ks=null),1===r?e===il?rl++:(rl=0,il=e):rl=0,n=n.stateNode,ki&&"function"==typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(Si,n,void 0,!(64&~n.current.flags))}catch(e){}if(hl(e,$i()),Xs)throw Xs=!1,e=Ys,Ys=null,e;return!!(8&As)||Xi(),null}function jl(){for(;null!==Gs;){var e=Gs.alternate;cl||null===ll||(8&Gs.flags?et(Gs,ll)&&(cl=!0):13===Gs.tag&&_s(e,Gs)&&et(Gs,ll)&&(cl=!0));var t=Gs.flags;!!(256&t)&&hs(e,Gs),!(512&t)||Qs||(Qs=!0,Gi(97,function(){return Nl(),null})),Gs=Gs.nextEffect}}function Nl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Ll)}return!1}function Ml(e,t){el.push(t,e),Qs||(Qs=!0,Gi(97,function(){return Nl(),null}))}function Rl(e,t){tl.push(t,e),Qs||(Qs=!0,Gi(97,function(){return Nl(),null}))}function Ll(){if(null===Js)return!1;var e=Js;if(Js=null,48&As)throw Error(s(331));var t=As;As|=32;var n=tl;tl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}for(n=el,el=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}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 As=t,Xi(),!0}function Dl(e,t,n){fo(e,t=us(0,t=ss(n,t),1)),t=ul(),null!==(e=pl(e,1))&&($t(e,1,t),hl(e,t))}function Fl(e,t){if(3===e.tag)Dl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Dl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){var i=ds(n,e=ss(t,e),1);if(fo(n,i),i=ul(),null!==(n=pl(n,1)))$t(n,1,i),hl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ns&n)===n&&(4===Ls||3===Ls&&(62914560&Ns)===Ns&&500>$i()-$s?El(e,0):zs|=n),hl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===al&&(al=Fs),0===(t=zt(62914560&~al))&&(t=4194304)):t=99===Hi()?1:2:t=1),n=ul(),null!==(e=pl(e,t))&&($t(e,t,n),hl(e,n))}function zl(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 Vl(e,t,n,r){return new zl(e,t,n,r)}function $l(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=Vl(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 ql(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)$l(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case C:return Wl(n.children,i,o,t);case D:a=8,i|=16;break;case _:a=8,i|=1;break;case T:return(e=Vl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case O:return(e=Vl(13,n,t,i)).type=O,e.elementType=O,e.lanes=o,e;case j:return(e=Vl(19,n,t,i)).elementType=j,e.lanes=o,e;case F:return Gl(n,i,o,t);case B:return(e=Vl(24,n,t,i)).elementType=B,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:a=10;break e;case I:a=9;break e;case A:a=11;break e;case N:a=14;break e;case M:a=16,r=null;break e;case R:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Vl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Wl(e,t,n,r){return(e=Vl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=Vl(23,e,r,t)).elementType=F,e.lanes=n,e}function Xl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kl(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=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var i=t.current,o=ul(),a=dl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(gi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=wi(n,c,l);break e}}n=l}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(i,t),fl(i,a,o),a}function Jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Kl(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,lo(t),e[ei]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Jl(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=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 tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Jl(a);l.call(e)}}bl(function(){Ql(t,a,e,i)})}return Jl(a)}function ic(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:Ga(t),Xo();break;case 5:Lo(t);break;case 1:gi(t.type)&&xi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;di(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(di(Fo,1&Fo.current),null!==(t=rs(e,t,n))?t.sibling:null);di(Fo,1&Fo.current);break;case 19:if(r=0!==(n&t.childLanes),64&e.flags){if(r)return ns(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),di(Fo,Fo.current),r)break;return null;case 23:case 24:return t.lanes=0,Va(e,t,n)}return rs(e,t,n)}Da=!!(16384&e.flags)}else Da=!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,i=vi(t,pi.current),oo(t,n),i=sa(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;xi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,lo(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&go(t,r,a,e),i.updater=yo,t.stateNode=i,i._reactInternals=t,Eo(t,r,e,n),t=Wa(null,t,r,!0,o,n)}else t.tag=0,Fa(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return $l(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(i),e=Qi(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=qa(null,t,i,e,n);break e;case 11:t=Ba(null,t,i,e,n);break e;case 14:t=Ua(null,t,i,Qi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Xo(),t=rs(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(zo=Xr(t.stateNode.containerInfo.firstChild),Uo=t,o=Vo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=Po(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),Xo();t=t.child}return t;case 5:return Lo(t),null===e&&qo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Hr(r,i)?a=null:null!==o&&Hr(r,o)&&(t.flags|=16),$a(e,t),Fa(e,t,a,n),t.child;case 6:return null===e&&qo(t),null;case 13:return Ja(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Qi(r,i),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,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(di(Ji,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0==(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!hi.current){t=rs(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=uo(-1,n&-n)).tag=2,fo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),io(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Fa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(i=ao(i,o.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return o=Qi(i=t.type,t.pendingProps),Ua(e,t,i,o=Qi(i.type,o),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,xi(t)):e=!1,oo(t,n),wo(t,r,i),Eo(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Va(e,t,n)}throw Error(s(156,t.tag))},tc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,function(){t[ei]=null})},tt=function(e){13===e.tag&&(fl(e,4,ul()),ec(e,4))},nt=function(e){13===e.tag&&(fl(e,67108864,ul()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=ul(),n=dl(e);fl(e,n,t),ec(e,n)}},it=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(re(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 i=oi(r);if(!i)throw Error(s(90));J(r),re(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Ne=yl,Me=function(e,t,n,r,i){var o=As;As|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(As=o)&&(qs(),Xi())}},Re=function(){!(49&As)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,$i())})}Xi()}(),Nl())},Le=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}};var oc={Events:[ri,ii,oi,Oe,je,Nl,{current:!1}]},ac={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Si=lc.inject(sc),ki=lc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=ic,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(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(48&n)return e(t);As|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{As=n,Xi()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(s(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(s(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(s(40));return!!e._reactRootContainer&&(bl(function(){rc(null,null,e,!1,function(){e._reactRootContainer=null,e[ei]=null})}),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},3575(e,t,n){var r=n(5224),i=n(3705),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!S(s)?o+=" "+s:o+=" "+u(s);return o},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var c={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),p(r,e,r.depth)}function d(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function f(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var o=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(_(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return h(n)}var c,u="",d=!1,f=["{","}"];return v(n)&&(d=!0,f=["[","]"]),_(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(u=" "+RegExp.prototype.toString.call(n)),k(n)&&(u=" "+Date.prototype.toUTCString.call(n)),C(n)&&(u=" "+h(n)),0!==a.length||d&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(m(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(m(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,d)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,f)):f[0]+u+f[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===T(e)}function C(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function _(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(8534),t.isArray=v,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=E,t.types.isRegExp=E,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=C,t.types.isNativeError=C,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6925);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(1596),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},3629(e,t,n){"use strict";var r=n(8259),i=n(6709),o=n(9460),a=n(3887);e.exports=function(e){var t=o(arguments),n=1+e.length-(arguments.length-1);return r(t,n>0?n:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},3705(e,t,n){var r=n(3575),i=n(6362);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a="undefined"!=typeof globalThis&&globalThis.console?globalThis.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=o()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],u=0;u<c.length;u++){var d=c[u],f=d[0],p=d[1];a[p]||(a[p]=f)}e.exports=a},3780(e){"use strict";e.exports=RangeError},3862(e,t,n){"use strict";var r=n(8726),i=n(7308);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},3887(e,t,n){"use strict";var r=n(6989),i=n(1264),o=n(3110);e.exports=function(){return o(r,i,arguments)}},4553(e,t,n){"use strict";var r=n(1555);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},4960(e){"use strict";e.exports=Math.abs},4961(e,t,n){"use strict";var r=n(1e3),i=n(6405),o=n(3629),a=n(690),s=n(4553),l=n(6054),c=a("Object.prototype.toString"),u=n(5550)(),d=globalThis,f=i(),p=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,u&&s&&l?function(e){var t=new d[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=s(n,Symbol.toStringTag);if(!r&&n){var i=l(n);r=s(i,Symbol.toStringTag)}if(r&&r.get){var a=o(r.get);m["$"+e]=a}}}:function(e){var t=new d[e],n=t.slice||t.set;if(n){var r=o(n);m["$"+e]=r}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return function(e){return h(f,e)>-1}(t)?t:"Object"===t&&function(e){var t=!1;return r(m,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(m,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}}),t}(e):null}},5158(e){"use strict";e.exports=Math.pow},5224(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.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];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5266(e,t,n){"use strict";var r=n(6954);e.exports=r.getPrototypeOf||null},5418(e,t,n){var r,i,o=n(3705);"undefined"!=typeof self&&self,e.exports=(r=n(1173),i=n(8932),function(){"use strict";var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var r=n(496),i=Object.prototype.hasOwnProperty.call(r,"createContext");t.PrintContext=i?r.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var r=n(316),i=n(496),a=n(190),s=n(328),l=n(940),c=function(e){function t(){var t=e.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,r=n.onAfterPrint,i=n.onPrintError,o=n.print,a=n.documentTitle;setTimeout(function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),o)o(e).then(function(){return null==r?void 0:r()}).then(function(){return t.handleRemoveIframe()}).catch(function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])});else{if(e.contentWindow.print){var l=null!==(s=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",c=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},t.triggerPrint=function(e){var n=t.props,r=n.onBeforePrint,i=n.onPrintError;if(r){var o=r();o&&"function"==typeof o.then?o.then(function(){t.startPrint(e)}).catch(function(e){i&&i("onBeforePrint",e)}):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,o=n.content,s=n.copyStyles,l=n.fonts,c=n.pageStyle,u=n.nonce,d="function"==typeof e?e():null;if(d&&"function"==typeof o&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),d||"function"!=typeof o||(d=o()),void 0!==d)if(null!==d){var f=document.createElement("iframe");f.width="".concat(document.documentElement.clientWidth,"px"),f.height="".concat(document.documentElement.clientHeight,"px"),f.style.position="absolute",f.style.top="-".concat(document.documentElement.clientHeight+100,"px"),f.style.left="-".concat(document.documentElement.clientWidth+100,"px"),f.id="printWindow",f.srcdoc="<!DOCTYPE html>";var p=(0,a.findDOMNode)(d);if(p){var h=p.cloneNode(!0),m=h instanceof Text,v=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),g=m?[]:h.querySelectorAll("img"),y=m?[]:h.querySelectorAll("video"),b=l?l.length:0;t.numResourcesToLoad=v.length+g.length+y.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(r.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(f))};f.onload=function(){var e,n,o,a;f.onload=null;var d=f.contentDocument||(null===(n=f.contentWindow)||void 0===n?void 0:n.document);if(d){d.body.appendChild(h),l&&((null===(o=f.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(a=f.contentWindow)||void 0===a?void 0:a.FontFace)?l.forEach(function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});f.contentDocument.fonts.add(t),t.loaded.then(function(){w(t)}).catch(function(e){w(t,["Failed loading the font:",t,"Load error:",e])})}):(l.forEach(function(e){return w(e)}),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var v="function"==typeof c?c():c;if("string"!=typeof v)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof v,'". Styles from `pageStyle` will not be applied.')]);else{var b=d.createElement("style");u&&(b.setAttribute("nonce",u),d.head.setAttribute("nonce",u)),b.appendChild(d.createTextNode(v)),d.head.appendChild(b)}if(i&&(e=d.body.classList).add.apply(e,r.__spreadArray([],r.__read(i.split(" ")),!1)),!m){for(var x=m?[]:p.querySelectorAll("canvas"),E=d.querySelectorAll("canvas"),S=0;S<x.length;++S){var k=x[S],C=E[S].getContext("2d");C&&C.drawImage(k,0,0)}var _=function(e){var t=g[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,n,r,i,o){return w(t,["Error loading <img>",t,"Error",o])},r.src=n}else w(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(S=0;S<g.length;S++)_(S);var T=function(e){var t=y[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,r,i,o,a){return w(t,["Error loading video poster",n,"for video",t,"Error:",a])},r.src=n}else t.readyState>=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,n,r,i,o){return w(t,["Error loading video",t,"Error",o])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(S=0;S<y.length;S++)T(S);var P="input",I=p.querySelectorAll(P),A=d.querySelectorAll(P);for(S=0;S<I.length;S++)A[S].value=I[S].value;var O="input[type=checkbox],input[type=radio]",j=p.querySelectorAll(O),N=d.querySelectorAll(O);for(S=0;S<j.length;S++)N[S].checked=j[S].checked;var M="select",R=p.querySelectorAll(M),L=d.querySelectorAll(M);for(S=0;S<R.length;S++)L[S].value=R[S].value}if(s)for(var D=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),F=function(e,n){var r=D[e];if("style"===r.tagName.toLowerCase()){var i=d.createElement(r.tagName),o=r.sheet;if(o){var a="";try{for(var s=o.cssRules.length,l=0;l<s;++l)"string"==typeof o.cssRules[l].cssText&&(a+="".concat(o.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}i.setAttribute("id","react-to-print-".concat(e)),u&&i.setAttribute("nonce",u),i.appendChild(d.createTextNode(a)),d.head.appendChild(i)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),w(r);else{for(var c=d.createElement(r.tagName),f=(l=0,r.attributes.length);l<f;++l){var p=r.attributes[l];p&&c.setAttribute(p.nodeName,p.nodeValue||"")}c.onload=function(){return w(c)},c.onerror=function(e,t,n,r,i){return w(c,["Failed to load",c,"Error:",i])},u&&c.setAttribute("nonce",u),d.head.appendChild(c)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),w(r)},B=(S=0,D.length);S<B;++S)F(S)}0!==t.numResourcesToLoad&&s||t.triggerPrint(f)},t.handleRemoveIframe(!0),document.body.appendChild(f)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?o.error(e):"warning"===n?o.warn(e):"debug"===n&&o.debug(e))},t}return r.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,r=this.props,i=r.onBeforeGetContent,o=r.onPrintError;if(i){var a=i();a&&"function"==typeof a.then?a.then(function(){return n.handlePrint(t)}).catch(function(e){o&&o("onBeforeGetContent",e)}):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!s.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return i.createElement(s.PrintContext.Provider,{value:r},t)},t.defaultProps=l.defaultProps,t}(i.Component);t.ReactToPrint=c},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;var r=n(316),i=n(496),a=n(428),s=n(940),l=n(860),c=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!c)return e.suppressErrors||o.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo(function(){return new a.ReactToPrint(r.__assign(r.__assign({},s.defaultProps),e))},[e]);return i.useCallback(function(e,n){return(0,l.wrapCallbackWithArgs)(t,t.handleClick,n)(e)},[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var r=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.apply(e,r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(n),!1))}}},496:function(e){e.exports=r},190:function(e){e.exports=i},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return M},__assign:function(){return o},__asyncDelegator:function(){return C},__asyncGenerator:function(){return k},__asyncValues:function(){return _},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return O},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return j},__createBinding:function(){return v},__decorate:function(){return s},__disposeResources:function(){return L},__esDecorate:function(){return c},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return A},__importStar:function(){return I},__makeTemplateObject:function(){return T},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return u},__setFunctionName:function(){return f},__spread:function(){return w},__spreadArray:function(){return E},__spreadArrays:function(){return x},__values:function(){return y}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),f=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return P(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__metadata:p,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:w,__spreadArrays:x,__spreadArray:E,__await:S,__asyncGenerator:k,__asyncDelegator:C,__asyncValues:_,__makeTemplateObject:T,__importStar:I,__importDefault:A,__classPrivateFieldGet:O,__classPrivateFieldSet:j,__classPrivateFieldIn:N,__addDisposableResource:M,__disposeResources:L}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var r=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return r.ReactToPrint}});var i=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return i.useReactToPrint}});var o=n(428);e.default=o.ReactToPrint}(),a}())},5550(e,t,n){"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},5636(e,t,n){"use strict";var r=n(8898),i=60103,o=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;i=d("react.element"),o=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 f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},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)x.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function _(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 T(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 i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+_(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(a,t,n,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:i,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(C,"$&/")+"/")+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+_(s=e[c],c);l+=T(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,u=r+_(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(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 A={current:null};function O(){var e=A.current;if(null===e)throw Error(p(321));return e}var j={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_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=S,t.createFactory=function(e){var t=S.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=k,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},5664(e,t,n){"use strict";e.exports=n(1253)},5840(e,t,n){"use strict";var r=n(1157);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},5944(e,t,n){"use strict";var r=n(7837);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},6054(e,t,n){"use strict";var r=n(6298),i=n(5266),o=n(7042);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},6265(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},6298(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},6362(e,t,n){"use strict";var r=n(5224),i=n(3705);function o(e){return 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},o(e)}function a(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,s(r.key),r)}}function s(e){var t=function(e){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}var l,c,u=n(71).codes,d=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,p=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,m=u.ERR_MISSING_ARGS,v=n(8292),g=n(3575).inspect,y=n(3575).types,b=y.isPromise,w=y.isRegExp,x=n(5840)(),E=n(5944)(),S=n(1061)("RegExp.prototype.test");function k(){var e=n(6825);l=e.isDeepEqual,c=e.isDeepStrictEqual}new Map;var C=!1,_=e.exports=A,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function I(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new v({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];I.apply(void 0,[A,t.length].concat(t))}_.fail=function e(t,n,o,a,s){var l,c=arguments.length;if(0===c?l="Failed":1===c?(o=t,t=void 0):(!1===C&&(C=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),o instanceof Error)throw o;var u={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(u.message=o);var d=new v(u);throw l&&(d.message=l,d.generatedMessage=!0),d},_.AssertionError=v,_.ok=A,_.equal=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),l(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),l(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),c(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),c(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");E(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");E(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&S(t[e],r[e])?i[e]=r[e]:i[e]=t[e])})});function j(e,t,n,r){if("function"!=typeof t){if(w(t))return S(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new v({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===l&&k(),a.forEach(function(i){"string"==typeof e[i]&&w(t[i])&&S(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!c(e[n],t[n])){if(!r){var a=new O(e,i),s=new O(t,i,e),l=new v({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw l.actual=e,l.expected=t,l.operator=o.name,l}P({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,a,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return T}function M(e){return b(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!M(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!M(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return T}).catch(function(e){return e})})}function L(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],n);if("object"===o(t)&&null!==t){if(t.message===n)throw new d("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new d("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==o(n)&&"function"!=typeof n)throw new f("error",["Object","Error","Function","RegExp"],n);if(t===T){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(n&&!j(t,n,r,e))throw t}function D(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||j(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function F(e,t,n,r,i){if(!w(t))throw new f("regexp","RegExp",t);var a="match"===i;if("string"!=typeof e||S(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(o(e)," (").concat(g(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var l=new v({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];I.apply(void 0,[B,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,N(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then(function(t){return L.apply(void 0,[e,t].concat(r))})},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,N(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then(function(t){return D.apply(void 0,[e,t].concat(r))})},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=g(t);var r=new v({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),l=0;l<a.length;l++){var c=s.indexOf(a[l]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},_.match=function e(t,n,r){F(t,n,r,e,"match")},_.doesNotMatch=function e(t,n,r){F(t,n,r,e,"doesNotMatch")},_.strict=x(B,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},6405(e,t,n){"use strict";var r=n(1016),i=globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},6516(e){"use strict";e.exports=Math.min},6709(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},6806(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(d=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},6825(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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 o(e){return 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},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},c=Object.is?Object.is:n(8619),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:n(7863);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),m=f(Object.prototype.toString),v=n(3575).types,g=v.isAnyArrayBuffer,y=v.isArrayBufferView,b=v.isDate,w=v.isMap,x=v.isRegExp,E=v.isSet,S=v.isNativeError,k=v.isBoxedPrimitive,C=v.isNumberObject,_=v.isStringObject,T=v.isBooleanObject,P=v.isBigIntObject,I=v.isSymbolObject,A=v.isFloat32Array,O=v.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(j).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function R(e,t,n,r){if(e===t)return 0!==e||!n||c(e,t);if(n){if("object"!==o(e))return"number"==typeof e&&d(e)&&d(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,l,u,f=m(e);if(f!==m(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=N(e),h=N(t);return p.length===h.length&&D(e,t,n,r,1,p)}if("[object Object]"===f&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||(l=e,u=t,!(a?l.source===u.source&&l.flags===u.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(u))))return!1}else if(S(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!A(e)&&!O(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var v=N(e),j=N(t);return v.length===j.length&&D(e,t,n,r,0,v)}if(E(e))return!(!E(t)||e.size!==t.size)&&D(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,n,r,3);if(g(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==M(new Uint8Array(i),new Uint8Array(s)))return!1}else if(k(e)&&!function(e,t){return C(e)?C(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):_(e)?_(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):I(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,n,r,0)}function L(e,t){return t.filter(function(t){return h(e,t)})}function D(e,t,n,i,a,c){if(5===arguments.length){c=Object.keys(e);var d=Object.keys(t);if(c.length!==d.length)return!1}for(var f=0;f<c.length;f++)if(!p(t,c[f]))return!1;if(n&&5===arguments.length){var m=u(e);if(0!==m.length){var v=0;for(f=0;f<m.length;f++){var g=m[f];if(h(e,g)){if(!h(t,g))return!1;c.push(g),v++}else if(h(t,g))return!1}var y=u(t);if(m.length!==y.length&&L(t,y).length!==v)return!1}else{var b=u(t);if(0!==b.length&&0!==L(t,b).length)return!1}}if(0===c.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var x=i.val2.get(t);if(void 0!==x)return w===x}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,a,c){var u=0;if(2===c){if(!function(e,t,n,r){for(var i=null,a=s(e),l=0;l<a.length;l++){var c=a[l];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(n)return!1;if(!U(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var u=s(t),d=0;d<u.length;d++){var f=u[d];if("object"===o(f)&&null!==f){if(!F(i,f,n,r))return!1}else if(!n&&!e.has(f)&&!F(i,f,n,r))return!1}return 0===i.size}return!0}(e,t,n,a))return!1}else if(3===c){if(!function(e,t,n,i){for(var a=null,s=l(e),c=0;c<s.length;c++){var u=r(s[c],2),d=u[0],f=u[1];if("object"===o(d)&&null!==d)null===a&&(a=new Set),a.add(d);else{var p=t.get(d);if(void 0===p&&!t.has(d)||!R(f,p,n,i)){if(n)return!1;if(!z(e,t,d,f,i))return!1;null===a&&(a=new Set),a.add(d)}}}if(null!==a){for(var h=l(t),m=0;m<h.length;m++){var v=r(h[m],2),g=v[0],y=v[1];if("object"===o(g)&&null!==g){if(!V(a,e,g,y,n,i))return!1}else if(!(n||e.has(g)&&R(e.get(g),y,!1,i)||V(a,e,g,y,!1,i)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===c)for(;u<e.length;u++){if(!p(e,u)){if(p(t,u))return!1;for(var d=Object.keys(e);u<d.length;u++){var f=d[u];if(!p(t,f)||!R(e[f],t[f],n,a))return!1}return d.length===Object.keys(t).length}if(!p(t,u)||!R(e[u],t[u],n,a))return!1}for(u=0;u<i.length;u++){var h=i[u];if(!R(e[h],t[h],n,a))return!1}return!0}(e,t,n,c,i,a);return i.val1.delete(e),i.val2.delete(t),E}function F(e,t,n,r){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(R(t,a,n,r))return e.delete(a),!0}return!1}function B(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(d(e))return!1}return!0}function U(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var o=B(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!R(r,a,!1,i))&&!e.has(o)&&R(r,a,!1,i)}function V(e,t,n,r,i,o){for(var a=s(e),l=0;l<a.length;l++){var c=a[l];if(R(n,c,i,o)&&R(r,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return R(e,t,!1)},isDeepStrictEqual:function(e,t){return R(e,t,!0)}}},6925(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},6953(e){"use strict";e.exports=Error},6954(e){"use strict";e.exports=Object},6989(e,t,n){"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7042(e,t,n){"use strict";var r,i=n(9460),o=n(4553);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},7198(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},7277(e){"use strict";e.exports=TypeError},7308(e,t,n){"use strict";var r=n(7433);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},7375(e,t,n){"use strict";var r,i=n(6954),o=n(6953),a=n(3123),s=n(3780),l=n(8768),c=n(7430),u=n(7277),d=n(1619),f=n(4960),p=n(8974),h=n(2938),m=n(6516),v=n(5158),g=n(7856),y=n(8707),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=n(4553),E=n(6709),S=function(){throw new u},k=x?function(){try{return S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,C=n(757)(),_=n(6054),T=n(5266),P=n(6298),I=n(1264),A=n(7858),O={},j="undefined"!=typeof Uint8Array&&_?_(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&_?_([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&_?_(_([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&_?_((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&_?_((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&_?_(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":j,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":P};if(_)try{null.error}catch(e){var M=_(_(e));N["%Error.prototype%"]=M}var R=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&_&&(n=_(i.prototype))}return N[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(6989),F=n(2155),B=D.call(A,Array.prototype.concat),U=D.call(I,Array.prototype.splice),z=D.call(A,String.prototype.replace),V=D.call(A,String.prototype.slice),$=D.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,W=function(e,t){var n,r=e;if(F(L,r)&&(r="%"+(n=L[r])[0]+"%"),F(N,r)){var i=N[r];if(i===O&&(i=R(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,q,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,B([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=V(p,0,1),m=V(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),F(N,o="%"+(r+="."+p)+"%"))a=N[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var v=x(a,p);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else f=F(a,p),a=a[p];f&&!s&&(N[o]=a)}}return a}},7430(e){"use strict";e.exports=SyntaxError},7433(e){"use strict";e.exports=function(e){return e!=e}},7734(e,t,n){"use strict";var r=n(7375)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},7837(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},7839(e,t,n){"use strict";var r=Array.prototype.slice,i=n(543),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},7856(e){"use strict";e.exports=Math.round},7858(e){"use strict";e.exports=Function.prototype.call},7863(e,t,n){"use strict";var r=n(3629),i=n(8726),o=n(7433),a=n(7308),s=n(3862),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},8259(e,t,n){"use strict";var r=n(7375),i=n(8503),o=n(8562)(),a=n(4553),s=n(7277),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},8292(e,t,n){"use strict";var r=n(5224);function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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,l(r.key),r)}}function l(e){var t=function(e){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function c(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)},d(e)}function f(e,t,n){return f=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i},f.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var g=n(3575).inspect,y=n(71).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var w="",x="",E="",S="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,n){var i="",o="",a=0,s="",l=!1,c=_(e),u=c.split("\n"),d=_(t).split("\n"),f=0,p="";if("strictEqual"===n&&"object"===v(e)&&"object"===v(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var h=u[0].length+d[0].length;if(h<=10){if(!("object"===v(e)&&null!==e||"object"===v(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;u[0][f]===d[0][f];)f++;f>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",f),"^"),f=0)}}for(var m=u[u.length-1],g=d[d.length-1];m===g&&(f++<2?s="\n ".concat(m).concat(s):i=m,u.pop(),d.pop(),0!==u.length&&0!==d.length);)m=u[u.length-1],g=d[d.length-1];var y=Math.max(u.length,d.length);if(0===y){var C=c.split("\n");if(C.length>30)for(C[26]="".concat(w,"...").concat(S);C.length>27;)C.pop();return"".concat(k.notIdentical,"\n\n").concat(C.join("\n"),"\n")}f>3&&(s="\n".concat(w,"...").concat(S).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,P=k[n]+"\n".concat(x,"+ actual").concat(S," ").concat(E,"- expected").concat(S),I=" ".concat(w,"...").concat(S," Lines skipped");for(f=0;f<y;f++){var A=f-a;if(u.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(d[f-2]),T++),o+="\n ".concat(d[f-1]),T++),a=f,i+="\n".concat(E,"-").concat(S," ").concat(d[f]),T++;else if(d.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(u[f-2]),T++),o+="\n ".concat(u[f-1]),T++),a=f,o+="\n".concat(x,"+").concat(S," ").concat(u[f]),T++;else{var O=d[f],j=u[f],N=j!==O&&(!b(j,",")||j.slice(0,-1)!==O);N&&b(O,",")&&O.slice(0,-1)===j&&(N=!1,j+=","),N?(A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(u[f-2]),T++),o+="\n ".concat(u[f-1]),T++),a=f,o+="\n".concat(x,"+").concat(S," ").concat(j),i+="\n".concat(E,"-").concat(S," ").concat(O),T+=2):(o+=i,i="",1!==A&&0!==f||(o+="\n ".concat(j),T++))}if(T>20&&f<y-2)return"".concat(P).concat(I,"\n").concat(o,"\n").concat(w,"...").concat(S).concat(i,"\n")+"".concat(w,"...").concat(S)}return"".concat(P).concat(l?I:"","\n").concat(o).concat(i).concat(s).concat(p)}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var n,i,a=function(e){var t=p();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),"object"!==v(e)||null===e)throw new y("options","Object",e);var n=e.message,i=e.operator,o=e.stackStartFn,s=e.actual,d=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=a.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="",x="",S="",E=""):(w="",x="",S="",E="")),"object"===v(s)&&null!==s&&"object"===v(d)&&null!==d&&"stack"in s&&s instanceof Error&&"stack"in d&&d instanceof Error&&(s=C(s),d=C(d)),"deepStrictEqual"===i||"strictEqual"===i)t=a.call(this,T(s,d,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=k[i],h=_(s).split("\n");if("notStrictEqual"===i&&"object"===v(s)&&null!==s&&(p=k.notStrictEqualObject),h.length>30)for(h[26]="".concat(w,"...").concat(S);h.length>27;)h.pop();t=1===h.length?a.call(this,"".concat(p," ").concat(h[0])):a.call(this,"".concat(p,"\n\n").concat(h.join("\n"),"\n"))}else{var m=_(s),g="",b=k[i];"notDeepEqual"===i||"notEqual"===i?(m="".concat(k[i],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(g="".concat(_(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?m="".concat(b,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),t=a.call(this,"".concat(m).concat(g))}return Error.stackTraceLimit=f,t.generatedMessage=!n,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=d,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(u(t),o),t.stack,t.name="AssertionError",c(t)}return n=l,(i=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(d(Error),g.custom);e.exports=P},8307(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},8503(e,t,n){"use strict";var r=n(6709),i=n(7430),o=n(7277),a=n(4553);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8534(e,t,n){"use strict";var r=n(46),i=n(7198),o=n(4961),a=n(1338);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function y(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function x(e){return"[object ArrayBuffer]"===u(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===u(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===u(e)}function T(e){return void 0!==C&&(void 0===_.working&&(_.working=_(new C)),_.working?_(e):e instanceof C)}function P(e){return v(e,d)}function I(e){return v(e,f)}function A(e){return v(e,p)}function O(e){return l&&v(e,h)}function j(e){return c&&v(e,m)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=P,t.isStringObject=I,t.isBooleanObject=A,t.isBigIntObject=O,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return P(e)||I(e)||A(e)||O(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},8562(e,t,n){"use strict";var r=n(6709),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},8619(e,t,n){"use strict";var r=n(8726),i=n(3629),o=n(7837),a=n(5944),s=n(9394),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},8707(e,t,n){"use strict";var r=n(1581);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},8726(e,t,n){"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(9411),l=n(7734)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],n[o[s]])};u.supportsDescriptors=!!l,e.exports=u},8768(e){"use strict";e.exports=ReferenceError},8898(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==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 o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},8932(e,t,n){"use strict";var r=n(3705);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(3500)},8974(e){"use strict";e.exports=Math.floor},9349(e,t,n){var r=n(3705);e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,v,g,y;function b(e,t){if(!e)throw new Error("ASSERT: "+t)}function w(e){return e>=48&&e<=57}function x(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function E(e){return"01234567".indexOf(e)>=0}function S(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function k(e){return 10===e||13===e||8232===e||8233===e}function C(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function _(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function T(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function P(e){return"eval"===e||"arguments"===e}function I(e){if(u&&T(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function A(e,t,n,r,i){var o;b("number"==typeof n,"Comment must have valid position"),g.lastCommentStart>=n||(g.lastCommentStart=n,o={type:e,value:t},y.range&&(o.range=[n,r]),y.loc&&(o.loc=i),y.comments.push(o),y.attachComment&&(y.leadingComments.push(o),y.trailingComments.push(o)))}function O(e){var t,n,r,i;for(t=d-e,n={start:{line:f,column:d-p-e}};d<h;)if(r=c.charCodeAt(d),++d,k(r))return y.comments&&(i=c.slice(t+e,d-1),n.end={line:f,column:d-p-1},A("Line",i,t,d-1,n)),13===r&&10===c.charCodeAt(d)&&++d,++f,void(p=d);y.comments&&(i=c.slice(t+e,d),n.end={line:f,column:d-p},A("Line",i,t,d,n))}function j(){var e,t,n,r;for(y.comments&&(e=d-2,t={start:{line:f,column:d-p-2}});d<h;)if(k(n=c.charCodeAt(d)))13===n&&10===c.charCodeAt(d+1)&&++d,++f,++d,p=d,d>=h&&Y({},a.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===c.charCodeAt(d+1))return++d,++d,void(y.comments&&(r=c.slice(e+2,d-2),t.end={line:f,column:d-p},A("Block",r,e,d,t)));++d}else++d;Y({},a.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===d;d<h;)if(S(e=c.charCodeAt(d)))++d;else if(k(e))++d,13===e&&10===c.charCodeAt(d)&&++d,++f,p=d,t=!0;else if(47===e)if(47===(e=c.charCodeAt(d+1)))++d,++d,O(2),t=!0;else{if(42!==e)break;++d,++d,j()}else if(t&&45===e){if(45!==c.charCodeAt(d+1)||62!==c.charCodeAt(d+2))break;d+=3,O(3)}else{if(60!==e)break;if("!--"!==c.slice(d+1,d+4))break;++d,++d,++d,++d,O(4)}}function M(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(d<h&&x(c[d])))return"";r=c[d++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function R(){var e,t;for(e=c.charCodeAt(d++),t=String.fromCharCode(e),92===e&&(117!==c.charCodeAt(d)&&Y({},a.UnexpectedToken,"ILLEGAL"),++d,(e=M("u"))&&"\\"!==e&&C(e.charCodeAt(0))||Y({},a.UnexpectedToken,"ILLEGAL"),t=e);d<h&&_(e=c.charCodeAt(d));)++d,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==c.charCodeAt(d)&&Y({},a.UnexpectedToken,"ILLEGAL"),++d,(e=M("u"))&&"\\"!==e&&_(e.charCodeAt(0))||Y({},a.UnexpectedToken,"ILLEGAL"),t+=e);return t}function L(){var e,t;for(e=d++;d<h;){if(92===(t=c.charCodeAt(d)))return d=e,R();if(!_(t))break;++d}return c.slice(e,d)}function D(){var e,n,r,i,o=d,s=c.charCodeAt(d),l=c[d];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++d,y.tokenize&&(40===s?y.openParenToken=y.tokens.length:123===s&&(y.openCurlyToken=y.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:f,lineStart:p,start:o,end:d};default:if(61===(e=c.charCodeAt(d+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return d+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:f,lineStart:p,start:o,end:d};case 33:case 61:return d+=2,61===c.charCodeAt(d)&&++d,{type:t.Punctuator,value:c.slice(o,d),lineNumber:f,lineStart:p,start:o,end:d}}}return">>>="===(i=c.substr(d,4))?(d+=4,{type:t.Punctuator,value:i,lineNumber:f,lineStart:p,start:o,end:d}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(d+=3,{type:t.Punctuator,value:r,lineNumber:f,lineStart:p,start:o,end:d}):l===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(l)>=0||"=>"===n?(d+=2,{type:t.Punctuator,value:n,lineNumber:f,lineStart:p,start:o,end:d}):"<>=!+-*%&|^/".indexOf(l)>=0?(++d,{type:t.Punctuator,value:l,lineNumber:f,lineStart:p,start:o,end:d}):void Y({},a.UnexpectedToken,"ILLEGAL")}function F(){var e,n,r;if(b(w((r=c[d]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=d,e="","."!==r){if(e=c[d++],r=c[d],"0"===e){if("x"===r||"X"===r)return++d,function(e){for(var n="";d<h&&x(c[d]);)n+=c[d++];return 0===n.length&&Y({},a.UnexpectedToken,"ILLEGAL"),C(c.charCodeAt(d))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:f,lineStart:p,start:e,end:d}}(n);if(E(r)&&function(){var e,t;for(e=d+1;e<h;++e){if("8"===(t=c[e])||"9"===t)return!1;if(!E(t))return!0}return!0}())return function(e){for(var n="0"+c[d++];d<h&&E(c[d]);)n+=c[d++];return(C(c.charCodeAt(d))||w(c.charCodeAt(d)))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:f,lineStart:p,start:e,end:d}}(n)}for(;w(c.charCodeAt(d));)e+=c[d++];r=c[d]}if("."===r){for(e+=c[d++];w(c.charCodeAt(d));)e+=c[d++];r=c[d]}if("e"===r||"E"===r)if(e+=c[d++],"+"!==(r=c[d])&&"-"!==r||(e+=c[d++]),w(c.charCodeAt(d)))for(;w(c.charCodeAt(d));)e+=c[d++];else Y({},a.UnexpectedToken,"ILLEGAL");return C(c.charCodeAt(d))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:f,lineStart:p,start:n,end:d}}function B(){var e,n,r,i;return v=null,N(),e=d,n=function(){var e,t,n,r;for(b("/"===(e=c[d]),"Regular expression literal must start with a slash"),t=c[d++],n=!1,r=!1;d<h;)if(t+=e=c[d++],"\\"===e)k((e=c[d++]).charCodeAt(0))&&Y({},a.UnterminatedRegExp),t+=e;else if(k(e.charCodeAt(0)))Y({},a.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||Y({},a.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";d<h&&_((e=c[d]).charCodeAt(0));)if(++d,"\\"===e&&d<h)if("u"===(e=c[d])){if(r=++d,e=M("u"))for(n+=e,t+="\\u";r<d;++r)t+=c[r];else d=r,n+="u",t+="\\u";K({},a.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},a.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(e){Y({},a.InvalidRegExp)}return n}(n.value,r.value),y.tokenize?{type:t.RegularExpression,value:i,lineNumber:f,lineStart:p,start:e,end:d}:{literal:n.literal+r.literal,value:i,start:e,end:d}}function U(){var e,t,n,r;return N(),e=d,t={start:{line:f,column:d-p}},n=B(),t.end={line:f,column:d-p},y.tokenize||(y.tokens.length>0&&(r=y.tokens[y.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||y.tokens.pop()),y.tokens.push({type:"RegularExpression",value:n.literal,range:[e,d],loc:t})),n}function z(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}function V(){var e;return N(),d>=h?{type:t.EOF,lineNumber:f,lineStart:p,start:d,end:d}:C(e=c.charCodeAt(d))?function(){var e,n;return e=d,{type:1===(n=92===c.charCodeAt(d)?R():L()).length?t.Identifier:I(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:f,lineStart:p,start:e,end:d}}():40===e||41===e||59===e?D():39===e||34===e?function(){var e,n,r,i,o,s,l,u,m="",v=!1;for(l=f,u=p,b("'"===(e=c[d])||'"'===e,"String literal must starts with a quote"),n=d,++d;d<h;){if((r=c[d++])===e){e="";break}if("\\"===r)if((r=c[d++])&&k(r.charCodeAt(0)))++f,"\r"===r&&"\n"===c[d]&&++d,p=d;else switch(r){case"u":case"x":s=d,(o=M(r))?m+=o:(d=s,m+=r);break;case"n":m+="\n";break;case"r":m+="\r";break;case"t":m+="\t";break;case"b":m+="\b";break;case"f":m+="\f";break;case"v":m+="\v";break;default:E(r)?(0!==(i="01234567".indexOf(r))&&(v=!0),d<h&&E(c[d])&&(v=!0,i=8*i+"01234567".indexOf(c[d++]),"0123".indexOf(r)>=0&&d<h&&E(c[d])&&(i=8*i+"01234567".indexOf(c[d++]))),m+=String.fromCharCode(i)):m+=r}else{if(k(r.charCodeAt(0)))break;m+=r}}return""!==e&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:m,octal:v,startLineNumber:l,startLineStart:u,lineNumber:f,lineStart:p,start:n,end:d}}():46===e?w(c.charCodeAt(d+1))?F():D():w(e)?F():y.tokenize&&47===e?function(){var e,t;if(!(e=y.tokens[y.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return D();if(")"===e.value)return!(t=y.tokens[y.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?D():U();if("}"===e.value){if(y.tokens[y.openCurlyToken-3]&&"Keyword"===y.tokens[y.openCurlyToken-3].type){if(!(t=y.tokens[y.openCurlyToken-4]))return D()}else{if(!y.tokens[y.openCurlyToken-4]||"Keyword"!==y.tokens[y.openCurlyToken-4].type)return D();if(!(t=y.tokens[y.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?D():U()}return U()}return"Keyword"===e.type&&"this"!==e.value?U():D()}():D()}function $(){var e,r,i;return N(),e={start:{line:f,column:d-p}},r=V(),e.end={line:f,column:d-p},r.type!==t.EOF&&(i=c.slice(r.start,r.end),y.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function H(){var e;return d=(e=v).end,f=e.lineNumber,p=e.lineStart,v=void 0!==y.tokens?$():V(),d=e.end,f=e.lineNumber,p=e.lineStart,e}function q(){var e,t,n;e=d,t=f,n=p,v=void 0!==y.tokens?$():V(),d=e,f=t,p=n}function W(e,t){this.line=e,this.column=t}function G(e,t,n,r){this.start=new W(e,t),this.end=new W(n,r)}function X(){var e,t,n,r;return e=d,t=f,n=p,N(),r=f!==t,d=e,f=t,p=n,r}function Y(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return b(t<r.length,"Message reference must be in range"),r[t]});throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-p+1):((n=new Error("Line "+f+": "+i)).index=d,n.lineNumber=f,n.column=d-p+1),n.description=i,n}function K(){try{Y.apply(null,arguments)}catch(e){if(!y.errors)throw e;y.errors.push(e)}}function Q(e){if(e.type===t.EOF&&Y(e,a.UnexpectedEOS),e.type===t.NumericLiteral&&Y(e,a.UnexpectedNumber),e.type===t.StringLiteral&&Y(e,a.UnexpectedString),e.type===t.Identifier&&Y(e,a.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))Y(e,a.UnexpectedReserved);else if(u&&T(e.value))return void K(e,a.StrictReservedWord);Y(e,a.UnexpectedToken,e.value)}Y(e,a.UnexpectedToken,e.value)}function J(e){var n=H();n.type===t.Punctuator&&n.value===e||Q(n)}function Z(e){var n=H();n.type===t.Keyword&&n.value===e||Q(n)}function ee(e){return v.type===t.Punctuator&&v.value===e}function te(e){return v.type===t.Keyword&&v.value===e}function ne(){var e;return v.type===t.Punctuator&&("="===(e=v.value)||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function re(){var e,n=d,r=f,i=p,o=v;if(59===c.charCodeAt(d)||ee(";"))H();else{if(e=f,N(),f!==e)return d=n,f=r,p=i,void(v=o);v.type===t.EOF||ee("}")||Q(v)}}function ie(e){return e.type===i.Identifier||e.type===i.MemberExpression}function oe(e,t){var n,r,i;return n=u,i=v,r=Pe(),t&&u&&P(e[0].name)&&K(t,a.StrictParamName),u=n,m.markEnd(m.createFunctionExpression(null,e,[],r),i)}function ae(){var e,n;return n=v,(e=H()).type===t.StringLiteral||e.type===t.NumericLiteral?(u&&e.octal&&K(e,a.StrictOctalLiteral),m.markEnd(m.createLiteral(e),n)):m.markEnd(m.createIdentifier(e.value),n)}function se(){var e,n,r,i,o,s;return s=v,(e=v).type===t.Identifier?(r=ae(),"get"!==e.value||ee(":")?"set"!==e.value||ee(":")?(J(":"),i=ye(),m.markEnd(m.createProperty("init",r,i),s)):(n=ae(),J("("),(e=v).type!==t.Identifier?(J(")"),K(e,a.UnexpectedToken,e.value),i=oe([])):(o=[xe()],J(")"),i=oe(o,e)),m.markEnd(m.createProperty("set",n,i),s)):(n=ae(),J("("),J(")"),i=oe([]),m.markEnd(m.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=ae(),J(":"),i=ye(),m.markEnd(m.createProperty("init",n,i),s)):void Q(e)}function le(){var e,t,n,r,s,l=[],c={},d=String;for(s=v,J("{");!ee("}");)t=(e=se()).key.type===i.Identifier?e.key.name:d(e.key.value),r="init"===e.kind?o.Data:"get"===e.kind?o.Get:o.Set,n="$"+t,Object.prototype.hasOwnProperty.call(c,n)?(c[n]===o.Data?u&&r===o.Data?K({},a.StrictDuplicateProperty):r!==o.Data&&K({},a.AccessorDataProperty):r===o.Data?K({},a.AccessorDataProperty):c[n]&r&&K({},a.AccessorGetSet),c[n]|=r):c[n]=r,l.push(e),ee("}")||J(",");return J("}"),m.markEnd(m.createObjectExpression(l),s)}function ce(){var e,n,r,i;if(ee("("))return function(){var e;return J("("),e=be(),J(")"),e}();if(ee("["))return function(){var e,t=[];for(e=v,J("[");!ee("]");)ee(",")?(H(),t.push(null)):(t.push(ye()),ee("]")||J(","));return H(),m.markEnd(m.createArrayExpression(t),e)}();if(ee("{"))return le();if(e=v.type,i=v,e===t.Identifier)r=m.createIdentifier(H().value);else if(e===t.StringLiteral||e===t.NumericLiteral)u&&v.octal&&K(v,a.StrictOctalLiteral),r=m.createLiteral(H());else if(e===t.Keyword){if(te("function"))return function(){var e,t,n,r,i,o,s,l,c=null,d=[];return l=v,Z("function"),ee("(")||(e=v,c=xe(),u?P(e.value)&&K(e,a.StrictFunctionName):P(e.value)?(n=e,r=a.StrictFunctionName):T(e.value)&&(n=e,r=a.StrictReservedWord)),d=(i=Ie(n)).params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),s=u,o=Pe(),u&&n&&Y(n,r),u&&t&&K(t,r),u=s,m.markEnd(m.createFunctionExpression(c,d,[],o),l)}();te("this")?(H(),r=m.createThisExpression()):Q(H())}else e===t.BooleanLiteral?((n=H()).value="true"===n.value,r=m.createLiteral(n)):e===t.NullLiteral?((n=H()).value=null,r=m.createLiteral(n)):ee("/")||ee("/=")?(r=void 0!==y.tokens?m.createLiteral(U()):m.createLiteral(B()),q()):Q(H());return m.markEnd(r,i)}function ue(){var e=[];if(J("("),!ee(")"))for(;d<h&&(e.push(ye()),!ee(")"));)J(",");return J(")"),e}function de(){return J("."),function(){var e,t;return t=v,z(e=H())||Q(e),m.markEnd(m.createIdentifier(e.value),t)}()}function fe(){var e;return J("["),e=be(),J("]"),e}function pe(){var e,t,n;return n=v,Z("new"),e=function(){var e,t,n;for(b(g.allowIn,"callee of new expression always allow in keyword."),n=v,e=te("new")?pe():ce();ee(".")||ee("[");)ee("[")?(t=fe(),e=m.createMemberExpression("[",e,t)):(t=de(),e=m.createMemberExpression(".",e,t)),m.markEnd(e,n);return e}(),t=ee("(")?ue():[],m.markEnd(m.createNewExpression(e,t),n)}function he(){var e,n,r=v;return e=function(){var e,t,n,r,i=g.allowIn;for(r=v,g.allowIn=!0,e=te("new")?pe():ce();;){if(ee("."))n=de(),e=m.createMemberExpression(".",e,n);else if(ee("("))t=ue(),e=m.createCallExpression(e,t);else{if(!ee("["))break;n=fe(),e=m.createMemberExpression("[",e,n)}m.markEnd(e,r)}return g.allowIn=i,e}(),v.type===t.Punctuator&&(!ee("++")&&!ee("--")||X()||(u&&e.type===i.Identifier&&P(e.name)&&K({},a.StrictLHSPostfix),ie(e)||K({},a.InvalidLHSInAssignment),n=H(),e=m.markEnd(m.createPostfixExpression(n.value,e),r))),e}function me(){var e,n,r;return v.type!==t.Punctuator&&v.type!==t.Keyword?n=he():ee("++")||ee("--")?(r=v,e=H(),n=me(),u&&n.type===i.Identifier&&P(n.name)&&K({},a.StrictLHSPrefix),ie(n)||K({},a.InvalidLHSInAssignment),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r)):ee("+")||ee("-")||ee("~")||ee("!")?(r=v,e=H(),n=me(),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r)):te("delete")||te("void")||te("typeof")?(r=v,e=H(),n=me(),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r),u&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},a.StrictDelete)):n=he(),n}function ve(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function ge(){var e,t,n,r,i;return i=v,e=function(){var e,t,n,r,i,o,a,s,l,c;if(e=v,l=me(),0===(i=ve(r=v,g.allowIn)))return l;for(r.prec=i,H(),t=[e,v],o=[l,r,a=me()];(i=ve(v,g.allowIn))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,l=o.pop(),n=m.createBinaryExpression(s,l,a),t.pop(),e=t[t.length-1],m.markEnd(n,e),o.push(n);(r=H()).prec=i,o.push(r),t.push(v),n=me(),o.push(n)}for(n=o[c=o.length-1],t.pop();c>1;)n=m.createBinaryExpression(o[c-1].value,o[c-2],n),c-=2,e=t.pop(),m.markEnd(n,e);return n}(),ee("?")&&(H(),t=g.allowIn,g.allowIn=!0,n=ye(),g.allowIn=t,J(":"),r=ye(),e=m.createConditionalExpression(e,n,r),m.markEnd(e,i)),e}function ye(){var e,t,n,r,o;return e=v,o=v,r=t=ge(),ne()&&(ie(t)||K({},a.InvalidLHSInAssignment),u&&t.type===i.Identifier&&P(t.name)&&K(e,a.StrictLHSAssignment),e=H(),n=ye(),r=m.markEnd(m.createAssignmentExpression(e.value,t,n),o)),r}function be(){var e,t=v;if(e=ye(),ee(",")){for(e=m.createSequenceExpression([e]);d<h&&ee(",");)H(),e.expressions.push(ye());m.markEnd(e,t)}return e}function we(){var e,t;return t=v,J("{"),e=function(){for(var e,t=[];d<h&&!ee("}")&&void 0!==(e=Oe());)t.push(e);return t}(),J("}"),m.markEnd(m.createBlockStatement(e),t)}function xe(){var e,n;return n=v,(e=H()).type!==t.Identifier&&Q(e),m.markEnd(m.createIdentifier(e.value),n)}function Ee(e){var t,n,r=null;return n=v,t=xe(),u&&P(t.name)&&K({},a.StrictVarName),"const"===e?(J("="),r=ye()):ee("=")&&(H(),r=ye()),m.markEnd(m.createVariableDeclarator(t,r),n)}function Se(e){var t=[];do{if(t.push(Ee(e)),!ee(","))break;H()}while(d<h);return t}function ke(){var e,t,n,r,i,o,s,l=g.allowIn;return e=t=n=null,Z("for"),J("("),ee(";")?H():(te("var")||te("let")?(g.allowIn=!1,e=function(){var e,t,n;return n=v,e=H(),t=Se(),m.markEnd(m.createVariableDeclaration(t,e.value),n)}(),g.allowIn=l,1===e.declarations.length&&te("in")&&(H(),r=e,i=be(),e=null)):(g.allowIn=!1,e=be(),g.allowIn=l,te("in")&&(ie(e)||K({},a.InvalidLHSInForIn),H(),r=e,i=be(),e=null)),void 0===r&&J(";")),void 0===r&&(ee(";")||(t=be()),J(";"),ee(")")||(n=be())),J(")"),s=g.inIteration,g.inIteration=!0,o=Te(),g.inIteration=s,void 0===r?m.createForStatement(e,t,n,o):m.createForInStatement(r,i,o)}function Ce(){var e,t,n,r=[];for(n=v,te("default")?(H(),e=null):(Z("case"),e=be()),J(":");d<h&&!(ee("}")||te("default")||te("case"));)t=Te(),r.push(t);return m.markEnd(m.createSwitchCase(e,r),n)}function _e(){var e,t=[],n=null;return Z("try"),e=we(),te("catch")&&t.push(function(){var e,t,n;return n=v,Z("catch"),J("("),ee(")")&&Q(v),e=xe(),u&&P(e.name)&&K({},a.StrictCatchVariable),J(")"),t=we(),m.markEnd(m.createCatchClause(e,t),n)}()),te("finally")&&(H(),n=we()),0!==t.length||n||Y({},a.NoCatchOrFinally),m.createTryStatement(e,[],t,n)}function Te(){var e,n,r,o,s=v.type;if(s===t.EOF&&Q(v),s===t.Punctuator&&"{"===v.value)return we();if(o=v,s===t.Punctuator)switch(v.value){case";":return m.markEnd((J(";"),m.createEmptyStatement()),o);case"(":return m.markEnd(function(){var e=be();return re(),m.createExpressionStatement(e)}(),o)}if(s===t.Keyword)switch(v.value){case"break":return m.markEnd(function(){var e,n=null;return Z("break"),59===c.charCodeAt(d)?(H(),g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(null)):X()?(g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(null)):(v.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||Y({},a.UnknownLabel,n.name)),re(),null!==n||g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(n))}(),o);case"continue":return m.markEnd(function(){var e,n=null;return Z("continue"),59===c.charCodeAt(d)?(H(),g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(null)):X()?(g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(null)):(v.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||Y({},a.UnknownLabel,n.name)),re(),null!==n||g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(n))}(),o);case"debugger":return m.markEnd((Z("debugger"),re(),m.createDebuggerStatement()),o);case"do":return m.markEnd(function(){var e,t,n;return Z("do"),n=g.inIteration,g.inIteration=!0,e=Te(),g.inIteration=n,Z("while"),J("("),t=be(),J(")"),ee(";")&&H(),m.createDoWhileStatement(e,t)}(),o);case"for":return m.markEnd(ke(),o);case"function":return m.markEnd(Ae(),o);case"if":return m.markEnd(function(){var e,t,n;return Z("if"),J("("),e=be(),J(")"),t=Te(),te("else")?(H(),n=Te()):n=null,m.createIfStatement(e,t,n)}(),o);case"return":return m.markEnd(function(){var e=null;return Z("return"),g.inFunctionBody||K({},a.IllegalReturn),32===c.charCodeAt(d)&&C(c.charCodeAt(d+1))?(e=be(),re(),m.createReturnStatement(e)):X()?m.createReturnStatement(null):(ee(";")||ee("}")||v.type===t.EOF||(e=be()),re(),m.createReturnStatement(e))}(),o);case"switch":return m.markEnd(function(){var e,t,n,r,i;if(Z("switch"),J("("),e=be(),J(")"),J("{"),t=[],ee("}"))return H(),m.createSwitchStatement(e,t);for(r=g.inSwitch,g.inSwitch=!0,i=!1;d<h&&!ee("}");)null===(n=Ce()).test&&(i&&Y({},a.MultipleDefaultsInSwitch),i=!0),t.push(n);return g.inSwitch=r,J("}"),m.createSwitchStatement(e,t)}(),o);case"throw":return m.markEnd(function(){var e;return Z("throw"),X()&&Y({},a.NewlineAfterThrow),e=be(),re(),m.createThrowStatement(e)}(),o);case"try":return m.markEnd(_e(),o);case"var":return m.markEnd(function(){var e;return Z("var"),e=Se(),re(),m.createVariableDeclaration(e,"var")}(),o);case"while":return m.markEnd(function(){var e,t,n;return Z("while"),J("("),e=be(),J(")"),n=g.inIteration,g.inIteration=!0,t=Te(),g.inIteration=n,m.createWhileStatement(e,t)}(),o);case"with":return m.markEnd(function(){var e,t;return u&&(N(),K({},a.StrictModeWith)),Z("with"),J("("),e=be(),J(")"),t=Te(),m.createWithStatement(e,t)}(),o)}return(e=be()).type===i.Identifier&&ee(":")?(H(),r="$"+e.name,Object.prototype.hasOwnProperty.call(g.labelSet,r)&&Y({},a.Redeclaration,"Label",e.name),g.labelSet[r]=!0,n=Te(),delete g.labelSet[r],m.markEnd(m.createLabeledStatement(e,n),o)):(re(),m.markEnd(m.createExpressionStatement(e),o))}function Pe(){var e,n,r,o,s,l,f,p,y=[];for(p=v,J("{");d<h&&v.type===t.StringLiteral&&(n=v,e=Oe(),y.push(e),e.expression.type===i.Literal);)"use strict"===c.slice(n.start+1,n.end-1)?(u=!0,r&&K(r,a.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(o=g.labelSet,s=g.inIteration,l=g.inSwitch,f=g.inFunctionBody,g.labelSet={},g.inIteration=!1,g.inSwitch=!1,g.inFunctionBody=!0;d<h&&!ee("}")&&void 0!==(e=Oe());)y.push(e);return J("}"),g.labelSet=o,g.inIteration=s,g.inSwitch=l,g.inFunctionBody=f,m.markEnd(m.createBlockStatement(y),p)}function Ie(e){var t,n,r,i,o,s,l=[];if(J("("),!ee(")"))for(i={};d<h&&(n=v,t=xe(),o="$"+n.value,u?(P(n.value)&&(r=n,s=a.StrictParamName),Object.prototype.hasOwnProperty.call(i,o)&&(r=n,s=a.StrictParamDupe)):e||(P(n.value)?(e=n,s=a.StrictParamName):T(n.value)?(e=n,s=a.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,o)&&(e=n,s=a.StrictParamDupe)),l.push(t),i[o]=!0,!ee(")"));)J(",");return J(")"),{params:l,stricted:r,firstRestricted:e,message:s}}function Ae(){var e,t,n,r,i,o,s,l,c,d;return c=v,Z("function"),n=v,e=xe(),u?P(n.value)&&K(n,a.StrictFunctionName):P(n.value)?(o=n,s=a.StrictFunctionName):T(n.value)&&(o=n,s=a.StrictReservedWord),d=(i=Ie(o)).params,r=i.stricted,o=i.firstRestricted,i.message&&(s=i.message),l=u,t=Pe(),u&&o&&Y(o,s),u&&r&&K(r,s),u=l,m.markEnd(m.createFunctionDeclaration(e,d,[],t),c)}function Oe(){if(v.type===t.Keyword)switch(v.value){case"const":case"let":return function(e){var t,n;return n=v,Z(e),t=Se(e),re(),m.markEnd(m.createVariableDeclaration(t,e),n)}(v.value);case"function":return Ae();default:return Te()}if(v.type!==t.EOF)return Te()}function je(){for(var e,n,r,o=[];d<h&&(n=v).type===t.StringLiteral&&(e=Oe(),o.push(e),e.expression.type===i.Literal);)"use strict"===c.slice(n.start+1,n.end-1)?(u=!0,r&&K(r,a.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;d<h&&void 0!==(e=Oe());)o.push(e);return o}function Ne(){var e,t,n,r=[];for(e=0;e<y.tokens.length;++e)n={type:(t=y.tokens[e]).type,value:t.value},y.range&&(n.range=t.range),y.loc&&(n.loc=t.loc),r.push(n);y.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},o={Data:1,Get:2,Set:4},a={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},l={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(y.trailingComments.length>0?y.trailingComments[0].range[0]>=e.range[1]?(n=y.trailingComments,y.trailingComments=[]):y.trailingComments.length=0:y.bottomRightStack.length>0&&y.bottomRightStack[y.bottomRightStack.length-1].trailingComments&&y.bottomRightStack[y.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=y.bottomRightStack[y.bottomRightStack.length-1].trailingComments,delete y.bottomRightStack[y.bottomRightStack.length-1].trailingComments);y.bottomRightStack.length>0&&y.bottomRightStack[y.bottomRightStack.length-1].range[0]>=e.range[0];)t=y.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):y.leadingComments.length>0&&y.leadingComments[y.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=y.leadingComments,y.leadingComments=[]),n&&(e.trailingComments=n),y.bottomRightStack.push(e)}},markEnd:function(e,t){return y.range&&(e.range=[t.start,d]),y.loc&&(e.loc=new G(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),f,d-p),this.postProcess(e)),y.attachComment&&this.processComment(e),e},postProcess:function(e){return y.source&&(e.loc.source=y.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:c.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.5",e.tokenize=function(e,n){var r;"string"==typeof e||e instanceof String||(e=String(e)),m=l,d=0,f=(c=e).length>0?1:0,p=0,h=c.length,v=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},y={},(n=n||{}).tokens=!0,y.tokens=[],y.tokenize=!0,y.openParenToken=-1,y.openCurlyToken=-1,y.range="boolean"==typeof n.range&&n.range,y.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(y.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(y.errors=[]);try{if(q(),v.type===t.EOF)return y.tokens;for(H();v.type!==t.EOF;)try{H()}catch(e){if(y.errors){y.errors.push(e);break}throw e}Ne(),r=y.tokens,void 0!==y.comments&&(r.comments=y.comments),void 0!==y.errors&&(r.errors=y.errors)}catch(e){throw e}finally{y={}}return r},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),m=l,d=0,f=(c=e).length>0?1:0,p=0,h=c.length,v=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},y={},void 0!==t&&(y.range="boolean"==typeof t.range&&t.range,y.loc="boolean"==typeof t.loc&&t.loc,y.attachComment="boolean"==typeof t.attachComment&&t.attachComment,y.loc&&null!==t.source&&void 0!==t.source&&(y.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(y.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(y.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(y.errors=[]),y.attachComment&&(y.range=!0,y.comments=[],y.bottomRightStack=[],y.trailingComments=[],y.leadingComments=[]));try{n=function(){var e,t;return N(),q(),t=v,u=!1,e=je(),m.markEnd(m.createProgram(e),t)}(),void 0!==y.comments&&(n.comments=y.comments),void 0!==y.tokens&&(Ne(),n.tokens=y.tokens),void 0!==y.errors&&(n.errors=y.errors)}catch(e){throw e}finally{y={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],1:[function(e,t,n){(function(i){var o=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,o,a,s){i.ast||(i.ast=t,t.initialize());var l=a.length-1;switch(o){case 1:return i.ast.set({expression:{type:"root",value:a[l]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:a[l-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:a[l-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:case 11:case 13:case 18:case 21:case 22:case 23:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:case 19:i.ast.set({scope:"child"});break;case 10:case 20:i.ast.set({scope:"descendant"});break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 14:i.ast.set({expression:{type:"wildcard",value:a[l]}});break;case 15:i.ast.set({expression:{type:"identifier",value:a[l]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:a[l]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(a[l])}});break;case 24:a[l].length>1?i.ast.set({expression:{type:"union",value:a[l]}}):this.$=a[l];break;case 25:this.$=[a[l]];break;case 26:this.$=a[l-2].concat(a[l]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(a[l])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:a[l]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:a[l]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:a[l]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:a[l]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:a[l]}},i.ast.set(this.$);break;case 33:case 34:this.$=a[l]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,l=0,c=0,u=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;i.push(d);var f=this.lexer.options&&this.lexer.options.ranges;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var h,m,v,g,y,b,w,x,E,S={};;){if(v=n[n.length-1],this.defaultActions[v]?g=this.defaultActions[v]:(null!=h||(h=p()),g=o[v]&&o[v][h]),void 0===g||!g.length||!g[0]){var k;for(b in E=[],o[v])this.terminals_[b]&&b>2&&E.push("'"+this.terminals_[b]+"'");k=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:d,expected:E})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+h);switch(g[0]){case 1:n.push(h),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),h=null,m?(h=m,m=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:if(w=this.productions_[g[1]][1],S.$=r[r.length-w],S._$={first_line:i[i.length-(w||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(w||1)].first_column,last_column:i[i.length-1].last_column},f&&(S._$.range=[i[i.length-(w||1)].range[0],i[i.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[a,l,s,this.yy,g[1],r,i].concat(u))))return y;w&&(n=n.slice(0,-1*w*2),r=r.slice(0,-1*w),i=i.slice(0,-1*w)),n.push(this.productions_[g[1]][0]),r.push(S.$),i.push(S._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=o,n.Parser=o.Parser,n.parse=function(){return o.parse.apply(o,arguments)},n.main=function(t){t[1]||(r.log("Usage: "+t[0]+" FILE"),i.exit(1));var o=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(o)},void 0!==t&&e.main===t&&n.main(i.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),o={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(o.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),o.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=o},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),o=e("static-eval"),a=e("underscore").uniq,s=Object.create(null);function l(e){return"string"==typeof e&&!0===s[e]}s.constructor=!0,s.__proto__=!0,s.prototype=!0;var c=function(){return this.initialize.apply(this,arguments)};function u(t,n,i){var o=e("./index"),a=m(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,a),l=o.nodes(t.value,s);return l.forEach(function(e){e.path=t.path.concat(e.path.slice(1))}),l}function d(e){return Array.isArray(e)}function f(e){return function(t,n,r,i){var o=t.value,a=t.path,s=[],l=function(t,o){d(t)?(t.forEach(function(e,t){s.length>=i||r(t,e,n)&&s.push({path:o.concat(t),value:e})}),t.forEach(function(t,n){s.length>=i||e&&l(t,o.concat(n))})):function(e){return e&&!(e instanceof Array)&&e instanceof Object}(t)&&(this.keys(t).forEach(function(e){s.length>=i||r(e,t[e],n)&&s.push({path:o.concat(e),value:t[e]})}),this.keys(t).forEach(function(n){s.length>=i||e&&l(t[n],o.concat(n))}))}.bind(this);return l(o,a),s}}function p(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function h(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function m(e,t){if(!function(e){return!(!e||"object"!=typeof e)&&function e(t){if(!t||"object"!=typeof t||!t.type)return!1;switch(t.type){case"Literal":return!0;case"Identifier":return"@"===t.name;case"MemberExpression":return!(!e(t.object)||(t.computed||"Identifier"!==t.property.type?!t.computed||!e(t.property)||"Literal"===t.property.type&&l(String(t.property.value)):l(t.property.name)));case"UnaryExpression":return e(t.argument);case"BinaryExpression":case"LogicalExpression":return e(t.left)&&e(t.right);case"ConditionalExpression":return e(t.test)&&e(t.consequent)&&e(t.alternate);case"ArrayExpression":for(var n=0;n<t.elements.length;n++)if(!e(t.elements[n]))return!1;return!0;case"ObjectExpression":for(var r=0;r<t.properties.length;r++){var i=t.properties[r];if(i.key&&("Identifier"===i.key.type&&l(i.key.name)||"Literal"===i.key.type&&l(String(i.key.value))))return!1;if(!e(i.value))return!1}return!0;default:return!1}}(e)}(e))throw new Error("Unsafe expression: script and filter expressions may only access the current node (@) with safe property names");try{return o(e,t)}catch(e){}}function v(e){return e=e.filter(function(e){return e}),a(e,function(e){return e.path.map(function(e){return String(e).replace("-","--")}).join("-")})}function g(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}c.prototype.initialize=function(){this.traverse=f(!0),this.descend=f()},c.prototype.keys=Object.keys,c.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},c.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},c.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":h(function(e,t,n){return e==n}),"subscript-child-numeric_literal":p(function(e,t,n){return e===n}),"member-child-numeric_literal":p(function(e,t,n){return String(e)===String(n)}),"subscript-descendant-numeric_literal":h(function(e,t,n){return e===n}),"member-child-wildcard":p(function(){return!0}),"member-descendant-wildcard":h(function(){return!0}),"subscript-descendant-wildcard":h(function(){return!0}),"subscript-child-wildcard":p(function(){return!0}),"subscript-child-slice":function(e,t){if(d(t.value)){var n=e.expression.value.split(":").map(g),r=t.value.map(function(e,n){return{value:e,path:t.path.concat(n)}});return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach(function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))},this),v(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),o=this,a=[];return i.nodes(n,"$..*").slice(1).forEach(function(e){a.length>=r||t.expression.value.forEach(function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=o.resolve(n)(n,e);a=a.concat(r)})}),v(a)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),o=r.parse(i).body[0].expression;return this.descend(t,null,function(e,t){return m(o,{"@":t})},n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),o=r.parse(i).body[0].expression;return this.traverse(t,null,function(e,t){return m(o,{"@":t})},n)},"subscript-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$..value")}},c.prototype._fns["subscript-child-string_literal"]=c.prototype._fns["member-child-identifier"],c.prototype._fns["member-descendant-numeric_literal"]=c.prototype._fns["subscript-descendant-string_literal"]=c.prototype._fns["member-descendant-identifier"],t.exports=c},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),o=e("./parser"),a=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function l(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new o,this.handlers=new a},s.prototype.parse=function(e){return r.ok(l(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];return n&&this._assert_safe_path_keys(n.path),n.path.pop(),this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort(function(e,t){return t.path.length-e.path.length});return i.forEach(function(t){this._assert_safe_path_keys(t.path);var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),o=t.value=n.call(e,i[r]);i[r]=o},this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);this._assert_safe_path_keys(i.path);var o=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[o]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var o=this.parser.parse(t).map(function(e){return e.expression.value});this._assert_safe_path_keys(o);var a=function(t,n){var r=t.pop(),o=i.value(e,t);o||(a(t.concat(),"string"==typeof r?{}:[]),o=i.value(e,t)),i._assert_safe_key(r),o[r]=n};return a(o,n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(l(t),"we need a path"),this.nodes(e,t,n).map(function(e){return e.value})},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map(function(e){return e.path})},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t);this._assert_safe_components(i);var o=this.handlers,a=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach(function(e,t){if(!(s.length>=n)){var r=o.resolve(e),l=[];a.forEach(function(o){if(!(s.length>=n)){var a=r(e,o,n);t==i.length-1?s=s.concat(a||[]):l=l.concat(a||[])}}),a=l}}),n?s.slice(0,n):s):a},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach(function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),o=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!o)throw new Error("couldn't find template "+i);t+=o.replace(/{{value}}/,r)}}),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach(function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))this._assert_safe_key(e),t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";"string_literal"===r&&this._assert_safe_key(e),t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}},this),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.prototype._assert_safe_key=function(e){if(function(e){return"__proto__"===e||"prototype"===e||"constructor"===e}(e))throw new Error("Unsafe key in JSONPath: "+e)},s.prototype._assert_safe_path_keys=function(e){Array.isArray(e)&&e.forEach(function(e){"$"!==e&&"string"==typeof e&&this._assert_safe_key(e)},this)},s.prototype._assert_safe_components=function(e){var t=this;if(Array.isArray(e)){var n=function(e){e&&("identifier"!==e.type&&"string_literal"!==e.type?"union"===e.type&&Array.isArray(e.value)&&e.value.forEach(function(e){e&&e.expression&&n(e.expression)}):t._assert_safe_key(e.value))};e.forEach(function(e){e&&e.expression&&n(e.expression)})}},s.Handlers=a,s.Parser=o;var c=new s;c.JSONPath=s,t.exports=c},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),o=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};o.grammar=r,t.exports=o},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var o=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?o+n:n,t=r(0===(t=t<0?o+t:t)?0:t||(i>0?0:o-1)),n=r(0===n?0:n||(i>0?o:-1)),t=i>0?Math.max(0,t):Math.min(o,t),n=i>0?Math.min(n,o):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var a=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)a.push(e[s]);return a}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,o=Object.prototype.hasOwnProperty,a=t.exports=u;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)||r.isFunction(t)||r.isRegExp(t)?t.toString():t}function l(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function c(e,t,n,r,i){throw new a.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function u(e,t){e||c(e,!0,t,"==",a.ok)}function d(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(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}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=f(e),o=f(t);if(n&&!o||!n&&o)return!1;if(n)return d(e=i.call(e),t=i.call(t));var a,s,l=m(e),c=m(t);if(l.length!=c.length)return!1;for(l.sort(),c.sort(),s=l.length-1;s>=0;s--)if(l[s]!=c[s])return!1;for(s=l.length-1;s>=0;s--)if(!d(e[a=l[s]],t[a]))return!1;return!0}(e,t):e==t}function f(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function h(e,t,n,i){var o;r.isString(n)&&(i=n,n=null);try{t()}catch(e){o=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!o&&c(o,n,"Missing expected exception"+i),!e&&p(o,n)&&c(o,n,"Got unwanted exception"+i),e&&o&&n&&!p(o,n)||!e&&o)throw o}a.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return l(JSON.stringify(e.actual,s),128)+" "+e.operator+" "+l(JSON.stringify(e.expected,s),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||c;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},r.inherits(a.AssertionError,Error),a.fail=c,a.ok=u,a.equal=function(e,t,n){e!=t&&c(e,t,n,"==",a.equal)},a.notEqual=function(e,t,n){e==t&&c(e,t,n,"!=",a.notEqual)},a.deepEqual=function(e,t,n){d(e,t)||c(e,t,n,"deepEqual",a.deepEqual)},a.notDeepEqual=function(e,t,n){d(e,t)&&c(e,t,n,"notDeepEqual",a.notDeepEqual)},a.strictEqual=function(e,t,n){e!==t&&c(e,t,n,"===",a.strictEqual)},a.notStrictEqual=function(e,t,n){e===t&&c(e,t,n,"!==",a.notStrictEqual)},a.throws=function(e,t,n){h.apply(this,[!0].concat(i.call(arguments)))},a.doesNotThrow=function(e,t){h.apply(this,[!1].concat(i.call(arguments)))},a.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,t,n){(function(t,i){var o=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])g(s)||!E(s)?a+=" "+s:a+=" "+l(s);return a},n.deprecate=function(e,o){if(w(i.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?r.trace(o):r.error(o),a=!0}return e.apply(this,arguments)}};var a,s={};function l(e,t){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),d(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function d(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=d(e,i,r)),i}var o=f(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(t);if(0===a.length){if(C(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var c,u="",v=!1,g=["{","}"];return m(t)&&(v=!0,g=["[","]"]),C(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(u=" "+RegExp.prototype.toString.call(t)),S(t)&&(u=" "+Date.prototype.toUTCString.call(t)),k(t)&&(u=" "+p(t)),0!==a.length||v&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}(e,t,r,s,a):a.map(function(n){return h(e,t,r,s,n,v)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,g)):g[0]+u+g[1]}function f(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function x(e){return E(e)&&"[object RegExp]"===_(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===_(e)}function k(e){return E(e)&&("[object Error]"===_(e)||e instanceof Error)}function C(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(w(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var i=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);r.error("%s %d: %s",e,i,t)}}else s[e]=function(){};return s[e]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=m,n.isBoolean=v,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=b,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=w,n.isRegExp=x,n.isObject=E,n.isDate=S,n.isError=k,n.isFunction=C,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){r.log("%s - %s",function(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,i="/"===a.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"))||"."},n.normalize=function(e){var o=n.isAbsolute(e),a="/"===i(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,u=[],d=!1,f=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!d){var e=l(p);d=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}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];u.push(new m(e,t)),1!==u.length||d||l(h)},m.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=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,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}},{}],15:[function(e,t,n){var r=e("escodegen").generate;function i(e){return"constructor"===e||"__proto__"===e}t.exports=function(e,t,n){n||(n={});var o=!n.allowAccessToMethodsOnFunctions;t||(t={});var a={},s=function e(n,s){if("Literal"===n.type)return n.value;if("UnaryExpression"===n.type){var l=e(n.argument,s);return"+"===n.operator?+l:"-"===n.operator?-l:"~"===n.operator?~l:"!"===n.operator?!l:a}if("ArrayExpression"===n.type){for(var c=[],u=0,d=n.elements.length;u<d;u++){if((b=e(n.elements[u],s))===a)return a;c.push(b)}return c}if("ObjectExpression"===n.type){var f={};for(u=0;u<n.properties.length;u++){var p=null===(w=n.properties[u]).value?w.value:e(w.value,s);if(p===a)return a;f[w.key.value||w.key.name]=p}return f}if("BinaryExpression"===n.type||"LogicalExpression"===n.type){var h,m=n.operator;return"&&"===m?(d=e(n.left))===a?a:d?(h=e(n.right))===a?a:h:d:"||"===m?(d=e(n.left))===a?a:d||((h=e(n.right))===a?a:h):(d=e(n.left,s))===a||(h=e(n.right,s))===a?a:"=="===m?d==h:"==="===m?d===h:"!="===m?d!=h:"!=="===m?d!==h:"+"===m?d+h:"-"===m?d-h:"*"===m?d*h:"/"===m?d/h:"%"===m?d%h:"<"===m?d<h:"<="===m?d<=h:">"===m?d>h:">="===m?d>=h:"|"===m?d|h:"&"===m?d&h:"^"===m?d^h:a}if("Identifier"===n.type)return{}.hasOwnProperty.call(t,n.name)?t[n.name]:a;if("ThisExpression"===n.type)return{}.hasOwnProperty.call(t,"this")?t.this:a;if("CallExpression"===n.type){var v=e(n.callee,s);if(v===a)return a;if("function"!=typeof v)return a;var g=n.callee.object?e(n.callee.object,s):a;g===a&&(g=null);var y=[];for(u=0,d=n.arguments.length;u<d;u++){var b;if((b=e(n.arguments[u],s))===a)return a;y.push(b)}if(s)return;return v.apply(g,y)}var w;if("MemberExpression"===n.type)return(f=e(n.object,s))===a||"function"==typeof f&&o?a:"Identifier"!==n.property.type||n.computed?null===(w=e(n.property,s))||w===a||i(w)?a:f[w]:i(n.property.name)?a:f[n.property.name];if("ConditionalExpression"===n.type)return(l=e(n.test,s))===a?a:l?e(n.consequent):e(n.alternate,s);if("ExpressionStatement"===n.type)return(l=e(n.expression,s))===a?a:l;if("ReturnStatement"===n.type)return e(n.argument,s);if("FunctionExpression"===n.type){var x=n.body.body,E={};for(Object.keys(t).forEach(function(e){E[e]=t[e]}),u=0;u<n.params.length;u++){var S=n.params[u];if("Identifier"!=S.type)return a;t[S.name]=null}for(var u in x)if(e(x[u],!0)===a)return a;t=E;var k=Object.keys(t),C=k.map(function(e){return t[e]});return Function(k.join(", "),"return "+r(n)).apply(null,C)}if("TemplateLiteral"===n.type){var _="";for(u=0;u<n.expressions.length;u++)_+=e(n.quasis[u],s),_+=e(n.expressions[u],s);return _+e(n.quasis[u],s)}if("TaggedTemplateExpression"===n.type){var T=e(n.tag,s),P=n.quasi,I=P.quasis.map(e),A=P.expressions.map(e);return T.apply(null,[I].concat(A))}return"TemplateElement"===n.type?n.value.cooked:a}(e);return s===a?void 0:s}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")},9394(e,t,n){"use strict";var r=n(5944),i=n(8726);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},9411(e,t,n){"use strict";var r=n(7734)(),i=n(7375),o=r&&i("%Object.defineProperty%",!0),a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(4553);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},9460(e,t,n){"use strict";var r=n(6989),i=n(7277),o=n(7858),a=n(3110);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1173),t=n(8932);let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var i=n(465);function o(e){const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.stopPropagation(),e.currentTarget.click())}function a(...e){return e.filter(e=>"string"==typeof e).reduce((e,t)=>e.concat(t.split(" ")),[]).map(e=>e.trim()).filter(e=>!!e).join(" ")}let s;function l(e,t,n,r,i,o=!0){const a=r?1:-1,s=e[n=Math.max(0,Math.min(e.length-1,n))];if(t===n)return s;if(i?i(s):u(s))return s;if(n+a>=e.length){if(!o)return s;n=0}else if(n+a<0){if(!o)return s;n=e.length-1}else n+=a;return l(e,t,n,r,i,o)}function c(e,t){if(!u(e))return[];const n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,e=>u(e,!1)?t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_REJECT),r=[];let i=n.nextNode();for(;i;)r.push(i),i=n.nextNode();return r}function u(e,t=!0){if(e.checkVisibility)return e.checkVisibility({visibilityProperty:!0});const n=getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility&&(!t||!e.parentElement||u(e.parentElement,t))}function d(e){return f(e)&&u(e)}function f(e){return!function(e){return!(!e||!e.hasAttribute("disabled"))}(e)&&!!(e.hasAttribute("tabindex")||"A"===e.tagName&&(e.hasAttribute("href")||e.hasAttributeNS("xlink","href"))||"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"IFRAME"===e.tagName||"EMBED"===e.tagName||"OBJECT"===e.tagName||"DIV"===e.tagName&&e.hasAttribute("contenteditable")&&"false"!==e.getAttribute("contenteditable")||("AUDIO"===e.tagName||"VIDEO"===e.tagName)&&e.hasAttribute("controls"))}function p(e){return!!f(e)&&(!e.hasAttribute("tabindex")||parseInt(e.getAttribute("tabindex"))>=0)}var h;let m;var v;let g;var y;(h=s||(s={})).LearnMoreLink="https://makecode.microbit.org/teachertool",h.ExperienceId="code-eval",h.MinAIQuestionLength=10,(v=m||(m={})).AppTitle=lf("Code Evaluation"),v.AppTitleShort=lf("Code Eval"),v.ErrorLoadingChecklistMsg=lf("That wasn't a valid checklist."),v.ConfirmReplaceChecklistMsg=lf("This will replace your current checklist. Continue?"),v.UntitledProject=lf("Untitled Project"),v.UntitledChecklist=lf("Untitled Checklist"),v.NewChecklistTitle=lf("New Checklist"),v.NewChecklist=lf("New Checklist"),v.ImportChecklist=lf("Import Checklist"),v.ExportChecklist=lf("Export Checklist"),v.Export=lf("Export"),v.Remove=lf("Remove"),v.Evaluate=lf("Evaluate"),v.Criteria=lf("Criteria"),v.Name=lf("Name"),v.ChecklistNamePlaceholder=lf("Enter Checklist Name"),v.AddCriteria=lf("Add Criteria"),v.AskAI=lf("Ask AI"),v.Custom=lf("Custom"),v.CustomPromptPlaceholder=lf("Write your own question here (minimum {0} characters)...",s.MinAIQuestionLength),v.Actions=lf("Actions"),v.RunOnLoad=lf("Evaluate on load"),v.RunOnLoadDescription=lf("Automatically evaluate a project when it is loaded"),v.AddNotes=lf("Add Notes"),v.DragAndDrop=lf("Drag & Drop"),v.ReleaseToUpload=lf("Release to Upload"),v.Browse=lf("Browse"),v.SelectChecklistFile=lf("Select Checklist File"),v.InvalidChecklistFile=lf("Invalid Checklist File"),v.Cancel=lf("Cancel"),v.SelectBlock=lf("Select Block"),v.ValueRequired=lf("Value Required"),v.AddSelected=lf("Add Selected"),v.Continue=lf("Continue"),v.Loading=lf("Loading..."),v.Close=lf("Close"),v.AddToChecklist=lf("Add to Checklist"),v.SelectCriteriaDescription=lf("Select the criteria you'd like to include"),v.Checklist=lf("Checklist"),v.Home=lf("Home"),v.CreateEmptyChecklist=lf("Create Empty Checklist"),v.Other=lf("Other"),v.SignIn=lf("Sign In"),v.ConfirmDeleteCriteriaInstance=lf("Are you sure you want to remove this criteria?"),v.Print=lf("Print"),v.Rename=lf("Rename"),v.RenameChecklist=lf("Rename checklist"),v.PrintChecklist=lf("Print checklist"),v.EvaluateChecklist=lf("Evaluate checklist"),v.UnableToEvaluate=lf("Unable to evaluate"),v.UnableToReachAI=lf("Unable to reach the AI service"),v.UnexpectedError=lf("An unexpected error occurred"),v.Dismiss=lf("Dismiss"),v.QuestionTooShort=lf("Question must be at least {0} characters",s.MinAIQuestionLength),v.EvaluationComplete=lf("Evaluation complete"),v.UnableToEvaluatePartial=lf("Unable to evaluate some criteria"),v.GiveFeedback=lf("Give Feedback"),v.MaxReached=lf("Maximum count reached for this item"),v.ExceedsMaxLength=lf("Exceeds maximum length"),v.MustBeANumber=lf("Must be a number"),v.BelowMin=lf("Below minimum value"),v.ExceedsMax=lf("Exceeds maximum value"),v.InvalidValue=lf("Invalid value"),v.InvalidShareLink=lf("Invalid share link"),v.Privacy=lf("Privacy"),v.TermsOfUse=lf("Terms of Use"),(y=g||(g={})).Loaded="teachertool.loaded",y.HomeLink="teachertool.homelink",y.BrandLink="teachertool.brandlink",y.OrgLink="teachertool.orglink",y.Error="teachertool.error",y.NewChecklist="teachertool.newchecklist",y.ImportChecklistOpen="teachertool.importchecklist.open",y.ImportChecklistInvalidFile="teachertool.importchecklist.invalidfile",y.ImportChecklistSuccess="teachertool.importchecklist.success",y.ImportChecklistClose="teachertool.importchecklist.close",y.ExportChecklist="teachertool.exportchecklist",y.LoadChecklistFromUrl="teachertool.loadchecklistfromurl",y.SingleEvaluate="teachertool.singleevaluate",y.BulkEvaluate="teachertool.bulkevaluate",y.RunOnLoad="teachertool.runonload",y.AddCriteria="teachertool.addcriteria",y.RemoveCriteria="teachertool.removecriteria",y.AddResultNotes="teachertool.addresultnotes",y.UserMenuSignout="teachertool.usermenu.signout",y.UserMenuSignIn="teachertool.usermenu.signin",y.SignedOutPanelSignIn="teachertool.signedoutpanel.signin",y.CriteriaFeedback="teachertool.criteriafeedback",y.Print="teachertool.print",y.UnhandledEvalError="teachertool.evaluateerror",y.FeedbackForm="teachertool.feedbackform",y.ParamErrorMissingMessage="teachertool.paramerrormissingmessage",y.SetEvalResultOutcome="teachertool.setevalresultoutcome",y.SetEvalResultNotes="teachertool.setevalresultnotes",y.LoadProjectFromInput="teachertool.loadproject.frominput",y.LoadProjectFromUrl="teachertool.loadproject.fromurl",y.LoadProjectInvalid="teachertool.loadproject.invalid",y.BlockPickerBlockSelected="teachertool.blockpicker.blockselected",y.BlockPickerOpened="teachertool.blockpicker.opened",y.PrivacyStatementClicked="teachertool.privacystatement.clicked",y.TermsOfUseClicked="teachertool.termsofuse.clicked";const b=Object.assign(s,{Strings:m,Ticks:g});function w(e,t,n=5e3){return{id:r(),type:e,text:t,timeoutMs:n}}function x(){return{name:m.NewChecklistTitle,criteria:[]}}function E(e){return-1!==(null==e?void 0:e.indexOf("makecode"))?e:`https://makecode.com/${e}`}function S(e){const t=e.split(/\$\{([\w\s]+)\}/g),n=[];for(let e=0;e<t.length;e++){const r=t[e];r&&(e%2==0?n.push({type:"plain-text",content:r.trim()}):n.push({type:"param",content:r.toLocaleLowerCase().trim()}))}return n}function k(e){return e.template.replaceAll("${","").replaceAll("}","")}function C(e){return-1!==e.indexOf("_")?pxt.Util.snakeCaseToLowercaseWithSpaces(e):pxt.Util.camelCaseToLowercaseWithSpaces(e)}function _(e){return 0==e.criteria.length?"empty":pxt.Util.sha256(JSON.stringify(e.criteria))}function T(e){return!e||(null==e?void 0:e.length)<=5?"":"..."+e.slice(-5)}const P={toasts:[],evalResults:{},projectMetadata:void 0,catalog:void 0,checklist:x(),activeTab:"home",validatorPlans:void 0,runOnLoad:!1,modalOptions:void 0,toolboxCategories:void 0,blockImageCache:{},catalogOpen:!1,askAiOpen:!1,screenReaderAnnouncement:void 0,userProfile:void 0,projectReloadCounter:0,flags:{testCatalog:!1}};let I,A;const O=new WeakMap,j=new WeakMap,N=new WeakMap,M=new WeakMap,R=new WeakMap;let L={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return j.get(e);if("objectStoreNames"===t)return e.objectStoreNames||N.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return F(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function D(e){return"function"==typeof e?function(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(A||(A=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(B(this),t),F(O.get(this))}:function(...t){return F(e.apply(B(this),t))}:function(t,...n){const r=e.call(B(this),t,...n);return N.set(r,t.sort?t.sort():[t]),F(r)}}(e):(e instanceof IDBTransaction&&function(e){if(j.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});j.set(e,t)}(e),t=e,(I||(I=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,L):e);var t}function F(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(F(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&O.set(t,e)}).catch(()=>{}),R.set(t,e),t}(e);if(M.has(e))return M.get(e);const t=D(e);return t!==e&&(M.set(e,t),R.set(t,e)),t}const B=e=>R.get(e),U=["get","getKey","getAll","getAllKeys","count"],z=["put","add","delete","clear"],V=new Map;function $(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(V.get(t))return V.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=z.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!U.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return V.set(t,o),o}L=(e=>({...e,get:(t,n,r)=>$(t,n)||e.get(t,n,r),has:(t,n)=>!!$(t,n)||e.has(t,n)}))(L);let H=function(e){return e.runEval="runEval",e.addingMissingCriteria="addingMissingCriteria",e.getProjectTextAsync="getProjectTextAsync",e.getProjectMetaAsync="getProjectMetaAsync",e.downloadTargetConfigAsync="downloadTargetConfigAsync",e.evalMissingCriteria="evalMissingCriteria",e.evalMissingPlan="evalMissingPlan",e.evalParameterUnset="evalParameterUnset",e.evalMissingCatalogParameter="evalMissingCatalogParameter",e.loadCollectionFileFailed="loadCollectionFileFailed",e.unableToGetIndexedDbRecord="unableToGetIndexedDbRecord",e.unableToSetIndexedDbRecord="unableToSetIndexedDbRecord",e.unableToDeleteIndexedDbRecord="unableToDeleteIndexedDbRecord",e.unableToLoadCriteriaInstance="unableToLoadCriteriaInstance",e.unableToExportChecklist="unableToExportChecklist",e.unableToReadChecklistFile="unableToReadChecklistFile",e.localStorageReadError="localStorageReadError",e.localStorageWriteError="localStorageWriteError",e.missingCriteriaInstance="missingCriteriaInstance",e.validatorPlansNotFound="validatorPlansNotFound",e.fetchRequestFailed="fetchRequestFailed",e.fetchJsonDocAsync="fetchJsonDocAsync",e.missingParameter="missingParameter",e.selectedBlockWithoutOptions="selectedBlockWithoutOptions",e.unrecognizedSystemParameter="unrecognizedSystemParameter",e.invalidValidatorPlan="invalidValidatorPlan",e.askAIQuestion="askAIQuestion",e.missingTag="missingTag",e.noCatalogCriteria="noCatalogCriteria",e.criteriaInstanceNotFound="criteriaInstanceNotFound",e.signInFailed="signInFailed",e.loginApiError="loginApiError",e.authCheckFailed="authCheckFailed",e.unrecognizedParameterType="unrecognizedParameterType",e.invalidParameterValue="invalidParameterValue",e.invalidPremadeChecklist="invalidPremadeChecklist",e}({});var q=n(3705);const W=()=>{const e=new Date;return`[${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}]`},G=(e,t,n={})=>{let r={...n};t&&("object"==typeof t?(r={...r,...t},["message","stack","name"].forEach(e=>{t[e]&&(r[e]=t[e])})):r.message=t),pxt.tickEvent(g.Error,{...r,errorCode:e}),q.error(W(),e,r)},X=(e,t)=>{(pxt.BrowserUtils.isLocalHost()||pxt.options.debug)&&q.log(W(),e,t)},Y="teachertool",K=[Y,"runOnLoad"].join("/"),Q=[Y,"lastActiveChecklist"].join("/"),J=[Y,"splitPosition"].join("/"),Z=[Y,"expandedCatalogTags"].join("/"),ee=[Y,"blockAsText"].join("/");function te(e,t){return localStorage.getItem(e)||t}function ne(e,t){localStorage.setItem(e,t)}const re="checklists";class ie{constructor(){this.db=void 0}async initializeAsync(){this.db||(this.db=await function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=F(a);return r&&a.addEventListener("upgradeneeded",e=>{r(F(a.result),e.oldVersion,e.newVersion,F(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}("makecode-project-insights",2,{upgrade(e){e.createObjectStore(re,{keyPath:"name"})}}))}async getAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{return await this.db.get(e,t)}catch(e){G(H.unableToGetIndexedDbRecord,e)}}async setAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{await this.db.put(e,t)}catch(e){G(H.unableToSetIndexedDbRecord,e)}}async deleteAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{await this.db.delete(e,t)}catch(e){G(H.unableToDeleteIndexedDbRecord,e)}}getChecklist(e){return this.getAsync(re,e)}saveChecklist(e){return this.setAsync(re,e)}deleteChecklist(e){return this.deleteAsync(re,e)}}const oe=(async()=>{const e=new ie;return await e.initializeAsync(),e})();function ae(e){return[ee,e].join("/")}function se(){try{return"true"===te(K,"false")}catch(e){return G(H.localStorageReadError,e),!1}}function le(){try{var e;return null!==(e=te(Q))&&void 0!==e?e:""}catch(e){return G(H.localStorageReadError,e),""}}function ce(e){try{ne(Q,e)}catch(e){G(H.localStorageWriteError,e)}}function ue(){try{const e=te(Z);return e?JSON.parse(e):void 0}catch(e){return void G(H.localStorageReadError,e)}}function de(e){try{ne(Z,JSON.stringify(e))}catch(e){G(H.localStorageWriteError,e)}}function fe(e){let t=ue();t||(t=[]),t.push(e),de(t)}function pe(e,t){switch(t.type){case"SHOW_TOAST":return e.toasts.find(e=>e.id===t.toast.id)?e:{...e,toasts:[...e.toasts,t.toast]};case"DISMISS_TOAST":{const n=e.toasts.filter(e=>e.id!==t.toastId);return{...e,toasts:n}}case"SET_PROJECT_METADATA":return{...e,projectMetadata:t.metadata,projectReloadCounter:t.force?e.projectReloadCounter+1:e.projectReloadCounter};case"SET_EVAL_RESULT":return{...e,evalResults:{...e.evalResults,[t.criteriaInstanceId]:t.result}};case"SET_EVAL_RESULTS_BATCH":return{...e,evalResults:t.criteriaResults};case"CLEAR_ALL_EVAL_RESULT_NOTES":{const t={...e.evalResults};for(const e of Object.keys(t))t[e].notes="";return{...e,evalResults:t}}case"CLEAR_EVAL_RESULT":{const n={...e.evalResults};return delete n[t.criteriaInstanceId],{...e,evalResults:n}}case"CLEAR_ALL_EVAL_RESULTS":return{...e,evalResults:{}};case"SET_CATALOG":return{...e,catalog:t.catalog};case"SET_CATALOG_OPEN":return{...e,catalogOpen:t.open};case"SET_ASK_AI_OPEN":return{...e,askAiOpen:t.open};case"SET_CHECKLIST":return async function(e,t){const n=e&&t&&(null==e?void 0:e.name)!==t.name,r=e&&!t;t&&await async function(e){await async function(e){const t=await oe;await t.saveChecklist(e)}(e),ce(e.name)}(t),(n||r)&&await async function(e){await async function(e){const t=await oe;await t.deleteChecklist(e)}(e),le()===e&&ce("")}(e.name)}(e.checklist,t.checklist),{...e,checklist:t.checklist};case"SHOW_MODAL":return{...e,modalOptions:t.modalOptions};case"HIDE_MODAL":return{...e,modalOptions:void 0};case"SET_VALIDATOR_PLANS":return{...e,validatorPlans:t.plans};case"SET_TARGET_CONFIG":return{...e,targetConfig:t.config};case"SET_ACTIVE_TAB":return{...e,activeTab:t.tabName};case"SET_RUN_ON_LOAD":return{...e,runOnLoad:t.runOnLoad};case"SET_TOOLBOX_CATEGORIES":return{...e,toolboxCategories:t.categories};case"SET_BLOCK_IMAGE_URI":{const n={...e.blockImageCache};return n[t.blockId]=t.imageUri,{...e,blockImageCache:n}}case"SET_SCREEN_READER_ANNOUNCEMENT":return{...e,screenReaderAnnouncement:t.announcement};case"SET_USER_PROFILE":return{...e,userProfile:t.profile};case"SET_USER_FEEDBACK":{const n={...e.checklist},r=n.criteria.find(e=>e.instanceId===t.criteriaInstanceId);return r&&(r.userFeedback=t.userFeedback),{...e,checklist:n}}}}var he=n(6362),me=n.n(he);const ve=window.location.href,ge=!!/testcatalog(?:[:=])1/.test(ve)||!!/tc(?:[:=])1/.test(ve);let ye,be,we;const xe=new Promise(e=>{we=()=>e(!0)}),Ee=()=>(me()(ye&&be,"AppStateContext not ready"),{state:ye,dispatch:be}),Se=(0,e.createContext)({state:void 0,dispatch:void 0});function ke(t){const[n,r]=(0,e.useReducer)(pe,{...P,runOnLoad:se(),flags:{...P.flags,testCatalog:ge}});return(0,e.useEffect)(()=>{ye=n,be=r,we()},[n,r]),(0,i.jsx)(Se.Provider,{value:{state:n,dispatch:r},children:t.children})}const Ce=e=>({type:"SHOW_TOAST",toast:e}),_e=e=>({type:"DISMISS_TOAST",toastId:e}),Te=(e,t)=>({type:"SET_PROJECT_METADATA",metadata:e,force:t}),Pe=e=>({type:"CLEAR_EVAL_RESULT",criteriaInstanceId:e}),Ie=e=>({type:"SET_USER_PROFILE",profile:e});async function Ae(e){try{const t=await fetch(e,{cache:"no-cache"});if(t.ok)return await t.json();throw new Error("Unable to fetch the json file")}catch(e){G(H.fetchJsonDocAsync,e)}}function Oe(e){const t=e.split("/");return t.splice(t.length-1,0,"test"),t.join("/")}async function je(e,t){const{state:n}=Ee(),r=n.flags.testCatalog?e.map(Oe).concat(e):e;let i=[];for(const e of r)try{const n=await fetch(e,{cache:"no-cache"});if(n.ok){var o;const e=await n.json();i=i.concat(null!==(o=e[t])&&void 0!==o?o:[])}}catch(n){G(H.loadCollectionFileFailed,n,{collection:t,file:e});continue}return i}const Ne={header:"HeaderBar_header__pBql2","left-menu":"HeaderBar_left-menu__phGxx","right-menu":"HeaderBar_right-menu__o24ph",org:"HeaderBar_org__2wCvh",logo:"HeaderBar_logo__ybst2","organization-name":"HeaderBar_organization-name__4cFp0",brand:"HeaderBar_brand__w4YPa","brand-text":"HeaderBar_brand-text__v1561","brand-text-short":"HeaderBar_brand-text-short__Zygks","centered-panel":"HeaderBar_centered-panel__RgeGl","app-title":"HeaderBar_app-title__Iv1Zf","user-menu":"HeaderBar_user-menu__ELItm","sign-in-button":"HeaderBar_sign-in-button__56EOo",avatar:"HeaderBar_avatar__Sj5JF","feedback-btn":"HeaderBar_feedback-btn__IF+k2"},Me=e=>{const t=Le(e);return(0,i.jsx)("button",{...t,children:(0,i.jsx)(Re,{...e})})},Re=e=>{const{label:t,labelClassName:n,leftIcon:r,rightIcon:o,children:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(r||o||t)&&(0,i.jsxs)("span",{className:"common-button-flex",children:[r&&(0,i.jsx)("i",{className:r,"aria-hidden":!0}),(0,i.jsx)("span",{className:a("common-button-label",n),children:t}),o&&(0,i.jsx)("i",{className:"right "+o,"aria-hidden":!0})]}),s]})};function Le(e){const{onClick:t,onClickEvent:n,onRightClick:r,onKeydown:i,onBlur:a,onFocus:s,onMouseDown:l,buttonRef:c,target:u,href:d,hardDisabled:f}=e;let{disabled:p}=e;return p=p||f,{...De(e),ref:c,onClick:p?void 0:e=>{n&&n(e),t&&t(),d&&window.open(d,u||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onContextMenu:e=>{r&&(r(),e.stopPropagation(),e.preventDefault())},onKeyDown:i||o,onBlur:a,onFocus:s,onMouseDown:l}}function De(e){const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:o,ariaDescribedBy:s,ariaControls:l,ariaExpanded:c,ariaHasPopup:u,ariaPosInSet:d,ariaSetSize:f,ariaSelected:p,ariaPressed:h,role:m,title:v,type:g,hardDisabled:y,tabIndex:b,autoFocus:w}=e;let{disabled:x}=e;return x=x||y,{id:t,className:a("common-button",n,x&&"disabled"),style:r,title:v,type:g,role:m||"button",tabIndex:b||(x?-1:0),autoFocus:w,disabled:y,"aria-label":i,"aria-hidden":o,"aria-controls":l,"aria-expanded":c,"aria-haspopup":u,"aria-posinset":d,"aria-setsize":f,"aria-describedby":s,"aria-selected":p,"aria-pressed":h}}const Fe=e=>{const{id:t,className:n,role:r,ariaHidden:o,ariaLabel:a,ariaLabelledby:s,ariaDescribedBy:c,childTabStopId:u,children:d,focusSelectsItem:f,onItemReceivedFocus:p,useUpAndDownArrowKeys:h,title:m,onClose:v}=e;let g,y;const b=e=>"true"===e.getAttribute("data-isfocusable")&&null!==e.offsetParent;return(0,i.jsx)("div",{id:t,className:n,role:r,tabIndex:u?void 0:0,onKeyDown:e=>{var t;if(null===(t=g)||void 0===t||!t.length)return;const n=document.activeElement,r=g.indexOf(n),i=e=>{e.click?e.click():e.dispatchEvent(new Event("click"))},o=e=>{e.focus(),p&&p(e),f&&i(e)};if(-1===r&&n!==y)return;let a,s;h?(a="ArrowUp",s="ArrowDown"):pxt.Util.isUserLanguageRtl()?(a="ArrowRight",s="ArrowLeft"):(a="ArrowLeft",s="ArrowRight"),f||"Enter"!==e.key&&" "!==e.key?e.key===s?(r===g.length-1||n===y?o(l(g,r,0,!0,b)):o(l(g,r,r+1,!0,b)),e.preventDefault(),e.stopPropagation()):e.key===a?(o(l(g,r,0===r||n===y?g.length-1:r-1,!1,b)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(l(g,r,0,!0,b)),e.preventDefault(),e.stopPropagation()):"End"===e.key?(o(l(g,r,g.length-1,!0,b)),e.preventDefault(),e.stopPropagation()):"Escape"===e.key&&v&&(v(),e.preventDefault(),e.stopPropagation()):(e.preventDefault(),e.stopPropagation(),i(n))},ref:e=>{if(!e||y)return;y=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');g=[];for(const e of t.values())g.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(u){const e=y.querySelector("#"+u);e&&e.setAttribute("tabindex","0")}},"aria-hidden":o,"aria-label":a,"aria-labelledby":s,"aria-describedby":c,title:m,children:d})},Be=e=>(0,i.jsx)(Fe,{...e,role:"menubar",className:a("common-menubar",e.className)}),Ue=e.createContext(null),ze=e.createContext(null),Ve=({children:t})=>{const[n,r]=e.useReducer($e,{regions:[]});return(0,i.jsx)(Ue.Provider,{value:n,children:(0,i.jsx)(ze.Provider,{value:r,children:t})})};function $e(e,t){let n=e.regions.slice();switch(t.type){case"ADD_REGION":const r={id:t.id,enabled:t.enabled,order:t.order,onEscape:t.onEscape},i=n.findIndex(e=>e.id===t.id);-1!==i?n.splice(i,1,r):n.push(r);break;case"REMOVE_REGION":const o=e.regions.findIndex(e=>e.id===t.id);-1!==o&&n.splice(o,1)}return{regions:n}}const He=e=>(0,i.jsx)(Ve,{children:(0,i.jsx)(qe,{...e})}),qe=t=>{const{children:n,id:r,className:i,onEscape:o,arrowKeyNavigation:s,dontStealFocus:u,includeOutsideTabOrder:h,dontRestoreFocus:m,dontTrapFocus:v,focusFirstItem:g,tagName:y,role:b,ariaLabelledby:w,ariaLabel:x,ariaHidden:E,ariaModal:S}=t,k=e.useRef(null),C=e.useRef(document.activeElement),[_,T]=e.useState(!1),P=e.useRef(null),{regions:I}=e.useContext(Ue);e.useEffect(()=>()=>{!m&&C.current&&function(e){for(;e&&!d(e);){const t=e.parentElement;if(!t)break;e=t}e.focus()}(C.current)},[]);const A=e.useCallback(()=>{let e=h?c(k.current,f):function(e){return c(e,p)}(k.current);if(I.length){const n={};for(const e of I){var t;const r=null===(t=k.current)||void 0===t?void 0:t.querySelector(`[data-focus-trap-region="${e.id}"]`);r&&(n[e.id]=r)}for(const t of I){const r=n[t.id];!t.enabled&&r&&(e=e.filter(e=>!r.contains(e)))}const r=e.slice();e.sort((e,t)=>{const i=I.find(t=>{var r;return t.enabled&&(null===(r=n[t.id])||void 0===r?void 0:r.contains(e))}),o=I.find(e=>{var r;return e.enabled&&(null===(r=n[e.id])||void 0===r?void 0:r.contains(t))});return(null==i?void 0:i.order)===(null==o?void 0:o.order)?r.indexOf(e)-r.indexOf(t):i?o?i.order-o.order:-1:1})}return e},[I,h]),O=e.useCallback(e=>{if(!e)return;k.current=e;const t=A();u||_||e.contains(document.activeElement)||!t.length||(k.current.focus(),g&&l(t,-1,0,!0).focus(),T(!0))},[A,u,_,g]),j=e.useCallback(e=>{if(!k.current)return;const t=(t,n)=>{const r=A();if(!r.length)return;let i,o=r.indexOf(e.target);o<0&&(o=r.indexOf(P.current)),i=t?n?l(r,o,r.length-1,t):o===r.length-1?l(r,o,0,t):l(r,o,o+1,t):l(r,o,n?0:0===o?r.length-1:Math.max(o-1,0),t),P.current=i,i.focus(),e.preventDefault(),e.stopPropagation()};if("Escape"===e.key){let t=!1;if(I.length)for(const e of I){var n;if(!e.onEscape)continue;const r=null===(n=k.current)||void 0===n?void 0:n.querySelector(`[data-focus-trap-region="${e.id}"]`);if(null!=r&&r.contains(document.activeElement)){t=!0,e.onEscape();break}}t||o(),e.preventDefault(),e.stopPropagation()}else"Tab"===e.key?v?o():e.shiftKey?t(!1,!1):t(!0,!1):s&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},[A,o,s,I,v]);return e.createElement(y||"div",{id:r,className:a("common-focus-trap",i),ref:O,onKeyDown:j,role:b,tabIndex:-1,"aria-labelledby":w,"aria-label":x,"aria-hidden":E,"aria-modal":S},n)},We=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:s,role:l,isChecked:c,onChange:u,label:d,style:f,tabIndex:p}=e;return(0,i.jsxs)("div",{className:a("common-checkbox",n,"toggle"===f&&"toggle"),children:[(0,i.jsx)("input",{id:t,tabIndex:null!=p?p:0,type:"checkbox",checked:c,onChange:()=>{u(!c)},onKeyDown:o,role:l,"aria-hidden":r,"aria-label":s}),d&&(0,i.jsx)("label",{htmlFor:t,children:d})]})},Ge=e=>{const{isChecked:t}=e;return(0,i.jsx)("span",{className:a("common-checkbox-icon",t&&"checked"),children:t&&(0,i.jsx)("i",{className:"fas fa-check"})})},Xe=t=>{const{id:n,className:r,ariaHidden:o,ariaLabel:s,role:l,items:c,label:u,title:d,icon:f,showChevron:p,tabIndex:h,disabled:m,keepOpenOnCheckboxChange:v}=t,[g,y]=e.useState(!1),b=e.useRef(!1);let w,x;e.useEffect(()=>{if(g&&w&&b.current){const e=w.querySelector("[role=menu]");if(!e)return;const t=e.querySelectorAll("[role=menuitem], [role=menuitemcheckbox], [role=menuitemradio]");for(const e of t){const t=e;if(null!==t.offsetParent){t.focus();break}}}},[g]);const E=()=>{y(!1),x&&x.focus()},S=a("common-menu-dropdown",r),k=n+"-menu",C=function(e){const t=[];let n={items:[]};for(const r of e)"separator"===r.role?(n.className=r.className,n.items.length>0&&(t.push(n),n={items:[]})):n.items.push(r);return n.items.length>0&&t.push(n),t}(c);return(0,i.jsxs)("div",{className:S,ref:e=>{e&&(w=e)},onBlur:e=>{w&&g&&!w.contains(e.relatedTarget)&&y(!1)},children:[(0,i.jsx)(Me,{id:n,label:u,tabIndex:h,buttonRef:e=>{e&&(x=e)},title:d,leftIcon:f,rightIcon:p?g?"fas fa-chevron-up":"fas fa-chevron-down":void 0,role:l||"button",className:a("menu-button",g&&"expanded"),onClick:null,onClickEvent:e=>{b.current=0===e.detail,y(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?k:void 0,ariaLabel:s,ariaHidden:o,disabled:m,onKeydown:e=>{"ArrowDown"!==e.key||g||(b.current=!0,y(!0))}}),g&&(0,i.jsx)(He,{role:"menu",className:"common-menu-dropdown-pane",id:k,arrowKeyNavigation:!0,onEscape:()=>{y(!1),x&&x.focus()},includeOutsideTabOrder:!0,dontTrapFocus:!0,dontRestoreFocus:!0,focusFirstItem:!1,ariaLabelledby:n,tagName:"ul",children:C.map((t,n)=>(0,i.jsxs)(e.Fragment,{children:[t.items.map((t,r)=>{const i=`${n}-${r}`;return"menuitem"===t.role?(0,e.createElement)(Ye,{...t,key:i,onClick:()=>{var e;E(),null===(e=t.onClick)||void 0===e||e.call(t)}}):"link"===t.role?(0,e.createElement)(Qe,{...t,key:i,onClick:()=>{var e;E(),null===(e=t.onClick)||void 0===e||e.call(t)}}):(0,e.createElement)(Ke,{...t,key:i,onChange:e=>{var n;v||E(),null===(n=t.onChange)||void 0===n||n.call(t,e)}})}),n<C.length-1&&(0,i.jsx)("li",{role:"separator",className:a("common-menu-dropdown-separator",t.className)})]},n))})]})},Ye=e=>{const t=Le(e);return(0,i.jsx)("li",{...t,className:a("common-menu-dropdown-item",t.className),role:"menuitem",tabIndex:-1,children:(0,i.jsx)(Re,{...e})})},Ke=e=>{const{label:t,isChecked:n,onChange:r,id:s,className:l,ariaLabel:c,ariaHidden:u,ariaDescribedBy:d}=e;return(0,i.jsxs)("li",{role:"menuitemcheckbox",tabIndex:-1,className:a("common-menu-dropdown-item","common-menu-dropdown-checkbox-item",l),"aria-label":c,"aria-hidden":u,"aria-describedby":d,"aria-checked":n?"true":"false",onClick:()=>r(!n),onKeyDown:o,id:s,children:[(0,i.jsx)(Ge,{isChecked:n}),(0,i.jsx)("span",{children:t})]})},Qe=e=>{const{href:t,label:n,id:r,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,onClick:d}=e;return(0,i.jsx)("li",{role:"none",children:(0,i.jsx)("a",{role:"menuitem",className:a("common-menu-dropdown-item","common-menu-dropdown-link-item",s),"aria-label":l,"aria-hidden":c,"aria-describedby":u,id:r,tabIndex:-1,href:t,target:"_blank",rel:"noopener noreferrer",onClick:d,onKeyDown:o,children:n})})};function Je(e){const{dispatch:t}=Ee();t({type:"SHOW_MODAL",modalOptions:e})}function Ze(){const{state:e,dispatch:t}=Ee();void 0!==e.modalOptions?t({type:"HIDE_MODAL"}):X("Trying to hide model when no modal is active")}function et(e){var t;const{state:n,dispatch:r}=Ee(),i=null!=e&&e.id?e:void 0;X("Set user profile",{oldProfile:n.userProfile,incomingProfile:e,finalProfile:i}),r(Ie(i)),i?"sign-in"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)&&Ze():Je({modal:"sign-in"})}function tt(e){const{dispatch:t}=Ee();t(Ce(e))}class nt extends pxt.auth.AuthClient{async onSignedIn(){X("User signed in");const e=await pxt.auth.getUserStateAsync(),t=pxt.auth.firstName(null==e?void 0:e.profile);tt(w("success",t?lf("Welcome {0}",t):lf("Welcome!")))}async onSignedOut(){return X("User signed out"),et(void 0),Promise.resolve()}async onSignInFailed(){return G(H.signInFailed),Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();X("User profile changed",e.profile),null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),et(e.profile)}async onUserPreferencesChanged(e){return X("User preferences changed",e),Promise.resolve()}async onProfileDeleted(e){return X("Profile deleted",e),Promise.resolve()}async onApiError(e){return G(H.loginApiError,"API error"),X("API error details",e),Promise.resolve()}async onStateCleared(){return X("State cleared"),Promise.resolve()}}let rt;async function it(){if(pxt.auth.hasIdentity())return rt||(rt=new Promise(async(e,t)=>{const n=new nt;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)}),rt)}const ot=()=>{var t,n,r,o,s,l,c;const{state:u}=(0,e.useContext)(Se),d=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme;function f(){var e,t,n,r,i;if(u.userProfile)return null!==(e=null!==(t=null===(n=u.userProfile.idp)||void 0===n?void 0:n.pictureUrl)&&void 0!==t?t:null===(r=u.userProfile.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.dataUrl)&&void 0!==e?e:function(e){var t,n,r,i;const o=null==e||null===(t=e.idp)||void 0===t||null===(n=t.picture)||void 0===n?void 0:n.mimeType,a=null==e||null===(r=e.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.encoded;return o&&a?`data:${o};base64,${a}`:void 0}(u.userProfile)}async function p(){pxt.tickEvent(g.UserMenuSignout),await async function(e){const t=await it();return await(null==t?void 0:t.logoutAsync(e))}(location.hash)}const h=null===(n=pxt)||void 0===n||null===(r=n.appTarget)||void 0===r||null===(o=r.appTheme)||void 0===o?void 0:o.privacyUrl,v=null===(s=pxt)||void 0===s||null===(l=s.appTarget)||void 0===l||null===(c=l.appTheme)||void 0===c?void 0:c.termsOfUseUrl,y=(()=>{const e=[];return h&&e.push({role:"link",id:"privacy",label:m.Privacy,onClick:()=>pxt.tickEvent(g.PrivacyStatementClicked),href:h}),v&&e.push({role:"link",id:"termsOfUse",label:m.TermsOfUse,onClick:()=>pxt.tickEvent(g.TermsOfUseClicked),href:v}),e})();return(0,i.jsxs)(Be,{className:Ne.header,ariaLabel:lf("Header"),role:"navigation",children:[(0,i.jsxs)("div",{className:Ne["left-menu"],children:[(0,i.jsx)("div",{className:Ne.org,onClick:function(){pxt.tickEvent(g.OrgLink),null!=d&&d.organizationUrl&&window.open(d.organizationUrl)},children:d.organizationWideLogo||d.organizationLogo?(0,i.jsxs)(i.Fragment,{children:[d.organizationWideLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"min-sm"),src:d.organizationWideLogo,alt:lf("{0} Logo",d.organization)}),d.organizationLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"max-sm"),src:d.organizationLogo,alt:lf("{0} Logo",d.organization)})]}):(0,i.jsx)("span",{className:Ne["organization-name"],children:d.organization})}),(0,i.jsx)("div",{className:Ne.brand,"aria-label":lf("{0} Logo",d.boardName),role:"menuitem",onClick:function(){pxt.tickEvent(g.BrandLink),null!=d&&d.logoUrl&&window.open(d.logoUrl)},children:d.useTextLogo?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:a(Ne["brand-text"],"min-sm"),children:d.organizationText},"org-name"),(0,i.jsx)("span",{className:a(Ne["brand-text-short"],"max-sm"),children:d.organizationShortText||d.organizationText},"org-name-short")]}):d.logo||d.portraitLogo?(0,i.jsxs)(i.Fragment,{children:[d.logo&&(0,i.jsx)("img",{className:a(Ne.logo,"min-2sm"),src:d.logo,alt:lf("{0} Logo",d.boardName)}),d.portraitLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"max-2sm"),src:d.portraitLogo,alt:lf("{0} Logo",d.boardName)})]}):(0,i.jsx)("span",{className:Ne["brand-text"],children:d.boardName})})]}),(0,i.jsxs)("div",{className:Ne["centered-panel"],children:[(0,i.jsx)("div",{className:a(Ne["app-title"],"min-2md"),children:m.AppTitle}),(0,i.jsx)("div",{className:a(Ne["app-title"],"min-xs max-2md"),children:m.AppTitleShort})]}),(0,i.jsxs)("div",{className:Ne["right-menu"],children:[(0,i.jsx)("div",{children:(0,i.jsx)(Me,{className:Ne["feedback-btn"],labelClassName:"min-sm",leftIcon:"xicon feedback",title:m.GiveFeedback,label:m.GiveFeedback,onClick:()=>{pxt.tickEvent(g.FeedbackForm)},href:"https://aka.ms/teachertool-feedback"})}),(0,i.jsx)(Xe,{id:"settings-dropdown",items:y,icon:"fas fa-cog large",title:lf("Settings")}),function(){const e=[];u.userProfile&&e.push({role:"menuitem",id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:p});const t=f()?(0,i.jsx)("div",{className:Ne.avatar,children:(0,i.jsx)("img",{src:f(),alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=u.userProfile?(0,i.jsx)("span",{children:(0,i.jsx)("div",{className:Ne["avatar-initials"],"aria-hidden":"true",children:pxt.auth.userInitials(u.userProfile)})}):(0,i.jsx)(i.Fragment,{});return(0,i.jsx)("div",{className:Ne["user-menu"],children:u.userProfile?(0,i.jsx)(Xe,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}):(0,i.jsx)(Me,{className:a("inverted",Ne["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:()=>{pxt.tickEvent(g.UserMenuSignIn),Je({modal:"sign-in"})}})})}()]})]})},at={"split-pane":"SplitPane_split-pane__5QjT3",left:"SplitPane_left__aUKhs",right:"SplitPane_right__bep0n","resizing-overlay":"SplitPane_resizing-overlay__eglta","split-vertical":"SplitPane_split-vertical__gKApo",splitter:"SplitPane_splitter__WgA5G","splitter-inner":"SplitPane_splitter-inner__hAcVZ","split-horizontal":"SplitPane_split-horizontal__8n39G"},st=({className:t,split:n,defaultSize:r,startingSize:o,left:s,right:l,leftMinSize:c,rightMinSize:u,onResizeEnd:d})=>{const[f,p]=e.useState(o||r),[h,m]=e.useState(!1),v=e.useRef(null);function g(e){b(e.clientX,e.clientY)}function y(e){e.touches.length>=1&&b(e.touches[0].clientX,e.touches[0].clientY)}function b(e,t){var r;const i=null===(r=v.current)||void 0===r?void 0:r.getBoundingClientRect();if(i){m(!0);const r="vertical"===n?(e-i.left)/i.width*100+"%":(t-i.top)/i.height*100+"%";p(r)}}function w(e){e.preventDefault(),document.addEventListener("mousemove",g),document.addEventListener("mouseup",x),document.addEventListener("touchmove",y),document.addEventListener("touchend",x)}function x(){document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),m(!1)}e.useEffect(()=>{h||null==d||d(f)},[h]);const E={flexBasis:f};return"vertical"===n?(E.minWidth=c,E.maxWidth=`calc(100% - ${u})`):(E.minHeight=c,E.maxHeight=`calc(100% - ${u})`),(0,i.jsxs)("div",{ref:v,className:a(at["split-pane"],at[`split-${n}`],t),children:[(0,i.jsx)("div",{className:at.left,style:E,children:s}),(0,i.jsx)("div",{className:at.splitter,onMouseDown:w,onTouchStart:w,onDoubleClick:function(){p(r),null==d||d(r)},children:(0,i.jsx)("div",{className:at["splitter-inner"]})}),(0,i.jsx)("div",{className:at.right,children:l}),(0,i.jsx)("div",{className:a(at["resizing-overlay"],h?void 0:"hidden")})]})},lt={toolbar:"Toolbar_toolbar__X-piR","toolbar-control-group":"Toolbar_toolbar-control-group__HsuUX","toggle-button":"Toolbar_toggle-button__I9YQc"},ct=Object.assign(({left:e,center:t,right:n,className:r})=>(0,i.jsxs)("div",{className:a(lt.toolbar,"tt-toolbar",r),children:[(0,i.jsx)("div",{className:a(lt.left,"tt-toolbar-left"),children:e}),(0,i.jsx)("div",{className:a(lt.center,"tt-toolbar-center"),children:t}),(0,i.jsx)("div",{className:a(lt.right,"tt-toolbar-right"),children:n})]}),{Button:e=>(0,i.jsx)(Me,{...e,className:a(lt["toolbar-button"],"tt-toolbar-button",e.className),rightIcon:e.icon}),ControlGroup:({children:e,className:t})=>(0,i.jsx)("div",{className:a(lt["toolbar-control-group"],"tt-toolbar-control-group",t),children:e}),MenuDropdown:e=>{const t=(0,i.jsx)("i",{className:"fas fa-ellipsis-v"});return(0,i.jsx)(Xe,{...e,className:a(lt["toolbar-menu-dropdown"],"tt-toolbar-menu-dropdown",e.className),label:t})},Toggle:t=>{const{label:n,title:r,isChecked:o,onToggle:s,className:l}=t,[c,u]=e.useState(o);return(0,i.jsx)(Me,{...t,className:a(lt["toggle-button"],l),title:r,label:n,ariaLabel:n,onClick:()=>{u(!c),s(!c)},rightIcon:c?"fas fa-toggle-on":"fas fa-toggle-off",ariaPressed:c})}});function ut(e){const{state:t,dispatch:n}=Ee();t.activeTab!==e&&n((e=>({type:"SET_ACTIVE_TAB",tabName:e}))(e))}const dt=({children:t,name:n,disabled:r})=>{const{state:o}=(0,e.useContext)(Se),s=a("tt-tabgroup-tab",o.activeTab===n?"tt-tabgroup-tab-active":void 0);return(0,i.jsx)(Me,{className:s,title:n,onClick:()=>{ut(n)},disabled:r,children:t})},ft=({children:e})=>(0,i.jsx)("div",{className:a("TabGroup_tabgroup__I4Tyj","tt-tabgroup"),children:e}),pt=({children:t,name:n})=>{const{state:r}=(0,e.useContext)(Se);return r.activeTab===n?(0,i.jsx)("div",{className:a("TabPanel_tabpanel__cf7Oq","tt-tabpanel"),children:t}):null},ht="HomeScreen_carouselRow__VrI5G",mt="HomeScreen_rowTitle__vi0Bn",vt="HomeScreen_cardContainer__DPPm9",gt="HomeScreen_cardButton__MS1lx",yt="HomeScreen_cardDiv__aK5MF",bt="HomeScreen_cardTitle__NhV5m",wt="HomeScreen_loadingGradient__2Tcfd",xt=e.forwardRef((e,t)=>{const{id:n,className:r,ariaLabel:o,href:s,target:l,children:c,tabIndex:u,title:d}=e,f=a("common-link",r);return(0,i.jsx)("a",{id:n,className:f,ref:t,"aria-label":o,href:s,target:l,rel:"_blank"===l?"noopener noreferrer":"",tabIndex:null!=u?u:0,title:d,children:c})});function Et(e){var t;const{state:n}=Ee();return null===(t=n.catalog)||void 0===t?void 0:t.find(t=>t.id===e)}function St(e,t){return e.checklist.criteria.find(e=>e.instanceId===t)}function kt(e){const t=Et(e.catalogCriteriaId);if(!t)throw new Error("Unrecognized catalog id in criteria instance.");for(const i of null!==(n=e.params)&&void 0!==n?n:[]){var n,r;if(null==t||null===(r=t.params)||void 0===r||!r.find(e=>e.name===i.name))throw new Error("Unrecognized parameter in criteria instance.")}}function Ct(e){if(!e||!e.criteria)return{valid:!1,validCriteria:[],invalidCriteria:[]};const t=[],n=[];for(const r of e.criteria)try{kt(r),t.push(r)}catch(e){G(H.unableToLoadCriteriaInstance,e),n.push(r)}return{valid:0===n.length,validCriteria:t,invalidCriteria:n}}function _t(e){return!!e.projectMetadata}function Tt(e){return e.checklist.name||m.UntitledChecklist}let Pt=function(e){return e[e.Pass=0]="Pass",e[e.Fail=1]="Fail",e[e.CompleteWithNoResult=2]="CompleteWithNoResult",e[e.InProgress=3]="InProgress",e[e.NotStarted=4]="NotStarted",e}({});function It({overwriteExistingEntries:e,checklist:t}){const{state:n,dispatch:r}=Ee();let i={};const o=t||n.checklist;for(const t of o.criteria){const r=t.instanceId;n.evalResults[r]&&!e||(i[r]={result:Pt.NotStarted})}e||(i={...n.evalResults,...i}),r({type:"SET_EVAL_RESULTS_BATCH",criteriaResults:i})}function At(e){const{dispatch:t}=Ee();t((e=>({type:"SET_CHECKLIST",checklist:e}))(e)),It({checklist:e})}async function Ot(e){var t;const{state:n}=Ee(),r=e.name||null!==(t=e.criteria)&&void 0!==t&&t.length?lf("Import '{0}'?",e.name?e.name:m.UntitledChecklist):m.CreateEmptyChecklist;return!(function(e){return!!e.checklist.criteria.length}(n)&&!await async function(e,t){return new Promise(n=>{Je({modal:"confirmation",title:e,message:t,onCancel:()=>n(!1),onContinue:()=>n(!0)})})}(r,m.ConfirmReplaceChecklistMsg)||(At(e),ut("results"),0))}async function jt(e){const t=await Ae(e);if(!t)return void tt(w("error",m.ErrorLoadingChecklistMsg));const{valid:n}=Ct(t);if(!n)return G(H.invalidPremadeChecklist,{checklistUrl:e}),void tt(w("error",m.ErrorLoadingChecklistMsg));pxt.tickEvent(g.LoadChecklistFromUrl,{checklistUrl:e,checklistHash:_(t)}),await Ot(t)}function Nt(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Mt(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Nt(t[n])&&Nt(e[n])&&Object.keys(t[n]).length>0&&Mt(e[n],t[n])})}const Rt={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Lt(){const e="undefined"!=typeof document?document:{};return Mt(e,Rt),e}const Dt={document:Rt,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Ft(){const e="undefined"!=typeof window?window:{};return Mt(e,Dt),e}var Bt=n(3705);function Ut(e,t=0){return setTimeout(e,t)}function zt(){return Date.now()}function Vt(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function $t(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ht(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const r=e[n];if(null!=r&&!$t(r)){const e=Object.keys(Object(r)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,i=e.length;n<i;n+=1){const i=e[n],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(Vt(t[i])&&Vt(r[i])?r[i].__swiper__?t[i]=r[i]:Ht(t[i],r[i]):!Vt(t[i])&&Vt(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:Ht(t[i],r[i])):t[i]=r[i])}}}return t}function qt(e,t,n){e.style.setProperty(t,n)}function Wt({swiper:e,targetPosition:t,side:n}){const r=Ft(),i=-e.translate;let o,a=null;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),d=.5-Math.cos(l*Math.PI)/2;let f=i+d*(t-i);if(c(f,t)&&(f=t),e.wrapperEl.scrollTo({[n]:f}),c(f,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:f})}),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Gt(e,t=""){const n=Ft(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function Xt(e){try{return void Bt.warn(e)}catch(e){}}function Yt(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function Kt(e,t){return Ft().getComputedStyle(e,null).getPropertyValue(t)}function Qt(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Jt(e,t,n){const r=Ft();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Zt(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function en(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let tn,nn,rn;function on(){return tn||(tn=function(){const e=Ft(),t=Lt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),tn}function an(e={}){return nn||(nn=function({userAgent:e}={}){const t=on(),n=Ft(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let p="MacIntel"===r;return!c&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(e)),nn}function sn(){return rn||(rn=function(){const e=Ft(),t=an();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),rn}var ln={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};const cn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},un=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},dn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},fn=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},pn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&fn(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&fn(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&fn(e,r)};var hn={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Kt(r,"padding-left")||0,10)-parseInt(Kt(r,"padding-right")||0,10),n=n-parseInt(Kt(r,"padding-top")||0,10)-parseInt(Kt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:o,wrongRTL:a}=e,s=e.virtual&&n.virtual.enabled,l=s?e.virtual.slides.length:e.slides.length,c=Gt(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:c.length;let d=[];const f=[],p=[];let h=n.slidesOffsetBefore;"function"==typeof h&&(h=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-h-m;let b=n.spaceBetween,w=-h,x=0,E=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b-h-m,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(qt(r,"--swiper-centered-offset-before",""),qt(r,"--swiper-centered-offset-after","")),n.cssMode&&(qt(r,"--swiper-slides-offset-before",`${h}px`),qt(r,"--swiper-slides-offset-after",`${m}px`));const S=n.grid&&n.grid.rows>1&&e.grid;let k;S?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let r=0;r<u;r+=1){k=0;const i=c[r];if(!i||(S&&e.grid.updateSlide(r,i,c),"none"!==Kt(i,"display"))){if(s&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&i&&(n.roundLengths&&(k=Math.floor(k)),i.style[e.getDirectionLabel("width")]=`${k}px`);else if("auto"===n.slidesPerView){C&&(i.style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),o=i.style.transform,a=i.style.webkitTransform;if(o&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)k=e.isHorizontal()?Jt(i,"width",!0):Jt(i,"height",!0);else{const e=t(r,"width"),n=t(r,"padding-left"),o=t(r,"padding-right"),a=t(r,"margin-left"),s=t(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+a+s;else{const{clientWidth:t,offsetWidth:r}=i;k=e+n+o+a+s+(r-t)}}o&&(i.style.transform=o),a&&(i.style.webkitTransform=a),n.roundLengths&&(k=Math.floor(k))}else k=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),i&&(i.style[e.getDirectionLabel("width")]=`${k}px`);i&&(i.swiperSlideSize=k),p.push(k),n.centeredSlides?(w=w+k/2+x/2+b,0===x&&0!==r&&(w=w-y/2-b),0===r&&(w=w-y/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),E%n.slidesPerGroup===0&&d.push(w),f.push(w)):(n.roundLengths&&(w=Math.floor(w)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&d.push(w),f.push(w),w=w+k+b),e.virtualSize+=k+b,x=k,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),S&&e.grid.updateWrapperSize(k,d),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let i=d.length;if(r){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?b:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}const o=[];for(let t=0;t<d.length;t+=1){let a=d[t];n.roundLengths&&(a=Math.floor(a)),r?t<=i&&o.push(a):d[t]<=e.virtualSize-y&&o.push(a)}d=o,Math.floor(e.virtualSize-y)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-y))}if(s&&n.loop){const t=p[0]+b;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==b){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>y?e-y:0;d=d.map(e=>e<=0?-h:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(b||0)}),e-=b,e<y){const t=(y-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){qt(r,"--swiper-centered-offset-before",-d[0]+"px"),qt(r,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==l&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==g&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(s||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(a+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),f=-(a-c),p=f+t.slidesSizesGrid[e],h=f>=0&&f<=t.size-t.slidesSizesGrid[e],m=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),cn(l,m,n.slideVisibleClass),cn(l,h,n.slideFullyVisibleClass),l.progress=i?-u:u,l.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>Gt(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${t}"]`)}else l=s(`[data-swiper-slide-index="${i}"]`);else a?(l=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),c=t.find(e=>e.column===i-1)):l=t[i];l&&(a||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{un(e,e===l,n.slideActiveClass),un(e,e===u,n.slideNextClass),un(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:c}),t.initialized&&pn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==f&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,a=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},mn={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=function(e,t="x"){const n=Ft();let r,i,o;const a=function(e){const t=Ft();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,o.updateProgress(u),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Wt({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function vn({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let a=n;a||(a=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${r}`),t&&"reset"===a?e.emit(`slideResetTransition${r}`):t&&i!==o&&(e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}var gn={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),vn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),vn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},yn={slideTo:function(e=0,t,n=!0,r,i){"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(!h&&!r&&!i||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let v=m+Math.floor((a-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(s.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?a=e:t>=n&&t<r&&(a=e+1):t>=n&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate()))return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==a)return!1}let y;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),y=a>d?"next":a<d?"prev":"reset";const b=o.virtual&&o.params.virtual.enabled;if((!b||!i)&&(f&&-g===o.translate||!f&&g===o.translate))return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(g),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(s.cssMode){const e=o.isHorizontal(),n=f?g:-g;if(0===t)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Wt({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=sn().isSafari;return b&&!i&&w&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,r){"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:l}=i.params,c=n||!!s||!!l;let u=i.params.slidesPerView;"auto"===u?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),r&&c&&"auto"!==i.params.slidesPerView&&!o&&(d=!1),d){const n=c?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?i.realIndex:void 0})}if(o){const e=a*i.params.grid.rows;a=i.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const f=d(s?r.translate:-r.translate),p=o.map(e=>d(e)),h=i.freeMode&&i.freeMode.enabled;let m=o[p.indexOf(f)-1];if(void 0===m&&(i.cssMode||h)){let e;o.forEach((t,n)=>{f>=t&&(e=n)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=a.indexOf(m),v<0&&(v=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(v,e,t,n)}),!0):r.slideTo(v,e,t,n)},slideReset:function(e,t=!0,n){const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.getSlideIndexWhenGrid(e.clickedIndex);const a=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):o>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(Gt(n,`${a}[data-swiper-slide-index="${i}"]`)[0]),Ut(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},bn={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{Gt(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&(()=>{const e=Gt(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const s=r.slidesPerGroup*(a?r.grid.rows:1),l=n.slides.length%s!==0,c=a&&n.slides.length%r.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?Yt("swiper-slide",[r.slideBlankClass]):Yt("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(u(s-n.slides.length%s),n.recalcSlides(),n.updateSlides()):Xt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):c?(r.loopAddBlankSlides?(u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):Xt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o();const d=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:d?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:o,byController:a,byMousewheel:s}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=l,{centeredSlides:h,slidesOffsetBefore:m,slidesOffsetAfter:v,initialSlide:g}=p,y=h||!!m||!!v;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return t&&(y||0!==l.snapIndex?y&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,void l.emit("loopFix");let b=p.slidesPerView;"auto"===b?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(p.slidesPerView,10)),y&&b%2==0&&(b+=1));const w=p.slidesPerGroupAuto?b:p.slidesPerGroup;let x=y?Math.max(w,Math.ceil(b/2)):w;x%w!==0&&(x+=w-x%w),x+=p.loopAdditionalSlides,l.loopedSlides=x;const E=l.grid&&p.grid&&p.grid.rows>1;c.length<b+x||"cards"===l.params.effect&&c.length<b+2*x?Xt("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&"row"===p.grid.fill&&Xt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],k=[],C=E?Math.ceil(c.length/p.grid.rows):c.length,_=o&&C-g<b&&!y;let T=_?g:l.activeIndex;void 0===i?i=l.getSlideIndex(c.find(e=>e.classList.contains(p.slideActiveClass))):T=i;const P="next"===n||!n,I="prev"===n||!n;let A=0,O=0;const j=(E?c[i].column:i)+(y&&void 0===r?-b/2+.5:0);if(j<x){A=Math.max(x-j,w);for(let e=0;e<x-j;e+=1){const t=e-Math.floor(e/C)*C;if(E){const e=C-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&S.push(t)}else S.push(C-t-1)}}else if(j+b>C-x){O=Math.max(j-(C-2*x),w),_&&(O=Math.max(O,b-C+g+1));for(let e=0;e<O;e+=1){const t=e-Math.floor(e/C)*C;E?c.forEach((e,n)=>{e.column===t&&k.push(n)}):k.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<b+2*x&&(k.includes(i)&&k.splice(k.indexOf(i),1),S.includes(i)&&S.splice(S.indexOf(i),1)),I&&S.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),P&&k.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():E&&(S.length>0&&I||k.length>0&&P)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t)if(S.length>0&&I){if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T+A]-e;s?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(A),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=E?S.length/p.grid.rows:S.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(k.length>0&&P)if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T-O]-e;s?l.setTranslate(l.translate-t):(l.slideTo(T-O,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=E?k.length/p.grid.rows:k.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const o={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}},wn={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}};function xn(e,t,n){const r=Ft(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function En(e){const t=this;if(t.destroyed)return;const n=Lt();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void xn(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=t;if(!s)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Ft();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(f?function(e,t=this){return function t(n){if(!n||n===Lt()||n===Ft())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const p=a.currentX,h=a.currentY;if(!xn(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=h,i.touchStartTime=zt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(i.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Sn(e){const t=Lt(),n=this;if(n.destroyed)return;const r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=zt()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(a&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(f))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=h,h*=i.touchRatio,a&&(h=-h,m=-m);const v=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&v!==n.touchesDirection&&g&&y&&Math.abs(h)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let b=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),h>0?(g&&y&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**w))):h<0&&(g&&y&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-h)**w))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function kn(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let r,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find(e=>e.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=zt(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=zt(),Ut(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const p=f>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(p||f>=l[e]&&f<l[e+t])&&(h=e,m=l[e+t]-l[e]):(p||f>=l[e])&&(h=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;o.rewind&&(t.isBeginning?g=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(f-l[h])/m,b=h<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:h+b):t.slideTo(h)),"prev"===t.swipeDirection&&(y>1-o.longSwipesRatio?t.slideTo(h+b):null!==g&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==v?v:h+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:h)):i.target===t.navigation.nextEl?t.slideTo(h+b):t.slideTo(h)}}function Cn(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function _n(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Tn(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Pn(e){const t=this;t.destroyed||(dn(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function In(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const An=(e,t)=>{const n=Lt(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cn,!0):e[c]("observerUpdate",Cn,!0),i[l]("load",e.onLoad,{capture:!0}))};var On={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=En.bind(e),e.onTouchMove=Sn.bind(e),e.onTouchEnd=kn.bind(e),e.onDocumentTouchStart=In.bind(e),t.cssMode&&(e.onScroll=Tn.bind(e)),e.onClick=_n.bind(e),e.onLoad=Pn.bind(e),An(e,"on")},detachEvents:function(){An(this,"off")}};const jn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Nn={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=Lt(),s="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:a.querySelector(r.breakpointsBase),c=e.getBreakpoint(o,s,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=jn(e,r),f=jn(e,u),p=e.params.grabCursor,h=u.grabCursor,m=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!h?e.unsetGrabCursor():!p&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});const v=u.direction&&u.direction!==r.direction,g=r.loop&&(u.slidesPerView!==r.slidesPerView||v),y=r.loop;v&&n&&e.changeDirection(),Ht(e.params,u);const b=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i=Ft(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=o):s<=n.clientWidth&&(r=o)}return r||"max"}},Mn={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},Rn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ln(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Ht(t,n)):Ht(t,n)):Ht(t,n)}}const Dn={eventsEmitter:ln,update:hn,translate:mn,transition:gn,slide:yn,loop:bn,grabCursor:wn,events:On,breakpoints:Nn,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Mn},Fn={};class Bn{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=Ht({},n),t&&!n.el&&(n.el=t);const r=Lt();if(n.el&&"string"==typeof n.el&&r.querySelectorAll(n.el).length>1){const e=[];return r.querySelectorAll(n.el).forEach(t=>{const r=Ht({},n,{el:t});e.push(new Bn(r))}),e}const i=this;i.__swiper__=!0,i.support=on(),i.device=an({userAgent:n.userAgent}),i.browser=sn(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&i.modules.indexOf(e)<0&&i.modules.push(e)});const o={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:Ln(n,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const a=Ht({},Rn,o);return i.params=Ht({},a,Fn,n),i.originalParams=Ht({},i.params),i.passedParams=Ht({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=Qt(Gt(t,`.${n.slideClass}, swiper-slide`)[0]);return Qt(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Gt(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<r.length;e+=1)(t?i[e]+o[e]-i[s]<a:i[e]-i[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)i[s]-i[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&dn(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Gt(n,r())[0];return!i&&t.params.createElements&&(i=Yt("div",t.params.wrapperClass),n.append(i),Gt(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Kt(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Kt(n,"direction")),wrongRTL:"-webkit-box"===Kt(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?dn(t,e):e.addEventListener("load",e=>{dn(t,e.target)})}),pn(t),t.initialized=!0,pn(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Ht(Fn,e)}static get extendedDefaults(){return Fn}static get defaults(){return Rn}static installModule(e){Bn.prototype.__modules__||(Bn.prototype.__modules__=[]);const t=Bn.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Bn.installModule(e)),Bn):(Bn.installModule(e),Bn)}}Object.keys(Dn).forEach(e=>{Object.keys(Dn[e]).forEach(t=>{Bn.prototype[t]=Dn[e][t]})}),Bn.use([function({swiper:e,on:t,emit:n}){const r=Ft();let i=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=r.requestAnimationFrame(()=>{const{width:n,height:r}=e;let i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,o=n?n.height:(t[0]||t).blockSize)}),i===n&&o===r||a()})}),i.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",s))}),t("destroy",()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",s)})},function({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Ft(),a=(t,n={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void r("observerUpdate",t[0]);const n=function(){r("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)});a.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=function(e){const t=[];let n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t}(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const Un=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zn(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Vn(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:zn(t[n])&&zn(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Vn(e[n],t[n]):e[n]=t[n]})}function $n(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function Hn(e={}){return e.pagination&&void 0===e.pagination.el}function qn(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function Wn(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(" ")}function Gn(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Xn(){return Xn=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},Xn.apply(this,arguments)}function Yn(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Kn(t){const n=[];return e.Children.toArray(t).forEach(e=>{Yn(e)?n.push(e):e.props&&e.props.children&&Kn(e.props.children).forEach(e=>n.push(e))}),n}function Qn(t,n){return"undefined"==typeof window?(0,e.useEffect)(t,n):(0,e.useLayoutEffect)(t,n)}const Jn=(0,e.createContext)(null),Zn=(0,e.createContext)(null),er=(0,e.forwardRef)(({className:t,tag:n="div",wrapperTag:r="div",children:i,onSwiper:o,...a}={},s)=>{let l=!1;const[c,u]=(0,e.useState)("swiper"),[d,f]=(0,e.useState)(null),[p,h]=(0,e.useState)(!1),m=(0,e.useRef)(!1),v=(0,e.useRef)(null),g=(0,e.useRef)(null),y=(0,e.useRef)(null),b=(0,e.useRef)(null),w=(0,e.useRef)(null),x=(0,e.useRef)(null),E=(0,e.useRef)(null),S=(0,e.useRef)(null),{params:k,passedParams:C,rest:_,events:T}=function(e={},t=!0){const n={on:{}},r={},i={};Vn(n,Rn),n._emitClasses=!0,n.init=!1;const o={},a=Un.map(e=>e.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?zn(e[s])?(n[s]={},i[s]={},Vn(n[s],e[s]),Vn(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(a),{slides:P,slots:I}=function(t){const n=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(t).forEach(e=>{if(Yn(e))n.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){const t=Kn(e.props.children);t.length>0?t.forEach(e=>n.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:n,slots:r}}(i),A=()=>{h(!p)};Object.assign(k.on,{_containerClasses(e,t){u(t)}});const O=()=>{Object.assign(k.on,T),l=!0;const e={...k};if(delete e.wrapperClass,g.current=new Bn(e),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:f,renderExternalUpdate:!1};Vn(g.current.params.virtual,e),Vn(g.current.originalParams.virtual,e)}};return v.current||O(),g.current&&g.current.on("_beforeBreakpoint",A),(0,e.useEffect)(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",A)}),(0,e.useEffect)(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),Qn(()=>{if(s&&(s.current=v.current),v.current)return g.current.destroyed&&O(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){$n(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),Hn(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),qn(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:v.current,nextEl:w.current,prevEl:x.current,paginationEl:E.current,scrollbarEl:S.current,swiper:g.current},k),o&&!g.current.destroyed&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Qn(()=>{!l&&T&&g.current&&Object.keys(T).forEach(e=>{g.current.on(e,T[e])});const e=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return Un.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(zn(e[n])&&zn(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),o}(C,y.current,P,b.current,e=>e.key);return y.current=C,b.current=P,e.length&&g.current&&!g.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,v,g,y,b,w,x,E;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&f&&!f.el&&(y=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&d&&!d.prevEl&&!d.nextEl&&(b=!0);const S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),c[t].prevEl=void 0,c[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),c[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?w=!0:!c.loop&&n.loop?x=!0:E=!0),l.forEach(e=>{if(zn(c[e])&&zn(n[e]))Object.assign(c[e],n[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in n[e])||n[e].enabled||S(e);else{const t=n[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=n[e]:!1===t&&S(e)}}),l.includes("controller")&&!v&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled?(p.slides=t,p.update(!0)):r.includes("virtual")&&p&&c.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes("children")&&t&&c.loop&&(E=!0),m&&h.init()&&h.update(!0),v&&(e.controller.control=c.controller.control),g&&(!e.isElement||s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(c.pagination.el=s),u.init(),u.render(),u.update()),y&&(!e.isElement||a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),b&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),en(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),en(o,e.navigation.arrowSvg),o.part.add("button-prev"),e.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||E)&&e.loopDestroy(),(x||E)&&e.loopCreate(),e.update()}({swiper:g.current,slides:P,passedParams:C,changedParams:e,nextEl:w.current,prevEl:x.current,scrollbarEl:S.current,paginationEl:E.current}),()=>{T&&g.current&&Object.keys(T).forEach(e=>{g.current.off(e,T[e])})}}),Qn(()=>{(e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())})(g.current)},[d]),e.createElement(n,Xn({ref:v,className:Wn(`${c}${t?` ${t}`:""}`)},_),e.createElement(Zn.Provider,{value:g.current},I["container-start"],e.createElement(r,{className:Gn(k.wrapperClass)},I["wrapper-start"],k.virtual?function(t,n,r){if(!r)return null;const i=e=>{let t=e;return e<0?t=n.length+e:t>=n.length&&(t-=n.length),t},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:a,to:s}=r,l=t.params.loop?-n.length:0,c=t.params.loop?2*n.length:n.length,u=[];for(let e=l;e<c;e+=1)e>=a&&e<=s&&u.push(n[i(e)]);return u.map((n,r)=>e.cloneElement(n,{swiper:t,style:o,key:n.props.virtualIndex||n.key||`slide-${r}`}))}(g.current,P,d):P.map((t,n)=>e.cloneElement(t,{swiper:g.current,swiperSlideIndex:n})),I["wrapper-end"]),$n(k)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:x,className:"swiper-button-prev"}),e.createElement("div",{ref:w,className:"swiper-button-next"})),qn(k)&&e.createElement("div",{ref:S,className:"swiper-scrollbar"}),Hn(k)&&e.createElement("div",{ref:E,className:"swiper-pagination"}),I["container-end"]))});er.displayName="Swiper";const tr=(0,e.forwardRef)(({tag:t="div",children:n,className:r="",swiper:i,zoom:o,lazy:a,virtualIndex:s,swiperSlideIndex:l,...c}={},u)=>{const d=(0,e.useRef)(null),[f,p]=(0,e.useState)("swiper-slide"),[h,m]=(0,e.useState)(!1);function v(e,t,n){t===d.current&&p(n)}Qn(()=>{if(void 0!==l&&(d.current.swiperSlideIndex=l),u&&(u.current=d.current),d.current&&i){if(!i.destroyed)return i.on("_slideClass",v),()=>{i&&i.off("_slideClass",v)};"swiper-slide"!==f&&p("swiper-slide")}}),Qn(()=>{i&&d.current&&!i.destroyed&&p(i.getSlideClasses(d.current))},[i]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isFullyVisible:f.indexOf("swiper-slide-fully-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>"function"==typeof n?n(g):n;return e.createElement(t,Xn({ref:d,className:Wn(`${f}${r?` ${r}`:""}`),"data-swiper-slide-index":s,onLoad:()=>{m(!0)}},c),o&&e.createElement(Jn.Provider,{value:g},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},y(),a&&!h&&e.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!o&&e.createElement(Jn.Provider,{value:g},y(),a&&!h&&e.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});function nr({swiper:e,extendParams:t,on:n,emit:r}){const i=Ft();let o;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,s=zt();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function d(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&zt()-s<e.params.mousewheel.thresholdTime||!(t.delta>=6&&zt()-s<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),r("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),r("scroll",t.raw)),s=(new i.Date).getTime(),1))}function f(t){let n=t,i=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const s=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const u=c&&c.contains(n.target);if(!e.mouseEntered&&!u&&!s.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let f=0;const p=e.rtlTranslate?-1:1,h=function(e){let t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(n);if(s.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(h.pixelX)>Math.abs(h.pixelY)))return!0;f=-h.pixelX*p}else{if(!(Math.abs(h.pixelY)>Math.abs(h.pixelX)))return!0;f=-h.pixelY}else f=Math.abs(h.pixelX)>Math.abs(h.pixelY)?-h.pixelX*p:-h.pixelY;if(0===f)return!0;s.invert&&(f=-f);let m=e.getTranslate()+f*s.sensitivity;if(m>=e.minTranslate()&&(m=e.minTranslate()),m<=e.maxTranslate()&&(m=e.maxTranslate()),i=!!e.params.loop||!(m===e.minTranslate()||m===e.maxTranslate()),i&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:zt(),delta:Math.abs(f),direction:Math.sign(f)},i=a&&t.time<a.time+500&&t.delta<=a.delta&&t.direction===a.direction;if(!i){a=void 0;let c=e.getTranslate()+f*s.sensitivity;const u=e.isBeginning,d=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!u&&e.isBeginning||!d&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,r=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&t.time-r.time<500&&r.delta-t.delta>=1&&t.delta<=6){const n=f>0?.8:.2;a=t,l.splice(0),o=Ut(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}o||(o=Ut(()=>{!e.destroyed&&e.params&&(a=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(i||r("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),s.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:zt(),delta:Math.abs(f),direction:Math.sign(f),raw:t};l.length>=2&&l.shift();const r=l.length?l[l.length-1]:void 0;if(l.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&d(n):d(n),function(t){const n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function p(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",u),n[t]("wheel",f)}function h(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):!e.mousewheel.enabled&&(p("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):!!e.mousewheel.enabled&&(p("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&m(),e.params.mousewheel.enabled&&h()}),n("destroy",()=>{e.params.cssMode&&h(),e.mousewheel.enabled&&m()}),Object.assign(e.mousewheel,{enable:h,disable:m})}tr.displayName="SwiperSlide";const rr='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function ir({swiper:e,extendParams:t,on:n,emit:r}){function i(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const r=e.params.navigation;(t=Zt(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=function(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&!0===n.auto){let o=Gt(e.el,`.${r[i]}`)[0];o||(o=Yt("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=Zt(n),r=Zt(r);const o=(n,r)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");en(e,rr),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===r?l:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>o(e,"next")),r.forEach(e=>o(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=Zt(t),n=Zt(n);const r=(t,n)=>{t.removeEventListener("click","next"===n?l:s),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:rr},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=Zt(t),n=Zt(n),e.enabled?a():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:i,prevEl:o}=e.navigation;i=Zt(i),o=Zt(o);const a=n.target;let s=o.includes(a)||i.includes(a);if(e.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||o.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:u})}function or(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ar({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let r,i,o=null,a=(new Date).getTime();function s(e){const t=o;0!==t.length&&en(t,e)}function l(e){(e=Zt(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=Zt(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function p(e){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function h(e){(e=Zt(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function m(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,r=t.target;if(!e.pagination||!e.pagination.el||r!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(or(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=Zt(e.navigation.prevEl);Zt(e.navigation.nextEl).includes(r)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(n.lastSlideMessage):s(n.nextSlideMessage)),t.includes(r)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(n.firstSlideMessage):s(n.prevSlideMessage))}e.pagination&&r.matches(or(e.params.pagination.bulletClass))&&r.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function g(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",m)),f(e,n)},b=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},w=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},x=e=>{a=(new Date).getTime()},E=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;i=n;const o=e.virtual&&e.params.virtual.enabled,s=(o?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);s||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):o?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),r=!1)}))},S=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((r,i)=>{const o=e.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):i;f(r,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{o=Yt("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(o);const n=e.el;t.containerRoleDescriptionMessage&&d(n,t.containerRoleDescriptionMessage),t.containerMessage&&f(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const r=e.wrapperEl,i=t.id||r.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;(function(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("id",t)})})(r,i),t.wrapperLiveRegion&&function(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite"),S();let{nextEl:a,prevEl:s}=e.navigation?e.navigation:{};a=Zt(a),s=Zt(s),a&&a.forEach(e=>y(e,0,t.nextSlideMessage)),s&&s.forEach(e=>y(e,0,t.prevSlideMessage)),g()&&Zt(e.pagination.el).forEach(e=>{e.addEventListener("keydown",m)}),Lt().addEventListener("visibilitychange",x),e.el.addEventListener("focus",E,!0),e.el.addEventListener("pointerdown",b,!0),e.el.addEventListener("pointerup",w,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&S()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(p(n),c(n)):(h(n),l(n))),t&&(e.isEnd?(p(t),c(t)):(h(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),f(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,Qt(n)+1)))),n.matches(or(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=Zt(t),n=Zt(n),t&&t.forEach(e=>e.removeEventListener("keydown",m)),n&&n.forEach(e=>e.removeEventListener("keydown",m)),g()&&Zt(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",m)}),Lt().removeEventListener("visibilitychange",x),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",E,!0),e.el.removeEventListener("pointerdown",b,!0),e.el.removeEventListener("pointerup",w,!0))}()})}const sr=()=>(0,i.jsxs)("div",{className:"HomeScreen_welcome__aApRq",children:[(0,i.jsx)("h1",{children:lf("Welcome to MakeCode Code Evaluation!")}),(0,i.jsxs)("p",{children:[lf("This tool is designed to help you evaluate student projects using an automated checklist.")," ",(0,i.jsx)(xt,{target:"_blank",href:b.LearnMoreLink,children:lf("Learn More.")})]})]}),lr=({title:e,className:t,icon:n,onClick:r})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,t),title:e,onClick:r,children:(0,i.jsxs)("div",{className:yt,children:[n&&(0,i.jsx)("div",{className:"HomeScreen_cardIcon__jvgov",children:(0,i.jsx)("i",{className:n})}),(0,i.jsx)("div",{className:bt,children:(0,i.jsx)("h3",{children:e})})]})})}),cr=({delay:e})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,wt,e?"HomeScreen_loadingGradientDelay__gWkBN":void 0),title:"",onClick:()=>{},children:(0,i.jsx)("div",{className:yt,children:(0,i.jsx)("div",{className:wt})})})}),ur=({cardTitle:e,imageUrl:t,checklistUrl:n})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,"HomeScreen_checklistResource__LQarV"),title:e,onClick:async()=>{await jt(n)},children:(0,i.jsx)("div",{className:a(yt),style:{backgroundImage:`url("${t}")`,backgroundSize:"cover"},children:(0,i.jsx)("div",{className:a(bt,"HomeScreen_checklistResourceCardTitle__3CP1f"),children:(0,i.jsx)("h3",{children:e})})})})}),dr=({children:t})=>{const n=e.Children.toArray(t);return(0,i.jsx)(er,{spaceBetween:0,slidesPerView:"auto",allowTouchMove:!0,slidesOffsetBefore:32,navigation:!0,mousewheel:{forceToAxis:!0},modules:[ir,nr,ar],a11y:{prevSlideMessage:lf("Previous slide"),nextSlideMessage:lf("Next slide"),firstSlideMessage:lf("This is the first slide"),lastSlideMessage:lf("This is the last slide"),slideLabelMessage:lf("Slide {0} of {1}","{{index}}","{{slidesLength}}")},className:"HomeScreen_swiperCarousel__fo58O",children:n.map((e,t)=>(0,i.jsx)(tr,{className:"HomeScreen_swiperSlide__dNUEM",children:e},t))})},fr=()=>(0,i.jsxs)("div",{className:ht,children:[(0,i.jsx)("div",{className:mt,children:(0,i.jsx)("h2",{children:lf("Get Started")})}),(0,i.jsxs)(dr,{children:[(0,i.jsx)(lr,{title:m.NewChecklist,icon:"fas fa-plus-circle",className:"HomeScreen_newChecklist__i-DgD",onClick:async()=>{pxt.tickEvent(g.NewChecklist),await async function(){const{dispatch:e}=Ee();await Ot(x())&&e({type:"CLEAR_ALL_EVAL_RESULTS"})}()}}),(0,i.jsx)(lr,{title:m.ImportChecklist,icon:"fas fa-file-upload",className:"HomeScreen_importChecklist__GLc4v",onClick:()=>{pxt.tickEvent(g.ImportChecklistOpen),Je({modal:"import-checklist"})}})]})]}),pr=({title:t,cardsUrl:n})=>{var r;const[o,a]=(0,e.useState)(),[s,l]=(0,e.useState)();return function(t,n,r){const[i,o]=(0,e.useState)();(0,e.useEffect)(()=>{i||(o(!0),n("loading"),Promise.resolve().then(async()=>{const e=await Ae(t);e?(n("success"),r(e)):n("error")}).catch(()=>{n("error")}))},[i])}(n,l,a),null!=o&&null!==(r=o.cards)&&void 0!==r&&r.length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:ht,children:[(0,i.jsx)("div",{className:mt,children:(0,i.jsx)("h2",{children:t})}),("loading"===s||"error"===s)&&(0,i.jsxs)(dr,{children:[(0,i.jsx)(cr,{}),(0,i.jsx)(cr,{delay:!0})]}),"success"===s&&(0,i.jsx)(dr,{children:null==o?void 0:o.cards.map((e,t)=>(e=>"object"==typeof e&&"checklist-resource"===e.cardType)(e)?(0,i.jsx)(ur,{...e},t):(0,i.jsx)(cr,{}))})]})}):null},hr=()=>{const{state:t}=(0,e.useContext)(Se),{targetConfig:n}=t,r=null==n?void 0:n.teachertool,o=null==r?void 0:r.carousels;return(0,i.jsx)(i.Fragment,{children:null==o?void 0:o.map((e,t)=>(0,i.jsx)(pr,{title:e.title,cardsUrl:e.cardsUrl},t))})},mr=()=>(0,i.jsxs)("div",{className:"HomeScreen_page__UD33z",children:[(0,i.jsx)(sr,{}),(0,i.jsx)(fr,{}),(0,i.jsx)(hr,{})]}),vr="EvalResultDisplay_control-button__V6Crg",gr="EvalResultDisplay_result-toolbar-button__KnBiu",yr="EvalResultDisplay_separator__ImacW",br="EvalResultDisplay_notes-container__UmXK9",wr="EvalResultDisplay_checklist-name__iNQwC";var xr=n(5418);function Er(e,t){const{dispatch:n}=Ee();!function(e,t){const{state:n}=Ee(),r=n.evalResults[e],i=St(n,e);var o,a,s,l,c,u;(null==r?void 0:r.result)!=(null==t?void 0:t.result)&&pxt.tickEvent(g.SetEvalResultOutcome,{catalogCriteriaId:null!==(o=null==i?void 0:i.catalogCriteriaId)&&void 0!==o?o:"",newValue:Pt[t.result],oldValue:null!=r&&r.result?Pt[r.result]:"",newValueIsManual:(null==t?void 0:t.resultIsManual)+"",oldValueIsManual:(null==r?void 0:r.resultIsManual)+""}),(null==r?void 0:r.notes)!=(null==t?void 0:t.notes)&&pxt.tickEvent(g.SetEvalResultNotes,{catalogCriteriaId:null!==(a=null==i?void 0:i.catalogCriteriaId)&&void 0!==a?a:"",newLength:null!==(s=null==t||null===(l=t.notes)||void 0===l?void 0:l.length)&&void 0!==s?s:0,oldLength:null!==(c=null==r||null===(u=r.notes)||void 0===u?void 0:u.length)&&void 0!==c?c:0})}(e,t),n(((e,t)=>({type:"SET_EVAL_RESULT",criteriaInstanceId:e,result:t}))(e,t))}function Sr(e,t,n){const{state:r}=Ee();Er(e,{...r.evalResults[e],result:t,resultIsManual:n})}const kr=t=>{var n;const{id:r,className:o,ariaHidden:s,ariaLabel:l,getAriaLabel:c,role:u,items:d,tabIndex:f,selectedId:p,onItemSelected:h}=t,[m,v]=e.useState(!1),g=e.useRef(),y=e.useRef(),b=e.useRef({});e.useEffect(()=>{m&&Object.keys(b.current).length&&b.current[null!=p?p:0].focus()},[m]);const w=a("common-dropdown",o),x=d.find(e=>e.id===p)||d[0];return(0,i.jsxs)("div",{className:w,ref:g,onBlur:e=>{g.current&&m&&!g.current.contains(e.relatedTarget)&&v(!1)},children:[(0,i.jsx)(Me,{...x,id:r,buttonRef:e=>y.current=e,tabIndex:f,rightIcon:m?"fas fa-chevron-up":"fas fa-chevron-down",role:u,className:a("common-dropdown-button",m&&"expanded",x.className),onClick:()=>{v(!m)},onKeydown:e=>{const t=d.indexOf(x);"ArrowDown"===e.key?(m?t<d.length-1&&h(d[t+1].id):v(!0),e.preventDefault(),e.stopPropagation()):"ArrowUp"===e.key?t>0&&(h(d[t-1].id),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(v(!0),e.preventDefault(),e.stopPropagation())},ariaHasPopup:"listbox",ariaExpanded:m,ariaLabel:null!==(n=null!=l?l:null==c?void 0:c(x.title))&&void 0!==n?n:x.title,ariaHidden:s}),m&&(0,i.jsx)(Fe,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:p,"aria-labelledby":r,useUpAndDownArrowKeys:!0,onClose:()=>{v(!1),y.current.focus()},onItemReceivedFocus:e=>{e.id&&d.some(t=>t.id===e.id)&&h(e.id)},children:(0,i.jsx)("ul",{role:"presentation",children:d.map(e=>(0,i.jsx)("li",{role:"presentation",children:(0,i.jsx)(Me,{...e,buttonRef:t=>b.current[e.id]=t,className:a("common-dropdown-item",e.className),onClick:()=>{var t;v(!1),h(e.id),null===(t=y.current)||void 0===t||t.focus()},ariaSelected:e.id===p,role:"option"})},e.id))})})]})},Cr={notevaluated:Pt.CompleteWithNoResult,fail:Pt.Fail,pass:Pt.Pass,notstarted:Pt.NotStarted},_r={[Pt.CompleteWithNoResult]:"notevaluated",[Pt.Fail]:"fail",[Pt.Pass]:"pass",[Pt.NotStarted]:"notstarted"},Tr=[{id:"notevaluated",title:lf("not applicable"),label:lf("N/A")},{id:"fail",title:lf("needs work"),label:lf("Needs work")},{id:"pass",title:lf("looks good!"),label:lf("Looks good!")},{id:"notstarted",title:lf("not started"),label:lf("Not started")}],Pr=({result:t,criteriaId:n})=>{const r=(0,e.useMemo)(()=>_r[t],[t]);return(0,i.jsx)(kr,{id:"project-eval-result-dropdown",selectedId:r,className:a("rounded",r),items:Tr,onItemSelected:e=>Sr(n,Cr[e],!0)})},Ir=t=>{const{id:n,className:r,role:o,ariaHidden:s,ariaLabel:l,initialValue:c,label:u,title:d,placeholder:f,autoComplete:p,cols:h,rows:m,disabled:v,minLength:g,maxLength:y,readOnly:b,resize:w,wrap:x,autoResize:E,onChange:S,onEnterKey:k,showRemainingCharacterCount:C}=t,[_,T]=e.useState(c||""),P=e.useRef(null),I=e.useRef(0),A=()=>{P.current&&(P.current.style.height="1px",P.current.style.height=`${P.current.scrollHeight}px`)};e.useEffect(()=>{T(c),E&&P.current&&A()},[c]),e.useEffect(()=>{if(!E)return()=>{};const e=new ResizeObserver(e=>{const t=e[0].contentRect.width;I.current!=t&&(requestAnimationFrame(()=>A()),I.current=t)});return P.current&&e.observe(P.current),()=>{e.disconnect()}},[E]);let O=void 0!==y&&!!C;return O&&"number"==typeof C&&(O=_.length>=y-C),(0,i.jsxs)("div",{className:a("common-textarea-wrapper",v&&"disabled",w&&`resize-${w}`,r),children:[u&&(0,i.jsx)("label",{className:"common-textarea-label",children:u}),(0,i.jsxs)("div",{className:"common-textarea-group",children:[(0,i.jsx)("textarea",{id:n,className:"common-textarea",title:d,role:o||"textbox",tabIndex:v?-1:0,"aria-label":l,"aria-hidden":s,placeholder:f,value:_||"",cols:h,rows:m,minLength:g,maxLength:y,wrap:x,readOnly:!!b,ref:P,onChange:e=>{const t=e.target.value;b||_===t||T(t),S&&S(t),E&&P.current&&A()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(_))},autoComplete:p?"":"off",autoCorrect:p?"":"off",autoCapitalize:p?"":"off",spellCheck:p,disabled:v}),O&&(0,i.jsx)("div",{className:"common-textarea-character-count",role:"presentation","aria-hidden":"true",children:y-_.length})]})]})},Ar=({intervalMs:t=500,...n})=>{const r=(0,e.useRef)(void 0),o=(0,e.useRef)(""),a=()=>{n.onChange&&n.onChange(o.current)};return(0,e.useEffect)(()=>()=>{r.current&&(clearTimeout(r.current),a())},[]),(0,i.jsx)(Ir,{...n,onChange:e=>{o.current=e,r.current&&clearTimeout(r.current),r.current=setTimeout(a,t)}})},Or="ThreeDotsLoadingDisplay_circle__7P1A0",jr=({className:e})=>(0,i.jsxs)("div",{className:a(e,"ThreeDotsLoadingDisplay_loading-ellipsis__0uvx0","no-print"),"aria-label":m.Loading,children:[(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-1__b0XeZ"),"aria-hidden":!0}),(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-2__ic0v9"),"aria-hidden":!0}),(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-3__UuuMW"),"aria-hidden":!0})]}),Nr="CriteriaFeedback_feedback-button__75Re4";function Mr(e,t){const{dispatch:n}=Ee();n(((e,t)=>({type:"SET_USER_FEEDBACK",criteriaInstanceId:e,userFeedback:t}))(e,t))}const Rr=({className:t,criteriaInstanceId:n})=>{const{state:r}=(0,e.useContext)(Se),o=(0,e.useMemo)(()=>St(r,n),[r,n]),s=null==o?void 0:o.userFeedback,l=null==o?void 0:o.catalogCriteriaId,c=(0,e.useCallback)(e=>{l&&(Mr(n,e?"helpful":"not-helpful"),pxt.tickEvent(g.CriteriaFeedback,{criteriaId:l,helpful:e+""}))},[l]),u="helpful"===s?"fas fa-thumbs-up":"far fa-thumbs-up",d="not-helpful"===s?"fas fa-thumbs-down":"far fa-thumbs-down";return(0,i.jsxs)("div",{className:a("CriteriaFeedback_criteria-feedback-container__SvXWm",t),children:[(0,i.jsx)("span",{className:"CriteriaFeedback_label__W9t26",children:s?lf("Thanks for your feedback!"):lf("Was this response helpful?")}),(0,i.jsxs)("span",{className:"CriteriaFeedback_rate-buttons__aoQ-H",children:[(0,i.jsx)(Me,{className:Nr,title:lf("Helpful"),onClick:()=>c(!0),rightIcon:u,disabled:!!s}),(0,i.jsx)(Me,{className:Nr,title:lf("Unhelpful"),onClick:()=>c(!1),rightIcon:d,disabled:!!s})]})]})},Lr={"criteria-instance-display":"CriteriaInstanceDisplay_criteria-instance-display__a+aVo","segment-container":"CriteriaInstanceDisplay_segment-container__eKe2z",segment:"CriteriaInstanceDisplay_segment__KFJyQ",long:"CriteriaInstanceDisplay_long__iOAmQ","block-input-btn":"CriteriaInstanceDisplay_block-input-btn__OWvdF","block-readable-name":"CriteriaInstanceDisplay_block-readable-name__uWCXM","block-name-segment":"CriteriaInstanceDisplay_block-name-segment__6SW8D","block-name-param":"CriteriaInstanceDisplay_block-name-param__35MBw",error:"CriteriaInstanceDisplay_error__Z-71F","inline-input-wrapper":"CriteriaInstanceDisplay_inline-input-wrapper__cCZt5","inline-input":"CriteriaInstanceDisplay_inline-input__3wCk8","string-input":"CriteriaInstanceDisplay_string-input__oWDDa","number-input":"CriteriaInstanceDisplay_number-input__xo7jt","criteria-description":"CriteriaInstanceDisplay_criteria-description__cfngZ","for-print":"CriteriaInstanceDisplay_for-print__hKgmF"};function Dr(e,t,n){var r,i;const{state:o}=Ee();X(`Setting parameter '${t}' to '${n}' for criteria instance '${e}'`);const a=St(o,e);if(!a)return void G(H.missingCriteriaInstance,`Unable to find criteria instance with id '${e}'`);const s=null===(r=a.params)||void 0===r?void 0:r.find(e=>e.name===t);if(!s)return void G(H.missingParameter,`Unable to find parameter with name '${t}' in criteria instance '${e}'`);const l={...s,value:n},c={...a,params:null===(i=a.params)||void 0===i?void 0:i.map(e=>e.name===t?l:e)},u=o.checklist.criteria.map(t=>t.instanceId===e?c:t);At({...o.checklist,criteria:u}),Sr(e,Pt.NotStarted,!1)}const Fr=t=>{var n;const{id:r,className:o,inputClassName:s,groupClassName:l,role:c,ariaHidden:u,ariaLabel:d,initialValue:f,label:p,title:h,placeholder:m,icon:v,iconTitle:g,disabled:y,type:b,readOnly:w,autoFocus:x,autoComplete:E,selectOnClick:S,onChange:k,onEnterKey:C,onIconClick:_,onFocus:T,onBlur:P,onOptionSelected:I,handleInputRef:A,preserveValueOnBlur:O=!0,options:j,validator:N}=t,[M,R]=e.useState(f||""),[L,D]=e.useState(!1),[F]=e.useState(t.filter?new RegExp(t.filter):void 0),B=e.useMemo(()=>j?Object.values(j):[],[j]);let U;e.useEffect(()=>{R(f||"")},[f]);const z=()=>{j&&D(!L)},V=e=>{if(!B.length)return;const t=B.indexOf(e);var n;return-1!==t?`dropdown-item-${t}-${(n=e)?n.replace(/[^a-zA-Z0-9_-]/g,"-")||"option":""}`:void 0};return(0,i.jsxs)("div",{className:a("common-input-wrapper",y&&"disabled",o),onBlur:e=>{L&&!U.contains(e.relatedTarget)&&D(!1)},ref:e=>{e&&(U=e)},children:[p&&(0,i.jsx)("label",{className:"common-input-label",htmlFor:r,children:p}),(0,i.jsxs)("div",{className:a("common-input-group",l),children:[(0,i.jsx)("input",{id:r,className:a("common-input",v&&"has-icon",s),title:h,role:c||"textbox",tabIndex:y?-1:0,"aria-label":d,"aria-hidden":u,type:b||"text",placeholder:m,value:M,readOnly:!!w,autoFocus:x,onClick:e=>{S&&e.target.select(),j&&!L&&D(!0)},onChange:e=>{let t=e.target.value;var n;t&&F&&(t=(null===(n=t.match(F))||void 0===n?void 0:n.join(""))||""),w||M===t||R(t),k&&k(t)},onKeyDown:e=>{const n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n){let t=M;N&&(t=N(M,f||""),R(t)),C&&(e.preventDefault(),C(t))}else if(j&&"ArrowDown"===e.key){var r;L?null===(r=document.getElementById(V(B[0])))||void 0===r||r.focus():(z(),setTimeout(()=>{var e;null===(e=document.getElementById(V(B[0])))||void 0===e||e.focus()},0)),e.preventDefault(),e.stopPropagation()}else if(j&&L&&"ArrowUp"===e.key){var i;null===(i=document.getElementById(V(B[B.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{let e=M;N&&(e=N(M,f||""),R(e)),P&&P(e),O||R("")},onFocus:()=>{T&&T(M)},autoComplete:E?"":"off",autoCorrect:E?"":"off",autoCapitalize:E?"":"off",spellCheck:E,disabled:y,ref:A}),v&&(_?(0,i.jsx)(Me,{leftIcon:v,title:g,disabled:y,onClick:()=>{_&&_(M)}}):(0,i.jsx)("i",{className:v,"aria-hidden":!0})),j&&(0,i.jsx)(Me,{leftIcon:L?"fas fa-chevron-up":"fas fa-chevron-down",title:g,disabled:y,ariaHasPopup:"listbox",ariaExpanded:L,ariaLabel:d,tabIndex:-1,onClick:z})]}),L&&(0,i.jsx)(Fe,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=V(M))&&void 0!==n?n:V(B[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,i.jsx)("ul",{role:"presentation",onKeyDown:e=>{var t;"Escape"===e.code&&(e.target.blur(),z(),null===(t=document.getElementById(r))||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())},children:Object.keys(j).map(e=>(0,i.jsx)("li",{role:"presentation",children:(0,i.jsx)(Me,{title:e,label:e,id:V(j[e]),className:a("common-dropdown-item"),onClick:()=>(e=>{var t;D(!1);const n=j[e];R(n),I&&I(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:V(j[e])===V(null!=M?M:f),role:"option"})},e))})})]})};function Br(e,t){switch(e.type){case"string":case"longString":return function(e,t){return function(e,t){return t&&e.maxCharacters&&t.length>e.maxCharacters?{valid:!1,message:m.ExceedsMaxLength}:{valid:!0}}(e,t)}(e,t);case"number":return function(e,t){const n=Number(t);return isNaN(n)?{valid:!1,message:m.MustBeANumber}:void 0!==e.min&&n<e.min?{valid:!1,message:m.BelowMin}:void 0!==e.max&&n>e.max?{valid:!1,message:m.ExceedsMax}:{valid:!0}}(e,t);default:return{valid:!0}}}class Ur{constructor(e){this.iframe=e,this.readyForMessages=!1,this.messageQueue=[],this.nextId=0,this.pendingMessages={},this.editorEventListeners={},this.port=void 0,this.portRequestPending=void 0,this.frameId=void 0,this.onMessageReceived=e=>{const t=e.data;if(t){if(this.frameId&&t.frameId!==this.frameId)return;if("iframeclientready"===t.type)return void(this.frameId&&!this.port?this.createMessagePort():(this.readyForMessages=!0,this.sendMessageCore()));if("iframeclientsetmessageport"===t.type)return}this.handleMessage(e)};const t=new URLSearchParams(new URL(e.src).search);t.has("frameid")&&(this.frameId=t.get("frameid")),window.addEventListener("message",this.onMessageReceived),e.contentWindow&&e.contentWindow.postMessage({type:"iframeclientready"},"*")}dispose(){window.removeEventListener("message",this.onMessageReceived),this.port&&this.port.close()}addEventListener(e,t){this.editorEventListeners[e]||(this.editorEventListeners[e]=[]),this.editorEventListeners[e].push(t)}removeEventListener(e,t){if(this.editorEventListeners[e]){const n=this.editorEventListeners[e].filter(e=>e!==t);0===n.length?delete this.editorEventListeners[e]:this.editorEventListeners[e]=n}}resolvePendingMessage(e){const t=e.data;if(t.id&&this.pendingMessages[t.id]){const t=e.data,n=this.pendingMessages[t.id];delete this.pendingMessages[t.id],t.success?n.resolve(t):n.reject(t.error||new Error("Unknown error: iFrame returned failure"))}}fireEvent(e,t){const n=this.editorEventListeners[e];if(n)for(const e of n)try{e(t)}catch(e){pxt.error(e)}}sendRequest(e){return new Promise((t,n)=>{e.response=!0,e.id=this.nextId+++"",this.pendingMessages[e.id]={original:e,resolve:t,reject:n},this.sendMessageCore(e)})}sendMessageCore(e){if(e&&this.messageQueue.push(e),this.readyForMessages)for(;this.messageQueue.length;){const e=this.messageQueue.shift();var t;this.port?this.port.postMessage(e):null===(t=this.iframe.contentWindow)||void 0===t||t.postMessage(e,"*"),this.fireEvent("sent",e)}}createMessagePort(){if(this.port||this.portRequestPending)return;this.portRequestPending=!0;const e=new MessageChannel;e.port1.onmessage=t=>{this.port||(this.port=e.port1,this.frameId=void 0,window.removeEventListener("message",this.onMessageReceived),this.readyForMessages=!0,this.sendMessageCore()),this.onMessageReceived(t)},this.iframe.contentWindow.postMessage({type:"iframeclientsetmessageport"},"*",[e.port2])}}class zr extends Ur{constructor(e,t){super(e),this.iframe=e,this.host=t}async switchEditorLanguage(e){let t;switch(e){case"blocks":t="switchblocks";break;case"typescript":t="switchjavascript";break;case"python":t="switchpython"}await this.sendRequest({type:"pxteditor",action:t})}async setLanguageRestriction(e){await this.sendRequest({type:"pxteditor",action:"setlanguagerestriction",restriction:e})}async startSimulator(){await this.sendRequest({type:"pxteditor",action:"startsimulator"})}async stopSimulator(e=!1){await this.sendRequest({type:"pxteditor",action:"stopsimulator",unload:e})}async restartSimulator(){await this.sendRequest({type:"pxteditor",action:"restartsimulator"})}async hideSimulator(){await this.sendRequest({type:"pxteditor",action:"hidesimulator"})}async showSimulator(){await this.sendRequest({type:"pxteditor",action:"showsimulator"})}async setSimulatorFullscreen(e){await this.sendRequest({type:"pxteditor",action:"setsimulatorfullscreen",enabled:e})}async closeFlyout(){await this.sendRequest({type:"pxteditor",action:"closeflyout"})}async unloadProject(){await this.sendRequest({type:"pxteditor",action:"unloadproject"})}async saveProject(){await this.sendRequest({type:"pxteditor",action:"saveproject"})}async compile(){await this.sendRequest({type:"pxteditor",action:"compile"})}async undo(){await this.sendRequest({type:"pxteditor",action:"undo"})}async redo(){await this.sendRequest({type:"pxteditor",action:"redo"})}async setHighContrast(e){await this.sendRequest({type:"pxteditor",action:"sethighcontrast",on:e})}async showThemePicker(){await this.sendRequest({type:"pxteditor",action:"showthemepicker"})}async toggleHighContrast(){await this.sendRequest({type:"pxteditor",action:"togglehighcontrast"})}async toggleGreenScreen(){await this.sendRequest({type:"pxteditor",action:"togglegreenscreen"})}async toggleAccessibleBlocks(){await this.sendRequest({type:"pxteditor",action:"togglekeyboardcontrols"})}async toggleSloMo(e){await this.sendRequest({type:"pxteditor",action:"toggletrace",intervalSpeed:e})}async setSloMoEnabled(e,t){await this.sendRequest({type:"pxteditor",action:"settracestate",enabled:e,intervalSpeed:t})}async printProject(){await this.sendRequest({type:"pxteditor",action:"print"})}async getInfo(){return(await this.sendRequest({type:"pxteditor",action:"info"})).resp}async newProject(e){await this.sendRequest({type:"pxteditor",action:"newproject",options:e})}async importProject(e,t,n){await this.sendRequest({type:"pxteditor",action:"importproject",project:e,filters:t,searchBar:n})}async importExternalProject(e){return(await this.sendRequest({type:"pxteditor",action:"importexternalproject",project:e})).resp.importUrl}async openHeader(e){await this.sendRequest({type:"pxteditor",action:"openheader",headerId:e})}async shareHeader(e,t){return(await this.sendRequest({type:"pxteditor",action:"shareproject",headerId:e,projectName:t})).resp}async startActivity(e,t,n,r,i){await this.sendRequest({type:"pxteditor",action:"startactivity",activityType:e,path:t,title:n,previousProjectHeaderId:r,carryoverPreviousCode:i})}async importTutorial(e){await this.sendRequest({type:"pxteditor",action:"importtutorial",markdown:e})}async pair(){await this.sendRequest({type:"pxteditor",action:"pair"})}async decompileToBlocks(e,t,n){return(await this.sendRequest({type:"pxteditor",action:"renderblocks",ts:e,snippetMode:t,layout:n})).resp}async decompileToPython(e){return(await this.sendRequest({type:"pxteditor",action:"renderpython",ts:e})).resp.python}async renderXml(e){return(await this.sendRequest({type:"pxteditor",action:"renderxml",xml:e})).resp}async renderByBlockId(e){return(await this.sendRequest({type:"pxteditor",action:"renderbyblockid",blockId:e})).resp}async getToolboxCategories(e){return(await this.sendRequest({type:"pxteditor",action:"gettoolboxcategories",advanced:e})).resp.categories}async getBlockAsText(e){var t;return null===(t=(await this.sendRequest({type:"pxteditor",action:"getblockastext",blockId:e})).resp)||void 0===t?void 0:t.blockAsText}async runValidatorPlan(e,t){return(await this.sendRequest({type:"pxteditor",action:"runeval",validatorPlan:e,planLib:t})).resp}async saveLocalProjectsToCloud(e){return(await this.sendRequest({type:"pxteditor",action:"savelocalprojectstocloud",headerIds:e})).resp}async convertCloudProjectsToLocal(e){await this.sendRequest({type:"pxteditor",action:"convertcloudprojectstolocal",userId:e})}async requestProjectCloudStatus(e){await this.sendRequest({type:"pxteditor",action:"requestprojectcloudstatus",headerIds:e})}async precacheTutorial(e){await this.sendRequest({type:"pxteditor",action:"precachetutorial",data:e})}async setColorTheme(e,t){await this.sendRequest({type:"pxteditor",action:"setcolorthemebyid",colorThemeId:e,savePreference:t})}addEventListener(e,t){super.addEventListener(e,t)}sendMessage(e){return this.sendRequest(e)}handleMessage(e){const t=e.data;t&&/^pxt(host|editor|pkgext|sim)$/.test(t.type)&&("pxteditor"===t.type?this.resolvePendingMessage(e):"pxthost"===t.type&&("editorcontentloaded"===t.action?(this.readyForMessages=!0,this.sendMessageCore()):"workspacesync"!==t.action&&"workspacesave"!==t.action&&"workspacereset"!==t.action&&"workspaceloaded"!==t.action||this.handleWorkspaceSync(t),this.fireEvent(t.action,t)),this.fireEvent("message",t))}async handleWorkspaceSync(e){if(!this.host)return;let t;try{if("workspacesync"===e.action){const t=await this.host.getWorkspaceProjects();this.sendMessageCore({type:"pxthost",id:e.id,success:!!t,projects:null==t?void 0:t.projects,editor:null==t?void 0:t.editor,controllerId:null==t?void 0:t.controllerId})}else"workspacereset"===e.action?await this.host.resetWorkspace():"workspacesave"===e.action?await this.host.saveProject(e.project):"workspaceloaded"===e.action&&this.host.onWorkspaceLoaded&&await this.host.onWorkspaceLoaded()}catch(e){t=e,pxt.error(e)}finally{e.response&&this.sendMessageCore({type:"pxthost",id:e.id,success:!t,error:t})}}}var Vr=n(9349),$r=n.n(Vr);function Hr(e,t){var n;if("SHARE_ID"===e)return null===(n=t.projectMetadata)||void 0===n?void 0:n.id;G(H.unrecognizedSystemParameter,"Unrecognized system parameter",{key:e})}async function qr(e,t){const{state:n,dispatch:r}=Ee(),{projectMetadata:i}=n;if(!i)return;const o=St(n,e);if(!o)return void G(H.criteriaInstanceNotFound,"Attempting to evaluate criteria that does not exist",{criteriaInstanceId:e});const a=new Promise(async i=>{var a;const s=null===(a=n.evalResults[o.instanceId])||void 0===a?void 0:a.result;if(!t&&void 0!==s&&s!==Pt.NotStarted)return i(!0);Sr(o.instanceId,Pt.InProgress,!1);const l=n.validatorPlans;if(!l)return G(H.validatorPlansNotFound,"Attempting to evaluate criteria without any plans"),r(Pe(o.instanceId)),i(!1);const c=function(e,t){var n;const{state:r}=Ee(),i=Et(e.catalogCriteriaId);if(!i)return void G(H.evalMissingCriteria,"Attempting to evaluate criteria with unrecognized catalog id",{id:e.catalogCriteriaId});const o=null===(n=r.validatorPlans)||void 0===n?void 0:n.find(e=>e.name===i.use);if(!o)return void G(H.evalMissingPlan,"Attempting to evaluate criteria with unrecognized plan",{plan:i.use});const a=pxt.Util.deepCopy(o);for(const n of null!==(s=e.params)&&void 0!==s?s:[]){var s,l;const o=null===(l=i.params)||void 0===l?void 0:l.find(e=>e.name===n.name);if(!o)return void(t&&G(H.evalMissingCatalogParameter,"Attempting to evaluate criteria with unrecognized parameter",{catalogId:e.catalogCriteriaId,paramName:n.name}));if("system"===o.type){const e=o;e.key&&(n.value=Hr(e.key,r)),n.value||(n.value=o.default)}if(!n.value)return void(t&&G(H.evalParameterUnset,"Attempting to evaluate criteria with unset parameter value",{catalogId:e.catalogCriteriaId,paramName:n.name}));const c=Br(o,n.value);if(!c.valid)return void(t&&G(H.invalidParameterValue,c.message,{catalogId:e.catalogCriteriaId,paramName:n.name}));for(const e of o.paths)$r().apply(a,e,()=>n.value)}return a}(o,t);if(X(`${o.instanceId}: Generated Plan`,c),!c)return r(Pe(o.instanceId)),i(!1);try{var u;let t=await async function(e){if("ai_question"===e.name)return await async function(e){if(1!==e.checks.length||"aiQuestion"!==e.checks[0].validator)return void G(H.invalidValidatorPlan,{planName:e.name,checks:e.checks});const t=e.checks[0],n=(t.question||"").trim();if(n.length<b.MinAIQuestionLength)return X(`Skipping AI validation: question below min length (${n.length}/${b.MinAIQuestionLength}).`),{executionSuccess:!1,result:void 0,notes:void 0,executionErrorMsg:m.QuestionTooShort};X(`Asking question: '${n}' on project with shareId: '${t.shareId}'`);const r=await async function(e,t){const n=pxt.BrowserUtils.appendCopilotServerQueryParam("/api/copilot/question"),r={id:e,question:t=pxt.Util.cleanData(t)};let i="";try{const e=await pxt.auth.AuthClient.staticApiAsync(n,r,"POST");if(!e.success)throw new Error(e.err||lf("Unable to reach AI. Error code: {0}",e.statusCode));i=await e.resp}catch(e){G(H.askAIQuestion,e)}return i}(t.shareId,n);return X(`Response: ${r}`),{executionSuccess:!!r,result:void 0,notes:r,executionErrorMsg:r?void 0:m.UnableToReachAI}}(e)}(c);if(t||(t=await async function(e,t){let n;try{if(n=await Gr.runValidatorPlan(e,t),!n)throw new Error("Missing response data.")}catch(e){G(H.runEval,e)}return n}(c,l)),null!==(u=t)&&void 0!==u&&u.executionSuccess){const e=void 0===t.result?Pt.CompleteWithNoResult:t.result?Pt.Pass:Pt.Fail;return function(e,t,n,r){const{state:i,dispatch:o}=Ee(),a={...i.evalResults[e]};a.error=void 0,void 0!==n&&(a.result=n,a.resultIsManual=!1),void 0!==r&&(a.notes!==r&&Mr(e,void 0),a.notes=r),Er(e,a)}(o.instanceId,0,e,t.notes),i(!0)}var d,f;return Er(o.instanceId,{result:Pt.NotStarted,resultIsManual:!1,error:null!==(d=null===(f=t)||void 0===f?void 0:f.executionErrorMsg)&&void 0!==d?d:m.UnexpectedError}),Mr(e,void 0),i(!1)}catch(t){return pxt.tickEvent(g.UnhandledEvalError,{catalogCriteriaId:o.catalogCriteriaId,error:null==t?void 0:t.message}),Mr(e,void 0),Er(o.instanceId,{result:Pt.NotStarted,resultIsManual:!1,error:m.UnexpectedError}),i(!1)}});return await a}async function Wr(e){const{state:t}=Ee(),{projectMetadata:n}=t;if(!n)return;e&&ut("results");const r=t.checklist.criteria.map(t=>qr(t.instanceId,e));if(0===r.length)return;const i=await Promise.all(r);if(e){const e=i.filter(e=>!e).length;e===t.checklist.criteria.length?tt(w("error",m.UnableToEvaluate)):tt(e>0?w("error",m.UnableToEvaluatePartial):w("success",m.EvaluationComplete))}}let Gr;async function Xr(e){return Gr?await Gr.getToolboxCategories(e):void 0}const Yr=({initialValue:t,instance:n,param:r,shouldExpand:o,numeric:s,minLength:l})=>{const[c,u]=(0,e.useState)(t?"":m.ValueRequired),d=(0,e.useMemo)(()=>function(e,t){var n;const r=Et(e);return null==r||null===(n=r.params)||void 0===n?void 0:n.find(e=>e.name===t)}(n.catalogCriteriaId,r.name),[r]),f=(0,e.useMemo)(()=>{var e;if(null!=d&&null!==(e=d.options)&&void 0!==e&&e.length)return d.options.reduce((e,t)=>{var n;const r=t.label||t.value,i=null!==(n=t.value)&&void 0!==n?n:r;return r&&i&&(e[r]=i),e},{})},[d]);function p(e){e||u(m.ValueRequired),l&&e.trim().length<l&&u(m.QuestionTooShort),Dr(n.instanceId,r.name,e)}(0,e.useEffect)(()=>{if(!d)return;if(!t)return void u(m.ValueRequired);if(l&&t.trim().length<l)return void u(m.QuestionTooShort);const e=Br(d,t);var n;e.valid?u(""):u(null!==(n=e.message)&&void 0!==n?n:m.InvalidValue)},[t]);const h=c?`${r.name}: ${c}`:r.name;return(0,i.jsx)("div",{title:h,className:Lr["inline-input-wrapper"],children:(0,i.jsx)(Fr,{className:a(Lr["inline-input"],s?Lr["number-input"]:Lr["string-input"],o?Lr.long:void 0,c?Lr.error:void 0),options:f,icon:c?"fas fa-exclamation-triangle":void 0,initialValue:t,onChange:p,onOptionSelected:p,preserveValueOnBlur:!0,placeholder:s?"0":r.name,title:h,filter:s&&!f?"[0-9]{1,2}":void 0})})},Kr=({blockId:t})=>{const{state:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(void 0);(0,e.useEffect)(()=>{!async function(e){let t;e&&(t=e?await async function(e){let t=function(e){const t=ae(e);try{const e=te(t);return e?JSON.parse(e):void 0}catch(e){return void G(H.localStorageReadError,e)}}(e);return t||(t=await async function(e){return Gr?await Gr.getBlockAsText(e):void 0}(e),t&&function(e,t){const n=ae(e);try{ne(n,JSON.stringify(t))}catch(e){G(H.localStorageWriteError,e)}}(e,t),t)}(e):void 0),t?o(t):n.toolboxCategories?o({parts:[{kind:"label",content:e}]}):o(void 0)}(t)},[t,n.toolboxCategories]);const s=null==r?void 0:r.parts.map((e,t)=>{let n="";return"param"===e.kind?n=lf("value"):"label"===e.kind&&e.content&&(n=e.content),(0,i.jsx)("span",{className:a(Lr["block-name-segment"],"param"===e.kind?Lr["block-name-param"]:Lr["block-name-label"]),children:n},`block-name-part-${t}`)});return(0,i.jsx)("span",{className:Lr["block-readable-name"],children:s||(0,i.jsx)("div",{className:"common-spinner"})})},Qr=({instance:t,param:n})=>{const{state:r}=(0,e.useContext)(Se),o=(0,e.useMemo)(()=>{if(n.value&&r.toolboxCategories)for(const t of Object.values(r.toolboxCategories)){var e;const r=null===(e=t.blocks)||void 0===e?void 0:e.find(e=>e.blockId===n.value);if(r)return{category:t,block:r}}},[n.value,r.toolboxCategories]),s=o?{backgroundColor:o.category.color,color:"white"}:void 0,l=n.value?(0,i.jsx)(Kr,{blockId:n.value}):n.name;return(0,i.jsx)(Me,{label:l,className:a(Lr["block-input-btn"],n.value?void 0:Lr.error),onClick:function(){pxt.tickEvent(g.BlockPickerOpened,{criteriaCatalogId:t.catalogCriteriaId}),Je({modal:"block-picker",criteriaInstanceId:t.instanceId,paramName:n.name})},title:n.value?m.SelectBlock:`${m.SelectBlock}: ${m.ValueRequired}`,leftIcon:n.value?void 0:"fas fa-exclamation-triangle",style:s})},Jr=({criteriaInstance:e})=>{const t=Et(e.catalogCriteriaId);if(!t)return null;const n=S(t.template).map(n=>{return"plain-text"===n.type?(r=n.content)?(0,i.jsx)("div",{className:Lr["text-segment"],children:r}):null:function(n){var r,o;if(!n)return null;const a=null==t||null===(r=t.params)||void 0===r?void 0:r.find(e=>e.name===n),s=null==e||null===(o=e.params)||void 0===o?void 0:o.find(e=>e.name===n);if(!a||!s)return X(`Missing info for '${n}': paramDef=${a}, paramInstance=${s}`),null;if("block"===a.type)return(0,i.jsx)(Qr,{param:s,instance:e});{const n="ai_question"===(null==t?void 0:t.use)&&"question"===a.name?b.MinAIQuestionLength:void 0;return(0,i.jsx)(Yr,{initialValue:s.value,param:s,instance:e,shouldExpand:"longString"===a.type,numeric:"number"===a.type,minLength:n})}}(n.content);var r});return t?(0,i.jsxs)("div",{className:Lr["criteria-instance-display"],children:[(0,i.jsx)("div",{className:Lr["segment-container"],children:n.map((e,t)=>(0,i.jsx)("span",{className:Lr.segment,children:e},t))}),(0,i.jsx)("div",{className:a(Lr["criteria-description"],"no-print"),children:t.description}),(0,i.jsx)("div",{className:a(Lr["criteria-description"],Lr["for-print"],"only-print"),children:t.description})]}):null},Zr=({criteriaId:t})=>{var n;const{state:r}=(0,e.useContext)(Se),o=null===(n=r.evalResults[t])||void 0===n?void 0:n.notes;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a(br,"no-print"),children:(0,i.jsx)(Ar,{placeholder:lf("Write your notes here"),ariaLabel:lf("Feedback regarding the criteria result"),label:lf("Feedback"),title:lf("Write your notes here"),initialValue:o,autoResize:!0,onChange:e=>{!function(e,t){const{state:n,dispatch:r}=Ee();Er(e,{...n.evalResults[e],notes:t})}(t,e)},autoComplete:!1,intervalMs:500})}),o&&(0,i.jsx)("div",{className:a(br,"EvalResultDisplay_for-print__Rnqa+","only-print"),children:o})]})},ei=({criteriaInstanceId:e,error:t})=>(0,i.jsxs)("div",{className:a("EvalResultDisplay_result-error__a+sfL","no-print"),children:[(0,i.jsx)("i",{className:"fas fa-exclamation-circle"}),(0,i.jsxs)("div",{className:"EvalResultDisplay_error-info-container__jqhSa",children:[(0,i.jsx)("span",{className:"EvalResultDisplay_error-title__xcwl+",children:m.UnableToEvaluate}),(0,i.jsx)("span",{className:"EvalResultDisplay_error-details__xm+u3",children:t})]}),(0,i.jsx)(Me,{className:"EvalResultDisplay_dismiss-button__UtBgi",leftIcon:"fas fa-times-circle",title:m.Dismiss,onClick:()=>Er(e,{result:Pt.NotStarted,resultIsManual:!1,error:void 0})})]}),ti=({criteriaId:t})=>{const{state:n}=(0,e.useContext)(Se),r=!_t(n);return(0,i.jsxs)("div",{className:a("EvalResultDisplay_result-toolbar-tray__RV0m1","no-print"),children:[(0,i.jsx)(Me,{className:a("secondary",vr,gr),rightIcon:"fas fa-trash",title:m.Remove,onClick:async function(){confirm(m.ConfirmDeleteCriteriaInstance)&&function(e){const{state:t}=Ee();X(`Removing criteria with id: ${e}`);const n=St(t,e),r=null==n?void 0:n.catalogCriteriaId;At({...t.checklist,criteria:t.checklist.criteria.filter(t=>t.instanceId!==e)}),r&&pxt.tickEvent(g.RemoveCriteria,{catalogCriteriaId:r})}(t)}}),(0,i.jsx)(Me,{className:a("secondary",vr,gr,r?"EvalResultDisplay_disabled__ZOCV4":""),rightIcon:"fas fa-play",title:m.Evaluate,onClick:async function(){var e,r;const i=St(n,t);pxt.tickEvent(g.SingleEvaluate,{catalogCriteriaId:null!==(e=null==i?void 0:i.catalogCriteriaId)&&void 0!==e?e:"",checklistHash:_(n.checklist),projectId:T(null===(r=n.projectMetadata)||void 0===r?void 0:r.id)}),tt(await qr(t,!0)?w("success",m.EvaluationComplete):w("error",m.UnableToEvaluate))},disabled:r})]})},ni=({criteriaId:t})=>{const{state:n}=(0,e.useContext)(Se),r=n.evalResults[t],o=r?r.result:Pt.NotStarted,s=!(null==r||!r.notes),l=!(null==r||!r.error),c=St(n,t),u=c?Et(c.catalogCriteriaId):void 0,d=o===Pt.InProgress,f=o===Pt.NotStarted;return(0,i.jsx)(i.Fragment,{children:u&&c&&(0,i.jsxs)("div",{className:"EvalResultDisplay_specific-criteria-result__9RJhy","aria-busy":d,children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_result-details__PzpKE",children:[(0,i.jsx)(Jr,{criteriaInstance:c}),!d&&(0,i.jsxs)("div",{className:"EvalResultDisplay_result-controls__qd+FO",children:[(0,i.jsx)(Pr,{result:o,criteriaId:t}),(0,i.jsx)(ti,{criteriaId:t})]})]}),d?(0,i.jsx)(jr,{className:"EvalResultDisplay_loading-display__k9vcu"}):l?(0,i.jsx)(ei,{criteriaInstanceId:c.instanceId,error:r.error}):(0,i.jsx)("div",{className:a("EvalResultDisplay_result-notes__yMfib",s?void 0:"no-print"),children:(0,i.jsx)(Zr,{criteriaId:t})}),!d&&!f&&!l&&u.requestFeedback&&(0,i.jsx)(Rr,{criteriaInstanceId:c.instanceId,className:a("no-print","EvalResultDisplay_criteria-feedback__hjU79")}),(0,i.jsx)("div",{className:yr})]},t)})};var ri,ii=Object.defineProperty,oi=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,li=(e,t,n)=>t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n,i=1,a=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const r=8*t.getNumDataCodewords(u,n),i=s.getTotalBits(e,u);if(i<=r){d=i;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(u,n);o(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach((e,t)=>h[t>>>3]|=e<<7-(7&t)),new t(u,n,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);o(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(r,e));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(r,o,n),this.setFunctionModule(o,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,a=t+n;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,c=Math.floor(s/i);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+c-a+(n<l?0:1));r+=i.length;const o=t.reedSolomonComputeRemainder(i,d);n<l&&i.push(0),u.push(i.concat(o))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=c-a||n>=l)&&f.push(t[e])});return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let o=0;o<2;o++){const a=t-o,s=t+1&2?r:this.size-1-r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][a],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const i of e){const e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(ri||(ri={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(ri||(ri={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(ri||(ri={}));var ci=ri,ui={L:ci.QrCode.Ecc.LOW,M:ci.QrCode.Ecc.MEDIUM,Q:ci.QrCode.Ecc.QUARTILE,H:ci.QrCode.Ecc.HIGH},di=128,fi="L",pi="#FFFFFF",hi="#000000",mi=!1;function vi(t){const n=t,{value:r,size:i=di,level:o=fi,bgColor:a=pi,fgColor:s=hi,includeMargin:l=mi,imageSettings:c}=n,u=((e,t)=>{var n={};for(var r in e)ai.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oi)for(var r of oi(e))t.indexOf(r)<0&&si.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=ci.QrCode.encodeText(r,ui[o]).getModules();const f=l?4:0,p=d.length+2*f,h=function(e,t,n,r){if(null==r)return null;const i=n?4:0,o=e.length+2*i,a=Math.floor(.1*t),s=o/t,l=(r.width||a)*s,c=(r.height||a)*s,u=null==r.x?e.length/2-l/2:r.x*s,d=null==r.y?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:f}}(d,i,l,c);let m=null;null!=c&&null!=h&&(null!=h.excavation&&(d=function(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}(d,h.excavation)),m=e.createElement("image",{xlinkHref:c.src,height:h.h,width:h.w,x:h.x+f,y:h.y+f,preserveAspectRatio:"none"}));const v=function(e,t=0){const n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(o,a){if(!o&&null!==i)return n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${i+t},${r+t} h${a+1-i}v1H${i+t}z`)}})}),n.join("")}(d,f);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))ai.call(t,n)&&li(e,n,t[n]);if(oi)for(var n of oi(t))si.call(t,n)&&li(e,n,t[n]);return e})({height:i,width:i,viewBox:`0 0 ${p} ${p}`},u),e.createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),e.createElement("path",{fill:s,d:v,shapeRendering:"crispEdges"}),m)}function gi(e){const{state:t,dispatch:n}=Ee();e&&t.catalogOpen&&yi(!1),t.askAiOpen!==e&&n((e=>({type:"SET_ASK_AI_OPEN",open:e}))(e))}function yi(e){const{state:t,dispatch:n}=Ee();e&&t.askAiOpen&&gi(!1),t.catalogOpen!=e&&n((e=>({type:"SET_CATALOG_OPEN",open:e}))(e))}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();const bi=({})=>{const{state:t}=(0,e.useContext)(Se),n=!!t.catalogOpen;return(0,i.jsx)(Me,{className:a("inline","outline-button"),label:m.AddCriteria,onClick:()=>yi(!n),title:m.AddCriteria,leftIcon:"fas fa-plus-circle",rightIcon:n?"fas fa-check":void 0})},wi=({})=>{const{state:t}=(0,e.useContext)(Se),n=!!t.askAiOpen;return(0,i.jsx)(Me,{className:a("inline","outline-button"),label:m.AskAI,onClick:()=>gi(!n),title:m.AskAI,leftIcon:"fas fa-robot",rightIcon:n?"fas fa-check":void 0})},xi=({intervalMs:t=500,...n})=>{const r=(0,e.useRef)(void 0),o=(0,e.useRef)(""),a=()=>{n.onChange&&n.onChange(o.current)};return(0,e.useEffect)(()=>()=>{r.current&&(clearTimeout(r.current),a())},[]),(0,i.jsx)(Fr,{...n,onChange:e=>{o.current=e,r.current&&clearTimeout(r.current),r.current=setTimeout(a,t)}})};function Ei(e){const{state:t}=Ee();t.checklist.name!==e&&At({...t.checklist,name:e})}const Si=({printRef:t})=>{var n,r,o,s;const{state:l}=(0,e.useContext)(Se),{checklist:c,projectMetadata:u}=l;let{name:d}=c;const[f,p]=(0,e.useState)(),h=(0,xr.useReactToPrint)({content:()=>t.current,onPrintError:()=>Ce(w("error",lf("Unable to print evaluation results"),2e3)),documentTitle:`${pxt.Util.sanitizeFileName(Tt(l))} - ${pxt.Util.sanitizeFileName((null===(n=l.projectMetadata)||void 0===n?void 0:n.name)||m.UntitledProject)}`});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_header__XkIrv",children:[(0,i.jsxs)("div",{className:wr,children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_checklist-name-input__wG5OM",children:[(0,i.jsx)("div",{className:a(wr,"only-print"),children:(0,i.jsx)("h2",{children:d})}),(0,i.jsx)(xi,{className:"no-print",ariaLabel:m.Name,onChange:Ei,placeholder:m.ChecklistNamePlaceholder,initialValue:d,preserveValueOnBlur:!0,handleInputRef:p,onFocus:()=>null==f?void 0:f.select()})]}),u&&(0,i.jsxs)("div",{className:a("EvalResultDisplay_project-details__0IJH+","only-print"),children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_project-text__C+-Wn",children:[(0,i.jsx)("h3",{children:null==l||null===(r=l.projectMetadata)||void 0===r?void 0:r.name}),(0,i.jsx)("p",{children:E(null===(o=l.projectMetadata)||void 0===o?void 0:o.inputText)})]}),(0,i.jsx)("div",{className:"EvalResultDisplay_project-qrcode__Bo6ad",children:(0,i.jsx)(vi,{size:60,value:E(null===(s=l.projectMetadata)||void 0===s?void 0:s.inputText)})})]})]}),(0,i.jsxs)("div",{className:a("EvalResultDisplay_checklist-control-tray__D15BX","no-print"),children:[(0,i.jsx)(Me,{className:a("secondary",vr),label:m.Export,title:m.ExportChecklist,rightIcon:"fas fa-download",onClick:()=>{pxt.tickEvent(g.ExportChecklist),function(e){const t=`${(e.name?pxt.Util.sanitizeFileName(e.name):"")||lf("unnamed-checklist")}.json`,n=JSON.stringify(e,null,4);try{return pxt.BrowserUtils.browserDownloadText(n,t),!0}catch(e){return G(H.unableToExportChecklist,e),!1}}(c)},disabled:0===c.criteria.length}),(0,i.jsx)(Me,{className:a("secondary",vr),label:m.Print,title:m.PrintChecklist,rightIcon:"fas fa-print",onClick:()=>{pxt.tickEvent(g.Print),h()},disabled:0===c.criteria.length}),(0,i.jsx)(Me,{className:a("primary",vr),label:m.Evaluate,title:m.EvaluateChecklist,rightIcon:"fas fa-play",onClick:async()=>{pxt.tickEvent(g.BulkEvaluate,{fromUserInteraction:!0+"",runOnLoad:!1+"",criteriaCount:c.criteria.length,catalogCriteriaIds:JSON.stringify(c.criteria.map(e=>e.catalogCriteriaId)),checklistHash:_(c),projectId:T(null==u?void 0:u.id)}),await Wr(!0)},disabled:!_t(l)||0===c.criteria.length})]})]}),(0,i.jsx)("div",{className:yr})]})},ki=()=>{const{state:t}=(0,e.useContext)(Se),{checklist:n}=t,{criteria:r}=n;return(0,i.jsx)("div",{className:"EvalResultDisplay_results-list__iAYMf",children:Object.values(r).map(e=>(0,i.jsx)(ni,{criteriaId:e.instanceId},e.instanceId))})},Ci=()=>(0,i.jsxs)("div",{className:a("EvalResultDisplay_footer__W5dJw","no-print"),children:[(0,i.jsx)(wi,{}),(0,i.jsx)(bi,{})]}),_i=({resultsRef:e})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"EvalResultDisplay_eval-results-container__9XZK7",ref:e,children:[(0,i.jsx)(Si,{printRef:e}),(0,i.jsx)(ki,{}),(0,i.jsx)(Ci,{})]})}),Ti=()=>(0,i.jsxs)(ft,{children:[(0,i.jsx)(dt,{name:"home",children:m.Home}),(0,i.jsx)(dt,{name:"results",children:m.Checklist})]}),Pi=({resultsRef:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(pt,{name:"home",children:(0,i.jsx)(mr,{})}),(0,i.jsx)(pt,{name:"results",children:(0,i.jsx)(_i,{resultsRef:e})})]}),Ii=()=>{const t=(0,e.useRef)(null);return(0,i.jsxs)("div",{className:"ChecklistWorkspace_panel__MBC+K",children:[(0,i.jsx)(ct,{left:(0,i.jsx)(Ti,{})}),(0,i.jsx)(Pi,{resultsRef:t})]})};async function Ai(e,t,n){const{dispatch:r}=Ee(),i=pxt.Cloud.parseScriptId(t);if(!i)return tt(w("error",lf("Invalid share link"))),void r(Te(void 0));const o=await async function(e){try{const t=`${pxt.Cloud.apiRoot}/${e}`,n=await fetch(t);if(n.ok)return await n.json();throw new Error("Unable to fetch the project meta information")}catch(e){G(H.getProjectMetaAsync,e)}}(i);if(!o)return tt(w("error",lf("Failed to load project"))),void r(Te(void 0));if(o.target!==pxt.appTarget.id)return tt(w("error",lf("That project was built with a different MakeCode editor"))),void r(Te(void 0));const a={...o,inputText:e};r(Te(a,n)),function(){const{dispatch:e}=Ee();It({overwriteExistingEntries:!0}),e({type:"CLEAR_ALL_EVAL_RESULT_NOTES"})}(),X("Loaded project metadata",o)}const Oi=()=>{const{state:t}=(0,e.useContext)(Se),{projectMetadata:n}=t,[r,o]=(0,e.useState)(""),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)();(0,e.useEffect)(()=>{const e=pxt.Cloud.parseScriptId(r);l(!!e&&!(e===(null==n?void 0:n.shortid)||e===(null==n?void 0:n.persistId)))},[r,null==n?void 0:n.shortid,null==n?void 0:n.persistId]),(0,e.useEffect)(()=>{const e=(null==n?void 0:n.shortid)||(null==n?void 0:n.persistId);if(!r&&e){const t=new URL(e,pxt.Util.getHomeUrl()).toString();o(t)}},[null==n?void 0:n.shortid,null==n?void 0:n.persistId]);const d=(0,e.useCallback)(()=>{const e=pxt.Cloud.parseScriptId(r);if(!e)return pxt.tickEvent(g.LoadProjectInvalid),void tt(w("error",m.InvalidShareLink));const i=e===(null==n?void 0:n.shortid)||e===(null==n?void 0:n.persistId);pxt.tickEvent(g.LoadProjectFromInput,{checklistHash:_(t.checklist),isReload:i.toString()}),Ai(r,e,!0)},[r,null==n?void 0:n.shortid,null==n?void 0:n.persistId]),f=(0,e.useMemo)(()=>s?"fas fa-arrow-right":void 0,[s]);return(0,i.jsx)("div",{className:a("ShareLinkInput_share-link-input__fFei9","tt-share-link-input"),children:(0,i.jsx)(Fr,{placeholder:lf("Enter Project Link or Share ID"),ariaLabel:lf("Project Link or Share ID"),icon:f,iconTitle:lf("Submit project link or share ID"),onChange:e=>{o(e)},onEnterKey:d,onIconClick:d,onFocus:()=>null==c?void 0:c.select(),preserveValueOnBlur:!0,autoComplete:!1,handleInputRef:u,initialValue:r})})},ji=()=>(0,i.jsxs)("div",{className:"MakecodeFramePlaceholder_makecode-frame-placeholder__j3n33",children:[(0,i.jsx)("i",{className:"far fa-hand-point-up"}),(0,i.jsx)("span",{children:lf("No project loaded.")}),(0,i.jsx)("span",{children:lf("Enter a share link above to evaluate!")})]}),Ni=()=>{var t,n;const{state:r}=(0,e.useContext)(Se),[o,s]=(0,e.useState)(pxt.Util.guidGen()),[l,c]=(0,e.useState)(""),u=(0,e.useRef)(null);function d(){s(pxt.Util.guidGen())}(0,e.useEffect)(()=>{var e;const t=function(e){const t=pxt.BrowserUtils.isLocalHost()?"http://localhost:3232/index.html":(e=>{var t,n;if(!pxt.webConfig&&window.pxtConfig&&pxt.setupWebConfig(window.pxtConfig),null!==(t=pxt.webConfig)&&void 0!==t&&t.targetUrl&&null!==(n=pxt.webConfig)&&void 0!==n&&n.relprefix)return pxt.webConfig.targetUrl+pxt.webConfig.relprefix.substr(0,pxt.webConfig.relprefix.length-3);const r=/\/([\da-zA-Z\.]+)(?:--)?/i.exec(window.location.pathname);return`${e.replace(/\/$/,"")}/${(null==r?void 0:r[1])||""}`})(window.pxtTargetBundle.appTheme.embedUrl);let n=t;"/"!==t.charAt(t.length-1)||pxt.BrowserUtils.isLocalHost()||(n=t.substr(0,t.length-1));const r=e?`#pub:${e}`:"";let i="";return pxt.options.debug&&(i+="&dbg=1"),pxt.analytics.consoleTicks&&(i+="&consoleticks=1"),n+=`?controller=1&teachertool=1&readonly=1&ws=mem&nocookiebanner=1&frameid=${o}${r}${i}`,n}((null===(e=r.projectMetadata)||void 0===e?void 0:e.id)||"");l==t?d():c(t)},[o,null===(t=r.projectMetadata)||void 0===t?void 0:t.id,r.projectReloadCounter]);const f=!(null===(n=r.projectMetadata)||void 0===n||!n.id);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("iframe",{id:"code-eval-project-view-frame",className:a("MakeCodeFrame_makecode-frame__K4VQc",f?void 0:"MakeCodeFrame_invisible__FWWvH"),src:l,title:"title",ref:function(e){u.current=e,e&&function(e,t){if(Gr){if(Gr.iframe===e)return;Gr.dispose(),Gr=void 0}e&&(Gr=new zr(e),Gr.addEventListener("message",e=>{X(`Message received from iframe. ID: ${null==e?void 0:e.id}`,e)}),Gr.addEventListener("sent",e=>{X(`Sent message to iframe. ID: ${null==e?void 0:e.id}`,e)}),Gr.addEventListener("serviceworkerregistered",e=>{X("Service worker registered. Reloading iframe."),t()}),Gr.addEventListener("editorcontentloaded",e=>{const{state:t}=Ee(),{runOnLoad:n,projectMetadata:r}=t;var i;n&&r&&(pxt.tickEvent(g.BulkEvaluate,{fromUserInteraction:!0+"",runOnLoad:!0+"",criteriaCount:t.checklist.criteria.length,catalogCriteriaIds:JSON.stringify(t.checklist.criteria.map(e=>e.catalogCriteriaId)),checklistHash:_(t.checklist),projectId:T(null===(i=t.projectMetadata)||void 0===i?void 0:i.id)}),Wr(!0)),async function(){const{dispatch:e}=Ee(),[t,n]=await Promise.all([Xr(!1),Xr(!0)]),r=(null!=t?t:[]).concat(null!=n?n:[]);if(0===r.length)return;const i=r.reduce((e,t)=>{if(function(e){var t;return e.name&&0!=(null===(t=e.blocks)||void 0===t?void 0:t.length)}(t)){var n;const r=null===(n=t.blocks)||void 0===n?void 0:n.filter((e,t,n)=>n.findIndex(t=>t.blockId===e.blockId)===t);e[t.name]={...t,blocks:r}}return e},{});e((e=>({type:"SET_TOOLBOX_CATEGORIES",categories:e}))(i))}()}),Gr.setHighContrast(!1))}(e,d)}}),!f&&(0,i.jsx)(ji,{})]})},Mi={"criteria-display":"ReadonlyCriteriaDisplay_criteria-display__HTFDh","criteria-template":"ReadonlyCriteriaDisplay_criteria-template__bw5da","plain-text-segment":"ReadonlyCriteriaDisplay_plain-text-segment__Ear1R","param-segment":"ReadonlyCriteriaDisplay_param-segment__IwtzK","criteria-description":"ReadonlyCriteriaDisplay_criteria-description__G8hLB"},Ri=({catalogCriteria:t,criteriaInstance:n,showDescription:r})=>{const{state:o}=(0,e.useContext)(Se);function a(e){var t;return n&&"plain-text"!==e.type?null!==(t=function(e,t,n){var r,i;const o=St(e,t);return null==o||null===(r=o.params)||void 0===r||null===(i=r.find(e=>e.name===n))||void 0===i?void 0:i.value}(o,n.instanceId,e.content))&&void 0!==t?t:"":e.content}const s=(0,e.useMemo)(()=>S(t.template),[t.template]);return(0,i.jsxs)("div",{className:Mi["criteria-display"],children:[t.template&&(0,i.jsx)("div",{className:Mi["criteria-template"],children:s.map((e,t)=>(0,i.jsx)("span",{className:Mi[`${e.type}-segment`],children:a(e)},t))}),r&&t.description&&(0,i.jsx)("div",{className:Mi["criteria-description"],children:t.description})]})},Li=e.createContext(null),Di=e.createContext(null),Fi=({multiExpand:t,defaultExpandedIds:n,children:r})=>{const[o,a]=e.useReducer(Bi,{expanded:null!=n?n:[],multiExpand:t});return(0,i.jsx)(Li.Provider,{value:o,children:(0,i.jsx)(Di.Provider,{value:a,children:r})})};function Bi(e,t){switch(t.type){case"SET_EXPANDED":return{...e,expanded:e.multiExpand?[...e.expanded,t.id]:[t.id]};case"REMOVE_EXPANDED":return{...e,expanded:e.expanded.filter(e=>e!==t.id)}}}const Ui=Object.assign(e=>{const{children:t,id:n,className:r,ariaLabel:o,ariaHidden:s,ariaDescribedBy:l,role:c,multiExpand:u,defaultExpandedIds:d}=e;return(0,i.jsx)(Fi,{multiExpand:u,defaultExpandedIds:d,children:(0,i.jsx)("div",{className:a("common-accordion",r),id:n,"aria-label":o,"aria-hidden":s,"aria-describedby":l,role:c,children:t})})},{Header:e=>{const{id:t,className:n,ariaLabel:r,children:o}=e;return(0,i.jsx)("div",{id:t,className:a("common-accordion-header",n),"aria-label":r,children:o})},Item:t=>{const{children:n,id:r,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,role:d,noChevron:f,itemId:p,onExpandToggled:h}=t,{expanded:m}=e.useContext(Li),v=e.useContext(Di),g=null!=p?p:e.useMemo(()=>pxt.Util.guidGen(),[]),y=e.Children.toArray(n),b=-1!==m.indexOf(g),w=e.useCallback(()=>{v(b?(e=>({type:"REMOVE_EXPANDED",id:e}))(g):(e=>({type:"SET_EXPANDED",id:e}))(g)),null==h||h(!b)},[b]);return(0,i.jsxs)("div",{className:a("common-accordion",s),id:r,"aria-label":l,"aria-hidden":c,"aria-describedby":u,role:d,children:[(0,i.jsx)("button",{className:"common-accordion-header-outer","aria-expanded":b,"aria-controls":g,onClick:w,onKeyDown:o,children:(0,i.jsxs)("div",{children:[!f&&(0,i.jsx)("div",{className:"common-accordion-chevron",children:(0,i.jsx)("i",{className:a("fas",b?"fa-chevron-down":"fa-chevron-right"),"aria-hidden":!0})}),(0,i.jsx)("div",{className:"common-accordion-header-content",children:y[0]})]})}),(0,i.jsx)("div",{id:g,className:"common-accordion-panel-outer",style:{display:b?"block":"none"},children:b&&y[1]})]})},Panel:e=>{const{id:t,className:n,ariaLabel:r,children:o}=e;return(0,i.jsx)("div",{id:t,className:a("common-accordion-body",n),"aria-label":r,children:o})}}),zi="CatalogOverlay_hide-indicator__yApKo",Vi=({onClose:e})=>(0,i.jsxs)("div",{className:"CatalogOverlay_header__sjmbq",children:[(0,i.jsx)("span",{className:"CatalogOverlay_title__onPIB",children:m.SelectCriteriaDescription}),(0,i.jsx)(Me,{className:"CatalogOverlay_close-button__b7Lzu",rightIcon:"fas fa-times-circle",onClick:e,title:m.Close})]}),$i=({catalogCriteria:e,isMaxed:t,recentlyAdded:n})=>(0,i.jsxs)("div",{className:"CatalogOverlay_catalog-item-label__0zJI4",children:[(0,i.jsx)("div",{className:"CatalogOverlay_action-indicators__UIaXM",children:t?(0,i.jsx)("i",{className:"fas fa-check",title:m.MaxReached}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{className:a("fas fa-check","CatalogOverlay_recently-added-indicator__4roV1",n?void 0:zi),title:lf("Added!")}),(0,i.jsx)("i",{className:a("fas fa-plus",n?zi:void 0),title:m.AddToChecklist})]})}),(0,i.jsx)(Ri,{catalogCriteria:e,showDescription:!0})]}),Hi=({catalogCriteria:t,recentlyAddedIds:n,onItemClicked:r})=>{const{state:o}=(0,e.useContext)(Se),a=o.checklist.criteria.filter(e=>e.catalogCriteriaId===t.id).length,s=void 0!==t.maxCount&&a>=t.maxCount;return t.template?(0,i.jsx)(Me,{title:k(t),className:"CatalogOverlay_catalog-item__jSGMy",label:(0,i.jsx)($i,{catalogCriteria:t,isMaxed:s,recentlyAdded:void 0!==n[t.id]}),onClick:()=>r(t),disabled:s},t.id):null},qi=()=>{const{state:t}=(0,e.useContext)(Se),[n,o]=(0,e.useState)({}),a=(0,e.useMemo)(()=>{var e;const n={};return null===(e=function(e){var t,n;return null!==(t=null===(n=e.catalog)||void 0===n?void 0:n.filter(e=>!e.hideInCatalog&&"ai_question"!==e.use))&&void 0!==t?t:[]}(t))||void 0===e||e.forEach(e=>{if(!e.tags||0===e.tags.length)return void G(H.missingTag,{message:"Catalog criteria missing tag",criteria:e});const t=e.tags[0];n[t]||(n[t]=[]),n[t].push(e)}),n},[t.catalog]);function s(e,t){o(n=>{const r={...n};return t?r[e]=t:delete r[e],r})}function l(e){!function(e){var t;const{state:n,dispatch:i}=Ee(),o={...n.checklist,criteria:[...null!==(t=n.checklist.criteria)&&void 0!==t?t:[]]};for(const t of e){var a;const e=Et(t);if(!e){G(H.addingMissingCriteria,"Attempting to add criteria with unrecognized id",{id:t});continue}const n=null===(a=e.params)||void 0===a?void 0:a.map(e=>({name:e.name,value:e.default})),i=r();X(`Adding criteria with Catalog ID '${t}' and Instance ID '${i}'`);const s={catalogCriteriaId:t,instanceId:i,params:n};o.criteria.push(s)}At(o),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify(e)})}([e.id]),n[e.id]&&clearTimeout(n[e.id]);const t=setTimeout(()=>{s(e.id,void 0)},500);s(e.id,t),function(e){const{dispatch:t}=Ee();t((e=>({type:"SET_SCREEN_READER_ANNOUNCEMENT",announcement:e}))(e))}(lf("Added '{0}' to checklist.",k(e)))}function c(e){return`accordion-item-${e}`}const u=Object.keys(a);if(0===u.length)return G(H.noCatalogCriteria),null;let d=ue();d||(fe(u[0]),d=[u[0]]);const f=d.map(e=>c(e));return(0,i.jsx)(Ui,{className:"CatalogOverlay_catalog-list__xYFxU",multiExpand:!0,defaultExpandedIds:f,children:u.map(e=>(0,i.jsxs)(Ui.Item,{itemId:c(e),onExpandToggled:t=>function(e,t){t?fe(e):function(e){let t=ue();if(t){const n=t.indexOf(e);-1!==n&&(t.splice(n,1),de(t))}else de([])}(e)}(e,t),children:[(0,i.jsx)(Ui.Header,{children:e}),(0,i.jsx)(Ui.Panel,{children:a[e].map(e=>(0,i.jsx)(Hi,{catalogCriteria:e,recentlyAddedIds:n,onItemClicked:l},`catalog-item-${e.id}`))})]},c(e)))})},Wi=({})=>{const{state:t}=(0,e.useContext)(Se);return t.catalogOpen?(0,i.jsx)(He,{onEscape:()=>{},children:(0,i.jsx)("div",{className:"CatalogOverlay_catalog-overlay__dPVh1",children:(0,i.jsxs)("div",{className:"CatalogOverlay_catalog-content-container__opkVF",children:[(0,i.jsx)(Vi,{onClose:function(){yi(!1)}}),(0,i.jsx)(qi,{})]})})}):null},Gi={"ask-ai-overlay":"AskAIOverlay_ask-ai-overlay__wliiU","ask-ai-content-container":"AskAIOverlay_ask-ai-content-container__ht289",header:"AskAIOverlay_header__FBOY2",title:"AskAIOverlay_title__v6i7S","close-button":"AskAIOverlay_close-button__Dsp+a",content:"AskAIOverlay_content__-JFRF","ask-ai-accordion":"AskAIOverlay_ask-ai-accordion__foF0t","custom-actions":"AskAIOverlay_custom-actions__STdjS","custom-add-button":"AskAIOverlay_custom-add-button__XWJei","custom-list":"AskAIOverlay_custom-list__0DMBu","custom-item":"AskAIOverlay_custom-item__C3ItY","custom-header":"AskAIOverlay_custom-header__OSFv5",checkbox:"AskAIOverlay_checkbox__zNNHv","custom-delete-button":"AskAIOverlay_custom-delete-button__3Qcq2","prompt-list":"AskAIOverlay_prompt-list__+P0P4","custom-textarea-wrapper":"AskAIOverlay_custom-textarea-wrapper__HyrdN","textarea-error":"AskAIOverlay_textarea-error__kiN6o","validation-icon":"AskAIOverlay_validation-icon__a6lre",footer:"AskAIOverlay_footer__e6fUN","footer-button":"AskAIOverlay_footer-button__X+HrS"};function Xi(e){return(e||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}const Yi=()=>{const{state:t}=(0,e.useContext)(Se),n=t.catalog,o=e.useMemo(()=>function(e){return null==e?void 0:e.find(e=>"ai_question"===e.use)}(n),[n]),s=e.useMemo(()=>function(e){var t;const n=null==e||null===(t=e.params)||void 0===t?void 0:t.find(e=>"question"===e.name),r=null==n?void 0:n.maxCharacters;return"number"==typeof r?r:void 0}(o),[o]),l=e.useMemo(()=>function(e){var t;const n=null==e||null===(t=e.params)||void 0===t?void 0:t.find(e=>"question"===e.name),r=null==n?void 0:n.options;if(!r||!Array.isArray(r)||0===r.length)return[];const i=[],o={};return r.forEach(e=>{const t="string"==typeof e.value?e.value:void 0;if(!t)return;const n="string"==typeof e.category&&e.category.trim()?e.category.trim():lf("Prompts"),r="string"==typeof e.label&&e.label.trim()?e.label:t;let a=o[n];a||(a={title:n,items:[]},o[n]=a,i.push(a)),a.items.push({label:r,value:t})}),i.filter(e=>e.items.length>0)}(o),[o]),c=null==o?void 0:o.maxCount,u=e.useMemo(()=>o?t.checklist.criteria.filter(e=>e.catalogCriteriaId===o.id).length:0,[t.checklist.criteria,o]),d=void 0!==c?Math.max(c-u,0):void 0,[f,p]=e.useState({}),[h,v]=e.useState([{id:1,text:"",checked:!0}]),y=e.useRef(2),x=e.useRef(void 0),E=e.useCallback(()=>gi(!1),[]),S=e.useCallback(e=>{p(t=>({...t,[e]:!t[e]}))},[]),k=e.useMemo(()=>{const e=[];h.forEach(t=>{if(!t.checked)return;const n=(t.text||"").trim();n&&e.push(n)}),Object.keys(f).forEach(t=>{f[t]&&e.push(t)});const t={};return e.filter(e=>!t[e]&&(t[e]=!0))},[f,h]),C=e.useMemo(()=>Object.keys(f).reduce((e,t)=>e+(f[t]?1:0),0),[f]),_=e.useMemo(()=>h.filter(e=>e.checked).length,[h]),T=h.length>1,P=void 0===d||C+_+1<=d,I=void 0===d||P?void 0:lf("Only {0} more question(s) can be added. Remove a selection to add another custom question.",d),A=void 0===d||d>0,O=!!k.length&&A,j=e.useCallback(()=>{if(!k.length)return;const e=void 0!==d?k.slice(0,d):k;e.length&&(function(e){var t;const{state:n}=Ee(),i=null===(o=n.catalog)||void 0===o?void 0:o.find(e=>"ai_question"===(e.use||"").toLocaleLowerCase());var o;if(!i)return void G(H.addingMissingCriteria,"Attempting to add AI question criteria without catalog entry");const a=void 0!==i.maxCount?i.maxCount-n.checklist.criteria.filter(e=>e.catalogCriteriaId===i.id).length:void 0;if(void 0!==a&&a<=0)return;const s=e.map(e=>e.trim()).filter(e=>!!e),l=Array.from(new Set(s)),c=void 0!==a?l.slice(0,a):l;if(0===c.length)return;const u={...n.checklist,criteria:[...null!==(t=n.checklist.criteria)&&void 0!==t?t:[]]};for(const e of c){var d;const t=null===(d=i.params)||void 0===d?void 0:d.map(t=>{const n="question"===(t.name||"").toLocaleLowerCase()?e:t.default;return{name:t.name,value:n}}),n=r();X(`Adding AI question criteria with Catalog ID '${i.id}' and Instance ID '${n}'`);const o={catalogCriteriaId:i.id,instanceId:n,params:t};u.criteria.push(o)}At(u),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify([i.id])})}(e),e.length!==k.length&&tt(w("warning",lf("Only added {0} of {1} questions (maximum reached).",e.length,k.length))),p({}),v([{id:1,text:"",checked:!0}]),y.current=2,x.current=void 0,E())},[k,d,E]),N=e.useCallback(()=>{const e=y.current++;x.current=e,v(t=>t.concat([{id:e,text:"",checked:!0}]))},[]);e.useEffect(()=>{const e=x.current;if(void 0===e)return;const t=document.getElementById(`ask-ai-custom-text-${e}`);null==t||t.focus(),x.current=void 0},[h.length]);const M=e.useCallback((e,t)=>{v(n=>n.map(n=>n.id===e?{...n,checked:t}:n))},[]),R=e.useCallback((e,t)=>{v(n=>n.map(n=>n.id===e?{...n,text:t}:n))},[]),L=e.useCallback(e=>{v(t=>t.length>1?t.filter(t=>t.id!==e):t)},[]);return t.askAiOpen?(0,i.jsx)(He,{onEscape:()=>{},children:(0,i.jsx)("div",{className:Gi["ask-ai-overlay"],role:"dialog","aria-modal":"true","aria-label":m.AskAI,children:(0,i.jsxs)("div",{className:Gi["ask-ai-content-container"],children:[(0,i.jsxs)("div",{className:Gi.header,children:[(0,i.jsx)("span",{className:Gi.title,children:m.AskAI}),(0,i.jsx)(Me,{className:Gi["close-button"],rightIcon:"fas fa-times-circle",onClick:E,title:m.Close})]}),(0,i.jsx)("div",{className:Gi.content,children:(0,i.jsx)(Ui,{className:Gi["ask-ai-accordion"],multiExpand:!0,defaultExpandedIds:["ask-ai-custom",...l.map(e=>`ask-ai-cat-${Xi(e.title)}`)],children:[(0,i.jsxs)(Ui.Item,{itemId:"ask-ai-custom",children:[(0,i.jsx)(Ui.Header,{children:m.Custom}),(0,i.jsxs)(Ui.Panel,{children:[h.length>0&&(0,i.jsx)("div",{className:Gi["custom-list"],children:h.map((e,t)=>{const n=e.text.trim(),r=n&&n.length<b.MinAIQuestionLength;return(0,i.jsxs)("div",{className:Gi["custom-item"],children:[(0,i.jsxs)("div",{className:Gi["custom-header"],children:[(0,i.jsx)(We,{id:`ask-ai-custom-check-${e.id}`,className:Gi.checkbox,label:lf("Question {0}",t+1),isChecked:e.checked,onChange:t=>M(e.id,t)}),T&&(0,i.jsx)(Me,{className:a("text-only",Gi["custom-delete-button"]),rightIcon:"fas fa-trash",title:m.Remove,ariaLabel:m.Remove,onClick:()=>L(e.id)})]}),(0,i.jsxs)("div",{className:a(Gi["custom-textarea-wrapper"],r?Gi["textarea-error"]:void 0),title:r?m.QuestionTooShort:void 0,children:[(0,i.jsx)(Ir,{id:`ask-ai-custom-text-${e.id}`,className:Gi.textarea,placeholder:m.CustomPromptPlaceholder,initialValue:e.text,maxLength:s,showRemainingCharacterCount:100,resize:"vertical",title:r?m.QuestionTooShort:void 0,onChange:t=>R(e.id,t)}),r&&(0,i.jsx)("i",{className:a(Gi["validation-icon"],"fas","fa-exclamation-triangle"),"aria-hidden":"true"})]})]},e.id)})}),(0,i.jsx)("div",{className:Gi["custom-actions"],children:(0,i.jsx)(Me,{id:"ask-ai-custom-add",className:Gi["custom-add-button"],label:lf("Add custom question"),title:null!=I?I:lf("Add custom question"),onClick:N,rightIcon:"fas fa-plus",disabled:!P})})]})]},"ask-ai-custom"),...l.map(e=>(0,i.jsxs)(Ui.Item,{itemId:`ask-ai-cat-${Xi(e.title)}`,children:[(0,i.jsx)(Ui.Header,{children:e.title}),(0,i.jsx)(Ui.Panel,{children:(0,i.jsx)("div",{className:Gi["prompt-list"],children:e.items.map((t,n)=>(0,i.jsx)(We,{id:`ask-ai-opt-${Xi(e.title)}-${n}`,className:Gi.checkbox,label:t.label,isChecked:!!f[t.value],onChange:()=>S(t.value)},t.value))})})]},e.title))]})}),(0,i.jsxs)("div",{className:Gi.footer,children:[(0,i.jsx)(Me,{className:a("secondary",Gi["footer-button"]),label:m.Cancel,onClick:E,title:m.Cancel}),(0,i.jsx)(Me,{className:a(O?"primary":"secondary",Gi["footer-button"]),label:m.AddSelected,onClick:j,disabled:!O,title:m.AddSelected})]})]})})}):null};const Ki=()=>{const{state:t}=(0,e.useContext)(Se),n=function(e){var t;if(e.projectMetadata)return null!==(t=e.projectMetadata.name)&&void 0!==t?t:m.UntitledProject}(t);return n?(0,i.jsx)("div",{className:"ProjectWorkspace_projectName__DC+1K",children:n}):null},Qi=()=>{const{state:t}=(0,e.useContext)(Se),{runOnLoad:n}=t;return(0,i.jsx)(ct.ControlGroup,{children:(0,i.jsx)(ct.Toggle,{label:m.RunOnLoad,title:m.RunOnLoadDescription,isChecked:n,onToggle:e=>{pxt.tickEvent(g.RunOnLoad,{checked:e?"true":"false"}),function(e){const{dispatch:t}=Ee();t((e=>({type:"SET_RUN_ON_LOAD",runOnLoad:e}))(e)),function(e){try{ne(K,e.toString())}catch(e){G(H.localStorageWriteError,e)}}(e)}(e)}})})},Ji=()=>(0,i.jsxs)("div",{className:"ProjectWorkspace_panel__FKcHF",children:[(0,i.jsx)(Wi,{}),(0,i.jsx)(Yi,{}),(0,i.jsx)(ct,{left:(0,i.jsx)(Ki,{}),right:(0,i.jsx)(Qi,{})}),(0,i.jsx)(Oi,{}),(0,i.jsx)(Ni,{})]}),Zi=()=>{const e=function(){try{var e;return null!==(e=te(J))&&void 0!==e?e:""}catch(e){return G(H.localStorageReadError,e),""}}();return(0,i.jsx)("div",{className:"MainPanel_main-panel__ZlyxZ",children:(0,i.jsx)(st,{split:"vertical",defaultSize:"50%",startingSize:e,primary:"left",left:(0,i.jsx)(Ii,{}),right:(0,i.jsx)(Ji,{}),leftMinSize:"5rem",rightMinSize:"5rem",onResizeEnd:function(e){!function(e){try{ne(J,e)}catch(e){G(H.localStorageWriteError,e)}}(e.toString())}})})};var eo=function(e,t){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},eo(e,t)};function to(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var no=function(){return no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},no.apply(this,arguments)};function ro(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function io(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function oo(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,n(5224);const ao=1/60*1e3,so="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),lo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(so()),ao);let co=!0,uo=!1,fo=!1;const po={delta:0,timestamp:0},ho=["read","update","preRender","render","postRender"],mo=ho.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&i,c=l?t:n;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}(()=>uo=!0),e),{}),vo=ho.reduce((e,t)=>{const n=mo[t];return e[t]=(e,t=!1,r=!1)=>(uo||xo(),n.schedule(e,t,r)),e},{}),go=ho.reduce((e,t)=>(e[t]=mo[t].cancel,e),{}),yo=ho.reduce((e,t)=>(e[t]=()=>mo[t].process(po),e),{}),bo=e=>mo[e].process(po),wo=e=>{uo=!1,po.delta=co?ao:Math.max(Math.min(e-po.timestamp,40),1),po.timestamp=e,fo=!0,ho.forEach(bo),fo=!1,uo&&(co=!1,lo(wo))},xo=()=>{uo=!0,co=!0,fo||lo(wo)},Eo=()=>po,So=vo;var ko="undefined"!=typeof document,Co=ko?e.useLayoutEffect:e.useEffect;function _o(){var t=(0,e.useRef)(!1);return Co(function(){return t.current=!0,function(){t.current=!1}},[]),t}var To=(0,e.createContext)(null);function Po(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var Io=0,Ao=function(){return Io++},Oo=function(){return Po(Ao)},jo=function(t){var n=t.children,r=t.initial,i=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=Po(No),c=Oo(),u=(0,e.useMemo)(function(){return{id:c,initial:r,isPresent:i,custom:a,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},s?void 0:[i]);return(0,e.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[i]),e.useEffect(function(){!i&&!l.size&&(null==o||o())},[i]),e.createElement(To.Provider,{value:u},n)};function No(){return new Map}var Mo=(0,e.createContext)({});function Ro(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}n(3705);var Lo=function(e){return e.key||""},Do=function(t){var n=t.children,r=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,c=void 0===l||l,u=io(function(){var t=_o(),n=io((0,e.useState)(0),2),r=n[0],i=n[1],o=(0,e.useCallback)(function(){t.current&&i(r+1)},[r]);return[(0,e.useCallback)(function(){return So.postRender(o)},[o]),r]}(),1),d=u[0],f=(0,e.useContext)(Mo).forceRender;f&&(d=f);var p=_o(),h=function(t){var n=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&n.push(t)}),n}(n),m=h,v=new Set,g=(0,e.useRef)(m),y=(0,e.useRef)(new Map).current,b=(0,e.useRef)(!0);if(Co(function(){b.current=!1,function(e,t){e.forEach(function(e){var n=Lo(e);t.set(n,e)})}(h,y),g.current=m}),Ro(function(){b.current=!0,y.clear(),v.clear()}),b.current)return e.createElement(e.Fragment,null,m.map(function(t){return e.createElement(jo,{key:Lo(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},t)}));m=oo([],io(m),!1);for(var w=g.current.map(Lo),x=h.map(Lo),E=w.length,S=0;S<E;S++){var k=w[S];-1===x.indexOf(k)&&v.add(k)}return s&&v.size&&(m=[]),v.forEach(function(t){if(-1===x.indexOf(t)){var n=y.get(t);if(n){var i=w.indexOf(t);m.splice(i,0,e.createElement(jo,{key:Lo(n),isPresent:!1,onExitComplete:function(){y.delete(t),v.delete(t);var e=g.current.findIndex(function(e){return e.key===t});if(g.current.splice(e,1),!v.size){if(g.current=h,!1===p.current)return;d(),a&&a()}},custom:r,presenceAffectsLayout:c},n))}}}),m=m.map(function(t){var n=t.key;return v.has(n)?t:e.createElement(jo,{key:Lo(t),isPresent:!0,presenceAffectsLayout:c},t)}),e.createElement(e.Fragment,null,v.size?m:m.map(function(t){return(0,e.cloneElement)(t)}))},Fo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Bo={measureLayout:Fo(["layout","layoutId","drag"]),animation:Fo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Fo(["exit"]),drag:Fo(["drag","dragControls"]),focus:Fo(["whileFocus"]),hover:Fo(["whileHover","onHoverStart","onHoverEnd"]),tap:Fo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Fo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Fo(["whileInView","onViewportEnter","onViewportLeave"])},Uo=function(){},zo=(0,e.createContext)({strict:!1}),Vo=Object.keys(Bo),$o=Vo.length,Ho=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),qo=(0,e.createContext)({}),Wo={current:null},Go=!1;function Xo(t,n,r,i){var o=(0,e.useContext)(zo),a=(0,e.useContext)(qo).visualElement,s=(0,e.useContext)(To),l=function(){var t=(!Go&&function(){if(Go=!0,ko)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Wo.current=e.matches};e.addListener(t),t()}else Wo.current=!1}(),io((0,e.useState)(Wo.current),1)[0]),n=(0,e.useContext)(Ho).reducedMotion;return"never"!==n&&("always"===n||t)}(),c=(0,e.useRef)(void 0);i||(i=o.renderer),!c.current&&i&&(c.current=i(t,{visualState:n,parent:a,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var u=c.current;return Co(function(){null==u||u.syncRender()}),(0,e.useEffect)(function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()}),Co(function(){return function(){return null==u?void 0:u.notifyUnmount()}},[]),u}function Yo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ko(e){return Array.isArray(e)}function Qo(e){return"string"==typeof e||Ko(e)}function Jo(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Zo(e,t,n){var r=e.getProps();return Jo(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ea(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Qo(e.initial)||Qo(e.animate)||Qo(e.whileHover)||Qo(e.whileDrag)||Qo(e.whileTap)||Qo(e.whileFocus)||Qo(e.exit)}function ta(e){return Boolean(ea(e)||e.variants)}function na(e){return Array.isArray(e)?e.join(" "):e}var ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ia=1,oa=(0,e.createContext)({}),aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function sa(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Bo.projectionNodeConstructor=e[t]:Bo[t].Component=e[t])}(n),(0,e.forwardRef)(function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(Mo))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=no(no({},t),{layoutId:l});var c=(0,e.useContext)(Ho),u=null,d=function(t){var n=function(e,t){if(ea(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Qo(n)?n:void 0,animate:Qo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(qo)),r=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:r,animate:i}},[na(r),na(i)])}(t),f=c.isStatic?void 0:Po(function(){if(ra.hasEverUpdated)return ia++}),p=a(t,c.isStatic);return!c.isStatic&&ko&&(d.visualElement=Xo(s,p,no(no({},c),t),r),function(t,n,r,i){var o,a=n.layoutId,s=n.layout,l=n.drag,c=n.dragConstraints,u=n.layoutScroll,d=(0,e.useContext)(oa);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(o=r.parent)||void 0===o?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(l)||c&&Yo(c),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:u}))}(f,t,d.visualElement,i||Bo.projectionNodeConstructor),u=function(t,n){var r=[];if((0,e.useContext)(zo),!n)return null;for(var i=0;i<$o;i++){var o=Vo[i],a=Bo[o],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(e.createElement(l,no({key:o},t,{visualElement:n})))}return r}(t,d.visualElement)),e.createElement(aa,{visualElement:d.visualElement,props:no(no({},c),t)},u,e.createElement(qo.Provider,{value:d},o(s,t,f,function(t,n,r){return(0,e.useCallback)(function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Yo(r)&&(r.current=e))},[n])}(p,d.visualElement,n),p,c.isStatic,d.visualElement)))})}var la=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ca(e){return"string"==typeof e&&!e.includes("-")&&!!(la.indexOf(e)>-1||/[A-Z]/.test(e))}var ua={},da=["","X","Y","Z"],fa=["transformPerspective","x","y","z"];function pa(e,t){return fa.indexOf(e)-fa.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return da.forEach(function(t){return fa.push(e+t)})});var ha=new Set(fa);function ma(e){return ha.has(e)}var va=new Set(["originX","originY","originZ"]);function ga(e){return va.has(e)}function ya(e,t){var n=t.layout,r=t.layoutId;return ma(e)||ga(e)||(n||void 0!==r)&&(!!ua[e]||"opacity"===e)}var ba=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},wa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function xa(e){return e.startsWith("--")}var Ea=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Sa=(e,t)=>n=>Math.max(Math.min(n,t),e),ka=e=>e%1?Number(e.toFixed(5)):e,Ca=/(-)?([\d]*\.?[\d])+/g,_a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pa(e){return"string"==typeof e}const Ia=e=>({test:t=>Pa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Aa=Ia("deg"),Oa=Ia("%"),ja=Ia("px"),Na=Ia("vh"),Ma=Ia("vw"),Ra=Object.assign(Object.assign({},Oa),{parse:e=>Oa.parse(e)/100,transform:e=>Oa.transform(100*e)}),La={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Da=Object.assign(Object.assign({},La),{transform:Sa(0,1)}),Fa=Object.assign(Object.assign({},La),{default:1});var Ba=no(no({},La),{transform:Math.round}),Ua={borderWidth:ja,borderTopWidth:ja,borderRightWidth:ja,borderBottomWidth:ja,borderLeftWidth:ja,borderRadius:ja,radius:ja,borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomRightRadius:ja,borderBottomLeftRadius:ja,width:ja,maxWidth:ja,height:ja,maxHeight:ja,size:ja,top:ja,right:ja,bottom:ja,left:ja,padding:ja,paddingTop:ja,paddingRight:ja,paddingBottom:ja,paddingLeft:ja,margin:ja,marginTop:ja,marginRight:ja,marginBottom:ja,marginLeft:ja,rotate:Aa,rotateX:Aa,rotateY:Aa,rotateZ:Aa,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Aa,skewX:Aa,skewY:Aa,distance:ja,translateX:ja,translateY:ja,translateZ:ja,x:ja,y:ja,z:ja,perspective:ja,transformPerspective:ja,opacity:Da,originX:Ra,originY:Ra,originZ:ja,zIndex:Ba,fillOpacity:Da,strokeOpacity:Da,numOctaves:Ba};function za(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(xa(p))a[p]=h;else{var m=Ua[p],v=Ea(h,m);if(ma(p)){if(u=!0,s[p]=v,l.push(p),!f)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(f=!1)}else ga(p)?(c[p]=v,d=!0):o[p]=v}}u?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(pa);for(var d=!1,f=o.length,p=0;p<f;p++){var h=o[p];u+="".concat(wa[h]||h,"(").concat(i[h],") "),"z"===h&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(c))}function Va(e,t,n){for(var r in t)ba(t[r])||ya(r,n)||(e[r]=t[r])}function $a(t,n,r){var i={};return Va(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};za(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return no(no({},e.vars),t)},[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Ha(e,t,n){var r={},i=$a(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var qa=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Wa(e){return qa.has(e)}var Ga,Xa=function(e){return!Wa(e)};try{(Ga=require("@emotion/is-prop-valid").default)&&(Xa=function(e){return e.startsWith("on")?!Wa(e):Ga(e)})}catch(e){}function Ya(e,t,n){return"string"==typeof e?e:ja.transform(t+n*e)}var Ka={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qa={offset:"strokeDashoffset",array:"strokeDasharray"};function Ja(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,f=void 0===d?0:d;za(e,ro(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Ya(t,e.x,e.width),i=Ya(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?Ka:Qa;e[o.offset]=ja.transform(-r);var a=ja.transform(t),s=ja.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,l,u,f,!1)}var Za=function(){return no(no({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function es(t,n){var r=(0,e.useMemo)(function(){var e=Za();return Ja(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),no(no({},e.attrs),{style:no({},e.style)})},[n]);if(t.style){var i={};Va(i,t.style,t),r.style=no(no({},i),r.style)}return r}function ts(t){return void 0===t&&(t=!1),function(n,r,i,o,a,s){var l=a.latestValues,c=(ca(n)?es:Ha)(r,l,s),u=function(e,t,n){var r={};for(var i in e)(Xa(i)||!0===n&&Wa(i)||!t&&!Wa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),d=no(no(no({},u),c),{ref:o});return i&&(d["data-projection-id"]=i),(0,e.createElement)(n,d)}}var ns=/([a-z])([A-Z])/g,rs=function(e){return e.replace(ns,"$1-$2").toLowerCase()};function is(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var os=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function as(e,t,n,r){for(var i in is(e,t,void 0,r),t.attrs)e.setAttribute(os.has(i)?i:rs(i),t.attrs[i])}function ss(e){var t=e.style,n={};for(var r in t)(ba(t[r])||ya(r,e))&&(n[r]=t[r]);return n}function ls(e){var t=ss(e);for(var n in e)ba(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function cs(e){return"object"==typeof e&&"function"==typeof e.start}var us=function(e){return Array.isArray(e)},ds=function(e){return us(e)?e[e.length-1]||0:e};function fs(e){var t,n=ba(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function ps(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:ms(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var hs=function(t){return function(n,r){var i=(0,e.useContext)(qo),o=(0,e.useContext)(To);return r?ps(t,n,i,o):Po(function(){return ps(t,n,i,o)})}};function ms(e,t,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)i[s]=fs(a[s]);var l=e.initial,c=e.animate,u=ea(e),d=ta(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=o||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!cs(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=Jo(e,t);if(n){var r=n.transitionEnd;n.transition;var o=ro(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}),i}var vs,gs={useVisualState:hs({scrapeMotionValuesFromProps:ls,createRenderState:Za,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ja(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),as(t,r)}})},ys={useVisualState:hs({scrapeMotionValuesFromProps:ss,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function bs(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function ws(t,n,r,i){(0,e.useEffect)(function(){var e=t.current;if(r&&e)return bs(e,n,r,i)},[t,n,r,i])}function xs(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Es(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(vs||(vs={}));var Ss={pageX:0,pageY:0};function ks(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ss;return{x:n[t+"X"],y:n[t+"Y"]}}function Cs(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function _s(e,t){return void 0===t&&(t="page"),{point:Es(e)?ks(e,t):Cs(e,t)}}var Ts=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,_s(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Ps={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Is={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function As(e){return ko&&null===window.onpointerdown?e:ko&&null===window.ontouchstart?Is[e]:ko&&null===window.onmousedown?Ps[e]:e}function Os(e,t,n,r){return bs(e,As(t),Ts(n,"pointerdown"===t),r)}function js(e,t,n,r){return ws(e,As(t),n&&Ts(n,"pointerdown"===t),r)}function Ns(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ms=Ns("dragHorizontal"),Rs=Ns("dragVertical");function Ls(e){var t=!1;if("y"===e)t=Rs();else if("x"===e)t=Ms();else{var n=Ms(),r=Rs();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Ds(){var e=Ls(!0);return!e||(e(),!1)}function Fs(e,t,n){return function(r,i){var o;xs(r)&&!Ds()&&(null===(o=e.animationState)||void 0===o||o.setActive(vs.Hover,t),null==n||n(r,i))}}var Bs=function(e,t){return!!t&&(e===t||Bs(e,t.parentElement))};const Us=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Us);n(3705),new Set;var Vs=new WeakMap,$s=new WeakMap,Hs=function(e){var t;null===(t=Vs.get(e.target))||void 0===t||t(e)},qs=function(e){e.forEach(Hs)};var Ws={some:0,all:1};function Gs(t,n,r,i){var o=i.root,a=i.margin,s=i.amount,l=void 0===s?"some":s,c=i.once;(0,e.useEffect)(function(){if(t){var e={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof l?l:Ws[l]};return function(e,t,n){var r=function(e){var t=e.root,n=ro(e,["root"]),r=t||document;$s.has(r)||$s.set(r,{});var i=$s.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(qs,no({root:t},n))),i[o]}(t);return Vs.set(e,n),r.observe(e),function(){Vs.delete(e),r.unobserve(e)}}(r.getInstance(),e,function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!c||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(vs.InView,i);var o=r.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[t,o,a,l])}function Xs(t,n,r,i){var o=i.fallback,a=void 0===o||o;(0,e.useEffect)(function(){t&&a&&requestAnimationFrame(function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(vs.InView,!0)})},[t])}var Ys=function(e){return function(t){return e(t),null}},Ks={inView:Ys(function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(r||i||o);s.once&&l.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?Xs:Gs)(c,l.current,n,s)}),tap:Ys(function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(!1),c=(0,e.useRef)(null),u={passive:!(r||n||i||m)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return d(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(vs.Tap,!1),!Ds()}function p(e,t){f()&&(Bs(a.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){f()&&(null==i||i(e,t))}function m(e,t){var n;d(),l.current||(l.current=!0,c.current=zs(Os(window,"pointerup",p,u),Os(window,"pointercancel",h,u)),null===(n=a.animationState)||void 0===n||n.setActive(vs.Tap,!0),null==r||r(e,t))}js(a,"pointerdown",s?m:void 0,u),Ro(d)}),focus:Ys(function(e){var t=e.whileFocus,n=e.visualElement;ws(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(vs.Focus,!0)}:void 0),ws(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(vs.Focus,!1)}:void 0)}),hover:Ys(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;js(i,"pointerenter",t||r?Fs(i,!0,t):void 0,{passive:!t}),js(i,"pointerleave",n||r?Fs(i,!1,n):void 0,{passive:!n})})};function Qs(){var t=(0,e.useContext)(To);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,o=Oo();return(0,e.useEffect)(function(){return i(o)},[]),!n&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function Js(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Zs=(e,t,n)=>Math.min(Math.max(n,e),t);const el=12;function tl(e,t){return e*Math.sqrt(1-t*t)}const nl=["duration","bounce"],rl=["stiffness","damping","mass"];function il(e,t){return t.some(t=>void 0!==e[t])}function ol(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=ro(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!il(e,rl)&&il(e,nl)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=Zs(.05,1,a),e=Zs(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e;return.001-(r-n)/tl(t,a)*Math.exp(-i)},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=tl(Math.pow(t,2),a);return(.001-i(t)>0?-1:1)*((o-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<el;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=al,h=al;function m(){const e=u?-u/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=tl(a,o);p=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);p=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],m()}}}ol.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const al=e=>0,sl=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ll=(e,t,n)=>-n*e+n*t+e,cl=(e,t)=>n=>Boolean(Pa(n)&&Ta.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ul=(e,t,n)=>r=>{if(!Pa(r))return r;const[i,o,a,s]=r.match(Ca);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},dl=Sa(0,255),fl=Object.assign(Object.assign({},La),{transform:e=>Math.round(dl(e))}),pl={test:cl("rgb","red"),parse:ul("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fl.transform(e)+", "+fl.transform(t)+", "+fl.transform(n)+", "+ka(Da.transform(r))+")"},hl={test:cl("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:pl.transform},ml={test:cl("hsl","hue"),parse:ul("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Oa.transform(ka(t))+", "+Oa.transform(ka(n))+", "+ka(Da.transform(r))+")"};function vl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=vl(s,r,e+1/3),o=vl(s,r,e),a=vl(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const yl=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},bl=[hl,pl,ml],wl=e=>bl.find(t=>t.test(e)),xl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,El=(e,t)=>{let n=wl(e),r=wl(t);xl(e),xl(t);let i=n.parse(e),o=r.parse(t);n===ml&&(i=gl(i),n=pl),r===ml&&(o=gl(o),r=pl);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=yl(i[t],o[t],e));return a.alpha=ll(i.alpha,o.alpha,e),n.transform(a)}},Sl={test:e=>pl.test(e)||hl.test(e)||ml.test(e),parse:e=>pl.test(e)?pl.parse(e):ml.test(e)?ml.parse(e):hl.parse(e),transform:e=>Pa(e)?e:e.hasOwnProperty("red")?pl.transform(e):ml.transform(e)},kl="${c}",Cl="${n}";function _l(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(_a);r&&(n=r.length,e=e.replace(_a,kl),t.push(...r.map(Sl.parse)));const i=e.match(Ca);return i&&(e=e.replace(Ca,Cl),t.push(...i.map(La.parse))),{values:t,numColors:n,tokenised:e}}function Tl(e){return _l(e).values}function Pl(e){const{values:t,numColors:n,tokenised:r}=_l(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?kl:Cl,r<n?Sl.transform(e[r]):ka(e[r]));return t}}const Il=e=>"number"==typeof e?0:e,Al={test:function(e){var t,n,r,i;return isNaN(e)&&Pa(e)&&(null!==(n=null===(t=e.match(Ca))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(_a))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Tl,createTransformer:Pl,getAnimatableNone:function(e){const t=Tl(e);return Pl(e)(t.map(Il))}},Ol=e=>"number"==typeof e;function jl(e,t){return Ol(e)?n=>ll(e,t,n):Sl.test(e)?El(e,t):Ll(e,t)}const Nl=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>jl(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Ml=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=jl(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Rl(e){const t=Al.parse(e),n=t.length;let r=0,i=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const Ll=(e,t)=>{const n=Al.createTransformer(t),r=Rl(e),i=Rl(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?zs(Nl(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},Dl=(e,t)=>n=>ll(e,t,n);function Fl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Dl:"string"==typeof o?Sl.test(o)?El:Ll:Array.isArray(o)?Nl:"object"==typeof o?Ml:void 0);var o;const a=e.length-1;for(let n=0;n<a;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=zs(e,o)}r.push(o)}return r}(t,r,i),s=2===o?function([e,t],[n]){return r=>n(sl(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=sl(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(Zs(e[0],e[o-1],t)):s}const Bl=e=>t=>1-e(1-t),Ul=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zl=e=>t=>t*t*((e+1)*t-e),Vl=4/11,$l=8/11,Hl=e=>e,ql=e=>Math.pow(e,2);const Wl=Bl(ql),Gl=Ul(ql),Xl=e=>1-Math.sin(Math.acos(e)),Yl=Bl(Xl),Kl=Ul(Yl),Ql=zl(1.525),Jl=Bl(Ql),Zl=Ul(Ql),ec=(()=>{const e=zl(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),tc=4356/361,nc=35442/1805,rc=16061/1805,ic=e=>{if(1===e||0===e)return e;const t=e*e;return e<Vl?7.5625*t:e<$l?9.075*t-9.9*e+3.4:e<.9?tc*t-nc*e+rc:10.8*e*e-20.52*e+10.72},oc=Bl(ic);function ac(e,t){return e.map(()=>t||Gl).splice(0,e.length-1)}function sc({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(a),i);function l(){return Fl(s,a,{ease:Array.isArray(n)?n:ac(a,n)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}const lc={keyframes:sc,spring:ol,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};function cc(e,t,n=0){return e-t-n}const uc=e=>{const t=({delta:t})=>e(t);return{start:()=>So.update(t,!0),stop:()=>go.update(t)}};function dc(e){var t,n,{from:r,autoplay:i=!0,driver:o=uc,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=ro(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=m,w=0,x=m.duration,E=!1,S=!0;const k=function(e){if(Array.isArray(e.to))return sc;if(lc[e.type])return lc[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?sc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ol:sc}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Fl([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=k(Object.assign(Object.assign({},m),{from:r,to:b}));return i&&(null==u||u(),v=o(function(e){if(S||(e=-e),a+=e,!E){const e=C.next(Math.max(0,a));g=e.value,y&&(g=y(g)),E=S?e.done:a<=0}null==h||h(g),E&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,c,S)&&(w++,"reverse"===l?(S=w%2==0,a=function(e,t,n=0,r=!0){return r?cc(t+-e,t,n):t-(e-t)+n}(a,x,c,S)):(a=cc(a,x,c),"mirror"===l&&C.flipTarget()),E=!1,p&&p()):(v.stop(),f&&f()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function fc(e,t){return t?e*(1e3/t):0}var pc=function(e){return 1e3*e};const hc=(e,t)=>1-3*t+3*e,mc=(e,t)=>3*t-6*e,vc=e=>3*e,gc=(e,t,n)=>((hc(t,n)*e+mc(t,n))*e+vc(t))*e,yc=(e,t,n)=>3*hc(t,n)*e*e+2*mc(t,n)*e+vc(t),bc=.1;var wc={linear:Hl,easeIn:ql,easeInOut:Gl,easeOut:Wl,circIn:Xl,circInOut:Kl,circOut:Yl,backIn:Ql,backInOut:Zl,backOut:Jl,anticipate:ec,bounceIn:oc,bounceInOut:e=>e<.5?.5*(1-ic(1-2*e)):.5*ic(2*e-1)+.5,bounceOut:ic},xc=function(e){if(Array.isArray(e)){e.length;var t=io(e,4);return function(e,t,n,r){if(e===t&&n===r)return Hl;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=gc(t*bc,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=bc;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*bc,s=yc(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=yc(t,n,r);if(0===i)return t;t-=(gc(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=gc(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+bc,e,n)}return e=>0===e||1===e?e:gc(o(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),wc[e]):e},Ec=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Al.test(t)||t.startsWith("url(")))},Sc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},kc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Cc=function(){return{type:"keyframes",ease:"linear",duration:.3}},_c=function(e){return{type:"keyframes",duration:.8,values:e}},Tc={x:Sc,y:Sc,z:Sc,rotate:Sc,rotateX:Sc,rotateY:Sc,rotateZ:Sc,scaleX:kc,scaleY:kc,scale:kc,opacity:Cc,backgroundColor:Cc,color:Cc,default:kc};const Pc=new Set(["brightness","contrast","saturate","opacity"]);function Ic(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ca)||[];if(!r)return e;const i=n.replace(r,"");let o=Pc.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Ac=/([a-z-]*)\(.*?\)/g,Oc=Object.assign(Object.assign({},Al),{getAnimatableNone:e=>{const t=e.match(Ac);return t?t.map(Ic).join(" "):e}});var jc=no(no({},Ua),{color:Sl,backgroundColor:Sl,outlineColor:Sl,fill:Sl,stroke:Sl,borderColor:Sl,borderTopColor:Sl,borderRightColor:Sl,borderBottomColor:Sl,borderLeftColor:Sl,filter:Oc,WebkitFilter:Oc}),Nc=function(e){return jc[e]};function Mc(e,t){var n,r=Nc(e);return r!==Oc&&(r=Al),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Rc(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=oo([],io(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ro(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=no(no({},e),function(e,t){var n;return n=us(t)?_c:Tc[e]||Tc.default,no({to:t},n(t))}(n,t.to))),no(no({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=ro(e,["ease","times","yoyo","flip","loop"]),s=no({},a);return n&&(s.offset=n),a.duration&&(s.duration=pc(a.duration)),a.repeatDelay&&(s.repeatDelay=pc(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(xc):xc(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Lc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Dc(e){return"number"==typeof e?0:Mc("",e)}function Fc(e,t){return e[t]||e.default||e}function Bc(e,t,n,r){return void 0===r&&(r={}),t.start(function(i){var o,a,s=function(e,t,n,r,i){var o,a=Fc(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=Ec(e,n);"none"===s&&l&&"string"==typeof n?s=Mc(e,n):Lc(s)&&"string"==typeof n?s=Dc(n):!Array.isArray(n)&&Lc(n)&&"string"==typeof s&&(n=Dc(s));var c=Ec(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==h||h.stop(),h=dc(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r=i*t+e;void 0!==c&&(r=c(r));const a=v(r),s=a===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=fc(e-u,Eo().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(no(no({},r),a)):dc(no(no({},Rc(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=ds(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Fc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?o=window.setTimeout(c,pc(l)):c(),function(){clearTimeout(o),null==a||a.stop()}})}var Uc=function(e){return/^\-?\d*\.?\d+$/.test(e)},zc=function(e){return/^0[^.\s]+$/.test(e)};function Vc(e,t){-1===e.indexOf(t)&&e.push(t)}function $c(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Hc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Vc(this.subscriptions,e),function(){return $c(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),qc=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Hc,this.velocityUpdateSubscribers=new Hc,this.renderSubscribers=new Hc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Eo(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,So.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return So.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?fc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Wc(e){return new qc(e)}var Gc=function(e){return function(t){return t.test(e)}},Xc=[La,ja,Oa,Aa,Ma,Na,{test:function(e){return"auto"===e},parse:function(e){return e}}],Yc=function(e){return Xc.find(Gc(e))},Kc=oo(oo([],io(Xc),!1),[Sl,Al],!1),Qc=function(e){return Kc.find(Gc(e))};function Jc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wc(n))}function Zc(e,t){if(t)return(t[e]||t.default||t).from}function eu(e,t,n){var r;void 0===n&&(n={});var i=Zo(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return tu(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(nu).forEach(function(e,r){a.push(eu(e,t,no(no({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=io("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function tu(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=ro(c,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),y=p[v];if(!(!g||void 0===y||m&&ru(m,v))){var b=no({delay:a},d);e.shouldReduceMotion&&ma(v)&&(b=no(no({},b),{type:!1,delay:0}));var w=Bc(v,g,y,b);h.push(w)}}return Promise.all(h).then(function(){f&&function(e,t){var n=Zo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=ro(r,["transitionEnd","transition"]);for(var s in a=no(no({},a),o))Jc(e,s,ds(a[s]))}(e,f)})}function nu(e,t){return e.sortNodePosition(t)}function ru(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var iu=[vs.Animate,vs.InView,vs.Focus,vs.Hover,vs.Tap,vs.Drag,vs.Exit],ou=oo([],io(iu),!1).reverse(),au=iu.length;function su(e){var t=function(e){return function(t){return Promise.all(t.map(function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map(function(t){return eu(e,t,n)});r=Promise.all(i)}else if("string"==typeof t)r=eu(e,t,n);else{var o="function"==typeof t?Zo(e,t,n.custom):t;r=tu(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,n,r)}))}}(e),n=function(){var e;return(e={})[vs.Animate]=lu(!0),e[vs.InView]=lu(),e[vs.Hover]=lu(),e[vs.Tap]=lu(),e[vs.Drag]=lu(),e[vs.Focus]=lu(),e[vs.Exit]=lu(),e}(),r={},i=!0,o=function(t,n){var r=Zo(e,n);if(r){r.transition;var i=r.transitionEnd,o=ro(r,["transition","transitionEnd"]);t=no(no(no({},t),o),i)}return t};function a(a,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(t){var r=ou[t],m=n[r],v=null!==(l=c[r])&&void 0!==l?l:u[r],g=Qo(v),y=r===s?m.isActive:null;!1===y&&(h=t);var b=v===u[r]&&v!==c[r]&&g;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=no({},p),!m.isActive&&null===y||!v&&!m.prevProp||cs(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Ko(t)&&!Js(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&g||t>h&&g,E=Array.isArray(v)?v:[v],S=E.reduce(o,{});!1===y&&(S={});var k=m.prevResolvedValues,C=void 0===k?{}:k,_=no(no({},C),S),T=function(e){x=!0,f.delete(e),m.needsAnimating[e]=!0};for(var P in _){var I=S[P],A=C[P];p.hasOwnProperty(P)||(I!==A?us(I)&&us(A)?!Js(I,A)||w?T(P):m.protectedKeys[P]=!0:void 0!==I?T(P):f.add(P):void 0!==I&&f.has(P)?T(P):m.protectedKeys[P]=!0)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(p=no(no({},p),S)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,oo([],io(E.map(function(e){return{animation:e,options:no({type:r},a)}})),!1))},v=0;v<au;v++)m(v);if(r=no({},p),f.size){var g={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)}),d.push({animation:g})}var y=Boolean(d.length);return i&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var s=a(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function lu(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var cu={animation:Ys(function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=su(n)),cs(r)&&(0,e.useEffect)(function(){return r.subscribe(n)},[r])}),exit:Ys(function(t){var n=t.custom,r=t.visualElement,i=io(Qs(),2),o=i[0],a=i[1],s=(0,e.useContext)(To);(0,e.useEffect)(function(){var e,t;r.isPresent=o;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(vs.Exit,!o,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!o&&(null==i||i.then(a))},[o])})};const uu=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),du=e=>uu(e)&&e.hasOwnProperty("z"),fu=(e,t)=>Math.abs(e-t);function pu(e,t){if(Ol(e)&&Ol(t))return fu(e,t);if(uu(e)&&uu(t)){const n=fu(e.x,t.x),r=fu(e.y,t.y),i=du(e)&&du(t)?fu(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var hu=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=gu(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=pu(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Eo().timestamp;r.history.push(no(no({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=mu(t,r.transformPagePoint),xs(e)&&0===e.buttons?r.handlePointerUp(e,t):So.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=gu(mu(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Es(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=mu(_s(e),this.transformPagePoint),a=o.point,s=Eo().timestamp;this.history=[no(no({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,gu(o,this.history)),this.removeListeners=zs(Os(window,"pointermove",this.handlePointerMove),Os(window,"pointerup",this.handlePointerUp),Os(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),go.update(this.updatePoint)},e}();function mu(e,t){return t?{point:t(e.point)}:e}function vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gu(e,t){var n=e.point;return{point:n,delta:vu(n,bu(t)),offset:vu(n,yu(t)),velocity:wu(t,.1)}}function yu(e){return e[0]}function bu(e){return e[e.length-1]}function wu(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=bu(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pc(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xu(e){return e.max-e.min}function Eu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),pu(e,t)<n}function Su(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=ll(t.min,t.max,e.origin),e.scale=xu(n)/xu(t),(Eu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ll(n.min,n.max,e.origin)-e.originPoint,(Eu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ku(e,t,n,r){Su(e.x,t.x,n.x,null==r?void 0:r.originX),Su(e.y,t.y,n.y,null==r?void 0:r.originY)}function Cu(e,t,n){e.min=n.min+t.min,e.max=e.min+xu(t)}function _u(e,t,n){e.min=t.min-n.min,e.max=e.min+xu(t)}function Tu(e,t,n){_u(e.x,t.x,n.x),_u(e.y,t.y,n.y)}function Pu(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Iu(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=io([i,r],2))[0],i=n[1]),{min:r,max:i}}var Au=.35;function Ou(e,t,n){return{min:ju(e,t),max:ju(e,n)}}function ju(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Nu=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Mu(e){return[e("x"),e("y")]}function Ru(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Lu(e){return void 0===e||1===e}function Du(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Lu(t)||!Lu(n)||!Lu(r)}function Fu(e){return Du(e)||Bu(e.x)||Bu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Bu(e){return e&&"0%"!==e}function Uu(e,t,n){return n+t*(e-n)}function zu(e,t,n,r,i){return void 0!==i&&(e=Uu(e,i,r)),Uu(e,n,r)+t}function Vu(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=zu(e.min,t,n,r,i),e.max=zu(e.max,t,n,r,i)}function $u(e,t){var n=t.x,r=t.y;Vu(e.x,n.translate,n.scale,n.originPoint),Vu(e.y,r.translate,r.scale,r.originPoint)}function Hu(e,t){e.min=e.min+t,e.max=e.max+t}function qu(e,t,n){var r=io(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=ll(e.min,e.max,s);Vu(e,t[i],t[o],l,t.scale)}var Wu=["x","scaleX","originX"],Gu=["y","scaleY","originY"];function Xu(e,t){qu(e.x,t,Wu),qu(e.y,t,Gu)}function Yu(e,t){return Ru(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Ku=new WeakMap,Qu=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new hu(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(_s(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ls(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Mu(function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(Oa.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(i=xu(o)*(parseFloat(i)/100))}n.originPoint[e]=i}),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(vs.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(vs.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ju(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?ll(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?ll(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Yo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Pu(e.x,r,o),y:Pu(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=Au),!1===e?e=0:!0===e&&(e=Au),{x:Ou(e,"left","right"),y:Ou(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Mu(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Yo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=Yu(e,n),i=t.scroll;return i&&(Hu(r.x,i.x),Hu(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Iu(e.x,t.x),y:Iu(e.y,t.y)}}(i.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ru(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Mu(function(n){var l;if(Ju(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=o?200:1e6,f=o?40:1e7,p=no(no({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,p)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Bc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Mu(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Mu(function(n){if(Ju(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-ll(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(Yo(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Mu(function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=xu(e),i=xu(t);return i>r?n=sl(t.min,t.max-r,e.min):r>i&&(n=sl(e.min,e.max-i,t.min)),Zs(0,1,n)}({min:r,max:r},t.constraints[e])}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Mu(function(e){if(Ju(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(ll(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Ku.set(this.visualElement,this);var n=Os(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),r=function(){Yo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=bs(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Mu(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?Au:c,d=e.dragMomentum,f=void 0===d||d;return no(no({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function Ju(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Zu={pan:Ys(function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(null),c=(0,e.useContext)(Ho).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)(function(){null!==l.current&&l.current.updateHandlers(u)}),js(a,"pointerdown",s&&function(e){l.current=new hu(e,u,{transformPagePoint:c})}),Ro(function(){return l.current&&l.current.end()})}),drag:Ys(function(t){var n=t.dragControls,r=t.visualElement,i=Po(function(){return new Qu(r)});(0,e.useEffect)(function(){return n&&n.subscribe(i)},[i,n]),(0,e.useEffect)(function(){return i.addListeners()},[i])})},ed=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],td=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,x=v.latestValues,E=v.renderState,S=function(){var e=ed.map(function(){return new Hc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){ed.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+ed[t]]=function(t){return e.add(t)},n["notify"+ed[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,oo([],io(t),!1))}}),n}(),k=new Map,C=new Map,_={},T=no({},x);function P(){y&&w&&(I(),s(y,E,p.style,D.projection))}function I(){r(D,E,x,t,p)}function A(){S.notifyUpdate(x)}function O(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&So.update(A,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var j=d(p);for(var N in j){var M=j[N];void 0!==x[N]&&ba(M)&&M.set(x[N],!1)}var R=ea(p),L=ta(p),D=no(no({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,shouldReduceMotion:g,variantChildren:L?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=D.current=e,D.projection&&D.projection.mount(e),L&&f&&!R&&(b=null==f?void 0:f.addVariantChild(D)),k.forEach(function(e,t){return O(t,e)}),null==f||f.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),go.update(A),go.render(P),C.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(D),S.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return L?D:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(D,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),k.set(e,t),x[e]=t.get(),O(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],c(e,E)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Wc(t),D.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!ba(t))return t}return T[e]}},S),{build:function(){return I(),E},scheduleRender:function(){So.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,S.updatePropListeners(e),_=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(ba(o))e.addValue(i,o);else if(ba(a))e.addValue(i,Wc(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Wc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(D,d(p),_)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!R){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<rd;r++){var i=nd[r],o=p[i];(Qo(o)||!1===o)&&(n[i]=o)}return n}});return D}},nd=oo(["initial"],io(iu),!1),rd=nd.length;function id(e){return"string"==typeof e&&e.startsWith("var(--")}var od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ad(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=io(function(e){var t=od.exec(e);if(!t)return[,];var n=io(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():id(o)?ad(o,t,n+1):o}}var sd,ld=new Set(["width","height","top","left","right","bottom","x","y"]),cd=function(e){return ld.has(e)},ud=function(e,t){e.set(t,!1),e.set(t)},dd=function(e){return e===La||e===ja};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(sd||(sd={}));var fd=function(e,t){return parseFloat(e.split(", ")[t])},pd=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return fd(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?fd(a[1],e):0}},hd=new Set(["x","y","z"]),md=fa.filter(function(e){return!hd.has(e)}),vd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:pd(4,13),y:pd(5,14)};function gd(e,t,n,r){return function(e){return Object.keys(e).some(cd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=no({},t),r=no({},r);var i=Object.keys(t).filter(cd),o=[],a=!1,s=[];if(i.forEach(function(i){var l=e.getValue(i);if(e.hasValue(i)){var c,u=n[i],d=Yc(u),f=t[i];if(us(f)){var p=f.length,h=null===f[0]?1:0;u=f[h],d=Yc(u);for(var m=h;m<p;m++)c?Uo(Yc(f[m])):(c=Yc(f[m]),Uo(c===d||dd(d)&&dd(c)))}else c=Yc(f);if(d!==c)if(dd(d)&&dd(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&c===ja&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[i]=d.transform(f):(a||(o=function(e){var t=[];return md.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],ud(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=vd[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);ud(r,s[n]),e[n]=vd[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=io(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var yd={treeType:"dom",readValueFromInstance:function(e,t){if(ma(t)){var n=Nc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(xa(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Yu(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=ro(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=Zc(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(i=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==i?i:t[u]),null!=f&&("string"==typeof f&&(Uc(f)||zc(f))?f=parseFloat(f):!Qc(f)&&Al.test(d)&&(f=Mc(u,d)),e.addValue(u,Wc(f)),null!==(o=(a=n)[u])&&void 0!==o||(a[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,n,r){var i=function(e,t,n){var r,i=ro(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=no({},n)),e.forEachValue(function(e){var t=e.get();if(id(t)){var n=ad(t,o);n&&e.set(n)}}),i){var s=i[a];if(id(s)){var l=ad(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return gd(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,a);a=c.transitionEnd,s=c.target}return no({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:ss,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),za(t,n,r,i.transformTemplate)},render:is},bd=td(yd),wd=td(no(no({},yd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ma(t)?(null===(n=Nc(t))||void 0===n?void 0:n.default)||0:(t=os.has(t)?t:rs(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ls,build:function(e,t,n,r,i){Ja(t,n,r,i.transformTemplate)},render:as})),xd=function(e,t){return ca(e)?wd(t,{enableHardwareAcceleration:!1}):bd(t,{enableHardwareAcceleration:!0})};function Ed(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Sd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ja.test(e))return e;e=parseFloat(e)}var n=Ed(e,t.target.x),r=Ed(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},kd="_$css",Cd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(od,function(e){return a.push(e),kd}));var s=Al.parse(e);if(s.length>5)return i;var l=Al.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=ll(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(o){var h=0;p=p.replace(kd,function(){var e=a[h];return h++,e})}return p}},_d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=Td,Object.assign(ua,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(no(no({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),ra.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||So.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),Td={borderRadius:no(no({},Sd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Sd,borderTopRightRadius:Sd,borderBottomLeftRadius:Sd,borderBottomRightRadius:Sd,boxShadow:Cd},Pd={measureLayout:function(t){var n=io(Qs(),2),r=n[0],i=n[1],o=(0,e.useContext)(Mo);return e.createElement(_d,no({},t,{layoutGroup:o,switchLayoutGroup:(0,e.useContext)(oa),isPresent:r,safeToRemove:i}))}},Id=["TopLeft","TopRight","BottomLeft","BottomRight"],Ad=Id.length,Od=function(e){return"string"==typeof e?parseFloat(e):e},jd=function(e){return"number"==typeof e||ja.test(e)};function Nd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Md=Ld(0,.5,Yl),Rd=Ld(.5,.95,Hl);function Ld(e,t,n){return function(r){return r<e?0:r>t?1:n(sl(e,t,r))}}function Dd(e,t){e.min=t.min,e.max=t.max}function Fd(e,t){Dd(e.x,t.x),Dd(e.y,t.y)}function Bd(e,t,n,r,i){return e=Uu(e-=t,1/n,r),void 0!==i&&(e=Uu(e,1/i,r)),e}function Ud(e,t,n,r,i){var o=io(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),Oa.test(t)&&(t=parseFloat(t),t=ll(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=ll(o.min,o.max,r);e===o&&(s-=t),e.min=Bd(e.min,t,n,s,i),e.max=Bd(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var zd=["x","scaleX","originX"],Vd=["y","scaleY","originY"];function $d(e,t,n,r){Ud(e.x,t,zd,null==n?void 0:n.x,null==r?void 0:r.x),Ud(e.y,t,Vd,null==n?void 0:n.y,null==r?void 0:r.y)}function Hd(e){return 0===e.translate&&1===e.scale}function qd(e){return Hd(e.x)&&Hd(e.y)}function Wd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Gd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Vc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if($c(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Xd(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(u,")"))?"none":o}var Yd=function(e,t){return e.depth-t.depth},Kd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Vc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){$c(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Yd),this.isDirty=!1,this.children.forEach(e)},e}();function Qd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(of),i.nodes.forEach(af)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?oo(oo([],io(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Hc),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,oo([],io(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,a=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var c,u=function(){return i.root.updateBlockedByResize=!1};t(e,function(){i.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,i.nodes.forEach(rf))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,a,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var f=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:pf,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!Wd(i.targetLayout,d)||u,g=!c&&u;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||g||c&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,g);var y=no(no({},Fc(f,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(y.delay=0,y.type=!1),i.startAnimation(y)}else c||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));i.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,go.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sf))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(tf);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(hf),this.potentialNodes.clear()),this.nodes.forEach(nf),this.nodes.forEach(Jd),this.nodes.forEach(Zd),this.clearAllSnapshots(),yo.update(),yo.preRender(),yo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ef),this.sharedNodes.forEach(cf)},e.prototype.scheduleUpdateProjection=function(){So.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;So.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));vf(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();vf(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!qd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||Fu(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Hu(t.x,n.x),Hu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Fd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){Fd(t,e);var s=this.root.scroll;s&&(Hu(t.x,-s.x),Hu(t.y,-s.y))}Hu(t.x,i.x),Hu(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Fd(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Xu(n,{x:-i.scroll.x,y:-i.scroll.y}),Fu(i.latestValues)&&Xu(n,i.latestValues)}return Fu(this.latestValues)&&Xu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Fd(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Fu(i.latestValues)){Du(i.latestValues)&&i.updateSnapshot();var o=Nu();Fd(o,i.measure()),$d(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return Fu(this.latestValues)&&$d(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=no(no(no({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Fd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,Cu(t.x,n.x,r.x),Cu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Fd(this.target,this.layout.actual),$u(this.target,this.targetDelta)):Fd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Fd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Fu(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Fd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Xu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,$u(e,l)),r&&Fu(s.latestValues)&&Xu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;ku(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Xd(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=no({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==i?void 0:i.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(ff));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i,f,p,h,m=t/1e3;uf(s.x,e.x,m),uf(s.y,e.y,m),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Tu(l,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,f=r.relativeTargetOrigin,p=l,h=m,df(i.x,f.x,p.x,h),df(i.y,f.y,p.y,h)),c&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,c;i?(e.opacity=ll(0,null!==(a=n.opacity)&&void 0!==a?a:1,Md(r)),e.opacityExit=ll(null!==(s=t.opacity)&&void 0!==s?s:1,0,Rd(r))):o&&(e.opacity=ll(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Ad;u++){var d="border".concat(Id[u],"Radius"),f=Nd(t,d),p=Nd(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||jd(f)===jd(p)?(e[d]=Math.max(ll(Od(f),Od(p),r),0),(Oa.test(p)||Oa.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=ll(t.rotate||0,n.rotate||0,r))}(a,o,r.latestValues,m,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=m},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(go.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=So.update(function(){ra.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ba(0)?0:Wc(0);return Bc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,no(no({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Fd(t,n),Xu(t,i),ku(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<da.length;r++){var i="rotate"+da[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=fs(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=fs(e.pointerEvents)||""),this.hasProjected&&!Fu(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Xd(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,ua)if(void 0!==d[m]){var v=ua[m],g=v.correct,y=v.applyTo,b=g(d[m],c);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=c===this?fs(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(tf),this.root.sharedNodes.clear()},e}()}function Jd(e){e.updateLayout()}function Zd(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Mu(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=xu(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Mu(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=xu(s[e]);t.max=t.min+n});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ku(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?ku(u,e.applyTransform(l,!0),o.measured):ku(u,s,o.layout);var d=!qd(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Tu(v,o.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Tu(g,s,m.actual),Wd(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function ef(e){e.clearSnapshot()}function tf(e){e.clearMeasurements()}function nf(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function rf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function of(e){e.resolveTargetDelta()}function af(e){e.calcProjection()}function sf(e){e.resetRotation()}function cf(e){e.removeLeadSnapshot()}function uf(e,t,n){e.translate=ll(t.translate,0,n),e.scale=ll(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function df(e,t,n,r){e.min=ll(t.min,n.min,r),e.max=ll(t.max,n.max,r)}function ff(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var pf={duration:.45,ease:[.4,0,.1,1]};function hf(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function mf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function vf(e){mf(e.x),mf(e.y)}var gf=Qd({attachResizeListener:function(e,t){return bs(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),yf={current:void 0},bf=Qd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!yf.current){var e=new gf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),yf.current=e}return yf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),wf=no(no(no(no({},cu),Ks),Zu),Pd),xf=function(e){function t(t,n){return void 0===n&&(n={}),sa(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}(function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=ca(e)?gs:ys;return no(no({},s),{preloadedFeatures:n,useRender:ts(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,wf,xd,bf)});const Ef={"toast-container":"Toasts_toast-container__y-Lf4",toast:"Toasts_toast__XCKjV",success:"Toasts_success__-Nlb6",info:"Toasts_info__WN7dx",warning:"Toasts_warning__D7Z9u",error:"Toasts_error__KRbGr","toast-content":"Toasts_toast-content__9jW74","icon-container":"Toasts_icon-container__x7hY3","text-container":"Toasts_text-container__6fxjF",text:"Toasts_text__DpqMN",detail:"Toasts_detail__iz+1a","dismiss-btn":"Toasts_dismiss-btn__dK4qJ",icon:"Toasts_icon__WpL+z",spinner:"Toasts_spinner__54CjX","slider-container":"Toasts_slider-container__oEiLc",slider:"Toasts_slider__Uv4U7"},Sf={success:"😊",info:"🔔",warning:"😮",error:"😢"},kf=({toast:t})=>{var n;const{dispatch:r}=(0,e.useContext)(Se),[o,s]=(0,e.useState)(!1),l=(0,e.useRef)(null);(0,e.useEffect)(()=>{let e,n;return t.timeoutMs&&(e=setTimeout(()=>r(_e(t.id)),300+t.timeoutMs),n=setTimeout(()=>s(!0),300)),()=>{clearTimeout(e),clearTimeout(n)}},[r,t.id,t.timeoutMs]);const c=(0,e.useCallback)(()=>o?"0%":"100%",[o]);return(0,i.jsxs)("div",{className:a(Ef.toast,Ef[t.type],t.className),children:[(0,i.jsxs)("div",{className:a(Ef["toast-content"],Ef[t.type]),children:[!t.hideIcon&&(0,i.jsx)("div",{className:a(Ef["icon-container"],Ef[t.type]),children:null!==(n=t.icon)&&void 0!==n?n:Sf[t.type]}),(0,i.jsxs)("div",{className:Ef["text-container"],children:[t.text&&(0,i.jsx)("div",{className:a(Ef.text,"tt-toast-text"),children:t.text}),t.detail&&(0,i.jsx)("div",{className:Ef.detail,children:t.detail}),t.jsx&&(0,i.jsx)("div",{children:t.jsx})]}),!t.hideDismissBtn&&!t.showSpinner&&(0,i.jsx)("div",{className:Ef["dismiss-btn"],onClick:()=>{r(_e(t.id))},children:(0,i.jsx)("i",{className:a("far fa-times-circle",Ef.icon)})}),t.showSpinner&&(0,i.jsx)("div",{className:Ef.spinner,children:(0,i.jsx)("i",{className:"fas fa-circle-notch fa-spin"})})]}),t.timeoutMs&&(0,i.jsx)("div",{className:a(Ef["slider-container"],Ef[t.type]),children:(0,i.jsx)("div",{ref:l,className:a(Ef.slider,Ef[t.type]),style:{width:c(),transitionDuration:`${t.timeoutMs}ms`}})})]})},Cf=({})=>{const{state:t}=(0,e.useContext)(Se);return(0,i.jsx)("div",{className:a(Ef["toast-container"]),children:(0,i.jsx)(Do,{children:t.toasts.map(e=>(0,i.jsx)(xf.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,i.jsx)(kf,{toast:e})},e.id))})})},_f=["/teachertool/catalog-shared.json","/teachertool/catalog.json"];const Tf=["/teachertool/validator-plans.json","/teachertool/validator-plans-shared.json"],Pf=n=>{const{children:r,id:o,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,role:d,title:f,hideTitle:p,leftIcon:h,actions:m,onClose:v,parentElement:g,fullscreen:y,hideDismissButton:b,rightHeader:w}=n,x=e=>{v&&v()},E=a("common-modal-container",y&&"fullscreen",s),S=e.useRef(null);return e.useEffect(()=>{var e;const t=g||document.body,n=null===(e=S.current)||void 0===e?void 0:e.parentElement,r=[];for(const e of t.children)e!==n&&(e.hasAttribute("aria-hidden")&&"false"!==e.getAttribute("aria-hidden")||(e.setAttribute("aria-hidden","true"),r.push(e)));return()=>{for(const e of r)e.removeAttribute("aria-hidden")}},[g]),t.createPortal((0,i.jsx)(He,{className:E,onEscape:x,children:(0,i.jsxs)("div",{id:o,className:"common-modal",ref:S,role:d||"dialog","aria-hidden":c,"aria-label":l,"aria-describedby":u,"aria-labelledby":"modal-title",children:[(0,i.jsxs)("div",{className:"common-modal-header",children:[y&&!b&&(0,i.jsx)("div",{className:"common-modal-back",children:(0,i.jsx)(Me,{className:"menu-button",onClick:x,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,i.jsxs)("div",{id:"modal-title",className:a("common-modal-title",p&&"sr-only"),children:[h&&(0,i.jsx)("i",{className:h,"aria-hidden":!0}),f]}),w&&(0,i.jsx)("div",{className:"common-modal-right-menu",children:w}),!y&&!b&&(0,i.jsx)("div",{className:"common-modal-close",children:(0,i.jsx)(Me,{className:"menu-button",onClick:x,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,i.jsx)("div",{className:"common-modal-body",children:r}),(null==m?void 0:m.length)&&(0,i.jsx)("div",{className:"common-modal-footer",children:m.map((e,t)=>{var n;return(0,i.jsx)(Me,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)})})]})}),g||document.body)};const If={"notice-label-background":"NoticeLabel_notice-label-background__S8h7b","notice-label-container":"NoticeLabel_notice-label-container__gKJ5B","error-notice-label-container":"NoticeLabel_error-notice-label-container__jM73c","warning-notice-label-container":"NoticeLabel_warning-notice-label-container__zMjO-","info-notice-label-container":"NoticeLabel_info-notice-label-container__YPcBC","neutral-notice-label-container":"NoticeLabel_neutral-notice-label-container__KB8v8",icon:"NoticeLabel_icon__IXZIF"},Af=e=>{let t;switch(e.severity){case"info":t="fas fa-exclamation-circle";break;case"warning":t="fas fa-exclamation-triangle";break;case"error":t="fas fa-times"}return(0,i.jsx)("div",{className:If["notice-label-background"],children:(0,i.jsxs)("div",{className:a(If["notice-label-container"],If[`${e.severity}-notice-label-container`]),children:["neutral"!==e.severity&&(0,i.jsx)("i",{className:a(t,If.icon)}),(0,i.jsx)("label",{className:"notice-label",children:e.children})]})})},Of=({onFileDroppedAsync:t,errorMessage:n})=>{const[r,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(0),c=(0,e.useRef)(null);function u(e){l(s+1),t(e)}return(0,i.jsxs)("div",{className:"DragAndDropFileSurface_drag-and-drop-file-surface__CGJg4",onDragEnter:function(e){e.stopPropagation(),e.preventDefault(),o(!0)},children:[(0,i.jsxs)("div",{className:"DragAndDropFileSurface_instruction-container__WjVOu",children:[(0,i.jsx)("i",{className:a("fas fa-file-upload","DragAndDropFileSurface_upload-icon__gZxir")}),(0,i.jsx)("div",{className:"no-select",children:r?m.ReleaseToUpload:m.DragAndDrop}),(0,i.jsxs)("div",{className:"DragAndDropFileSurface_or-browse-container__Q8Y6R",children:[(0,i.jsx)("span",{className:"DragAndDropFileSurface_or-container__lvbPp",children:lf("or")}),(0,i.jsx)(Me,{className:a("link-button","DragAndDropFileSurface_browse-button__BZ1Qx"),title:m.Browse,onClick:()=>{var e;return null==c||null===(e=c.current)||void 0===e?void 0:e.click()},children:m.Browse}),(0,i.jsx)("input",{type:"file",ref:c,className:"hidden",onChange:function(e){var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&u(n)},"aria-label":m.SelectChecklistFile,accept:".json"})]})]}),n&&(0,i.jsx)("div",{className:"DragAndDropFileSurface_error-label-container__iWbcy",role:"alert",title:n,children:(0,i.jsx)(Af,{severity:"error",children:n})},s),(0,i.jsx)("div",{className:a("DragAndDropFileSurface_droppable-surface__AEZcb",r?"DragAndDropFileSurface_dragging__x+kg6":void 0),onDrop:function(e){e.stopPropagation(),e.preventDefault(),o(!1);const t=e.dataTransfer.files[0];t&&u(t)},onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),o(!1)},onDragOver:function(e){e.stopPropagation(),e.preventDefault()}})]})},jf=()=>{var t;const{state:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(void 0);function a(e){pxt.tickEvent(g.ImportChecklistClose,{hasImported:e+""}),o(void 0),Ze()}return"import-checklist"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)?(0,i.jsx)(Pf,{title:m.ImportChecklist,onClose:()=>a(!1),className:"ImportChecklistModal_import-checklist-modal__dbQFL",children:(0,i.jsx)("div",{className:"ImportChecklistModal_import-checklist__AYZta",children:(0,i.jsx)(Of,{onFileDroppedAsync:async function(e){const t=await async function(e,t){let n=await async function(e){let t;try{const n=await pxt.Util.fileReadAsTextAsync(e);t=JSON.parse(n)}catch(e){G(H.unableToReadChecklistFile,e)}return t}(e);if(n){X("Loading checklist from file...",{file:e,checklist:n});const r=Ct(n);r.valid||(n=t?{...n,criteria:r.validCriteria}:void 0)}return n}(e,!1);t?(pxt.tickEvent(g.ImportChecklistSuccess),o(void 0),a(!0),Ot(t)):(pxt.tickEvent(g.ImportChecklistInvalidFile),o(m.InvalidChecklistFile))},errorMessage:r})})}):null},Nf=()=>{const{state:t}=(0,e.useContext)(Se),[n,r]=(0,e.useState)(void 0);function o(){var e;Ze(),null==n||null===(e=n.onCancel)||void 0===e||e.call(n)}(0,e.useEffect)(()=>{var e;"confirmation"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?r(t.modalOptions):r(void 0)},[t.modalOptions]);const a=[{label:m.Cancel,className:"secondary",onClick:o},{label:m.Continue,className:"primary",onClick:function(){var e;Ze(),null==n||null===(e=n.onContinue)||void 0===e||e.call(n)}}];return n?(0,i.jsx)(Pf,{title:n.title,onClose:o,actions:a,children:n.message}):null};let Mf;const Rf=e=>{const{id:t,className:n,role:r,src:o,alt:a,title:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,loadingElement:d}=e;let f;return function(){if(Mf)return;Mf=new IntersectionObserver(e=>{e.forEach(e=>{if(e.intersectionRatio>0){Mf.unobserve(e.target);const t=e.target.getAttribute("data-src");e.target.src=t;const n=e.target;n.src=t,n.onload=()=>{n.parentElement.classList.add("loaded"),n.parentElement.classList.remove("error")},n.onerror=()=>{n.parentElement.classList.add("error"),n.parentElement.classList.remove("loaded")}}})},{rootMargin:"50px 0px",threshold:.01})}(),(0,i.jsxs)("div",{className:"common-lazy-image-wrapper",children:[(0,i.jsx)("div",{className:"loading-element",children:d||(0,i.jsx)("div",{className:"common-spinner"})}),(0,i.jsx)("img",{id:t,ref:e=>{e&&(f&&Mf.unobserve(f),f=e,Mf.observe(e))},className:n,"data-src":o,alt:a,title:s,role:r,"aria-label":l,"aria-hidden":c,"aria-describedby":u}),(0,i.jsx)("i",{className:"fas fa-image","aria-hidden":!0})]})};var Lf=n(3705);const Df="BlockPickerModal_bottom-border__0nTNr",Ff=({block:t,category:n,onBlockSelected:r})=>{var o;const{state:a}=(0,e.useContext)(Se);let s=t.blockId?a.blockImageCache[t.blockId]:void 0;const l=(0,i.jsx)("div",{className:"BlockPickerModal_block-placeholder__i+3Wr",children:C(t.name)});return(0,i.jsx)(Me,{className:"BlockPickerModal_block-button__3rKXi",title:null!==(o=t.jsDoc)&&void 0!==o?o:C(t.name),ariaLabel:t.name,label:s?(0,i.jsx)(Rf,{src:s,alt:t.name,loadingElement:l,ariaHidden:!0}):l,onClick:()=>r(t)})},Bf=({category:t,onBlockSelected:n})=>{const[r,o]=(0,e.useState)(!1);function s(e){var t;pxt.tickEvent(g.BlockPickerBlockSelected,{blockId:null!==(t=e.blockId)&&void 0!==t?t:""}),null==n||n(e)}const l=t.color?{"--category-color":t.color}:{},c=`${t.name}-block-list`;return t.name&&t.blocks&&t.blocks.length>0?(0,i.jsx)("div",{className:Df,children:(0,i.jsxs)("div",{className:"BlockPickerModal_category-container__+Gqcm",style:l,children:[(0,i.jsx)(Me,{className:a("BlockPickerModal_category-button__Qn83F",r?Df:void 0),title:t.name,label:pxt.Util.capitalize(t.name),onClick:function(){r||async function(e){e.blocks?pxt.Util.promisePoolAsync(4,e.blocks,async e=>{try{await async function(e){const{state:t}=Ee();if(!e.blockId)return;if(t.blockImageCache[e.blockId])return;const n=e.blockXml?await async function(e){return Gr?await Gr.renderXml(e):void 0}(e.blockXml):await async function(e){return Gr?await Gr.renderByBlockId(e):void 0}(e.blockId);if(n){const{dispatch:t}=Ee();t(((e,t)=>({type:"SET_BLOCK_IMAGE_URI",blockId:e,imageUri:t}))(e.blockId,n))}}(e)}catch(t){Lf.warn(`Failed to load image for block ${e.name}: ${t}`)}}):Promise.resolve()}(t),o(!r)},ariaExpanded:r,ariaControls:c}),(0,i.jsx)(Fe,{id:c,role:"group",ariaLabel:lf("{0} Blocks",t.name),className:a("BlockPickerModal_category-block-list__71uBq",r?"BlockPickerModal_expanded__wJ-8m":"BlockPickerModal_collapsed__-7UXk"),children:t.blocks.map(e=>(0,i.jsx)(Ff,{block:e,category:t,onBlockSelected:s},e.blockId))})]})}):null},Uf=()=>(0,i.jsx)("div",{className:"BlockPickerModal_loading-container__UaRXi",children:(0,i.jsx)("div",{className:"common-spinner"})}),zf=({})=>{const{state:t}=(0,e.useContext)(Se),[n,r]=(0,e.useState)(void 0);(0,e.useEffect)(()=>{var e;"block-picker"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?r(t.modalOptions):r(void 0)},[t.modalOptions]);const o=[{label:m.Cancel,className:"secondary",onClick:Ze}];return n?(0,i.jsxs)(Pf,{className:"BlockPickerModal_block-picker-modal__2YDwQ",title:m.SelectBlock,onClose:Ze,actions:o,children:[t.toolboxCategories&&Object.values(t.toolboxCategories).map(e=>(0,i.jsx)(Bf,{category:e,onBlockSelected:e=>function(e){n?Dr(n.criteriaInstanceId,n.paramName,e.blockId):G(H.selectedBlockWithoutOptions,"Block selected without block picker options."),Ze()}(e)},e.name)),!t.toolboxCategories&&(0,i.jsx)(Uf,{})]}):null},Vf=()=>{const{state:t}=(0,e.useContext)(Se);return(0,i.jsx)(i.Fragment,{children:t.screenReaderAnnouncement&&(0,i.jsx)("div",{className:"sr-only","aria-live":"polite",children:t.screenReaderAnnouncement})})},$f=t=>{var n,r;const{onSignIn:o,onClose:a,appMessage:s,dialogMessages:l,hideDismissButton:c,lastUsedIdentityProvider:u}=t,{signInMessage:d,signUpMessage:f}=l||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},p=null!==(n=t.resolvePath)&&void 0!==n?n:e=>e,[h,m]=e.useState(!1),[v,g]=e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),y=e.useMemo(()=>"signin"===v?lf("Sign in"):lf("Sign up"),[v]),b=e.useMemo(()=>"signin"===v?d:f,[v,d,f]),w=e.useMemo(()=>"signin"===v?(0,i.jsxs)("div",{className:"switch",children:[(0,i.jsx)("span",{children:lf("Don't have an account?")}),(0,i.jsx)(Me,{className:"link-button",onClick:()=>g("signup"),title:lf("Sign up"),label:lf("Sign up")})]}):(0,i.jsxs)("div",{className:"switch",children:[(0,i.jsx)("span",{children:lf("Have an account?")}),(0,i.jsx)(Me,{className:"link-button",onClick:()=>g("signin"),title:lf("Sign in"),label:lf("Sign in")})]}),[v]);return(0,i.jsx)(Pf,{title:y,onClose:a,hideDismissButton:c,children:(0,i.jsxs)("div",{className:"signin-form",children:[(0,i.jsxs)("div",{className:"signin-header",children:[s||void 0," ",b]}),(0,i.jsx)("div",{className:"signin-body",children:(0,i.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((e,t)=>{const n=e.id===u,r="signin"===v?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name),a=n?lf("{0}. You last used this option.",r):r;return(0,i.jsx)(Me,{className:"provider",onClick:()=>o(e,h),title:r,ariaLabel:a,label:(0,i.jsxs)("div",{className:"label",children:[n&&(0,i.jsx)("div",{className:"ui orange right ribbon label last-used-ribbon","aria-hidden":"true",children:lf("Last used")}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,i.jsx)("div",{className:"title",children:r})]})},t)}),(0,i.jsx)("div",{className:"rememberme",children:(0,i.jsx)(We,{id:"rememberme",label:lf("Remember me"),isChecked:h,onChange:m})})]})}),(0,i.jsxs)("div",{className:"signin-footer",children:[w,(0,i.jsx)("div",{className:"learn",children:(0,i.jsx)(xt,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})},Hf=()=>{var t,n,r;const{state:o}=(0,e.useContext)(Se),a={hash:window.location.hash,params:pxt.Util.parseQueryString(window.location.href)};return null===(t=o.projectMetadata)||void 0===t||!t.persistId||null!==(n=a.params)&&void 0!==n&&n.project||(a.params||(a.params={}),a.params.project=o.projectMetadata.persistId),"sign-in"===(null===(r=o.modalOptions)||void 0===r?void 0:r.modal)?(0,i.jsx)($f,{onClose:Ze,onSignIn:async(e,t)=>{await async function(e,t,n){const r=await it();return await(null==r?void 0:r.loginAsync(e,t,n))}(e.id,t,a)},dialogMessages:{signInMessage:lf("Sign in to use MakeCode Code Evaluation."),signUpMessage:lf("Sign up to use MakeCode Code Evaluation.")},hideDismissButton:!0}):null},qf={"signed-out-container":"SignedOutPanel_signed-out-container__zVi8m","signed-out-panel":"SignedOutPanel_signed-out-panel__ETF9s"},Wf=()=>(0,i.jsx)("div",{className:qf["signed-out-container"],children:(0,i.jsxs)("div",{className:qf["signed-out-panel"],children:[(0,i.jsx)("h1",{children:lf("Sign In Required")}),(0,i.jsx)("div",{children:lf("Sign in is required to use this tool.")}),(0,i.jsx)(Me,{className:a("primary",qf["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:()=>{pxt.tickEvent(g.SignedOutPanelSignIn),Je({modal:"sign-in"})}})]})}),Gf=()=>{const e=pxt.U.getHomeUrl(),t={label:lf("Go Back"),onClick:function(){pxt.tickEvent("unsupportedexperience.goback")},className:"primary",url:e};return(0,i.jsx)(Pf,{title:lf("Unsupported Experience"),hideDismissButton:!0,actions:[t],children:(0,i.jsx)("div",{className:"ui unsupported-modal-content",children:(0,i.jsx)("p",{children:lf("The current experience is not supported in {0}.",pxt.appTarget.nickname||pxt.appTarget.id)})})})};class Xf{constructor(e){this.currentTheme=void 0,this.subscribers=void 0,this.document=void 0,this.document=e}static getInstance(e=document){return Xf.instances.has(e)||Xf.instances.set(e,new Xf(e)),Xf.instances.get(e)}static isCurrentThemeHighContrast(e=document){var t;const n=Xf.getInstance(e);return n.isHighContrast(null===(t=n.getCurrentColorTheme())||void 0===t?void 0:t.id)}getCurrentColorTheme(){return this.currentTheme}isKnownTheme(e){var t,n;return!(null===(t=pxt.appTarget)||void 0===t||null===(n=t.colorThemeMap)||void 0===n||!n[e])}getAllColorThemes(){var e;return(null!==(e=pxt.appTarget)&&void 0!==e&&e.colorThemeMap?Object.values(pxt.appTarget.colorThemeMap):[]).sort((e,t)=>{var n,r;return e.weight!==t.weight?(null!==(n=e.weight)&&void 0!==n?n:1/0)-(null!==(r=t.weight)&&void 0!==r?r:1/0):e.id.localeCompare(t.id)})}isHighContrast(e){var t,n;return e&&e===(null===(t=pxt.appTarget)||void 0===t||null===(n=t.appTheme)||void 0===n?void 0:n.highContrastColorTheme)}performHighContrastWorkaround(e){this.isHighContrast(e)?(this.document.body.classList.add("high-contrast"),this.document.body.classList.add("hc")):(this.document.body.classList.remove("high-contrast"),this.document.body.classList.remove("hc"))}switchColorTheme(e){var t,n,r;if(e===(null===(t=this.getCurrentColorTheme())||void 0===t?void 0:t.id))return;const i=null===(n=pxt.appTarget)||void 0===n||null===(r=n.colorThemeMap)||void 0===r?void 0:r[e];if(i){const t=function(e){let t="";for(const[n,r]of Object.entries(e.colors))t+=`--${n}: ${r};\n`;return e.overrideCss&&(t+=`${e.overrideCss}\n`),t=DOMPurify.sanitize(t),t}(i),n="theme-override";let r=this.document.getElementById(n);r||(r=this.document.createElement("style"),r.id=n,this.document.head.appendChild(r)),r.textContent=`.pxt-theme-root { ${t} }`,this.performHighContrastWorkaround(e),this.currentTheme=i,this.notifySubscribers()}}subscribe(e,t){var n;null!==(n=this.subscribers)&&void 0!==n&&n.some(t=>t.subscriberId===e)||(this.subscribers||(this.subscribers=[]),this.subscribers.push({subscriberId:e,onColorThemeChange:t}))}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t.subscriberId!==e)}notifySubscribers(){var e;null===(e=this.subscribers)||void 0===e||e.forEach(e=>e.onColorThemeChange())}}Xf.instances=new Map;const Yf=()=>{const{state:t,dispatch:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(!1),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(void 0),u=function(t){const[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{t.then(r)},[]),n}(xe);return(0,e.useEffect)(()=>{u&&!r&&Promise.resolve().then(async()=>{var e;const t=await async function(){try{return await pxt.targetConfigAsync()}catch(e){G(H.downloadTargetConfigAsync,e)}}();n({type:"SET_TARGET_CONFIG",config:t||{}}),pxt.BrowserUtils.initTheme(),await async function(){var e,t;const n=null===(e=pxt.appTarget)||void 0===e||null===(t=e.appTheme)||void 0===t?void 0:t.defaultColorTheme;if(n){var r;const e=Xf.getInstance(document);n!==(null===(r=e.getCurrentColorTheme())||void 0===r?void 0:r.id)&&e.switchColorTheme(n)}}(),await async function(){const{dispatch:e}=Ee(),t=function(e){const t=[],n=new Map;for(const i of e){var r;const e=null===(r=i.id)||void 0===r?void 0:r.toLocaleLowerCase();if(e){const r=n.get(e);if(void 0!==r){t[r]=i;continue}n.set(e,t.length)}t.push(i)}return t}(await je(_f,"criteria"));t.forEach(e=>{var t;null===(t=e.params)||void 0===t||t.forEach(e=>{e.name=e.name.toLocaleLowerCase()}),e.tags&&0!==e.tags.length||(e.tags=[m.Other])}),e({type:"SET_CATALOG",catalog:t})}(),await async function(){const{dispatch:e}=Ee();e({type:"SET_VALIDATOR_PLANS",plans:await je(Tf,"validatorPlans")})}(),await async function(){const e=await async function(){const e=le();return await async function(e){const t=await oe;let n;return n=await t.getChecklist(e),n}(e)}();if(e){X("Loading last active checklist...",e);const t=Ct(e);t.valid||tt(w("error",lf("Some criteria could not be loaded."))),At({...e,criteria:t.validCriteria})}else X("No last active checklist to load.")}(),o(!0),await async function(e){var t;const{state:n}=Ee(),r=/project=([^&]+)/,i=null===(t=window.location.href.match(r))||void 0===t?void 0:t[1];if(i){const t=decodeURIComponent(i),a=pxt.Cloud.parseScriptId(t);if(a){var o;pxt.tickEvent(g.LoadProjectFromUrl),window.history.replaceState({},"",window.location.href.replace(r,"")),await Ai(t,a);const i=n.checklist&&(null===(o=n.checklist.criteria)||void 0===o?void 0:o.length)>0;e&&!i&&await jt(e),ut("results")}}}(null==t||null===(e=t.teachertool)||void 0===e?void 0:e.defaultChecklistUrl),X("App initialized")})},[u,r]),(0,e.useEffect)(()=>{!async function(){if(pxt.BrowserUtils.isLocalHostDev()&&/noauth=1/i.test(window.location.href))n(Ie({id:"?"}));else try{await async function(){const e=await it(),t=pxt.Util.parseQueryString(window.location.href);if(!t.authcallback)return await(null==e?void 0:e.authCheckAsync());await pxt.auth.loginCallbackAsync(t)}()}catch(e){G(H.authCheckFailed),X("Auth check failed details",e)}s(!0)}()},[]),(0,e.useEffect)(()=>{c(pxt.U.isExperienceSupported(b.ExperienceId))},[]),r&&a?l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ot,{}),t.userProfile?(0,i.jsx)(Zi,{}):(0,i.jsx)(Wf,{}),(0,i.jsx)(Hf,{}),(0,i.jsx)(jf,{}),(0,i.jsx)(Nf,{}),(0,i.jsx)(zf,{}),(0,i.jsx)(Cf,{}),(0,i.jsx)(Vf,{})]}):(0,i.jsx)(Gf,{}):(0,i.jsx)("div",{className:"ui active dimmer",children:(0,i.jsx)("div",{className:"ui large main loader msft"})})};window.addEventListener("DOMContentLoaded",()=>{const n=window.pxtTargetBundle,r=pxt.Util.parseQueryString(window.location.href.toLowerCase());pxt.options.debug="1"==r.dbg,pxt.options.debug&&pxt.setLogLevel(pxt.LogLevel.Debug),"1"==r.consoleticks||"verbose"==r.consoleticks?pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Verbose:"2"!=r.consoleticks&&"short"!=r.consoleticks||(pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Short),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());const e={};if("undefined"!=typeof window){const t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();const n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent(g.Loaded,e)}(),t.render((0,i.jsx)(e.StrictMode,{children:(0,i.jsx)(ke,{children:(0,i.jsx)(Yf,{})})}),document.getElementById("root"))})})()})();
1
+ /*! For license information please see main.c8f9e9a1.js.LICENSE.txt */
2
+ (()=>{var e={46(e,t,n){"use strict";var r=n(5550)(),i=n(1061)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},71(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)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s,l,c={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(s,n);var r,a=o(s);function s(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o=a.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(n);c[e]=r}function d(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,i){var o,a,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(0,4)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(o," ").concat(d(t,"type"))}return l+". Received type ".concat(r(i))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(3575));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(6362)),s(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=c},225(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(543),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var v=0;v<e.length;++v)f.push(String(v));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||f.push(String(g));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!i.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},465(e,t,n){"use strict";e.exports=n(1923)},543(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},690(e,t,n){"use strict";var r=n(7375),i=n(9460),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},757(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1e3(e,t,n){"use strict";var r=n(6806),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===i.call(s)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},1016(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1061(e,t,n){"use strict";var r=n(7375),i=n(3629),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},1157(e,t,n){"use strict";var r=n(7839),i=n(3175)(),o=n(1061),a=Object,s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var u=a(arguments[o]),d=r(u),f=i&&(Object.getOwnPropertySymbols||c);if(f)for(var p=f(u),h=0;h<p.length;++h){var m=p[h];l(u,m)&&s(d,m)}for(var v=0;v<d.length;++v){var g=d[v];if(l(u,g)){var y=u[g];n[g]=y}}}return n}},1173(e,t,n){"use strict";e.exports=n(5636)},1253(e,t,n){"use strict";var r,i,o,a,s=n(3705);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var d=null,f=null,p=function(){if(null!==d)try{var e=t.unstable_now();d(!0,e),d=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==d?setTimeout(r,0,e):(d=e,setTimeout(p,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.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 v&&s.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,y=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?S.postMessage(null):(g=!1,y=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){y=e,g||(g=!0,S.postMessage(null))},i=function(e,n){b=h(function(){e(t.unstable_now())},n)},o=function(){m(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+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[o]=n,r=o);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 P=[],I=[],A=1,O=null,j=3,N=!1,M=!1,R=!1;function L(e){for(var t=C(I);null!==t;){if(null===t.callback)_(I);else{if(!(t.startTime<=e))break;_(I),t.sortIndex=t.expirationTime,k(P,t)}t=C(I)}}function D(e){if(R=!1,L(e),!M)if(null!==C(P))M=!0,r(F);else{var t=C(I);null!==t&&i(D,t.startTime-e)}}function F(e,n){M=!1,R&&(R=!1,o()),N=!0;var r=j;try{for(L(n),O=C(P);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,j=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?O.callback=s:O===C(P)&&_(P),L(n)}else _(P);O=C(P)}if(null!==O)var l=!0;else{var c=C(I);null!==c&&i(D,c.startTime-n),l=!1}return l}finally{O=null,j=r,N=!1}}var B=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(){M||N||(M=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<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:A++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(I,e),null===C(P)&&e===C(I)&&(R?o():R=!0,i(D,a-s))):(e.sortIndex=l,k(P,e),M||N||(M=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},1264(e){"use strict";e.exports=Function.prototype.apply},1338(e,t,n){"use strict";var r=n(4961);e.exports=function(e){return!!r(e)}},1555(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1581(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},1596(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1619(e){"use strict";e.exports=URIError},1923(e,t,n){"use strict";n(8898);var r=n(1173),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("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,o={},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)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},2155(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6989);e.exports=o.call(r,i)},2938(e){"use strict";e.exports=Math.max},3110(e,t,n){"use strict";var r=n(6989),i=n(1264),o=n(7858),a=n(6265);e.exports=a||r.call(o,i)},3123(e){"use strict";e.exports=EvalError},3175(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3500(e,t,n){"use strict";var r=n(3705),i=n(1173),o=n(8898),a=n(5664);function s(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(!i)throw Error(s(227));var l=new Set,c={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===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]*$/,h=Object.prototype.hasOwnProperty,m={},v={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){y[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];y[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){y[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){y[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){y[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){y[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){y[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){y[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){y[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.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||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,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(m,e)&&(p.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(b,w);y[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(b,w);y[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(b,w);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,k=60106,C=60107,_=60108,T=60114,P=60109,I=60110,A=60112,O=60113,j=60120,N=60115,M=60116,R=60121,L=60128,D=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;S=U("react.element"),k=U("react.portal"),C=U("react.fragment"),_=U("react.strict_mode"),T=U("react.profiler"),P=U("react.provider"),I=U("react.context"),A=U("react.forward_ref"),O=U("react.suspense"),j=U("react.suspense_list"),N=U("react.memo"),M=U("react.lazy"),R=U("react.block"),U("react.scope"),L=U("react.opaque.id"),D=U("react.debug_trace_mode"),F=U("react.offscreen"),B=U("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function H(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function W(e,t){if(!e||q)return"";q=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function G(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function X(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 C:return"Fragment";case k:return"Portal";case T:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case R:return X(e._render);case M:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(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 te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(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 ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=Y(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,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(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&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(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 de(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"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 ve(e,t)})}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach(function(e){we.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]})});var Se=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 ke(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Ce(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 _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Pe=null,Ie=null;function Ae(e){if(e=ri(e)){if("function"!=typeof Te)throw Error(s(280));var t=e.stateNode;t&&(t=oi(t),Te(e.stateNode,e.type,t))}}function Oe(e){Pe?Ie?Ie.push(e):Ie=[e]:Pe=e}function je(){if(Pe){var e=Pe,t=Ie;if(Ie=Pe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ne(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var Le=Ne,De=!1,Fe=!1;function Be(){null===Pe&&null===Ie||(Re(),je())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=oi(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(s(231,t,typeof n));return n}var ze=!1;if(f)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function $e(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var He=!1,qe=null,We=!1,Ge=null,Xe={onError:function(e){He=!0,qe=e}};function Ye(e,t,n,r,i,o,a,s,l){He=!1,qe=null,$e.apply(Xe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(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 Je(e){if(Ke(e)!==e)throw Error(s(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(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,it,ot=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,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 vt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&null!==(t=ri(t))&&nt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ni(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void it(e.lanePriority,function(){a.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 yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function Et(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==lt&&xt(lt,e),null!==ct&&xt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)gt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ct={},_t={};function Tt(e){if(Ct[e])return Ct[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return Ct[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Pt=Tt("animationend"),It=Tt("animationiteration"),At=Tt("animationstart"),Ot=Tt("transitionend"),jt=new Map,Nt=new Map,Mt=["abort","abort",Pt,"animationEnd",It,"animationIteration",At,"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",Ot,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Nt.set(r,t),jt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Lt=8;function Dt(e){if(1&e)return Lt=15,1;if(2&e)return Lt=14,2;if(4&e)return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):32&e?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):256&e?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):4096&e?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):134217728&e?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):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,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Lt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Lt):0!==(s&=o)&&(r=Dt(s),i=Lt)}else 0!==(o=n&~a)?(r=Dt(o),i=Lt):0!==s&&(r=Dt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Dt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function Bt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ut(10,t):e;case 10:return 0===(e=zt(192&~t))?Ut(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Wt|0)|0},qt=Math.log,Wt=Math.LN2,Gt=a.unstable_UserBlockingPriority,Xt=a.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){De||Re();var i=Jt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||Be()}}function Qt(e,t,n,r){Xt(Gt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=!(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var o=Zt(e,t,n,r);if(null===o)i&&mt(e,r);else{if(i){if(-1<pt.indexOf(e))return e=ht(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return lt=vt(lt,e,t,n,r,i),!0;case"mouseover":return ct=vt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,vt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dt.set(o,vt(dt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;mt(e,r)}Rr(e,t,r,null,n)}}}function Zt(e,t,n,r){var i=_e(r);if(null!==(i=ni(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Rr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.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,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.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,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(fn),hn=o({},fn,{view:0,detail:0}),mn=ln(hn),vn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,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}}),gn=ln(vn),yn=ln(o({},vn,{dataTransfer:0})),bn=ln(o({},hn,{relatedTarget:0})),wn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=ln(xn),Sn=ln(o({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Pn(){return Tn}var In=o({},hn,{key:function(e){if(e.key){var t=kn[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?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,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}}),An=ln(In),On=ln(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Nn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=o({},vn,{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}),Rn=ln(Mn),Ln=[9,13,27,32],Dn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var Bn=f&&"TextEvent"in window&&!Fn,Un=f&&(!Dn||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Vn=!1;function $n(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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Xn(e,t,n,r){Oe(r),0<(t=Dr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Kn=null;function Qn(e){Ir(e,0)}function Jn(e){if(J(ii(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Yn&&(Yn.detachEvent("onpropertychange",or),Kn=Yn=null)}function or(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];if(Xn(t,Kn,e,_e(e)),e=Qn,De)e(t);else{De=!0;try{Ne(e,t)}finally{De=!1,Be()}}}}function ar(e,t,n){"focusin"===e?(ir(),Kn=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function lr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(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 fr(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 pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function 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 vr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,Er=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==br||br!==Z(r)||(r="selectionStart"in(r=br)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&fr(xr,r)||(xr=r,0<(r=Dr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Rt("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),Rt("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),Rt(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<kr.length;Cr++)Nt.set(kr[Cr],0);d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Pr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,l,c){if(Ye.apply(this,arguments),He){if(!He)throw Error(s(198));var u=qe;He=!1,qe=null,We||(We=!0,Ge=u)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=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!==o&&i.isPropagationStopped())break e;Pr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Pr(i,s,c),o=l}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Ar(e,t){var n=ai(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Or]||(e[Or]=!0,l.forEach(function(t){Tr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)}))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Tr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Mr(o,e,i,t),a.add(s))}function Mr(e,t,n,r){var i=Nt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,i){var o=r;if(!(1&t||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===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ni(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{return Le(e,t,n)}finally{Fe=!1,Be()}}(function(){var r=o,i=_e(n),a=[];e:{var s=jt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Pt:case It:case At:l=wn;break;case Ot:l=Nn;break;case"scroll":l=mn;break;case"wheel":l=Rn;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=On}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ue(h,f))&&u.push(Lr(h,m,p))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!ni(c)&&!c[ei])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ni(c):null)&&(c!==(d=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ii(l),p=null==c?s:ii(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,ni(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Fr(p))h++;for(p=0,m=f;m;m=Fr(m))p++;for(;0<h-p;)u=Fr(u),h--;for(;0<p-h;)f=Fr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Fr(u),f=Fr(f)}u=null}else u=null;null!==l&&Br(a,s,l,u,!1),null!==c&&null!==d&&Br(a,d,c,u,!0)}if("select"===(l=(s=r?ii(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Zn;else if(Gn(s))if(er)v=cr;else{v=sr;var g=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=lr);switch(v&&(v=v(e,r))?Xn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&oe(s,"number",s.value)),g=r?ii(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(br=g,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Sr(a,n,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,i)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Un&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,qn=!0)),0<(g=Dr(r,b)).length&&(b=new Sn(b,e,null,n,i),a.push({event:b,listeners:g}),(y||null!==(y=Hn(n)))&&(b.data=y))),(y=Bn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Vn=!0,zn);case"textInput":return(e=t.data)===zn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&$n(e,t)?(e=rn(),nn=tn=en=null,qn=!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 Un&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Dr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Ir(a,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ue(e,n))&&r.unshift(Lr(e,o,i)),null!=(o=Ue(e,t))&&r.push(Lr(e,o,i))),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 Br(e,t,n,r,i){for(var o=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,i?null!=(l=Ue(n,o))&&a.unshift(Lr(n,l,s)):i||null!=(l=Ue(n,o))&&a.push(Lr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Ur(){}var zr=null,Vr=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function Gr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Xr(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 Kr=0,Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,Zr="__reactProps$"+Qr,ei="__reactContainer$"+Qr,ti="__reactEvents$"+Qr;function ni(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Jr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Jr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function oi(e){return e[Zr]||null}function ai(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var si=[],li=-1;function ci(e){return{current:e}}function ui(e){0>li||(e.current=si[li],si[li]=null,li--)}function di(e,t){li++,si[li]=e.current,e.current=t}var fi={},pi=ci(fi),hi=ci(!1),mi=fi;function vi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ui(hi),ui(pi)}function bi(e,t,n){if(pi.current!==fi)throw Error(s(168));di(pi,t),di(hi,n)}function wi(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(s(108,X(t)||"Unknown",i));return o({},n,r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,mi=pi.current,di(pi,e),di(hi,hi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=wi(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(pi),di(pi,e)):ui(hi),di(hi,n)}var Si=null,ki=null,Ci=a.unstable_runWithPriority,_i=a.unstable_scheduleCallback,Ti=a.unstable_cancelCallback,Pi=a.unstable_shouldYield,Ii=a.unstable_requestPaint,Ai=a.unstable_now,Oi=a.unstable_getCurrentPriorityLevel,ji=a.unstable_ImmediatePriority,Ni=a.unstable_UserBlockingPriority,Mi=a.unstable_NormalPriority,Ri=a.unstable_LowPriority,Li=a.unstable_IdlePriority,Di={},Fi=void 0!==Ii?Ii:function(){},Bi=null,Ui=null,zi=!1,Vi=Ai(),$i=1e4>Vi?Ai:function(){return Ai()-Vi};function Hi(){switch(Oi()){case ji:return 99;case Ni:return 98;case Mi:return 97;case Ri:return 96;case Li:return 95;default:throw Error(s(332))}}function qi(e){switch(e){case 99:return ji;case 98:return Ni;case 97:return Mi;case 96:return Ri;case 95:return Li;default:throw Error(s(332))}}function Wi(e,t){return e=qi(e),Ci(e,t)}function Gi(e,t,n){return e=qi(e),_i(e,t,n)}function Xi(){if(null!==Ui){var e=Ui;Ui=null,Ti(e)}Yi()}function Yi(){if(!zi&&null!==Bi){zi=!0;var e=0;try{var t=Bi;Wi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),_i(ji,Xi),t}finally{zi=!1}}}var Ki=E.ReactCurrentBatchConfig;function Qi(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 Ji=ci(null),Zi=null,eo=null,to=null;function no(){to=eo=Zi=null}function ro(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function io(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 oo(e,t){Zi=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function ao(e,t){if(to!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Zi)throw Error(s(308));eo=t,Zi.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var so=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(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 uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(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 po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=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===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var i=e.updateQueue;so=!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 f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(f=i.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=m.payload)?h.call(p,f,l):h)||void 0===l)break e;f=o({},f,l);break e;case 2:so=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,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=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Bs|=s,e.lanes=s,e.memoizedState=f}}function mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var vo=(new i.Component).refs;function go(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 yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),o=uo(r,i);o.payload=t,null!=n&&(o.callback=n),fo(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),o=uo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),fo(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=dl(e),i=uo(n,r);i.tag=2,null!=t&&(i.callback=t),fo(e,i),fl(e,r,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&fr(n,r)&&fr(i,o))}function wo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=ao(o):(i=gi(t)?mi:pi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?vi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function xo(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&&yo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vo,lo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ao(o):(o=gi(t)?mi:pi.current,i.context=vi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function ko(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(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===vo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _o(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 i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(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 a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=ql(n.type,n.key,n.props,null,e.mode,r)).ref=ko(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=Yl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=ql(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case k:return(t=Yl(t,e.mode,n)).return=e,t}if(So(t)||$(t))return(t=Wl(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===C?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null}if(So(n)||$(n))return null!==i?null:d(e,t,n,r,null);Co(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(So(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);Co(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach(function(e){return t(i,e)}),c}function v(i,a,l,c){var u=$(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,m=a,v=a=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),a=o(b,a,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,c))&&(a=o(y,a,v),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),a=o(y,a,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===C&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case S:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===C){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===C?((r=Wl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=ql(o.type,o.key,o.props,null,e.mode,l)).ref=ko(e,r,o),l.return=e,e=l)}return a(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yl(o,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Xl(o,e.mode,l)).return=e,e=r),a(e);if(So(o))return m(e,r,o,l);if($(o))return v(e,r,o,l);if(u&&Co(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,X(e.type)||"Component"))}return n(e,r)}}var To=_o(!0),Po=_o(!1),Io={},Ao=ci(Io),Oo=ci(Io),jo=ci(Io);function No(e){if(e===Io)throw Error(s(174));return e}function Mo(e,t){switch(di(jo,t),di(Oo,e),di(Ao,Io),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)}ui(Ao),di(Ao,t)}function Ro(){ui(Ao),ui(Oo),ui(jo)}function Lo(e){No(jo.current);var t=No(Ao.current),n=he(t,e.type);t!==n&&(di(Oo,e),di(Ao,n))}function Do(e){Oo.current===e&&(ui(Ao),ui(Oo))}var Fo=ci(0);function Bo(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(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 Uo=null,zo=null,Vo=!1;function $o(e,t){var n=Vl(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 Ho(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 qo(e){if(Vo){var t=zo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Xr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Vo=!1,void(Uo=e);$o(Uo,n)}Uo=e,zo=Xr(t.firstChild)}else e.flags=-1025&e.flags|2,Vo=!1,Uo=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uo=e}function Go(e){if(e!==Uo)return!1;if(!Vo)return Wo(e),Vo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=zo;t;)$o(e,t),t=Xr(t.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zo=Xr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zo=null}}else zo=Uo?Xr(e.stateNode.nextSibling):null;return!0}function Xo(){zo=Uo=null,Vo=!1}var Yo=[];function Ko(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Qo=E.ReactCurrentDispatcher,Jo=E.ReactCurrentBatchConfig,Zo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(s(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,i,o){if(Zo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Na:Ma,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(s(301));o+=1,na=ta=null,t.updateQueue=null,Qo.current=Ra,e=n(r,i)}while(ia)}if(Qo.current=ja,t=null!==ta&&null!==ta.next,Zo=0,na=ta=ea=null,ra=!1,t)throw Error(s(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(s(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(s(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,c=i;do{var u=c.lane;if((Zo&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?(a=l=d,o=r):l=l.next=d,ea.lanes|=u,Bs|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=a,ur(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);ur(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(t._workInProgressVersionPrimary=r,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(s(350))}function ha(e,t,n,r){var i=Os;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Qo.current,c=l.useState(function(){return pa(i,t,n)}),u=c[1],d=c[0];c=na;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var v=ea;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!ur(a,e)){e=n(t._source),ur(d,e)||(u(e),e=dl(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-Ht(s),c=1<<l;r[l]|=e,s&=~c}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=dl(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Oa.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=pa(i,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function va(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=Oa.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function wa(e,t,n,r){var i=la();ea.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,o,r)}ea.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function Ea(e,t){return wa(516,4,e,t)}function Sa(e,t){return xa(516,4,e,t)}function ka(e,t){return xa(4,2,e,t)}function Ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _a(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Ca.bind(null,t,e),n)}function Ta(){}function Pa(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 Ia(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 Aa(e,t){var n=Hi();Wi(98>n?98:n,function(){e(!0)}),Wi(97<n?97:n,function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}})}function Oa(e,t,n){var r=ul(),i=dl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=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(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(e){}fl(e,i,r)}}var ja={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Na={readContext:ao,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(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=Oa.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:va,useDebugValue:Ta,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return Ea(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ya(e=Aa.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(Vo){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(s(355))}),n=va(t)[1];return!(2&ea.mode)&&(ea.flags|=516,ga(5,function(){n("r:"+(Kr++).toString(36))},void 0,null)),t}return va(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ao,useCallback:Pa,useContext:ao,useEffect:Sa,useImperativeHandle:_a,useLayoutEffect:ka,useMemo:Ia,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Ra={readContext:ao,useCallback:Pa,useContext:ao,useEffect:Sa,useImperativeHandle:_a,useLayoutEffect:ka,useMemo:Ia,useReducer:fa,useRef:ba,useState:function(){return fa(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return Sa(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=fa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},La=E.ReactCurrentOwner,Da=!1;function Fa(e,t,n,r){t.child=null===e?Po(t,null,n,r):To(t,e.child,n,r)}function Ba(e,t,n,r,i){n=n.render;var o=t.ref;return oo(t,i),r=sa(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Fa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function Ua(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||$l(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ql(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(i,r)&&e.ref===t.ref)?rs(e,t,o):(t.flags|=1,(e=Hl(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,i,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(o&i))return t.lanes=e.lanes,rs(e,t,o);16384&e.flags&&(Da=!0)}return Ha(e,t,n,r,o)}function Va(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wl(t,e),null;t.memoizedState={baseLanes:0},wl(t,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},wl(t,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,wl(t,r);return Fa(e,t,i,n),t.child}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,i){var o=gi(n)?mi:pi.current;return o=vi(t,o),oo(t,i),n=sa(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Fa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function qa(e,t,n,r,i){if(gi(n)){var o=!0;xi(t)}else o=!1;if(oo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wo(t,n,r),Eo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?ao(c):vi(t,c=gi(n)?mi:pi.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)&&xo(t,a,r,c),so=!1;var f=t.memoizedState;a.state=f,ho(t,r,a,i),l=t.memoizedState,s!==r||f!==l||hi.current||so?("function"==typeof u&&(go(t,n,u,r),l=t.memoizedState),(s=so||bo(t,n,s,r,f,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,co(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qi(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ao(l):vi(t,l=gi(n)?mi:pi.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&xo(t,a,r,l),so=!1,f=t.memoizedState,a.state=f,ho(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||hi.current||so?("function"==typeof p&&(go(t,n,p,r),h=t.memoizedState),(c=so||bo(t,n,c,r,f,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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,o,i)}function Wa(e,t,n,r,i,o){$a(e,t);var a=!!(64&t.flags);if(!r&&!a)return i&&Ei(t,n,!1),rs(e,t,o);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=To(t,e.child,null,o),t.child=To(t,null,s,o)):Fa(e,t,s,o),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Mo(e,t.containerInfo)}var Xa,Ya,Ka,Qa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,i=t.pendingProps,o=Fo.current,a=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),di(Fo,1&o),null===e?(void 0!==i.fallback&&qo(t),e=i.children,o=i.fallback,a?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,e):"number"==typeof i.unstable_expectedLoadTime?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,t.lanes=33554432,e):((n=Gl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===a?n=Hl(a,s):((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),null!==e?r=Hl(e,r):(r=Wl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Qa,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),!(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}(e,t,i.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},2&i||null===o?o=Gl(t,i,0,null):(o.childLanes=0,o.pendingProps=t),n=Wl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),io(e.return,t)}function ts(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ns(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fa(e,t,r.children,n),2&(r=Fo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(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(di(Fo,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ts(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ts(t,!0,n,null,o,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!Vo)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 os(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 gi(t.type)&&yi(),null;case 3:return Ro(),ui(hi),ui(pi),Ko(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Do(t);var i=No(jo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=No(Ao.current),Go(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Jr]=t,r[Zr]=a,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":te(r,a),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ar("invalid",r);break;case"textarea":ce(r,a),Ar("invalid",r)}for(var l in ke(n,a),e=null,a)a.hasOwnProperty(l)&&(i=a[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):c.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Ar("scroll",r));switch(n){case"input":Q(r),ie(r,a,!0);break;case"textarea":Q(r),de(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Xa(e,t),t.stateNode=e,l=Ce(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Ar(_r[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Ar("invalid",e);break;case"option":i=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":ce(e,r),i=le(e,r),Ar("invalid",e);break;default:i=r}ke(n,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var d=u[a];"style"===a?Ee(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===a?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(c.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Ar("scroll",e):null!=d&&x(e,a,d,l))}switch(n){case"input":Q(e),ie(e,r,!1);break;case"textarea":Q(e),de(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?se(e,!!r.multiple,a,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Ur)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=No(jo.current),No(Ao.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ui(Fo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Fo.current?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Os||!(134217727&Bs)&&!(134217727&Us)||vl(Os,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Ro(),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ui(Fo),null===(r=t.memoizedState))return null;if(a=!!(64&t.flags),null===(l=r.rendering))if(a)is(r,!1);else{if(0!==Ls||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(l=Bo(e))){for(t.flags|=64,is(r,!1),null!==(a=l.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return di(Fo,1&Fo.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Hs&&(t.flags|=64,a=!0,is(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Bo(l))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Vo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,a=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=Fo.current,di(Fo,a?1&t|2:1&t),n):null;case 23:case 24:return xl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ro(),ui(hi),ui(pi),Ko(),64&(t=e.flags))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Do(e),null;case 13:return ui(Fo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Fo),null;case 4:return Ro(),null;case 10:return ro(e),null;case 23:case 24:return xl(),null;default:return null}}function ss(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ls(e,t){try{r.error(t.value)}catch(e){setTimeout(function(){throw e})}}Xa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,No(Ao.current);var a,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=ae(e,i),r=ae(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Ur)}for(d in ke(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var l=i[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(c.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(l=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==l&&(null!=u||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[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,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(c.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Ar("scroll",e),s||l===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var cs="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Ys=r),ls(0,t)},n}function ds(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ls(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function hs(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:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(s(163))}function ms(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&~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 i=e;r=i.next,!!(4&(i=i.tag))&&!!(1&i)&&(Rl(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:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mo(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}mo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(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(s(163))}function vs(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 i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}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 gs(e,t){if(ki&&"function"==typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(Si,t)}catch(e){}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,i=r.destroy;if(r=r.tag,void 0!==i)if(4&r)Rl(t,n);else{r=t;try{i()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ps(t);break;case 4:Ss(e,t)}}function ys(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 bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(s(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(s(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(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?xs(e,n,t):Es(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?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=Ur));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Es(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,c=l;;)if(gs(a,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?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.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&~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 i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ce(e,i),t=Ce(e,r),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Ee(n,l):"dangerouslySetInnerHTML"===a?ge(n,l):"children"===a?ye(n,l):x(n,a,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?se(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(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&&($s=$i(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach(function(t){var r=Ul.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 Ts=Math.ceil,Ps=E.ReactCurrentDispatcher,Is=E.ReactCurrentOwner,As=0,Os=null,js=null,Ns=0,Ms=0,Rs=ci(0),Ls=0,Ds=null,Fs=0,Bs=0,Us=0,zs=0,Vs=null,$s=0,Hs=1/0;function qs(){Hs=$i()+500}var Ws,Gs=null,Xs=!1,Ys=null,Ks=null,Qs=!1,Js=null,Zs=90,el=[],tl=[],nl=null,rl=0,il=null,ol=-1,al=0,sl=0,ll=null,cl=!1;function ul(){return 48&As?$i():-1!==ol?ol:ol=$i()}function dl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Hi()?1:2;if(0===al&&(al=Fs),0!==Ki.transition){0!==sl&&(sl=null!==Vs?Vs.pendingLanes:0),e=al;var t=4186112&~sl;return 0===(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Hi(),e=Ut(4&As&&98===e?12: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),al)}function fl(e,t,n){if(50<rl)throw rl=0,il=null,Error(s(185));if(null===(e=pl(e,t)))return null;$t(e,t,n),e===Os&&(Us|=t,4===Ls&&vl(e,Ns));var r=Hi();1===t?8&As&&!(48&As)?gl(e):(hl(e,n),0===As&&(qs(),Xi())):(!(4&As)||98!==r&&99!==r||(null===nl?nl=new Set([e]):nl.add(e)),hl(e,n)),Vs=e}function pl(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 hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Ht(a),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Dt(c);var d=Lt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(r=Ft(e,e===Os?Ns:0),t=Lt,0===r)null!==n&&(n!==Di&&Ti(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&Ti(n)}15===t?(n=gl.bind(null,e),null===Bi?(Bi=[n],Ui=_i(ji,Yi)):Bi.push(n),n=Di):14===t?n=Gi(99,gl.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(s(358,e))}}(t),n=Gi(n,ml.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ml(e){if(ol=-1,sl=al=0,48&As)throw Error(s(327));var t=e.callbackNode;if(Nl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Os?Ns:0);if(0===n)return null;var r=n,i=As;As|=16;var o=kl();for(Os===e&&Ns===r||(qs(),El(e,r));;)try{Tl();break}catch(t){Sl(e,t)}if(no(),Ps.current=o,As=i,null!==js?r=0:(Os=null,Ns=0,r=Ls),0!==(Fs&Us))El(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Bt(e))&&(r=Cl(e,n))),1===r)throw t=Ds,El(e,0),vl(e,n),hl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Al(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=$s+500-$i())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qr(Al.bind(null,e),r);break}Al(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Ht(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=$i()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=qr(Al.bind(null,e),n);break}Al(e);break;default:throw Error(s(329))}}return hl(e,$i()),e.callbackNode===t?ml.bind(null,e):null}function vl(e,t){for(t&=~zs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(48&As)throw Error(s(327));if(Nl(),e===Os&&0!==(e.expiredLanes&Ns)){var t=Ns,n=Cl(e,t);0!==(Fs&Us)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Bt(e))&&(n=Cl(e,t))),1===n)throw n=Ds,El(e,0),vl(e,t),hl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),hl(e,$i()),null}function yl(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}}function bl(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}}function wl(e,t){di(Rs,Ms),Ms|=t,Fs|=t}function xl(){Ms=Rs.current,ui(Rs)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Ro(),ui(hi),ui(pi),Ko();break;case 5:Do(r);break;case 4:Ro();break;case 13:case 19:ui(Fo);break;case 10:ro(r);break;case 23:case 24:xl()}n=n.return}Os=e,js=Hl(e.current,null),Ns=Ms=Fs=t,Ls=0,Ds=null,zs=Us=Bs=0}function Sl(e,t){for(;;){var n=js;try{if(no(),Qo.current=ja,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Zo=0,na=ta=ea=null,ia=!1,Is.current=null,null===n||null===n.return){Ls=1,Ds=t,js=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(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=!!(1&Fo.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var v=f.updateQueue;if(null===v){var g=new Set;g.add(c),f.updateQueue=g}else v.add(c);if(!(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,fo(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new cs,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Bl.bind(null,o,c,s);c.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((X(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!==Ls&&(Ls=2),l=ss(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,po(f,us(0,o,t));break e;case 1:o=l;var x=f.type,E=f.stateNode;if(!(64&f.flags||"function"!=typeof x.getDerivedStateFromError&&(null===E||"function"!=typeof E.componentDidCatch||null!==Ks&&Ks.has(E)))){f.flags|=4096,t&=-t,f.lanes|=t,po(f,ds(f,o,t));break e}}f=f.return}while(null!==f)}Il(n)}catch(e){t=e,js===n&&null!==n&&(js=n=n.return);continue}break}}function kl(){var e=Ps.current;return Ps.current=ja,null===e?ja:e}function Cl(e,t){var n=As;As|=16;var r=kl();for(Os===e&&Ns===t||El(e,t);;)try{_l();break}catch(t){Sl(e,t)}if(no(),As=n,Ps.current=r,null!==js)throw Error(s(261));return Os=null,Ns=0,Ls}function _l(){for(;null!==js;)Pl(js)}function Tl(){for(;null!==js&&!Pi();)Pl(js)}function Pl(e){var t=Ws(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Il(e):js=t,Is.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=as(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=os(n,t,Ms)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&!(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))}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ls&&(Ls=5)}function Al(e){var t=Hi();return Wi(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{Nl()}while(null!==Js);if(48&As)throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Ht(o),u=1<<c;i[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==nl&&!(24&r)&&nl.has(e)&&nl.delete(e),e===Os&&(js=Os=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Is.current=null,zr=Yt,gr(a=vr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,v=a,g=null;t:for(;;){for(var y;v!==l||0!==o&&3!==v.nodeType||(f=d+o),v!==c||0!==u&&3!==v.nodeType||(p=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===a)break t;if(g===l&&++h===o&&(f=d),g===c&&++m===u&&(p=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Vr={focusedElem:a,selectionRange:l},Yt=!1,ll=null,cl=!1,Gs=r;do{try{jl()}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);ll=null,Gs=r;do{try{for(a=e;null!==Gs;){var b=Gs.flags;if(16&b&&ye(Gs.stateNode,""),128&b){var w=Gs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ws(Gs),Gs.flags&=-3;break;case 6:ws(Gs),Gs.flags&=-3,ks(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,ks(Gs.alternate,Gs);break;case 4:ks(Gs.alternate,Gs);break;case 8:Ss(a,l=Gs);var E=l.alternate;ys(l),null!==E&&ys(E)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(x=Vr,w=vr(),b=x.focusedElem,a=x.selectionRange,w!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==a&&gr(b)&&(w=a.start,void 0===(x=a.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,E=Math.min(a.start,l),a=void 0===a.end?E:Math.min(a.end,l),!x.extend&&E>a&&(l=a,a=E,E=l),l=hr(b,E),o=hr(b,a),l&&o&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),E>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!zr,Vr=zr=null,e.current=n,Gs=r;do{try{for(b=e;null!==Gs;){var S=Gs.flags;if(36&S&&ms(b,Gs.alternate,Gs),128&S){w=void 0;var k=Gs.ref;if(null!==k){var C=Gs.stateNode;Gs.tag,w=C,"function"==typeof k?k(w):k.current=w}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Fl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Fi(),As=i}else e.current=n;if(Qs)Qs=!1,Js=e,Zs=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((S=Gs).sibling=null,S.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&(Ks=null),1===r?e===il?rl++:(rl=0,il=e):rl=0,n=n.stateNode,ki&&"function"==typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(Si,n,void 0,!(64&~n.current.flags))}catch(e){}if(hl(e,$i()),Xs)throw Xs=!1,e=Ys,Ys=null,e;return!!(8&As)||Xi(),null}function jl(){for(;null!==Gs;){var e=Gs.alternate;cl||null===ll||(8&Gs.flags?et(Gs,ll)&&(cl=!0):13===Gs.tag&&_s(e,Gs)&&et(Gs,ll)&&(cl=!0));var t=Gs.flags;!!(256&t)&&hs(e,Gs),!(512&t)||Qs||(Qs=!0,Gi(97,function(){return Nl(),null})),Gs=Gs.nextEffect}}function Nl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Ll)}return!1}function Ml(e,t){el.push(t,e),Qs||(Qs=!0,Gi(97,function(){return Nl(),null}))}function Rl(e,t){tl.push(t,e),Qs||(Qs=!0,Gi(97,function(){return Nl(),null}))}function Ll(){if(null===Js)return!1;var e=Js;if(Js=null,48&As)throw Error(s(331));var t=As;As|=32;var n=tl;tl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}for(n=el,el=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}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 As=t,Xi(),!0}function Dl(e,t,n){fo(e,t=us(0,t=ss(n,t),1)),t=ul(),null!==(e=pl(e,1))&&($t(e,1,t),hl(e,t))}function Fl(e,t){if(3===e.tag)Dl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Dl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){var i=ds(n,e=ss(t,e),1);if(fo(n,i),i=ul(),null!==(n=pl(n,1)))$t(n,1,i),hl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ns&n)===n&&(4===Ls||3===Ls&&(62914560&Ns)===Ns&&500>$i()-$s?El(e,0):zs|=n),hl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===al&&(al=Fs),0===(t=zt(62914560&~al))&&(t=4194304)):t=99===Hi()?1:2:t=1),n=ul(),null!==(e=pl(e,t))&&($t(e,t,n),hl(e,n))}function zl(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 Vl(e,t,n,r){return new zl(e,t,n,r)}function $l(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=Vl(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 ql(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)$l(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case C:return Wl(n.children,i,o,t);case D:a=8,i|=16;break;case _:a=8,i|=1;break;case T:return(e=Vl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case O:return(e=Vl(13,n,t,i)).type=O,e.elementType=O,e.lanes=o,e;case j:return(e=Vl(19,n,t,i)).elementType=j,e.lanes=o,e;case F:return Gl(n,i,o,t);case B:return(e=Vl(24,n,t,i)).elementType=B,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:a=10;break e;case I:a=9;break e;case A:a=11;break e;case N:a=14;break e;case M:a=16,r=null;break e;case R:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Vl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Wl(e,t,n,r){return(e=Vl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=Vl(23,e,r,t)).elementType=F,e.lanes=n,e}function Xl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kl(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=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var i=t.current,o=ul(),a=dl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(gi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=wi(n,c,l);break e}}n=l}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(i,t),fl(i,a,o),a}function Jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Kl(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,lo(t),e[ei]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Jl(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=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 tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Jl(a);l.call(e)}}bl(function(){Ql(t,a,e,i)})}return Jl(a)}function ic(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:Ga(t),Xo();break;case 5:Lo(t);break;case 1:gi(t.type)&&xi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;di(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(di(Fo,1&Fo.current),null!==(t=rs(e,t,n))?t.sibling:null);di(Fo,1&Fo.current);break;case 19:if(r=0!==(n&t.childLanes),64&e.flags){if(r)return ns(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),di(Fo,Fo.current),r)break;return null;case 23:case 24:return t.lanes=0,Va(e,t,n)}return rs(e,t,n)}Da=!!(16384&e.flags)}else Da=!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,i=vi(t,pi.current),oo(t,n),i=sa(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;xi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,lo(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&go(t,r,a,e),i.updater=yo,t.stateNode=i,i._reactInternals=t,Eo(t,r,e,n),t=Wa(null,t,r,!0,o,n)}else t.tag=0,Fa(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return $l(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(i),e=Qi(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=qa(null,t,i,e,n);break e;case 11:t=Ba(null,t,i,e,n);break e;case 14:t=Ua(null,t,i,Qi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Xo(),t=rs(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(zo=Xr(t.stateNode.containerInfo.firstChild),Uo=t,o=Vo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=Po(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),Xo();t=t.child}return t;case 5:return Lo(t),null===e&&qo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Hr(r,i)?a=null:null!==o&&Hr(r,o)&&(t.flags|=16),$a(e,t),Fa(e,t,a,n),t.child;case 6:return null===e&&qo(t),null;case 13:return Ja(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Qi(r,i),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,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(di(Ji,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0==(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!hi.current){t=rs(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=uo(-1,n&-n)).tag=2,fo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),io(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Fa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(i=ao(i,o.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return o=Qi(i=t.type,t.pendingProps),Ua(e,t,i,o=Qi(i.type,o),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,xi(t)):e=!1,oo(t,n),wo(t,r,i),Eo(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Va(e,t,n)}throw Error(s(156,t.tag))},tc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,function(){t[ei]=null})},tt=function(e){13===e.tag&&(fl(e,4,ul()),ec(e,4))},nt=function(e){13===e.tag&&(fl(e,67108864,ul()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=ul(),n=dl(e);fl(e,n,t),ec(e,n)}},it=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(re(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 i=oi(r);if(!i)throw Error(s(90));J(r),re(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Ne=yl,Me=function(e,t,n,r,i){var o=As;As|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(As=o)&&(qs(),Xi())}},Re=function(){!(49&As)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,$i())})}Xi()}(),Nl())},Le=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(qs(),Xi())}};var oc={Events:[ri,ii,oi,Oe,je,Nl,{current:!1}]},ac={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Si=lc.inject(sc),ki=lc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=ic,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(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(48&n)return e(t);As|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{As=n,Xi()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(s(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(s(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(s(40));return!!e._reactRootContainer&&(bl(function(){rc(null,null,e,!1,function(){e._reactRootContainer=null,e[ei]=null})}),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},3575(e,t,n){var r=n(5224),i=n(3705),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!S(s)?o+=" "+s:o+=" "+u(s);return o},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var c={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),p(r,e,r.depth)}function d(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function f(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var o=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(_(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return h(n)}var c,u="",d=!1,f=["{","}"];return v(n)&&(d=!0,f=["[","]"]),_(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(u=" "+RegExp.prototype.toString.call(n)),k(n)&&(u=" "+Date.prototype.toUTCString.call(n)),C(n)&&(u=" "+h(n)),0!==a.length||d&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(m(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(m(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,d)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,f)):f[0]+u+f[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===T(e)}function C(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function _(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(8534),t.isArray=v,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=E,t.types.isRegExp=E,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=C,t.types.isNativeError=C,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6925);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(1596),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},3629(e,t,n){"use strict";var r=n(8259),i=n(6709),o=n(9460),a=n(3887);e.exports=function(e){var t=o(arguments),n=1+e.length-(arguments.length-1);return r(t,n>0?n:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},3705(e,t,n){var r=n(3575),i=n(6362);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a="undefined"!=typeof globalThis&&globalThis.console?globalThis.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=o()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],u=0;u<c.length;u++){var d=c[u],f=d[0],p=d[1];a[p]||(a[p]=f)}e.exports=a},3780(e){"use strict";e.exports=RangeError},3862(e,t,n){"use strict";var r=n(8726),i=n(7308);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},3887(e,t,n){"use strict";var r=n(6989),i=n(1264),o=n(3110);e.exports=function(){return o(r,i,arguments)}},4553(e,t,n){"use strict";var r=n(1555);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},4960(e){"use strict";e.exports=Math.abs},4961(e,t,n){"use strict";var r=n(1e3),i=n(6405),o=n(3629),a=n(690),s=n(4553),l=n(6054),c=a("Object.prototype.toString"),u=n(5550)(),d=globalThis,f=i(),p=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,u&&s&&l?function(e){var t=new d[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=s(n,Symbol.toStringTag);if(!r&&n){var i=l(n);r=s(i,Symbol.toStringTag)}if(r&&r.get){var a=o(r.get);m["$"+e]=a}}}:function(e){var t=new d[e],n=t.slice||t.set;if(n){var r=o(n);m["$"+e]=r}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return function(e){return h(f,e)>-1}(t)?t:"Object"===t&&function(e){var t=!1;return r(m,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(m,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}}),t}(e):null}},5158(e){"use strict";e.exports=Math.pow},5224(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.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];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5266(e,t,n){"use strict";var r=n(6954);e.exports=r.getPrototypeOf||null},5418(e,t,n){var r,i,o=n(3705);"undefined"!=typeof self&&self,e.exports=(r=n(1173),i=n(8932),function(){"use strict";var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var r=n(496),i=Object.prototype.hasOwnProperty.call(r,"createContext");t.PrintContext=i?r.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var r=n(316),i=n(496),a=n(190),s=n(328),l=n(940),c=function(e){function t(){var t=e.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,r=n.onAfterPrint,i=n.onPrintError,o=n.print,a=n.documentTitle;setTimeout(function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),o)o(e).then(function(){return null==r?void 0:r()}).then(function(){return t.handleRemoveIframe()}).catch(function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])});else{if(e.contentWindow.print){var l=null!==(s=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",c=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},t.triggerPrint=function(e){var n=t.props,r=n.onBeforePrint,i=n.onPrintError;if(r){var o=r();o&&"function"==typeof o.then?o.then(function(){t.startPrint(e)}).catch(function(e){i&&i("onBeforePrint",e)}):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,o=n.content,s=n.copyStyles,l=n.fonts,c=n.pageStyle,u=n.nonce,d="function"==typeof e?e():null;if(d&&"function"==typeof o&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),d||"function"!=typeof o||(d=o()),void 0!==d)if(null!==d){var f=document.createElement("iframe");f.width="".concat(document.documentElement.clientWidth,"px"),f.height="".concat(document.documentElement.clientHeight,"px"),f.style.position="absolute",f.style.top="-".concat(document.documentElement.clientHeight+100,"px"),f.style.left="-".concat(document.documentElement.clientWidth+100,"px"),f.id="printWindow",f.srcdoc="<!DOCTYPE html>";var p=(0,a.findDOMNode)(d);if(p){var h=p.cloneNode(!0),m=h instanceof Text,v=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),g=m?[]:h.querySelectorAll("img"),y=m?[]:h.querySelectorAll("video"),b=l?l.length:0;t.numResourcesToLoad=v.length+g.length+y.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(r.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(f))};f.onload=function(){var e,n,o,a;f.onload=null;var d=f.contentDocument||(null===(n=f.contentWindow)||void 0===n?void 0:n.document);if(d){d.body.appendChild(h),l&&((null===(o=f.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(a=f.contentWindow)||void 0===a?void 0:a.FontFace)?l.forEach(function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});f.contentDocument.fonts.add(t),t.loaded.then(function(){w(t)}).catch(function(e){w(t,["Failed loading the font:",t,"Load error:",e])})}):(l.forEach(function(e){return w(e)}),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var v="function"==typeof c?c():c;if("string"!=typeof v)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof v,'". Styles from `pageStyle` will not be applied.')]);else{var b=d.createElement("style");u&&(b.setAttribute("nonce",u),d.head.setAttribute("nonce",u)),b.appendChild(d.createTextNode(v)),d.head.appendChild(b)}if(i&&(e=d.body.classList).add.apply(e,r.__spreadArray([],r.__read(i.split(" ")),!1)),!m){for(var x=m?[]:p.querySelectorAll("canvas"),E=d.querySelectorAll("canvas"),S=0;S<x.length;++S){var k=x[S],C=E[S].getContext("2d");C&&C.drawImage(k,0,0)}var _=function(e){var t=g[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,n,r,i,o){return w(t,["Error loading <img>",t,"Error",o])},r.src=n}else w(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(S=0;S<g.length;S++)_(S);var T=function(e){var t=y[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,r,i,o,a){return w(t,["Error loading video poster",n,"for video",t,"Error:",a])},r.src=n}else t.readyState>=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,n,r,i,o){return w(t,["Error loading video",t,"Error",o])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(S=0;S<y.length;S++)T(S);var P="input",I=p.querySelectorAll(P),A=d.querySelectorAll(P);for(S=0;S<I.length;S++)A[S].value=I[S].value;var O="input[type=checkbox],input[type=radio]",j=p.querySelectorAll(O),N=d.querySelectorAll(O);for(S=0;S<j.length;S++)N[S].checked=j[S].checked;var M="select",R=p.querySelectorAll(M),L=d.querySelectorAll(M);for(S=0;S<R.length;S++)L[S].value=R[S].value}if(s)for(var D=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),F=function(e,n){var r=D[e];if("style"===r.tagName.toLowerCase()){var i=d.createElement(r.tagName),o=r.sheet;if(o){var a="";try{for(var s=o.cssRules.length,l=0;l<s;++l)"string"==typeof o.cssRules[l].cssText&&(a+="".concat(o.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}i.setAttribute("id","react-to-print-".concat(e)),u&&i.setAttribute("nonce",u),i.appendChild(d.createTextNode(a)),d.head.appendChild(i)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),w(r);else{for(var c=d.createElement(r.tagName),f=(l=0,r.attributes.length);l<f;++l){var p=r.attributes[l];p&&c.setAttribute(p.nodeName,p.nodeValue||"")}c.onload=function(){return w(c)},c.onerror=function(e,t,n,r,i){return w(c,["Failed to load",c,"Error:",i])},u&&c.setAttribute("nonce",u),d.head.appendChild(c)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),w(r)},B=(S=0,D.length);S<B;++S)F(S)}0!==t.numResourcesToLoad&&s||t.triggerPrint(f)},t.handleRemoveIframe(!0),document.body.appendChild(f)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?o.error(e):"warning"===n?o.warn(e):"debug"===n&&o.debug(e))},t}return r.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,r=this.props,i=r.onBeforeGetContent,o=r.onPrintError;if(i){var a=i();a&&"function"==typeof a.then?a.then(function(){return n.handlePrint(t)}).catch(function(e){o&&o("onBeforeGetContent",e)}):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!s.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return i.createElement(s.PrintContext.Provider,{value:r},t)},t.defaultProps=l.defaultProps,t}(i.Component);t.ReactToPrint=c},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;var r=n(316),i=n(496),a=n(428),s=n(940),l=n(860),c=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!c)return e.suppressErrors||o.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo(function(){return new a.ReactToPrint(r.__assign(r.__assign({},s.defaultProps),e))},[e]);return i.useCallback(function(e,n){return(0,l.wrapCallbackWithArgs)(t,t.handleClick,n)(e)},[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var r=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.apply(e,r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(n),!1))}}},496:function(e){e.exports=r},190:function(e){e.exports=i},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return M},__assign:function(){return o},__asyncDelegator:function(){return C},__asyncGenerator:function(){return k},__asyncValues:function(){return _},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return O},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return j},__createBinding:function(){return v},__decorate:function(){return s},__disposeResources:function(){return L},__esDecorate:function(){return c},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return A},__importStar:function(){return I},__makeTemplateObject:function(){return T},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return u},__setFunctionName:function(){return f},__spread:function(){return w},__spreadArray:function(){return E},__spreadArrays:function(){return x},__values:function(){return y}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),f=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return P(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__metadata:p,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:w,__spreadArrays:x,__spreadArray:E,__await:S,__asyncGenerator:k,__asyncDelegator:C,__asyncValues:_,__makeTemplateObject:T,__importStar:I,__importDefault:A,__classPrivateFieldGet:O,__classPrivateFieldSet:j,__classPrivateFieldIn:N,__addDisposableResource:M,__disposeResources:L}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var r=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return r.ReactToPrint}});var i=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return i.useReactToPrint}});var o=n(428);e.default=o.ReactToPrint}(),a}())},5550(e,t,n){"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},5636(e,t,n){"use strict";var r=n(8898),i=60103,o=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;i=d("react.element"),o=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 f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},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)x.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function _(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 T(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 i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+_(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(a,t,n,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:i,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(C,"$&/")+"/")+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+_(s=e[c],c);l+=T(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,u=r+_(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(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 A={current:null};function O(){var e=A.current;if(null===e)throw Error(p(321));return e}var j={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_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=S,t.createFactory=function(e){var t=S.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=k,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},5664(e,t,n){"use strict";e.exports=n(1253)},5840(e,t,n){"use strict";var r=n(1157);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},5944(e,t,n){"use strict";var r=n(7837);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},6054(e,t,n){"use strict";var r=n(6298),i=n(5266),o=n(7042);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},6265(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},6298(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},6362(e,t,n){"use strict";var r=n(5224),i=n(3705);function o(e){return 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},o(e)}function a(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,s(r.key),r)}}function s(e){var t=function(e){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}var l,c,u=n(71).codes,d=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,p=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,m=u.ERR_MISSING_ARGS,v=n(8292),g=n(3575).inspect,y=n(3575).types,b=y.isPromise,w=y.isRegExp,x=n(5840)(),E=n(5944)(),S=n(1061)("RegExp.prototype.test");function k(){var e=n(6825);l=e.isDeepEqual,c=e.isDeepStrictEqual}new Map;var C=!1,_=e.exports=A,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function I(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new v({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];I.apply(void 0,[A,t.length].concat(t))}_.fail=function e(t,n,o,a,s){var l,c=arguments.length;if(0===c?l="Failed":1===c?(o=t,t=void 0):(!1===C&&(C=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),o instanceof Error)throw o;var u={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(u.message=o);var d=new v(u);throw l&&(d.message=l,d.generatedMessage=!0),d},_.AssertionError=v,_.ok=A,_.equal=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},_.notEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},_.deepEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),l(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},_.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),l(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},_.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),c(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},_.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");void 0===l&&k(),c(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},_.strictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");E(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},_.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new m("actual","expected");E(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&w(t[e])&&S(t[e],r[e])?i[e]=r[e]:i[e]=t[e])})});function j(e,t,n,r){if("function"!=typeof t){if(w(t))return S(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new v({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===l&&k(),a.forEach(function(i){"string"==typeof e[i]&&w(t[i])&&S(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!c(e[n],t[n])){if(!r){var a=new O(e,i),s=new O(t,i,e),l=new v({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw l.actual=e,l.expected=t,l.operator=o.name,l}P({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,a,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return T}function M(e){return b(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!M(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!M(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return T}).catch(function(e){return e})})}function L(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],n);if("object"===o(t)&&null!==t){if(t.message===n)throw new d("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new d("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==o(n)&&"function"!=typeof n)throw new f("error",["Object","Error","Function","RegExp"],n);if(t===T){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(n&&!j(t,n,r,e))throw t}function D(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||j(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function F(e,t,n,r,i){if(!w(t))throw new f("regexp","RegExp",t);var a="match"===i;if("string"!=typeof e||S(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(o(e)," (").concat(g(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var l=new v({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];I.apply(void 0,[B,t.length].concat(t))}_.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];L.apply(void 0,[e,N(t)].concat(r))},_.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then(function(t){return L.apply(void 0,[e,t].concat(r))})},_.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,N(t)].concat(r))},_.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return R(t).then(function(t){return D.apply(void 0,[e,t].concat(r))})},_.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=g(t);var r=new v({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),l=0;l<a.length;l++){var c=s.indexOf(a[l]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},_.match=function e(t,n,r){F(t,n,r,e,"match")},_.doesNotMatch=function e(t,n,r){F(t,n,r,e,"doesNotMatch")},_.strict=x(B,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict},6405(e,t,n){"use strict";var r=n(1016),i=globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},6516(e){"use strict";e.exports=Math.min},6709(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},6806(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(d=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},6825(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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 o(e){return 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},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},c=Object.is?Object.is:n(8619),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:n(7863);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),m=f(Object.prototype.toString),v=n(3575).types,g=v.isAnyArrayBuffer,y=v.isArrayBufferView,b=v.isDate,w=v.isMap,x=v.isRegExp,E=v.isSet,S=v.isNativeError,k=v.isBoxedPrimitive,C=v.isNumberObject,_=v.isStringObject,T=v.isBooleanObject,P=v.isBigIntObject,I=v.isSymbolObject,A=v.isFloat32Array,O=v.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(j).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function R(e,t,n,r){if(e===t)return 0!==e||!n||c(e,t);if(n){if("object"!==o(e))return"number"==typeof e&&d(e)&&d(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,l,u,f=m(e);if(f!==m(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=N(e),h=N(t);return p.length===h.length&&D(e,t,n,r,1,p)}if("[object Object]"===f&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||(l=e,u=t,!(a?l.source===u.source&&l.flags===u.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(u))))return!1}else if(S(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!A(e)&&!O(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var v=N(e),j=N(t);return v.length===j.length&&D(e,t,n,r,0,v)}if(E(e))return!(!E(t)||e.size!==t.size)&&D(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,n,r,3);if(g(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==M(new Uint8Array(i),new Uint8Array(s)))return!1}else if(k(e)&&!function(e,t){return C(e)?C(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):_(e)?_(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):I(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,n,r,0)}function L(e,t){return t.filter(function(t){return h(e,t)})}function D(e,t,n,i,a,c){if(5===arguments.length){c=Object.keys(e);var d=Object.keys(t);if(c.length!==d.length)return!1}for(var f=0;f<c.length;f++)if(!p(t,c[f]))return!1;if(n&&5===arguments.length){var m=u(e);if(0!==m.length){var v=0;for(f=0;f<m.length;f++){var g=m[f];if(h(e,g)){if(!h(t,g))return!1;c.push(g),v++}else if(h(t,g))return!1}var y=u(t);if(m.length!==y.length&&L(t,y).length!==v)return!1}else{var b=u(t);if(0!==b.length&&0!==L(t,b).length)return!1}}if(0===c.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var x=i.val2.get(t);if(void 0!==x)return w===x}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,n,i,a,c){var u=0;if(2===c){if(!function(e,t,n,r){for(var i=null,a=s(e),l=0;l<a.length;l++){var c=a[l];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(n)return!1;if(!U(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var u=s(t),d=0;d<u.length;d++){var f=u[d];if("object"===o(f)&&null!==f){if(!F(i,f,n,r))return!1}else if(!n&&!e.has(f)&&!F(i,f,n,r))return!1}return 0===i.size}return!0}(e,t,n,a))return!1}else if(3===c){if(!function(e,t,n,i){for(var a=null,s=l(e),c=0;c<s.length;c++){var u=r(s[c],2),d=u[0],f=u[1];if("object"===o(d)&&null!==d)null===a&&(a=new Set),a.add(d);else{var p=t.get(d);if(void 0===p&&!t.has(d)||!R(f,p,n,i)){if(n)return!1;if(!z(e,t,d,f,i))return!1;null===a&&(a=new Set),a.add(d)}}}if(null!==a){for(var h=l(t),m=0;m<h.length;m++){var v=r(h[m],2),g=v[0],y=v[1];if("object"===o(g)&&null!==g){if(!V(a,e,g,y,n,i))return!1}else if(!(n||e.has(g)&&R(e.get(g),y,!1,i)||V(a,e,g,y,!1,i)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===c)for(;u<e.length;u++){if(!p(e,u)){if(p(t,u))return!1;for(var d=Object.keys(e);u<d.length;u++){var f=d[u];if(!p(t,f)||!R(e[f],t[f],n,a))return!1}return d.length===Object.keys(t).length}if(!p(t,u)||!R(e[u],t[u],n,a))return!1}for(u=0;u<i.length;u++){var h=i[u];if(!R(e[h],t[h],n,a))return!1}return!0}(e,t,n,c,i,a);return i.val1.delete(e),i.val2.delete(t),E}function F(e,t,n,r){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(R(t,a,n,r))return e.delete(a),!0}return!1}function B(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(d(e))return!1}return!0}function U(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var o=B(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!R(r,a,!1,i))&&!e.has(o)&&R(r,a,!1,i)}function V(e,t,n,r,i,o){for(var a=s(e),l=0;l<a.length;l++){var c=a[l];if(R(n,c,i,o)&&R(r,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return R(e,t,!1)},isDeepStrictEqual:function(e,t){return R(e,t,!0)}}},6925(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},6953(e){"use strict";e.exports=Error},6954(e){"use strict";e.exports=Object},6989(e,t,n){"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7042(e,t,n){"use strict";var r,i=n(9460),o=n(4553);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},7198(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},7277(e){"use strict";e.exports=TypeError},7308(e,t,n){"use strict";var r=n(7433);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},7375(e,t,n){"use strict";var r,i=n(6954),o=n(6953),a=n(3123),s=n(3780),l=n(8768),c=n(7430),u=n(7277),d=n(1619),f=n(4960),p=n(8974),h=n(2938),m=n(6516),v=n(5158),g=n(7856),y=n(8707),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=n(4553),E=n(6709),S=function(){throw new u},k=x?function(){try{return S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,C=n(757)(),_=n(6054),T=n(5266),P=n(6298),I=n(1264),A=n(7858),O={},j="undefined"!=typeof Uint8Array&&_?_(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&_?_([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&_?_(_([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&_?_((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&_?_((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&_?_(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":j,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":P};if(_)try{null.error}catch(e){var M=_(_(e));N["%Error.prototype%"]=M}var R=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&_&&(n=_(i.prototype))}return N[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(6989),F=n(2155),B=D.call(A,Array.prototype.concat),U=D.call(I,Array.prototype.splice),z=D.call(A,String.prototype.replace),V=D.call(A,String.prototype.slice),$=D.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,W=function(e,t){var n,r=e;if(F(L,r)&&(r="%"+(n=L[r])[0]+"%"),F(N,r)){var i=N[r];if(i===O&&(i=R(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,q,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,B([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=V(p,0,1),m=V(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),F(N,o="%"+(r+="."+p)+"%"))a=N[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var v=x(a,p);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else f=F(a,p),a=a[p];f&&!s&&(N[o]=a)}}return a}},7430(e){"use strict";e.exports=SyntaxError},7433(e){"use strict";e.exports=function(e){return e!=e}},7734(e,t,n){"use strict";var r=n(7375)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},7837(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},7839(e,t,n){"use strict";var r=Array.prototype.slice,i=n(543),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},7856(e){"use strict";e.exports=Math.round},7858(e){"use strict";e.exports=Function.prototype.call},7863(e,t,n){"use strict";var r=n(3629),i=n(8726),o=n(7433),a=n(7308),s=n(3862),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},8259(e,t,n){"use strict";var r=n(7375),i=n(8503),o=n(8562)(),a=n(4553),s=n(7277),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},8292(e,t,n){"use strict";var r=n(5224);function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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,l(r.key),r)}}function l(e){var t=function(e){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function c(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)},d(e)}function f(e,t,n){return f=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i},f.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var g=n(3575).inspect,y=n(71).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var w="",x="",E="",S="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,n){var i="",o="",a=0,s="",l=!1,c=_(e),u=c.split("\n"),d=_(t).split("\n"),f=0,p="";if("strictEqual"===n&&"object"===v(e)&&"object"===v(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var h=u[0].length+d[0].length;if(h<=10){if(!("object"===v(e)&&null!==e||"object"===v(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;u[0][f]===d[0][f];)f++;f>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",f),"^"),f=0)}}for(var m=u[u.length-1],g=d[d.length-1];m===g&&(f++<2?s="\n ".concat(m).concat(s):i=m,u.pop(),d.pop(),0!==u.length&&0!==d.length);)m=u[u.length-1],g=d[d.length-1];var y=Math.max(u.length,d.length);if(0===y){var C=c.split("\n");if(C.length>30)for(C[26]="".concat(w,"...").concat(S);C.length>27;)C.pop();return"".concat(k.notIdentical,"\n\n").concat(C.join("\n"),"\n")}f>3&&(s="\n".concat(w,"...").concat(S).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,P=k[n]+"\n".concat(x,"+ actual").concat(S," ").concat(E,"- expected").concat(S),I=" ".concat(w,"...").concat(S," Lines skipped");for(f=0;f<y;f++){var A=f-a;if(u.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(d[f-2]),T++),o+="\n ".concat(d[f-1]),T++),a=f,i+="\n".concat(E,"-").concat(S," ").concat(d[f]),T++;else if(d.length<f+1)A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(u[f-2]),T++),o+="\n ".concat(u[f-1]),T++),a=f,o+="\n".concat(x,"+").concat(S," ").concat(u[f]),T++;else{var O=d[f],j=u[f],N=j!==O&&(!b(j,",")||j.slice(0,-1)!==O);N&&b(O,",")&&O.slice(0,-1)===j&&(N=!1,j+=","),N?(A>1&&f>2&&(A>4?(o+="\n".concat(w,"...").concat(S),l=!0):A>3&&(o+="\n ".concat(u[f-2]),T++),o+="\n ".concat(u[f-1]),T++),a=f,o+="\n".concat(x,"+").concat(S," ").concat(j),i+="\n".concat(E,"-").concat(S," ").concat(O),T+=2):(o+=i,i="",1!==A&&0!==f||(o+="\n ".concat(j),T++))}if(T>20&&f<y-2)return"".concat(P).concat(I,"\n").concat(o,"\n").concat(w,"...").concat(S).concat(i,"\n")+"".concat(w,"...").concat(S)}return"".concat(P).concat(l?I:"","\n").concat(o).concat(i).concat(s).concat(p)}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var n,i,a=function(e){var t=p();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),"object"!==v(e)||null===e)throw new y("options","Object",e);var n=e.message,i=e.operator,o=e.stackStartFn,s=e.actual,d=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=a.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="",x="",S="",E=""):(w="",x="",S="",E="")),"object"===v(s)&&null!==s&&"object"===v(d)&&null!==d&&"stack"in s&&s instanceof Error&&"stack"in d&&d instanceof Error&&(s=C(s),d=C(d)),"deepStrictEqual"===i||"strictEqual"===i)t=a.call(this,T(s,d,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=k[i],h=_(s).split("\n");if("notStrictEqual"===i&&"object"===v(s)&&null!==s&&(p=k.notStrictEqualObject),h.length>30)for(h[26]="".concat(w,"...").concat(S);h.length>27;)h.pop();t=1===h.length?a.call(this,"".concat(p," ").concat(h[0])):a.call(this,"".concat(p,"\n\n").concat(h.join("\n"),"\n"))}else{var m=_(s),g="",b=k[i];"notDeepEqual"===i||"notEqual"===i?(m="".concat(k[i],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(g="".concat(_(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?m="".concat(b,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),t=a.call(this,"".concat(m).concat(g))}return Error.stackTraceLimit=f,t.generatedMessage=!n,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=d,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(u(t),o),t.stack,t.name="AssertionError",c(t)}return n=l,(i=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(d(Error),g.custom);e.exports=P},8307(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},8503(e,t,n){"use strict";var r=n(6709),i=n(7430),o=n(7277),a=n(4553);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8534(e,t,n){"use strict";var r=n(46),i=n(7198),o=n(4961),a=n(1338);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function y(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function x(e){return"[object ArrayBuffer]"===u(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===u(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=E,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===u(e)}function T(e){return void 0!==C&&(void 0===_.working&&(_.working=_(new C)),_.working?_(e):e instanceof C)}function P(e){return v(e,d)}function I(e){return v(e,f)}function A(e){return v(e,p)}function O(e){return l&&v(e,h)}function j(e){return c&&v(e,m)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=P,t.isStringObject=I,t.isBooleanObject=A,t.isBigIntObject=O,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return P(e)||I(e)||A(e)||O(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},8562(e,t,n){"use strict";var r=n(6709),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},8619(e,t,n){"use strict";var r=n(8726),i=n(3629),o=n(7837),a=n(5944),s=n(9394),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},8707(e,t,n){"use strict";var r=n(1581);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},8726(e,t,n){"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(9411),l=n(7734)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],n[o[s]])};u.supportsDescriptors=!!l,e.exports=u},8768(e){"use strict";e.exports=ReferenceError},8898(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==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 o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},8932(e,t,n){"use strict";var r=n(3705);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(3500)},8974(e){"use strict";e.exports=Math.floor},9349(e,t,n){var r=n(3705);e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({"./aesprim":[function(e,t,n){!function(e,t){"use strict";t(void 0!==n?n:e.esprima={})}(this,function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,v,g,y;function b(e,t){if(!e)throw new Error("ASSERT: "+t)}function w(e){return e>=48&&e<=57}function x(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function E(e){return"01234567".indexOf(e)>=0}function S(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function k(e){return 10===e||13===e||8232===e||8233===e}function C(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function _(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function T(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function P(e){return"eval"===e||"arguments"===e}function I(e){if(u&&T(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function A(e,t,n,r,i){var o;b("number"==typeof n,"Comment must have valid position"),g.lastCommentStart>=n||(g.lastCommentStart=n,o={type:e,value:t},y.range&&(o.range=[n,r]),y.loc&&(o.loc=i),y.comments.push(o),y.attachComment&&(y.leadingComments.push(o),y.trailingComments.push(o)))}function O(e){var t,n,r,i;for(t=d-e,n={start:{line:f,column:d-p-e}};d<h;)if(r=c.charCodeAt(d),++d,k(r))return y.comments&&(i=c.slice(t+e,d-1),n.end={line:f,column:d-p-1},A("Line",i,t,d-1,n)),13===r&&10===c.charCodeAt(d)&&++d,++f,void(p=d);y.comments&&(i=c.slice(t+e,d),n.end={line:f,column:d-p},A("Line",i,t,d,n))}function j(){var e,t,n,r;for(y.comments&&(e=d-2,t={start:{line:f,column:d-p-2}});d<h;)if(k(n=c.charCodeAt(d)))13===n&&10===c.charCodeAt(d+1)&&++d,++f,++d,p=d,d>=h&&Y({},a.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===c.charCodeAt(d+1))return++d,++d,void(y.comments&&(r=c.slice(e+2,d-2),t.end={line:f,column:d-p},A("Block",r,e,d,t)));++d}else++d;Y({},a.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===d;d<h;)if(S(e=c.charCodeAt(d)))++d;else if(k(e))++d,13===e&&10===c.charCodeAt(d)&&++d,++f,p=d,t=!0;else if(47===e)if(47===(e=c.charCodeAt(d+1)))++d,++d,O(2),t=!0;else{if(42!==e)break;++d,++d,j()}else if(t&&45===e){if(45!==c.charCodeAt(d+1)||62!==c.charCodeAt(d+2))break;d+=3,O(3)}else{if(60!==e)break;if("!--"!==c.slice(d+1,d+4))break;++d,++d,++d,++d,O(4)}}function M(e){var t,n,r,i=0;for(n="u"===e?4:2,t=0;t<n;++t){if(!(d<h&&x(c[d])))return"";r=c[d++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(i)}function R(){var e,t;for(e=c.charCodeAt(d++),t=String.fromCharCode(e),92===e&&(117!==c.charCodeAt(d)&&Y({},a.UnexpectedToken,"ILLEGAL"),++d,(e=M("u"))&&"\\"!==e&&C(e.charCodeAt(0))||Y({},a.UnexpectedToken,"ILLEGAL"),t=e);d<h&&_(e=c.charCodeAt(d));)++d,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==c.charCodeAt(d)&&Y({},a.UnexpectedToken,"ILLEGAL"),++d,(e=M("u"))&&"\\"!==e&&_(e.charCodeAt(0))||Y({},a.UnexpectedToken,"ILLEGAL"),t+=e);return t}function L(){var e,t;for(e=d++;d<h;){if(92===(t=c.charCodeAt(d)))return d=e,R();if(!_(t))break;++d}return c.slice(e,d)}function D(){var e,n,r,i,o=d,s=c.charCodeAt(d),l=c[d];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++d,y.tokenize&&(40===s?y.openParenToken=y.tokens.length:123===s&&(y.openCurlyToken=y.tokens.length)),{type:t.Punctuator,value:String.fromCharCode(s),lineNumber:f,lineStart:p,start:o,end:d};default:if(61===(e=c.charCodeAt(d+1)))switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return d+=2,{type:t.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:f,lineStart:p,start:o,end:d};case 33:case 61:return d+=2,61===c.charCodeAt(d)&&++d,{type:t.Punctuator,value:c.slice(o,d),lineNumber:f,lineStart:p,start:o,end:d}}}return">>>="===(i=c.substr(d,4))?(d+=4,{type:t.Punctuator,value:i,lineNumber:f,lineStart:p,start:o,end:d}):">>>"===(r=i.substr(0,3))||"<<="===r||">>="===r?(d+=3,{type:t.Punctuator,value:r,lineNumber:f,lineStart:p,start:o,end:d}):l===(n=r.substr(0,2))[1]&&"+-<>&|".indexOf(l)>=0||"=>"===n?(d+=2,{type:t.Punctuator,value:n,lineNumber:f,lineStart:p,start:o,end:d}):"<>=!+-*%&|^/".indexOf(l)>=0?(++d,{type:t.Punctuator,value:l,lineNumber:f,lineStart:p,start:o,end:d}):void Y({},a.UnexpectedToken,"ILLEGAL")}function F(){var e,n,r;if(b(w((r=c[d]).charCodeAt(0))||"."===r,"Numeric literal must start with a decimal digit or a decimal point"),n=d,e="","."!==r){if(e=c[d++],r=c[d],"0"===e){if("x"===r||"X"===r)return++d,function(e){for(var n="";d<h&&x(c[d]);)n+=c[d++];return 0===n.length&&Y({},a.UnexpectedToken,"ILLEGAL"),C(c.charCodeAt(d))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt("0x"+n,16),lineNumber:f,lineStart:p,start:e,end:d}}(n);if(E(r)&&function(){var e,t;for(e=d+1;e<h;++e){if("8"===(t=c[e])||"9"===t)return!1;if(!E(t))return!0}return!0}())return function(e){for(var n="0"+c[d++];d<h&&E(c[d]);)n+=c[d++];return(C(c.charCodeAt(d))||w(c.charCodeAt(d)))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseInt(n,8),octal:!0,lineNumber:f,lineStart:p,start:e,end:d}}(n)}for(;w(c.charCodeAt(d));)e+=c[d++];r=c[d]}if("."===r){for(e+=c[d++];w(c.charCodeAt(d));)e+=c[d++];r=c[d]}if("e"===r||"E"===r)if(e+=c[d++],"+"!==(r=c[d])&&"-"!==r||(e+=c[d++]),w(c.charCodeAt(d)))for(;w(c.charCodeAt(d));)e+=c[d++];else Y({},a.UnexpectedToken,"ILLEGAL");return C(c.charCodeAt(d))&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.NumericLiteral,value:parseFloat(e),lineNumber:f,lineStart:p,start:n,end:d}}function B(){var e,n,r,i;return v=null,N(),e=d,n=function(){var e,t,n,r;for(b("/"===(e=c[d]),"Regular expression literal must start with a slash"),t=c[d++],n=!1,r=!1;d<h;)if(t+=e=c[d++],"\\"===e)k((e=c[d++]).charCodeAt(0))&&Y({},a.UnterminatedRegExp),t+=e;else if(k(e.charCodeAt(0)))Y({},a.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){r=!0;break}"["===e&&(n=!0)}return r||Y({},a.UnterminatedRegExp),{value:t.substr(1,t.length-2),literal:t}}(),r=function(){var e,t,n,r;for(t="",n="";d<h&&_((e=c[d]).charCodeAt(0));)if(++d,"\\"===e&&d<h)if("u"===(e=c[d])){if(r=++d,e=M("u"))for(n+=e,t+="\\u";r<d;++r)t+=c[r];else d=r,n+="u",t+="\\u";K({},a.UnexpectedToken,"ILLEGAL")}else t+="\\",K({},a.UnexpectedToken,"ILLEGAL");else n+=e,t+=e;return{value:n,literal:t}}(),i=function(e,t){var n;try{n=new RegExp(e,t)}catch(e){Y({},a.InvalidRegExp)}return n}(n.value,r.value),y.tokenize?{type:t.RegularExpression,value:i,lineNumber:f,lineStart:p,start:e,end:d}:{literal:n.literal+r.literal,value:i,start:e,end:d}}function U(){var e,t,n,r;return N(),e=d,t={start:{line:f,column:d-p}},n=B(),t.end={line:f,column:d-p},y.tokenize||(y.tokens.length>0&&(r=y.tokens[y.tokens.length-1]).range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||y.tokens.pop()),y.tokens.push({type:"RegularExpression",value:n.literal,range:[e,d],loc:t})),n}function z(e){return e.type===t.Identifier||e.type===t.Keyword||e.type===t.BooleanLiteral||e.type===t.NullLiteral}function V(){var e;return N(),d>=h?{type:t.EOF,lineNumber:f,lineStart:p,start:d,end:d}:C(e=c.charCodeAt(d))?function(){var e,n;return e=d,{type:1===(n=92===c.charCodeAt(d)?R():L()).length?t.Identifier:I(n)?t.Keyword:"null"===n?t.NullLiteral:"true"===n||"false"===n?t.BooleanLiteral:t.Identifier,value:n,lineNumber:f,lineStart:p,start:e,end:d}}():40===e||41===e||59===e?D():39===e||34===e?function(){var e,n,r,i,o,s,l,u,m="",v=!1;for(l=f,u=p,b("'"===(e=c[d])||'"'===e,"String literal must starts with a quote"),n=d,++d;d<h;){if((r=c[d++])===e){e="";break}if("\\"===r)if((r=c[d++])&&k(r.charCodeAt(0)))++f,"\r"===r&&"\n"===c[d]&&++d,p=d;else switch(r){case"u":case"x":s=d,(o=M(r))?m+=o:(d=s,m+=r);break;case"n":m+="\n";break;case"r":m+="\r";break;case"t":m+="\t";break;case"b":m+="\b";break;case"f":m+="\f";break;case"v":m+="\v";break;default:E(r)?(0!==(i="01234567".indexOf(r))&&(v=!0),d<h&&E(c[d])&&(v=!0,i=8*i+"01234567".indexOf(c[d++]),"0123".indexOf(r)>=0&&d<h&&E(c[d])&&(i=8*i+"01234567".indexOf(c[d++]))),m+=String.fromCharCode(i)):m+=r}else{if(k(r.charCodeAt(0)))break;m+=r}}return""!==e&&Y({},a.UnexpectedToken,"ILLEGAL"),{type:t.StringLiteral,value:m,octal:v,startLineNumber:l,startLineStart:u,lineNumber:f,lineStart:p,start:n,end:d}}():46===e?w(c.charCodeAt(d+1))?F():D():w(e)?F():y.tokenize&&47===e?function(){var e,t;if(!(e=y.tokens[y.tokens.length-1]))return U();if("Punctuator"===e.type){if("]"===e.value)return D();if(")"===e.value)return!(t=y.tokens[y.openParenToken-1])||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?D():U();if("}"===e.value){if(y.tokens[y.openCurlyToken-3]&&"Keyword"===y.tokens[y.openCurlyToken-3].type){if(!(t=y.tokens[y.openCurlyToken-4]))return D()}else{if(!y.tokens[y.openCurlyToken-4]||"Keyword"!==y.tokens[y.openCurlyToken-4].type)return D();if(!(t=y.tokens[y.openCurlyToken-5]))return U()}return r.indexOf(t.value)>=0?D():U()}return U()}return"Keyword"===e.type&&"this"!==e.value?U():D()}():D()}function $(){var e,r,i;return N(),e={start:{line:f,column:d-p}},r=V(),e.end={line:f,column:d-p},r.type!==t.EOF&&(i=c.slice(r.start,r.end),y.tokens.push({type:n[r.type],value:i,range:[r.start,r.end],loc:e})),r}function H(){var e;return d=(e=v).end,f=e.lineNumber,p=e.lineStart,v=void 0!==y.tokens?$():V(),d=e.end,f=e.lineNumber,p=e.lineStart,e}function q(){var e,t,n;e=d,t=f,n=p,v=void 0!==y.tokens?$():V(),d=e,f=t,p=n}function W(e,t){this.line=e,this.column=t}function G(e,t,n,r){this.start=new W(e,t),this.end=new W(n,r)}function X(){var e,t,n,r;return e=d,t=f,n=p,N(),r=f!==t,d=e,f=t,p=n,r}function Y(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,function(e,t){return b(t<r.length,"Message reference must be in range"),r[t]});throw"number"==typeof e.lineNumber?((n=new Error("Line "+e.lineNumber+": "+i)).index=e.start,n.lineNumber=e.lineNumber,n.column=e.start-p+1):((n=new Error("Line "+f+": "+i)).index=d,n.lineNumber=f,n.column=d-p+1),n.description=i,n}function K(){try{Y.apply(null,arguments)}catch(e){if(!y.errors)throw e;y.errors.push(e)}}function Q(e){if(e.type===t.EOF&&Y(e,a.UnexpectedEOS),e.type===t.NumericLiteral&&Y(e,a.UnexpectedNumber),e.type===t.StringLiteral&&Y(e,a.UnexpectedString),e.type===t.Identifier&&Y(e,a.UnexpectedIdentifier),e.type===t.Keyword){if(function(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}(e.value))Y(e,a.UnexpectedReserved);else if(u&&T(e.value))return void K(e,a.StrictReservedWord);Y(e,a.UnexpectedToken,e.value)}Y(e,a.UnexpectedToken,e.value)}function J(e){var n=H();n.type===t.Punctuator&&n.value===e||Q(n)}function Z(e){var n=H();n.type===t.Keyword&&n.value===e||Q(n)}function ee(e){return v.type===t.Punctuator&&v.value===e}function te(e){return v.type===t.Keyword&&v.value===e}function ne(){var e;return v.type===t.Punctuator&&("="===(e=v.value)||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function re(){var e,n=d,r=f,i=p,o=v;if(59===c.charCodeAt(d)||ee(";"))H();else{if(e=f,N(),f!==e)return d=n,f=r,p=i,void(v=o);v.type===t.EOF||ee("}")||Q(v)}}function ie(e){return e.type===i.Identifier||e.type===i.MemberExpression}function oe(e,t){var n,r,i;return n=u,i=v,r=Pe(),t&&u&&P(e[0].name)&&K(t,a.StrictParamName),u=n,m.markEnd(m.createFunctionExpression(null,e,[],r),i)}function ae(){var e,n;return n=v,(e=H()).type===t.StringLiteral||e.type===t.NumericLiteral?(u&&e.octal&&K(e,a.StrictOctalLiteral),m.markEnd(m.createLiteral(e),n)):m.markEnd(m.createIdentifier(e.value),n)}function se(){var e,n,r,i,o,s;return s=v,(e=v).type===t.Identifier?(r=ae(),"get"!==e.value||ee(":")?"set"!==e.value||ee(":")?(J(":"),i=ye(),m.markEnd(m.createProperty("init",r,i),s)):(n=ae(),J("("),(e=v).type!==t.Identifier?(J(")"),K(e,a.UnexpectedToken,e.value),i=oe([])):(o=[xe()],J(")"),i=oe(o,e)),m.markEnd(m.createProperty("set",n,i),s)):(n=ae(),J("("),J(")"),i=oe([]),m.markEnd(m.createProperty("get",n,i),s))):e.type!==t.EOF&&e.type!==t.Punctuator?(n=ae(),J(":"),i=ye(),m.markEnd(m.createProperty("init",n,i),s)):void Q(e)}function le(){var e,t,n,r,s,l=[],c={},d=String;for(s=v,J("{");!ee("}");)t=(e=se()).key.type===i.Identifier?e.key.name:d(e.key.value),r="init"===e.kind?o.Data:"get"===e.kind?o.Get:o.Set,n="$"+t,Object.prototype.hasOwnProperty.call(c,n)?(c[n]===o.Data?u&&r===o.Data?K({},a.StrictDuplicateProperty):r!==o.Data&&K({},a.AccessorDataProperty):r===o.Data?K({},a.AccessorDataProperty):c[n]&r&&K({},a.AccessorGetSet),c[n]|=r):c[n]=r,l.push(e),ee("}")||J(",");return J("}"),m.markEnd(m.createObjectExpression(l),s)}function ce(){var e,n,r,i;if(ee("("))return function(){var e;return J("("),e=be(),J(")"),e}();if(ee("["))return function(){var e,t=[];for(e=v,J("[");!ee("]");)ee(",")?(H(),t.push(null)):(t.push(ye()),ee("]")||J(","));return H(),m.markEnd(m.createArrayExpression(t),e)}();if(ee("{"))return le();if(e=v.type,i=v,e===t.Identifier)r=m.createIdentifier(H().value);else if(e===t.StringLiteral||e===t.NumericLiteral)u&&v.octal&&K(v,a.StrictOctalLiteral),r=m.createLiteral(H());else if(e===t.Keyword){if(te("function"))return function(){var e,t,n,r,i,o,s,l,c=null,d=[];return l=v,Z("function"),ee("(")||(e=v,c=xe(),u?P(e.value)&&K(e,a.StrictFunctionName):P(e.value)?(n=e,r=a.StrictFunctionName):T(e.value)&&(n=e,r=a.StrictReservedWord)),d=(i=Ie(n)).params,t=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),s=u,o=Pe(),u&&n&&Y(n,r),u&&t&&K(t,r),u=s,m.markEnd(m.createFunctionExpression(c,d,[],o),l)}();te("this")?(H(),r=m.createThisExpression()):Q(H())}else e===t.BooleanLiteral?((n=H()).value="true"===n.value,r=m.createLiteral(n)):e===t.NullLiteral?((n=H()).value=null,r=m.createLiteral(n)):ee("/")||ee("/=")?(r=void 0!==y.tokens?m.createLiteral(U()):m.createLiteral(B()),q()):Q(H());return m.markEnd(r,i)}function ue(){var e=[];if(J("("),!ee(")"))for(;d<h&&(e.push(ye()),!ee(")"));)J(",");return J(")"),e}function de(){return J("."),function(){var e,t;return t=v,z(e=H())||Q(e),m.markEnd(m.createIdentifier(e.value),t)}()}function fe(){var e;return J("["),e=be(),J("]"),e}function pe(){var e,t,n;return n=v,Z("new"),e=function(){var e,t,n;for(b(g.allowIn,"callee of new expression always allow in keyword."),n=v,e=te("new")?pe():ce();ee(".")||ee("[");)ee("[")?(t=fe(),e=m.createMemberExpression("[",e,t)):(t=de(),e=m.createMemberExpression(".",e,t)),m.markEnd(e,n);return e}(),t=ee("(")?ue():[],m.markEnd(m.createNewExpression(e,t),n)}function he(){var e,n,r=v;return e=function(){var e,t,n,r,i=g.allowIn;for(r=v,g.allowIn=!0,e=te("new")?pe():ce();;){if(ee("."))n=de(),e=m.createMemberExpression(".",e,n);else if(ee("("))t=ue(),e=m.createCallExpression(e,t);else{if(!ee("["))break;n=fe(),e=m.createMemberExpression("[",e,n)}m.markEnd(e,r)}return g.allowIn=i,e}(),v.type===t.Punctuator&&(!ee("++")&&!ee("--")||X()||(u&&e.type===i.Identifier&&P(e.name)&&K({},a.StrictLHSPostfix),ie(e)||K({},a.InvalidLHSInAssignment),n=H(),e=m.markEnd(m.createPostfixExpression(n.value,e),r))),e}function me(){var e,n,r;return v.type!==t.Punctuator&&v.type!==t.Keyword?n=he():ee("++")||ee("--")?(r=v,e=H(),n=me(),u&&n.type===i.Identifier&&P(n.name)&&K({},a.StrictLHSPrefix),ie(n)||K({},a.InvalidLHSInAssignment),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r)):ee("+")||ee("-")||ee("~")||ee("!")?(r=v,e=H(),n=me(),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r)):te("delete")||te("void")||te("typeof")?(r=v,e=H(),n=me(),n=m.createUnaryExpression(e.value,n),n=m.markEnd(n,r),u&&"delete"===n.operator&&n.argument.type===i.Identifier&&K({},a.StrictDelete)):n=he(),n}function ve(e,n){var r=0;if(e.type!==t.Punctuator&&e.type!==t.Keyword)return 0;switch(e.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=n?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function ge(){var e,t,n,r,i;return i=v,e=function(){var e,t,n,r,i,o,a,s,l,c;if(e=v,l=me(),0===(i=ve(r=v,g.allowIn)))return l;for(r.prec=i,H(),t=[e,v],o=[l,r,a=me()];(i=ve(v,g.allowIn))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)a=o.pop(),s=o.pop().value,l=o.pop(),n=m.createBinaryExpression(s,l,a),t.pop(),e=t[t.length-1],m.markEnd(n,e),o.push(n);(r=H()).prec=i,o.push(r),t.push(v),n=me(),o.push(n)}for(n=o[c=o.length-1],t.pop();c>1;)n=m.createBinaryExpression(o[c-1].value,o[c-2],n),c-=2,e=t.pop(),m.markEnd(n,e);return n}(),ee("?")&&(H(),t=g.allowIn,g.allowIn=!0,n=ye(),g.allowIn=t,J(":"),r=ye(),e=m.createConditionalExpression(e,n,r),m.markEnd(e,i)),e}function ye(){var e,t,n,r,o;return e=v,o=v,r=t=ge(),ne()&&(ie(t)||K({},a.InvalidLHSInAssignment),u&&t.type===i.Identifier&&P(t.name)&&K(e,a.StrictLHSAssignment),e=H(),n=ye(),r=m.markEnd(m.createAssignmentExpression(e.value,t,n),o)),r}function be(){var e,t=v;if(e=ye(),ee(",")){for(e=m.createSequenceExpression([e]);d<h&&ee(",");)H(),e.expressions.push(ye());m.markEnd(e,t)}return e}function we(){var e,t;return t=v,J("{"),e=function(){for(var e,t=[];d<h&&!ee("}")&&void 0!==(e=Oe());)t.push(e);return t}(),J("}"),m.markEnd(m.createBlockStatement(e),t)}function xe(){var e,n;return n=v,(e=H()).type!==t.Identifier&&Q(e),m.markEnd(m.createIdentifier(e.value),n)}function Ee(e){var t,n,r=null;return n=v,t=xe(),u&&P(t.name)&&K({},a.StrictVarName),"const"===e?(J("="),r=ye()):ee("=")&&(H(),r=ye()),m.markEnd(m.createVariableDeclarator(t,r),n)}function Se(e){var t=[];do{if(t.push(Ee(e)),!ee(","))break;H()}while(d<h);return t}function ke(){var e,t,n,r,i,o,s,l=g.allowIn;return e=t=n=null,Z("for"),J("("),ee(";")?H():(te("var")||te("let")?(g.allowIn=!1,e=function(){var e,t,n;return n=v,e=H(),t=Se(),m.markEnd(m.createVariableDeclaration(t,e.value),n)}(),g.allowIn=l,1===e.declarations.length&&te("in")&&(H(),r=e,i=be(),e=null)):(g.allowIn=!1,e=be(),g.allowIn=l,te("in")&&(ie(e)||K({},a.InvalidLHSInForIn),H(),r=e,i=be(),e=null)),void 0===r&&J(";")),void 0===r&&(ee(";")||(t=be()),J(";"),ee(")")||(n=be())),J(")"),s=g.inIteration,g.inIteration=!0,o=Te(),g.inIteration=s,void 0===r?m.createForStatement(e,t,n,o):m.createForInStatement(r,i,o)}function Ce(){var e,t,n,r=[];for(n=v,te("default")?(H(),e=null):(Z("case"),e=be()),J(":");d<h&&!(ee("}")||te("default")||te("case"));)t=Te(),r.push(t);return m.markEnd(m.createSwitchCase(e,r),n)}function _e(){var e,t=[],n=null;return Z("try"),e=we(),te("catch")&&t.push(function(){var e,t,n;return n=v,Z("catch"),J("("),ee(")")&&Q(v),e=xe(),u&&P(e.name)&&K({},a.StrictCatchVariable),J(")"),t=we(),m.markEnd(m.createCatchClause(e,t),n)}()),te("finally")&&(H(),n=we()),0!==t.length||n||Y({},a.NoCatchOrFinally),m.createTryStatement(e,[],t,n)}function Te(){var e,n,r,o,s=v.type;if(s===t.EOF&&Q(v),s===t.Punctuator&&"{"===v.value)return we();if(o=v,s===t.Punctuator)switch(v.value){case";":return m.markEnd((J(";"),m.createEmptyStatement()),o);case"(":return m.markEnd(function(){var e=be();return re(),m.createExpressionStatement(e)}(),o)}if(s===t.Keyword)switch(v.value){case"break":return m.markEnd(function(){var e,n=null;return Z("break"),59===c.charCodeAt(d)?(H(),g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(null)):X()?(g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(null)):(v.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||Y({},a.UnknownLabel,n.name)),re(),null!==n||g.inIteration||g.inSwitch||Y({},a.IllegalBreak),m.createBreakStatement(n))}(),o);case"continue":return m.markEnd(function(){var e,n=null;return Z("continue"),59===c.charCodeAt(d)?(H(),g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(null)):X()?(g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(null)):(v.type===t.Identifier&&(e="$"+(n=xe()).name,Object.prototype.hasOwnProperty.call(g.labelSet,e)||Y({},a.UnknownLabel,n.name)),re(),null!==n||g.inIteration||Y({},a.IllegalContinue),m.createContinueStatement(n))}(),o);case"debugger":return m.markEnd((Z("debugger"),re(),m.createDebuggerStatement()),o);case"do":return m.markEnd(function(){var e,t,n;return Z("do"),n=g.inIteration,g.inIteration=!0,e=Te(),g.inIteration=n,Z("while"),J("("),t=be(),J(")"),ee(";")&&H(),m.createDoWhileStatement(e,t)}(),o);case"for":return m.markEnd(ke(),o);case"function":return m.markEnd(Ae(),o);case"if":return m.markEnd(function(){var e,t,n;return Z("if"),J("("),e=be(),J(")"),t=Te(),te("else")?(H(),n=Te()):n=null,m.createIfStatement(e,t,n)}(),o);case"return":return m.markEnd(function(){var e=null;return Z("return"),g.inFunctionBody||K({},a.IllegalReturn),32===c.charCodeAt(d)&&C(c.charCodeAt(d+1))?(e=be(),re(),m.createReturnStatement(e)):X()?m.createReturnStatement(null):(ee(";")||ee("}")||v.type===t.EOF||(e=be()),re(),m.createReturnStatement(e))}(),o);case"switch":return m.markEnd(function(){var e,t,n,r,i;if(Z("switch"),J("("),e=be(),J(")"),J("{"),t=[],ee("}"))return H(),m.createSwitchStatement(e,t);for(r=g.inSwitch,g.inSwitch=!0,i=!1;d<h&&!ee("}");)null===(n=Ce()).test&&(i&&Y({},a.MultipleDefaultsInSwitch),i=!0),t.push(n);return g.inSwitch=r,J("}"),m.createSwitchStatement(e,t)}(),o);case"throw":return m.markEnd(function(){var e;return Z("throw"),X()&&Y({},a.NewlineAfterThrow),e=be(),re(),m.createThrowStatement(e)}(),o);case"try":return m.markEnd(_e(),o);case"var":return m.markEnd(function(){var e;return Z("var"),e=Se(),re(),m.createVariableDeclaration(e,"var")}(),o);case"while":return m.markEnd(function(){var e,t,n;return Z("while"),J("("),e=be(),J(")"),n=g.inIteration,g.inIteration=!0,t=Te(),g.inIteration=n,m.createWhileStatement(e,t)}(),o);case"with":return m.markEnd(function(){var e,t;return u&&(N(),K({},a.StrictModeWith)),Z("with"),J("("),e=be(),J(")"),t=Te(),m.createWithStatement(e,t)}(),o)}return(e=be()).type===i.Identifier&&ee(":")?(H(),r="$"+e.name,Object.prototype.hasOwnProperty.call(g.labelSet,r)&&Y({},a.Redeclaration,"Label",e.name),g.labelSet[r]=!0,n=Te(),delete g.labelSet[r],m.markEnd(m.createLabeledStatement(e,n),o)):(re(),m.markEnd(m.createExpressionStatement(e),o))}function Pe(){var e,n,r,o,s,l,f,p,y=[];for(p=v,J("{");d<h&&v.type===t.StringLiteral&&(n=v,e=Oe(),y.push(e),e.expression.type===i.Literal);)"use strict"===c.slice(n.start+1,n.end-1)?(u=!0,r&&K(r,a.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(o=g.labelSet,s=g.inIteration,l=g.inSwitch,f=g.inFunctionBody,g.labelSet={},g.inIteration=!1,g.inSwitch=!1,g.inFunctionBody=!0;d<h&&!ee("}")&&void 0!==(e=Oe());)y.push(e);return J("}"),g.labelSet=o,g.inIteration=s,g.inSwitch=l,g.inFunctionBody=f,m.markEnd(m.createBlockStatement(y),p)}function Ie(e){var t,n,r,i,o,s,l=[];if(J("("),!ee(")"))for(i={};d<h&&(n=v,t=xe(),o="$"+n.value,u?(P(n.value)&&(r=n,s=a.StrictParamName),Object.prototype.hasOwnProperty.call(i,o)&&(r=n,s=a.StrictParamDupe)):e||(P(n.value)?(e=n,s=a.StrictParamName):T(n.value)?(e=n,s=a.StrictReservedWord):Object.prototype.hasOwnProperty.call(i,o)&&(e=n,s=a.StrictParamDupe)),l.push(t),i[o]=!0,!ee(")"));)J(",");return J(")"),{params:l,stricted:r,firstRestricted:e,message:s}}function Ae(){var e,t,n,r,i,o,s,l,c,d;return c=v,Z("function"),n=v,e=xe(),u?P(n.value)&&K(n,a.StrictFunctionName):P(n.value)?(o=n,s=a.StrictFunctionName):T(n.value)&&(o=n,s=a.StrictReservedWord),d=(i=Ie(o)).params,r=i.stricted,o=i.firstRestricted,i.message&&(s=i.message),l=u,t=Pe(),u&&o&&Y(o,s),u&&r&&K(r,s),u=l,m.markEnd(m.createFunctionDeclaration(e,d,[],t),c)}function Oe(){if(v.type===t.Keyword)switch(v.value){case"const":case"let":return function(e){var t,n;return n=v,Z(e),t=Se(e),re(),m.markEnd(m.createVariableDeclaration(t,e),n)}(v.value);case"function":return Ae();default:return Te()}if(v.type!==t.EOF)return Te()}function je(){for(var e,n,r,o=[];d<h&&(n=v).type===t.StringLiteral&&(e=Oe(),o.push(e),e.expression.type===i.Literal);)"use strict"===c.slice(n.start+1,n.end-1)?(u=!0,r&&K(r,a.StrictOctalLiteral)):!r&&n.octal&&(r=n);for(;d<h&&void 0!==(e=Oe());)o.push(e);return o}function Ne(){var e,t,n,r=[];for(e=0;e<y.tokens.length;++e)n={type:(t=y.tokens[e]).type,value:t.value},y.range&&(n.range=t.range),y.loc&&(n.loc=t.loc),r.push(n);y.tokens=r}(n={})[(t={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9}).BooleanLiteral]="Boolean",n[t.EOF]="<end>",n[t.Identifier]="Identifier",n[t.Keyword]="Keyword",n[t.NullLiteral]="Null",n[t.NumericLiteral]="Numeric",n[t.Punctuator]="Punctuator",n[t.StringLiteral]="String",n[t.RegularExpression]="RegularExpression",r=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},o={Data:1,Get:2,Set:4},a={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},s={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},l={name:"SyntaxTree",processComment:function(e){var t,n;if(!(e.type===i.Program&&e.body.length>0)){for(y.trailingComments.length>0?y.trailingComments[0].range[0]>=e.range[1]?(n=y.trailingComments,y.trailingComments=[]):y.trailingComments.length=0:y.bottomRightStack.length>0&&y.bottomRightStack[y.bottomRightStack.length-1].trailingComments&&y.bottomRightStack[y.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(n=y.bottomRightStack[y.bottomRightStack.length-1].trailingComments,delete y.bottomRightStack[y.bottomRightStack.length-1].trailingComments);y.bottomRightStack.length>0&&y.bottomRightStack[y.bottomRightStack.length-1].range[0]>=e.range[0];)t=y.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):y.leadingComments.length>0&&y.leadingComments[y.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=y.leadingComments,y.leadingComments=[]),n&&(e.trailingComments=n),y.bottomRightStack.push(e)}},markEnd:function(e,t){return y.range&&(e.range=[t.start,d]),y.loc&&(e.loc=new G(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),f,d-p),this.postProcess(e)),y.attachComment&&this.processComment(e),e},postProcess:function(e){return y.source&&(e.loc.source=y.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:i.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:i.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:i.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:i.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:i.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:i.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:c.slice(e.start,e.end)}},createMemberExpression:function(e,t,n){return{type:i.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,n){return{type:i.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.5",e.tokenize=function(e,n){var r;"string"==typeof e||e instanceof String||(e=String(e)),m=l,d=0,f=(c=e).length>0?1:0,p=0,h=c.length,v=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},y={},(n=n||{}).tokens=!0,y.tokens=[],y.tokenize=!0,y.openParenToken=-1,y.openCurlyToken=-1,y.range="boolean"==typeof n.range&&n.range,y.loc="boolean"==typeof n.loc&&n.loc,"boolean"==typeof n.comment&&n.comment&&(y.comments=[]),"boolean"==typeof n.tolerant&&n.tolerant&&(y.errors=[]);try{if(q(),v.type===t.EOF)return y.tokens;for(H();v.type!==t.EOF;)try{H()}catch(e){if(y.errors){y.errors.push(e);break}throw e}Ne(),r=y.tokens,void 0!==y.comments&&(r.comments=y.comments),void 0!==y.errors&&(r.errors=y.errors)}catch(e){throw e}finally{y={}}return r},e.parse=function(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),m=l,d=0,f=(c=e).length>0?1:0,p=0,h=c.length,v=null,g={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},y={},void 0!==t&&(y.range="boolean"==typeof t.range&&t.range,y.loc="boolean"==typeof t.loc&&t.loc,y.attachComment="boolean"==typeof t.attachComment&&t.attachComment,y.loc&&null!==t.source&&void 0!==t.source&&(y.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(y.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(y.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(y.errors=[]),y.attachComment&&(y.range=!0,y.comments=[],y.bottomRightStack=[],y.trailingComments=[],y.leadingComments=[]));try{n=function(){var e,t;return N(),q(),t=v,u=!1,e=je(),m.markEnd(m.createProgram(e),t)}(),void 0!==y.comments&&(n.comments=y.comments),void 0!==y.tokens&&(Ne(),n.tokens=y.tokens),void 0!==y.errors&&(n.errors=y.errors)}catch(e){throw e}finally{y={}}return n},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},{}],1:[function(e,t,n){(function(i){var o=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,n,r,i,o,a,s){i.ast||(i.ast=t,t.initialize());var l=a.length-1;switch(o){case 1:return i.ast.set({expression:{type:"root",value:a[l]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:a[l-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:a[l-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:case 11:case 13:case 18:case 21:case 22:case 23:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:case 19:i.ast.set({scope:"child"});break;case 10:case 20:i.ast.set({scope:"descendant"});break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 14:i.ast.set({expression:{type:"wildcard",value:a[l]}});break;case 15:i.ast.set({expression:{type:"identifier",value:a[l]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:a[l]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(a[l])}});break;case 24:a[l].length>1?i.ast.set({expression:{type:"union",value:a[l]}}):this.$=a[l];break;case 25:this.$=[a[l]];break;case 26:this.$=a[l-2].concat(a[l]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(a[l])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:a[l]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:a[l]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:a[l]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:a[l]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:a[l]}},i.ast.set(this.$);break;case 33:case 34:this.$=a[l]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,l=0,c=0,u=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;i.push(d);var f=this.lexer.options&&this.lexer.options.ranges;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var h,m,v,g,y,b,w,x,E,S={};;){if(v=n[n.length-1],this.defaultActions[v]?g=this.defaultActions[v]:(null!=h||(h=p()),g=o[v]&&o[v][h]),void 0===g||!g.length||!g[0]){var k;for(b in E=[],o[v])this.terminals_[b]&&b>2&&E.push("'"+this.terminals_[b]+"'");k=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:d,expected:E})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+h);switch(g[0]){case 1:n.push(h),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),h=null,m?(h=m,m=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:if(w=this.productions_[g[1]][1],S.$=r[r.length-w],S._$={first_line:i[i.length-(w||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(w||1)].first_column,last_column:i[i.length-1].last_column},f&&(S._$.range=[i[i.length-(w||1)].range[0],i[i.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[a,l,s,this.yy,g[1],r,i].concat(u))))return y;w&&(n=n.slice(0,-1*w*2),r=r.slice(0,-1*w),i=i.slice(0,-1*w)),n.push(this.productions_[g[1]][0]),r.push(S.$),i.push(S._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function r(){this.yy={}}return e.lexer=n,r.prototype=e,e.Parser=r,new r}();void 0!==e&&void 0!==n&&(n.parser=o,n.Parser=o.Parser,n.parse=function(){return o.parse.apply(o,arguments)},n.main=function(t){t[1]||(r.log("Usage: "+t[0]+" FILE"),i.exit(1));var o=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(o)},void 0!==t&&e.main===t&&n.main(i.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,n){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,n){var r=e("./dict"),i=e("fs"),o={lex:{macros:{esc:"\\\\",int:r.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[r.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[r.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[r.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(o.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),o.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=o},{"./dict":2,fs:12}],4:[function(e,t,n){var r=e("./aesprim"),i=e("./slice"),o=e("static-eval"),a=e("underscore").uniq,s=Object.create(null);function l(e){return"string"==typeof e&&!0===s[e]}s.constructor=!0,s.__proto__=!0,s.prototype=!0;var c=function(){return this.initialize.apply(this,arguments)};function u(t,n,i){var o=e("./index"),a=m(r.parse(n).body[0].expression,{"@":t.value}),s=i.replace(/\{\{\s*value\s*\}\}/g,a),l=o.nodes(t.value,s);return l.forEach(function(e){e.path=t.path.concat(e.path.slice(1))}),l}function d(e){return Array.isArray(e)}function f(e){return function(t,n,r,i){var o=t.value,a=t.path,s=[],l=function(t,o){d(t)?(t.forEach(function(e,t){s.length>=i||r(t,e,n)&&s.push({path:o.concat(t),value:e})}),t.forEach(function(t,n){s.length>=i||e&&l(t,o.concat(n))})):function(e){return e&&!(e instanceof Array)&&e instanceof Object}(t)&&(this.keys(t).forEach(function(e){s.length>=i||r(e,t[e],n)&&s.push({path:o.concat(e),value:t[e]})}),this.keys(t).forEach(function(n){s.length>=i||e&&l(t[n],o.concat(n))}))}.bind(this);return l(o,a),s}}function p(e){return function(t,n,r){return this.descend(n,t.expression.value,e,r)}}function h(e){return function(t,n,r){return this.traverse(n,t.expression.value,e,r)}}function m(e,t){if(!function(e){return!(!e||"object"!=typeof e)&&function e(t){if(!t||"object"!=typeof t||!t.type)return!1;switch(t.type){case"Literal":return!0;case"Identifier":return"@"===t.name;case"MemberExpression":return!(!e(t.object)||(t.computed||"Identifier"!==t.property.type?!t.computed||!e(t.property)||"Literal"===t.property.type&&l(String(t.property.value)):l(t.property.name)));case"UnaryExpression":return e(t.argument);case"BinaryExpression":case"LogicalExpression":return e(t.left)&&e(t.right);case"ConditionalExpression":return e(t.test)&&e(t.consequent)&&e(t.alternate);case"ArrayExpression":for(var n=0;n<t.elements.length;n++)if(!e(t.elements[n]))return!1;return!0;case"ObjectExpression":for(var r=0;r<t.properties.length;r++){var i=t.properties[r];if(i.key&&("Identifier"===i.key.type&&l(i.key.name)||"Literal"===i.key.type&&l(String(i.key.value))))return!1;if(!e(i.value))return!1}return!0;default:return!1}}(e)}(e))throw new Error("Unsafe expression: script and filter expressions may only access the current node (@) with safe property names");try{return o(e,t)}catch(e){}}function v(e){return e=e.filter(function(e){return e}),a(e,function(e){return e.path.map(function(e){return String(e).replace("-","--")}).join("-")})}function g(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}c.prototype.initialize=function(){this.traverse=f(!0),this.descend=f()},c.prototype.keys=Object.keys,c.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),n=this._fns[t];if(!n)throw new Error("couldn't resolve key: "+t);return n.bind(this)},c.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},c.prototype._fns={"member-child-identifier":function(e,t){var n=e.expression.value,r=t.value;if(r instanceof Object&&n in r)return[{value:r[n],path:t.path.concat(n)}]},"member-descendant-identifier":h(function(e,t,n){return e==n}),"subscript-child-numeric_literal":p(function(e,t,n){return e===n}),"member-child-numeric_literal":p(function(e,t,n){return String(e)===String(n)}),"subscript-descendant-numeric_literal":h(function(e,t,n){return e===n}),"member-child-wildcard":p(function(){return!0}),"member-descendant-wildcard":h(function(){return!0}),"subscript-descendant-wildcard":h(function(){return!0}),"subscript-child-wildcard":p(function(){return!0}),"subscript-child-slice":function(e,t){if(d(t.value)){var n=e.expression.value.split(":").map(g),r=t.value.map(function(e,n){return{value:e,path:t.path.concat(n)}});return i.apply(null,[r].concat(n))}},"subscript-child-union":function(e,t){var n=[];return e.expression.value.forEach(function(e){var r={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(r)(r,t);i&&(n=n.concat(i))},this),v(n)},"subscript-descendant-union":function(t,n,r){var i=e(".."),o=this,a=[];return i.nodes(n,"$..*").slice(1).forEach(function(e){a.length>=r||t.expression.value.forEach(function(t){var n={operation:"subscript",scope:"child",expression:t.expression},r=o.resolve(n)(n,e);a=a.concat(r)})}),v(a)},"subscript-child-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),o=r.parse(i).body[0].expression;return this.descend(t,null,function(e,t){return m(o,{"@":t})},n)},"subscript-descendant-filter_expression":function(e,t,n){var i=e.expression.value.slice(2,-1),o=r.parse(i).body[0].expression;return this.traverse(t,null,function(e,t){return m(o,{"@":t})},n)},"subscript-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$..value")}},c.prototype._fns["subscript-child-string_literal"]=c.prototype._fns["member-child-identifier"],c.prototype._fns["member-descendant-numeric_literal"]=c.prototype._fns["subscript-descendant-string_literal"]=c.prototype._fns["member-descendant-identifier"],t.exports=c},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,n){var r=e("assert"),i=e("./dict"),o=e("./parser"),a=e("./handlers"),s=function(){this.initialize.apply(this,arguments)};function l(e){return"[object String]"==Object.prototype.toString.call(e)}s.prototype.initialize=function(){this.parser=new o,this.handlers=new a},s.prototype.parse=function(e){return r.ok(l(e),"we need a path"),this.parser.parse(e)},s.prototype.parent=function(e,t){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var n=this.nodes(e,t)[0];return n&&this._assert_safe_path_keys(n.path),n.path.pop(),this.value(e,n.path)},s.prototype.apply=function(e,t,n){r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),r.equal(typeof n,"function","fn needs to be function");var i=this.nodes(e,t).sort(function(e,t){return t.path.length-e.path.length});return i.forEach(function(t){this._assert_safe_path_keys(t.path);var r=t.path.pop(),i=this.value(e,this.stringify(t.path)),o=t.value=n.call(e,i[r]);i[r]=o},this),i},s.prototype.value=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,n);this._assert_safe_path_keys(i.path);var o=i.path.slice(-1).shift();this.parent(e,this.stringify(i.path))[o]=n}return this.query(e,this.stringify(t),1).shift()},s.prototype._vivify=function(e,t,n){var i=this;r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path");var o=this.parser.parse(t).map(function(e){return e.expression.value});this._assert_safe_path_keys(o);var a=function(t,n){var r=t.pop(),o=i.value(e,t);o||(a(t.concat(),"string"==typeof r?{}:[]),o=i.value(e,t)),i._assert_safe_key(r),o[r]=n};return a(o,n),this.query(e,t)[0]},s.prototype.query=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(l(t),"we need a path"),this.nodes(e,t,n).map(function(e){return e.value})},s.prototype.paths=function(e,t,n){return r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),this.nodes(e,t,n).map(function(e){return e.path})},s.prototype.nodes=function(e,t,n){if(r.ok(e instanceof Object,"obj needs to be an object"),r.ok(t,"we need a path"),0===n)return[];var i=this.parser.parse(t);this._assert_safe_components(i);var o=this.handlers,a=[{path:["$"],value:e}],s=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach(function(e,t){if(!(s.length>=n)){var r=o.resolve(e),l=[];a.forEach(function(o){if(!(s.length>=n)){var a=r(e,o,n);t==i.length-1?s=s.concat(a||[]):l=l.concat(a||[])}}),a=l}}),n?s.slice(0,n):s):a},s.prototype.stringify=function(e){r.ok(e,"we need a path");var t="$",n={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach(function(e){if("root"!=e.expression.type){var r,i=[e.scope,e.operation].join("-"),o=n[i];if(r="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!o)throw new Error("couldn't find template "+i);t+=o.replace(/{{value}}/,r)}}),t},s.prototype._normalize=function(e){if(r.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach(function(e,n){if("$"!=e||0!==n)if("string"==typeof e&&e.match("^"+i.identifier+"$"))this._assert_safe_key(e),t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var r="number"==typeof e?"numeric_literal":"string_literal";"string_literal"===r&&this._assert_safe_key(e),t.push({operation:"subscript",scope:"child",expression:{value:e,type:r}})}},this),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},s.prototype._assert_safe_key=function(e){if(function(e){return"__proto__"===e||"prototype"===e||"constructor"===e}(e))throw new Error("Unsafe key in JSONPath: "+e)},s.prototype._assert_safe_path_keys=function(e){Array.isArray(e)&&e.forEach(function(e){"$"!==e&&"string"==typeof e&&this._assert_safe_key(e)},this)},s.prototype._assert_safe_components=function(e){var t=this;if(Array.isArray(e)){var n=function(e){e&&("identifier"!==e.type&&"string_literal"!==e.type?"union"===e.type&&Array.isArray(e.value)&&e.value.forEach(function(e){e&&e.expression&&n(e.expression)}):t._assert_safe_key(e.value))};e.forEach(function(e){e&&e.expression&&n(e.expression)})}},s.Handlers=a,s.Parser=o;var c=new s;c.JSONPath=s,t.exports=c},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,n){var r=e("./grammar"),i=e("../generated/parser"),o=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};o.grammar=r,t.exports=o},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,n){function r(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,n,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof n)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var o=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?r(i):1,n=n<0?o+n:n,t=r(0===(t=t<0?o+t:t)?0:t||(i>0?0:o-1)),n=r(0===n?0:n||(i>0?o:-1)),t=i>0?Math.max(0,t):Math.min(o,t),n=i>0?Math.min(n,o):Math.max(-1,n),i>0&&n<=t)return[];if(i<0&&t<=n)return[];for(var a=[],s=t;s!=n&&!(i<0&&s<=n||i>0&&s>=n);s+=i)a.push(e[s]);return a}},{}],8:[function(e,t,n){var r=e("util/"),i=Array.prototype.slice,o=Object.prototype.hasOwnProperty,a=t.exports=u;function s(e,t){return r.isUndefined(t)?""+t:r.isNumber(t)&&!isFinite(t)||r.isFunction(t)||r.isRegExp(t)?t.toString():t}function l(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function c(e,t,n,r,i){throw new a.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function u(e,t){e||c(e,!0,t,"==",a.ok)}function d(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(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}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:r.isObject(e)||r.isObject(t)?function(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(r.isPrimitive(e)||r.isPrimitive(t))return e===t;var n=f(e),o=f(t);if(n&&!o||!n&&o)return!1;if(n)return d(e=i.call(e),t=i.call(t));var a,s,l=m(e),c=m(t);if(l.length!=c.length)return!1;for(l.sort(),c.sort(),s=l.length-1;s>=0;s--)if(l[s]!=c[s])return!1;for(s=l.length-1;s>=0;s--)if(!d(e[a=l[s]],t[a]))return!1;return!0}(e,t):e==t}function f(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function p(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function h(e,t,n,i){var o;r.isString(n)&&(i=n,n=null);try{t()}catch(e){o=e}if(i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!o&&c(o,n,"Missing expected exception"+i),!e&&p(o,n)&&c(o,n,"Got unwanted exception"+i),e&&o&&n&&!p(o,n)||!e&&o)throw o}a.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return l(JSON.stringify(e.actual,s),128)+" "+e.operator+" "+l(JSON.stringify(e.expected,s),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||c;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},r.inherits(a.AssertionError,Error),a.fail=c,a.ok=u,a.equal=function(e,t,n){e!=t&&c(e,t,n,"==",a.equal)},a.notEqual=function(e,t,n){e==t&&c(e,t,n,"!=",a.notEqual)},a.deepEqual=function(e,t,n){d(e,t)||c(e,t,n,"deepEqual",a.deepEqual)},a.notDeepEqual=function(e,t,n){d(e,t)&&c(e,t,n,"notDeepEqual",a.notDeepEqual)},a.strictEqual=function(e,t,n){e!==t&&c(e,t,n,"===",a.strictEqual)},a.notStrictEqual=function(e,t,n){e===t&&c(e,t,n,"!==",a.notStrictEqual)},a.throws=function(e,t,n){h.apply(this,[!0].concat(i.call(arguments)))},a.doesNotThrow=function(e,t){h.apply(this,[!1].concat(i.call(arguments)))},a.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}},{"util/":11}],9:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],10:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,t,n){(function(t,i){var o=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])g(s)||!E(s)?a+=" "+s:a+=" "+l(s);return a},n.deprecate=function(e,o){if(w(i.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?r.trace(o):r.error(o),a=!0}return e.apply(this,arguments)}};var a,s={};function l(e,t){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),d(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function d(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=d(e,i,r)),i}var o=f(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(t);if(0===a.length){if(C(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var c,u="",v=!1,g=["{","}"];return m(t)&&(v=!0,g=["[","]"]),C(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(u=" "+RegExp.prototype.toString.call(t)),S(t)&&(u=" "+Date.prototype.toUTCString.call(t)),k(t)&&(u=" "+p(t)),0!==a.length||v&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}(e,t,r,s,a):a.map(function(n){return h(e,t,r,s,n,v)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,g)):g[0]+u+g[1]}function f(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function x(e){return E(e)&&"[object RegExp]"===_(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===_(e)}function k(e){return E(e)&&("[object Error]"===_(e)||e instanceof Error)}function C(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(w(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var i=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);r.error("%s %d: %s",e,i,t)}}else s[e]=function(){};return s[e]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=m,n.isBoolean=v,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=b,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=w,n.isRegExp=x,n.isObject=E,n.isDate=S,n.isError=k,n.isFunction=C,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){r.log("%s - %s",function(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,n){},{}],13:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,i="/"===a.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"))||"."},n.normalize=function(e){var o=n.isAbsolute(e),a="/"===i(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,u=[],d=!1,f=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!d){var e=l(p);d=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}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];u.push(new m(e,t)),1!==u.length||d||l(h)},m.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=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,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}},{}],15:[function(e,t,n){var r=e("escodegen").generate;function i(e){return"constructor"===e||"__proto__"===e}t.exports=function(e,t,n){n||(n={});var o=!n.allowAccessToMethodsOnFunctions;t||(t={});var a={},s=function e(n,s){if("Literal"===n.type)return n.value;if("UnaryExpression"===n.type){var l=e(n.argument,s);return"+"===n.operator?+l:"-"===n.operator?-l:"~"===n.operator?~l:"!"===n.operator?!l:a}if("ArrayExpression"===n.type){for(var c=[],u=0,d=n.elements.length;u<d;u++){if((b=e(n.elements[u],s))===a)return a;c.push(b)}return c}if("ObjectExpression"===n.type){var f={};for(u=0;u<n.properties.length;u++){var p=null===(w=n.properties[u]).value?w.value:e(w.value,s);if(p===a)return a;f[w.key.value||w.key.name]=p}return f}if("BinaryExpression"===n.type||"LogicalExpression"===n.type){var h,m=n.operator;return"&&"===m?(d=e(n.left))===a?a:d?(h=e(n.right))===a?a:h:d:"||"===m?(d=e(n.left))===a?a:d||((h=e(n.right))===a?a:h):(d=e(n.left,s))===a||(h=e(n.right,s))===a?a:"=="===m?d==h:"==="===m?d===h:"!="===m?d!=h:"!=="===m?d!==h:"+"===m?d+h:"-"===m?d-h:"*"===m?d*h:"/"===m?d/h:"%"===m?d%h:"<"===m?d<h:"<="===m?d<=h:">"===m?d>h:">="===m?d>=h:"|"===m?d|h:"&"===m?d&h:"^"===m?d^h:a}if("Identifier"===n.type)return{}.hasOwnProperty.call(t,n.name)?t[n.name]:a;if("ThisExpression"===n.type)return{}.hasOwnProperty.call(t,"this")?t.this:a;if("CallExpression"===n.type){var v=e(n.callee,s);if(v===a)return a;if("function"!=typeof v)return a;var g=n.callee.object?e(n.callee.object,s):a;g===a&&(g=null);var y=[];for(u=0,d=n.arguments.length;u<d;u++){var b;if((b=e(n.arguments[u],s))===a)return a;y.push(b)}if(s)return;return v.apply(g,y)}var w;if("MemberExpression"===n.type)return(f=e(n.object,s))===a||"function"==typeof f&&o?a:"Identifier"!==n.property.type||n.computed?null===(w=e(n.property,s))||w===a||i(w)?a:f[w]:i(n.property.name)?a:f[n.property.name];if("ConditionalExpression"===n.type)return(l=e(n.test,s))===a?a:l?e(n.consequent):e(n.alternate,s);if("ExpressionStatement"===n.type)return(l=e(n.expression,s))===a?a:l;if("ReturnStatement"===n.type)return e(n.argument,s);if("FunctionExpression"===n.type){var x=n.body.body,E={};for(Object.keys(t).forEach(function(e){E[e]=t[e]}),u=0;u<n.params.length;u++){var S=n.params[u];if("Identifier"!=S.type)return a;t[S.name]=null}for(var u in x)if(e(x[u],!0)===a)return a;t=E;var k=Object.keys(t),C=k.map(function(e){return t[e]});return Function(k.join(", "),"return "+r(n)).apply(null,C)}if("TemplateLiteral"===n.type){var _="";for(u=0;u<n.expressions.length;u++)_+=e(n.quasis[u],s),_+=e(n.expressions[u],s);return _+e(n.quasis[u],s)}if("TaggedTemplateExpression"===n.type){var T=e(n.tag,s),P=n.quasi,I=P.quasis.map(e),A=P.expressions.map(e);return T.apply(null,[I].concat(A))}return"TemplateElement"===n.type?n.value.cooked:a}(e);return s===a?void 0:s}},{escodegen:12}],jsonpath:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")},9394(e,t,n){"use strict";var r=n(5944),i=n(8726);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},9411(e,t,n){"use strict";var r=n(7734)(),i=n(7375),o=r&&i("%Object.defineProperty%",!0),a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(4553);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},9460(e,t,n){"use strict";var r=n(6989),i=n(7277),o=n(7858),a=n(3110);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1173),t=n(8932);let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var i=n(465);function o(e){const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.stopPropagation(),e.currentTarget.click())}function a(...e){return e.filter(e=>"string"==typeof e).reduce((e,t)=>e.concat(t.split(" ")),[]).map(e=>e.trim()).filter(e=>!!e).join(" ")}let s;function l(e,t,n,r,i,o=!0){const a=r?1:-1,s=e[n=Math.max(0,Math.min(e.length-1,n))];if(t===n)return s;if(i?i(s):u(s))return s;if(n+a>=e.length){if(!o)return s;n=0}else if(n+a<0){if(!o)return s;n=e.length-1}else n+=a;return l(e,t,n,r,i,o)}function c(e,t){if(!u(e))return[];const n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,e=>u(e,!1)?t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_REJECT),r=[];let i=n.nextNode();for(;i;)r.push(i),i=n.nextNode();return r}function u(e,t=!0){if(e.checkVisibility)return e.checkVisibility({visibilityProperty:!0});const n=getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility&&(!t||!e.parentElement||u(e.parentElement,t))}function d(e){return f(e)&&u(e)}function f(e){return!function(e){return!(!e||!e.hasAttribute("disabled"))}(e)&&!!(e.hasAttribute("tabindex")||"A"===e.tagName&&(e.hasAttribute("href")||e.hasAttributeNS("xlink","href"))||"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"IFRAME"===e.tagName||"EMBED"===e.tagName||"OBJECT"===e.tagName||"DIV"===e.tagName&&e.hasAttribute("contenteditable")&&"false"!==e.getAttribute("contenteditable")||("AUDIO"===e.tagName||"VIDEO"===e.tagName)&&e.hasAttribute("controls"))}function p(e){return!!f(e)&&(!e.hasAttribute("tabindex")||parseInt(e.getAttribute("tabindex"))>=0)}var h;let m;var v;let g;var y;(h=s||(s={})).LearnMoreLink="https://makecode.microbit.org/teachertool",h.ExperienceId="code-eval",h.MinAIQuestionLength=10,(v=m||(m={})).AppTitle=lf("Code Evaluation"),v.AppTitleShort=lf("Code Eval"),v.ErrorLoadingChecklistMsg=lf("That wasn't a valid checklist."),v.ConfirmReplaceChecklistMsg=lf("This will replace your current checklist. Continue?"),v.UntitledProject=lf("Untitled Project"),v.UntitledChecklist=lf("Untitled Checklist"),v.NewChecklistTitle=lf("New Checklist"),v.NewChecklist=lf("New Checklist"),v.ImportChecklist=lf("Import Checklist"),v.ExportChecklist=lf("Export Checklist"),v.Export=lf("Export"),v.Remove=lf("Remove"),v.Evaluate=lf("Evaluate"),v.Criteria=lf("Criteria"),v.Name=lf("Name"),v.ChecklistNamePlaceholder=lf("Enter Checklist Name"),v.AddCriteria=lf("Add Criteria"),v.AskAI=lf("Ask AI"),v.Custom=lf("Custom"),v.CustomPromptPlaceholder=lf("Write your own question here (minimum {0} characters)...",s.MinAIQuestionLength),v.Actions=lf("Actions"),v.RunOnLoad=lf("Evaluate on load"),v.RunOnLoadDescription=lf("Automatically evaluate a project when it is loaded"),v.AddNotes=lf("Add Notes"),v.DragAndDrop=lf("Drag & Drop"),v.ReleaseToUpload=lf("Release to Upload"),v.Browse=lf("Browse"),v.SelectChecklistFile=lf("Select Checklist File"),v.InvalidChecklistFile=lf("Invalid Checklist File"),v.Cancel=lf("Cancel"),v.SelectBlock=lf("Select Block"),v.ValueRequired=lf("Value Required"),v.AddSelected=lf("Add Selected"),v.Continue=lf("Continue"),v.Loading=lf("Loading..."),v.Close=lf("Close"),v.AddToChecklist=lf("Add to Checklist"),v.SelectCriteriaDescription=lf("Select the criteria you'd like to include"),v.Checklist=lf("Checklist"),v.Home=lf("Home"),v.CreateEmptyChecklist=lf("Create Empty Checklist"),v.Other=lf("Other"),v.SignIn=lf("Sign In"),v.ConfirmDeleteCriteriaInstance=lf("Are you sure you want to remove this criteria?"),v.Print=lf("Print"),v.Rename=lf("Rename"),v.RenameChecklist=lf("Rename checklist"),v.PrintChecklist=lf("Print checklist"),v.EvaluateChecklist=lf("Evaluate checklist"),v.UnableToEvaluate=lf("Unable to evaluate"),v.UnableToReachAI=lf("Unable to reach the AI service"),v.UnexpectedError=lf("An unexpected error occurred"),v.Dismiss=lf("Dismiss"),v.QuestionTooShort=lf("Question must be at least {0} characters",s.MinAIQuestionLength),v.EvaluationComplete=lf("Evaluation complete"),v.UnableToEvaluatePartial=lf("Unable to evaluate some criteria"),v.GiveFeedback=lf("Give Feedback"),v.MaxReached=lf("Maximum count reached for this item"),v.ExceedsMaxLength=lf("Exceeds maximum length"),v.MustBeANumber=lf("Must be a number"),v.BelowMin=lf("Below minimum value"),v.ExceedsMax=lf("Exceeds maximum value"),v.InvalidValue=lf("Invalid value"),v.InvalidShareLink=lf("Invalid share link"),v.Privacy=lf("Privacy"),v.TermsOfUse=lf("Terms of Use"),(y=g||(g={})).Loaded="teachertool.loaded",y.HomeLink="teachertool.homelink",y.BrandLink="teachertool.brandlink",y.OrgLink="teachertool.orglink",y.Error="teachertool.error",y.NewChecklist="teachertool.newchecklist",y.ImportChecklistOpen="teachertool.importchecklist.open",y.ImportChecklistInvalidFile="teachertool.importchecklist.invalidfile",y.ImportChecklistSuccess="teachertool.importchecklist.success",y.ImportChecklistClose="teachertool.importchecklist.close",y.ExportChecklist="teachertool.exportchecklist",y.LoadChecklistFromUrl="teachertool.loadchecklistfromurl",y.SingleEvaluate="teachertool.singleevaluate",y.BulkEvaluate="teachertool.bulkevaluate",y.RunOnLoad="teachertool.runonload",y.AddCriteria="teachertool.addcriteria",y.RemoveCriteria="teachertool.removecriteria",y.AddResultNotes="teachertool.addresultnotes",y.UserMenuSignout="teachertool.usermenu.signout",y.UserMenuSignIn="teachertool.usermenu.signin",y.SignedOutPanelSignIn="teachertool.signedoutpanel.signin",y.CriteriaFeedback="teachertool.criteriafeedback",y.Print="teachertool.print",y.UnhandledEvalError="teachertool.evaluateerror",y.FeedbackForm="teachertool.feedbackform",y.ParamErrorMissingMessage="teachertool.paramerrormissingmessage",y.SetEvalResultOutcome="teachertool.setevalresultoutcome",y.SetEvalResultNotes="teachertool.setevalresultnotes",y.LoadProjectFromInput="teachertool.loadproject.frominput",y.LoadProjectFromUrl="teachertool.loadproject.fromurl",y.LoadProjectInvalid="teachertool.loadproject.invalid",y.BlockPickerBlockSelected="teachertool.blockpicker.blockselected",y.BlockPickerOpened="teachertool.blockpicker.opened",y.PrivacyStatementClicked="teachertool.privacystatement.clicked",y.TermsOfUseClicked="teachertool.termsofuse.clicked";const b=Object.assign(s,{Strings:m,Ticks:g});function w(e,t,n=5e3){return{id:r(),type:e,text:t,timeoutMs:n}}function x(){return{name:m.NewChecklistTitle,criteria:[]}}function E(e){return-1!==(null==e?void 0:e.indexOf("makecode"))?e:`https://makecode.com/${e}`}function S(e){const t=e.split(/\$\{([\w\s]+)\}/g),n=[];for(let e=0;e<t.length;e++){const r=t[e];r&&(e%2==0?n.push({type:"plain-text",content:r.trim()}):n.push({type:"param",content:r.toLocaleLowerCase().trim()}))}return n}function k(e){return e.template.replaceAll("${","").replaceAll("}","")}function C(e){return-1!==e.indexOf("_")?pxt.Util.snakeCaseToLowercaseWithSpaces(e):pxt.Util.camelCaseToLowercaseWithSpaces(e)}function _(e){return 0==e.criteria.length?"empty":pxt.Util.sha256(JSON.stringify(e.criteria))}function T(e){return!e||(null==e?void 0:e.length)<=5?"":"..."+e.slice(-5)}const P={toasts:[],evalResults:{},projectMetadata:void 0,catalog:void 0,checklist:x(),activeTab:"home",validatorPlans:void 0,runOnLoad:!1,modalOptions:void 0,toolboxCategories:void 0,blockImageCache:{},catalogOpen:!1,askAiOpen:!1,screenReaderAnnouncement:void 0,userProfile:void 0,projectReloadCounter:0,flags:{testCatalog:!1}};let I,A;const O=new WeakMap,j=new WeakMap,N=new WeakMap,M=new WeakMap,R=new WeakMap;let L={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return j.get(e);if("objectStoreNames"===t)return e.objectStoreNames||N.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return F(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function D(e){return"function"==typeof e?function(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(A||(A=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(B(this),t),F(O.get(this))}:function(...t){return F(e.apply(B(this),t))}:function(t,...n){const r=e.call(B(this),t,...n);return N.set(r,t.sort?t.sort():[t]),F(r)}}(e):(e instanceof IDBTransaction&&function(e){if(j.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});j.set(e,t)}(e),t=e,(I||(I=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,L):e);var t}function F(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(F(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&O.set(t,e)}).catch(()=>{}),R.set(t,e),t}(e);if(M.has(e))return M.get(e);const t=D(e);return t!==e&&(M.set(e,t),R.set(t,e)),t}const B=e=>R.get(e),U=["get","getKey","getAll","getAllKeys","count"],z=["put","add","delete","clear"],V=new Map;function $(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(V.get(t))return V.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=z.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!U.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return V.set(t,o),o}L=(e=>({...e,get:(t,n,r)=>$(t,n)||e.get(t,n,r),has:(t,n)=>!!$(t,n)||e.has(t,n)}))(L);let H=function(e){return e.runEval="runEval",e.addingMissingCriteria="addingMissingCriteria",e.getProjectTextAsync="getProjectTextAsync",e.getProjectMetaAsync="getProjectMetaAsync",e.downloadTargetConfigAsync="downloadTargetConfigAsync",e.evalMissingCriteria="evalMissingCriteria",e.evalMissingPlan="evalMissingPlan",e.evalParameterUnset="evalParameterUnset",e.evalMissingCatalogParameter="evalMissingCatalogParameter",e.loadCollectionFileFailed="loadCollectionFileFailed",e.unableToGetIndexedDbRecord="unableToGetIndexedDbRecord",e.unableToSetIndexedDbRecord="unableToSetIndexedDbRecord",e.unableToDeleteIndexedDbRecord="unableToDeleteIndexedDbRecord",e.unableToLoadCriteriaInstance="unableToLoadCriteriaInstance",e.unableToExportChecklist="unableToExportChecklist",e.unableToReadChecklistFile="unableToReadChecklistFile",e.localStorageReadError="localStorageReadError",e.localStorageWriteError="localStorageWriteError",e.missingCriteriaInstance="missingCriteriaInstance",e.validatorPlansNotFound="validatorPlansNotFound",e.fetchRequestFailed="fetchRequestFailed",e.fetchJsonDocAsync="fetchJsonDocAsync",e.missingParameter="missingParameter",e.selectedBlockWithoutOptions="selectedBlockWithoutOptions",e.unrecognizedSystemParameter="unrecognizedSystemParameter",e.invalidValidatorPlan="invalidValidatorPlan",e.askAIQuestion="askAIQuestion",e.missingTag="missingTag",e.noCatalogCriteria="noCatalogCriteria",e.criteriaInstanceNotFound="criteriaInstanceNotFound",e.signInFailed="signInFailed",e.loginApiError="loginApiError",e.authCheckFailed="authCheckFailed",e.unrecognizedParameterType="unrecognizedParameterType",e.invalidParameterValue="invalidParameterValue",e.invalidPremadeChecklist="invalidPremadeChecklist",e}({});var q=n(3705);const W=()=>{const e=new Date;return`[${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}]`},G=(e,t,n={})=>{let r={...n};t&&("object"==typeof t?(r={...r,...t},["message","stack","name"].forEach(e=>{t[e]&&(r[e]=t[e])})):r.message=t),pxt.tickEvent(g.Error,{...r,errorCode:e}),q.error(W(),e,r)},X=(e,t)=>{(pxt.BrowserUtils.isLocalHost()||pxt.options.debug)&&q.log(W(),e,t)},Y="teachertool",K=[Y,"runOnLoad"].join("/"),Q=[Y,"lastActiveChecklist"].join("/"),J=[Y,"splitPosition"].join("/"),Z=[Y,"expandedCatalogTags"].join("/"),ee=[Y,"blockAsText"].join("/");function te(e,t){return localStorage.getItem(e)||t}function ne(e,t){localStorage.setItem(e,t)}const re="checklists";class ie{constructor(){this.db=void 0}async initializeAsync(){this.db||(this.db=await function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=F(a);return r&&a.addEventListener("upgradeneeded",e=>{r(F(a.result),e.oldVersion,e.newVersion,F(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}("makecode-project-insights",2,{upgrade(e){e.createObjectStore(re,{keyPath:"name"})}}))}async getAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{return await this.db.get(e,t)}catch(e){G(H.unableToGetIndexedDbRecord,e)}}async setAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{await this.db.put(e,t)}catch(e){G(H.unableToSetIndexedDbRecord,e)}}async deleteAsync(e,t){if(!this.db)throw new Error("IndexedDb not initialized.");try{await this.db.delete(e,t)}catch(e){G(H.unableToDeleteIndexedDbRecord,e)}}getChecklist(e){return this.getAsync(re,e)}saveChecklist(e){return this.setAsync(re,e)}deleteChecklist(e){return this.deleteAsync(re,e)}}const oe=(async()=>{const e=new ie;return await e.initializeAsync(),e})();function ae(e){return[ee,e].join("/")}function se(){try{return"true"===te(K,"false")}catch(e){return G(H.localStorageReadError,e),!1}}function le(){try{var e;return null!==(e=te(Q))&&void 0!==e?e:""}catch(e){return G(H.localStorageReadError,e),""}}function ce(e){try{ne(Q,e)}catch(e){G(H.localStorageWriteError,e)}}function ue(){try{const e=te(Z);return e?JSON.parse(e):void 0}catch(e){return void G(H.localStorageReadError,e)}}function de(e){try{ne(Z,JSON.stringify(e))}catch(e){G(H.localStorageWriteError,e)}}function fe(e){let t=ue();t||(t=[]),t.push(e),de(t)}function pe(e,t){switch(t.type){case"SHOW_TOAST":return e.toasts.find(e=>e.id===t.toast.id)?e:{...e,toasts:[...e.toasts,t.toast]};case"DISMISS_TOAST":{const n=e.toasts.filter(e=>e.id!==t.toastId);return{...e,toasts:n}}case"SET_PROJECT_METADATA":return{...e,projectMetadata:t.metadata,projectReloadCounter:t.force?e.projectReloadCounter+1:e.projectReloadCounter};case"SET_EVAL_RESULT":return{...e,evalResults:{...e.evalResults,[t.criteriaInstanceId]:t.result}};case"SET_EVAL_RESULTS_BATCH":return{...e,evalResults:t.criteriaResults};case"CLEAR_ALL_EVAL_RESULT_NOTES":{const t={...e.evalResults};for(const e of Object.keys(t))t[e].notes="";return{...e,evalResults:t}}case"CLEAR_EVAL_RESULT":{const n={...e.evalResults};return delete n[t.criteriaInstanceId],{...e,evalResults:n}}case"CLEAR_ALL_EVAL_RESULTS":return{...e,evalResults:{}};case"SET_CATALOG":return{...e,catalog:t.catalog};case"SET_CATALOG_OPEN":return{...e,catalogOpen:t.open};case"SET_ASK_AI_OPEN":return{...e,askAiOpen:t.open};case"SET_CHECKLIST":return async function(e,t){const n=e&&t&&(null==e?void 0:e.name)!==t.name,r=e&&!t;t&&await async function(e){await async function(e){const t=await oe;await t.saveChecklist(e)}(e),ce(e.name)}(t),(n||r)&&await async function(e){await async function(e){const t=await oe;await t.deleteChecklist(e)}(e),le()===e&&ce("")}(e.name)}(e.checklist,t.checklist),{...e,checklist:t.checklist};case"SHOW_MODAL":return{...e,modalOptions:t.modalOptions};case"HIDE_MODAL":return{...e,modalOptions:void 0};case"SET_VALIDATOR_PLANS":return{...e,validatorPlans:t.plans};case"SET_TARGET_CONFIG":return{...e,targetConfig:t.config};case"SET_ACTIVE_TAB":return{...e,activeTab:t.tabName};case"SET_RUN_ON_LOAD":return{...e,runOnLoad:t.runOnLoad};case"SET_TOOLBOX_CATEGORIES":return{...e,toolboxCategories:t.categories};case"SET_BLOCK_IMAGE_URI":{const n={...e.blockImageCache};return n[t.blockId]=t.imageUri,{...e,blockImageCache:n}}case"SET_SCREEN_READER_ANNOUNCEMENT":return{...e,screenReaderAnnouncement:t.announcement};case"SET_USER_PROFILE":return{...e,userProfile:t.profile};case"SET_USER_FEEDBACK":{const n={...e.checklist},r=n.criteria.find(e=>e.instanceId===t.criteriaInstanceId);return r&&(r.userFeedback=t.userFeedback),{...e,checklist:n}}}}var he=n(6362),me=n.n(he);const ve=window.location.href,ge=!!/testcatalog(?:[:=])1/.test(ve)||!!/tc(?:[:=])1/.test(ve);let ye,be,we;const xe=new Promise(e=>{we=()=>e(!0)}),Ee=()=>(me()(ye&&be,"AppStateContext not ready"),{state:ye,dispatch:be}),Se=(0,e.createContext)({state:void 0,dispatch:void 0});function ke(t){const[n,r]=(0,e.useReducer)(pe,{...P,runOnLoad:se(),flags:{...P.flags,testCatalog:ge}});return(0,e.useEffect)(()=>{ye=n,be=r,we()},[n,r]),(0,i.jsx)(Se.Provider,{value:{state:n,dispatch:r},children:t.children})}const Ce=e=>({type:"SHOW_TOAST",toast:e}),_e=e=>({type:"DISMISS_TOAST",toastId:e}),Te=(e,t)=>({type:"SET_PROJECT_METADATA",metadata:e,force:t}),Pe=e=>({type:"CLEAR_EVAL_RESULT",criteriaInstanceId:e}),Ie=e=>({type:"SET_USER_PROFILE",profile:e});async function Ae(e){try{const t=await fetch(e,{cache:"no-cache"});if(t.ok)return await t.json();throw new Error("Unable to fetch the json file")}catch(e){G(H.fetchJsonDocAsync,e)}}function Oe(e){const t=e.split("/");return t.splice(t.length-1,0,"test"),t.join("/")}async function je(e,t){const{state:n}=Ee(),r=n.flags.testCatalog?e.map(Oe).concat(e):e;let i=[];for(const e of r)try{const n=await fetch(e,{cache:"no-cache"});if(n.ok){var o;const e=await n.json();i=i.concat(null!==(o=e[t])&&void 0!==o?o:[])}}catch(n){G(H.loadCollectionFileFailed,n,{collection:t,file:e});continue}return i}const Ne={header:"HeaderBar_header__pBql2","left-menu":"HeaderBar_left-menu__phGxx","right-menu":"HeaderBar_right-menu__o24ph",org:"HeaderBar_org__2wCvh",logo:"HeaderBar_logo__ybst2","organization-name":"HeaderBar_organization-name__4cFp0",brand:"HeaderBar_brand__w4YPa","brand-text":"HeaderBar_brand-text__v1561","brand-text-short":"HeaderBar_brand-text-short__Zygks","centered-panel":"HeaderBar_centered-panel__RgeGl","app-title":"HeaderBar_app-title__Iv1Zf","user-menu":"HeaderBar_user-menu__ELItm","sign-in-button":"HeaderBar_sign-in-button__56EOo",avatar:"HeaderBar_avatar__Sj5JF","feedback-btn":"HeaderBar_feedback-btn__IF+k2"},Me=e=>{const t=Le(e);return(0,i.jsx)("button",{...t,children:(0,i.jsx)(Re,{...e})})},Re=e=>{const{label:t,labelClassName:n,leftIcon:r,rightIcon:o,children:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(r||o||t)&&(0,i.jsxs)("span",{className:"common-button-flex",children:[r&&(0,i.jsx)("i",{className:r,"aria-hidden":!0}),(0,i.jsx)("span",{className:a("common-button-label",n),children:t}),o&&(0,i.jsx)("i",{className:"right "+o,"aria-hidden":!0})]}),s]})};function Le(e){const{onClick:t,onClickEvent:n,onRightClick:r,onKeydown:i,onBlur:a,onFocus:s,onMouseDown:l,buttonRef:c,target:u,href:d,hardDisabled:f}=e;let{disabled:p}=e;return p=p||f,{...De(e),ref:c,onClick:p?void 0:e=>{n&&n(e),t&&t(),d&&window.open(d,u||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onContextMenu:e=>{r&&(r(),e.stopPropagation(),e.preventDefault())},onKeyDown:i||o,onBlur:a,onFocus:s,onMouseDown:l}}function De(e){const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:o,ariaDescribedBy:s,ariaControls:l,ariaExpanded:c,ariaHasPopup:u,ariaPosInSet:d,ariaSetSize:f,ariaSelected:p,ariaPressed:h,role:m,title:v,type:g,hardDisabled:y,tabIndex:b,autoFocus:w}=e;let{disabled:x}=e;return x=x||y,{id:t,className:a("common-button",n,x&&"disabled"),style:r,title:v,type:g,role:m||"button",tabIndex:b||(x?-1:0),autoFocus:w,disabled:y,"aria-label":i,"aria-hidden":o,"aria-controls":l,"aria-expanded":c,"aria-haspopup":u,"aria-posinset":d,"aria-setsize":f,"aria-describedby":s,"aria-selected":p,"aria-pressed":h}}const Fe=e=>{const{id:t,className:n,role:r,ariaHidden:o,ariaLabel:a,ariaLabelledby:s,ariaDescribedBy:c,childTabStopId:u,children:d,focusSelectsItem:f,onItemReceivedFocus:p,useUpAndDownArrowKeys:h,title:m,onClose:v}=e;let g,y;const b=e=>"true"===e.getAttribute("data-isfocusable")&&null!==e.offsetParent;return(0,i.jsx)("div",{id:t,className:n,role:r,tabIndex:u?void 0:0,onKeyDown:e=>{var t;if(null===(t=g)||void 0===t||!t.length)return;const n=document.activeElement,r=g.indexOf(n),i=e=>{e.click?e.click():e.dispatchEvent(new Event("click"))},o=e=>{e.focus(),p&&p(e),f&&i(e)};if(-1===r&&n!==y)return;let a,s;h?(a="ArrowUp",s="ArrowDown"):pxt.Util.isUserLanguageRtl()?(a="ArrowRight",s="ArrowLeft"):(a="ArrowLeft",s="ArrowRight"),f||"Enter"!==e.key&&" "!==e.key?e.key===s?(r===g.length-1||n===y?o(l(g,r,0,!0,b)):o(l(g,r,r+1,!0,b)),e.preventDefault(),e.stopPropagation()):e.key===a?(o(l(g,r,0===r||n===y?g.length-1:r-1,!1,b)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(l(g,r,0,!0,b)),e.preventDefault(),e.stopPropagation()):"End"===e.key?(o(l(g,r,g.length-1,!0,b)),e.preventDefault(),e.stopPropagation()):"Escape"===e.key&&v&&(v(),e.preventDefault(),e.stopPropagation()):(e.preventDefault(),e.stopPropagation(),i(n))},ref:e=>{if(!e||y)return;y=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');g=[];for(const e of t.values())g.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(u){const e=y.querySelector("#"+u);e&&e.setAttribute("tabindex","0")}},"aria-hidden":o,"aria-label":a,"aria-labelledby":s,"aria-describedby":c,title:m,children:d})},Be=e=>(0,i.jsx)(Fe,{...e,role:"menubar",className:a("common-menubar",e.className)}),Ue=e.createContext(null),ze=e.createContext(null),Ve=({children:t})=>{const[n,r]=e.useReducer($e,{regions:[]});return(0,i.jsx)(Ue.Provider,{value:n,children:(0,i.jsx)(ze.Provider,{value:r,children:t})})};function $e(e,t){let n=e.regions.slice();switch(t.type){case"ADD_REGION":const r={id:t.id,enabled:t.enabled,order:t.order,onEscape:t.onEscape},i=n.findIndex(e=>e.id===t.id);-1!==i?n.splice(i,1,r):n.push(r);break;case"REMOVE_REGION":const o=e.regions.findIndex(e=>e.id===t.id);-1!==o&&n.splice(o,1)}return{regions:n}}const He=e=>(0,i.jsx)(Ve,{children:(0,i.jsx)(qe,{...e})}),qe=t=>{const{children:n,id:r,className:i,onEscape:o,arrowKeyNavigation:s,dontStealFocus:u,includeOutsideTabOrder:h,dontRestoreFocus:m,dontTrapFocus:v,focusFirstItem:g,tagName:y,role:b,ariaLabelledby:w,ariaLabel:x,ariaHidden:E,ariaModal:S}=t,k=e.useRef(null),C=e.useRef(document.activeElement),[_,T]=e.useState(!1),P=e.useRef(null),{regions:I}=e.useContext(Ue);e.useEffect(()=>()=>{!m&&C.current&&function(e){for(;e&&!d(e);){const t=e.parentElement;if(!t)break;e=t}e.focus()}(C.current)},[]);const A=e.useCallback(()=>{let e=h?c(k.current,f):function(e){return c(e,p)}(k.current);if(I.length){const n={};for(const e of I){var t;const r=null===(t=k.current)||void 0===t?void 0:t.querySelector(`[data-focus-trap-region="${e.id}"]`);r&&(n[e.id]=r)}for(const t of I){const r=n[t.id];!t.enabled&&r&&(e=e.filter(e=>!r.contains(e)))}const r=e.slice();e.sort((e,t)=>{const i=I.find(t=>{var r;return t.enabled&&(null===(r=n[t.id])||void 0===r?void 0:r.contains(e))}),o=I.find(e=>{var r;return e.enabled&&(null===(r=n[e.id])||void 0===r?void 0:r.contains(t))});return(null==i?void 0:i.order)===(null==o?void 0:o.order)?r.indexOf(e)-r.indexOf(t):i?o?i.order-o.order:-1:1})}return e},[I,h]),O=e.useCallback(e=>{if(!e)return;k.current=e;const t=A();u||_||e.contains(document.activeElement)||!t.length||(k.current.focus(),g&&l(t,-1,0,!0).focus(),T(!0))},[A,u,_,g]),j=e.useCallback(e=>{if(!k.current)return;const t=(t,n)=>{const r=A();if(!r.length)return;let i,o=r.indexOf(e.target);o<0&&(o=r.indexOf(P.current)),i=t?n?l(r,o,r.length-1,t):o===r.length-1?l(r,o,0,t):l(r,o,o+1,t):l(r,o,n?0:0===o?r.length-1:Math.max(o-1,0),t),P.current=i,i.focus(),e.preventDefault(),e.stopPropagation()};if("Escape"===e.key){let t=!1;if(I.length)for(const e of I){var n;if(!e.onEscape)continue;const r=null===(n=k.current)||void 0===n?void 0:n.querySelector(`[data-focus-trap-region="${e.id}"]`);if(null!=r&&r.contains(document.activeElement)){t=!0,e.onEscape();break}}t||o(),e.preventDefault(),e.stopPropagation()}else"Tab"===e.key?v?o():e.shiftKey?t(!1,!1):t(!0,!1):s&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},[A,o,s,I,v]);return e.createElement(y||"div",{id:r,className:a("common-focus-trap",i),ref:O,onKeyDown:j,role:b,tabIndex:-1,"aria-labelledby":w,"aria-label":x,"aria-hidden":E,"aria-modal":S},n)},We=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:s,role:l,isChecked:c,onChange:u,label:d,style:f,tabIndex:p}=e;return(0,i.jsxs)("div",{className:a("common-checkbox",n,"toggle"===f&&"toggle"),children:[(0,i.jsx)("input",{id:t,tabIndex:null!=p?p:0,type:"checkbox",checked:c,onChange:()=>{u(!c)},onKeyDown:o,role:l,"aria-hidden":r,"aria-label":s}),d&&(0,i.jsx)("label",{htmlFor:t,children:d})]})},Ge=e=>{const{isChecked:t}=e;return(0,i.jsx)("span",{className:a("common-checkbox-icon",t&&"checked"),children:t&&(0,i.jsx)("i",{className:"fas fa-check"})})},Xe=t=>{const{id:n,className:r,ariaHidden:o,ariaLabel:s,role:l,items:c,label:u,title:d,icon:f,showChevron:p,tabIndex:h,disabled:m,keepOpenOnCheckboxChange:v}=t,[g,y]=e.useState(!1),b=e.useRef(!1);let w,x;e.useEffect(()=>{if(g&&w&&b.current){const e=w.querySelector("[role=menu]");if(!e)return;const t=e.querySelectorAll("[role=menuitem], [role=menuitemcheckbox], [role=menuitemradio]");for(const e of t){const t=e;if(null!==t.offsetParent){t.focus();break}}}},[g]);const E=()=>{y(!1),x&&x.focus()},S=a("common-menu-dropdown",r),k=n+"-menu",C=function(e){const t=[];let n={items:[]};for(const r of e)"separator"===r.role?(n.className=r.className,n.items.length>0&&(t.push(n),n={items:[]})):n.items.push(r);return n.items.length>0&&t.push(n),t}(c);return(0,i.jsxs)("div",{className:S,ref:e=>{e&&(w=e)},onBlur:e=>{w&&g&&!w.contains(e.relatedTarget)&&y(!1)},children:[(0,i.jsx)(Me,{id:n,label:u,tabIndex:h,buttonRef:e=>{e&&(x=e)},title:d,leftIcon:f,rightIcon:p?g?"fas fa-chevron-up":"fas fa-chevron-down":void 0,role:l||"button",className:a("menu-button",g&&"expanded"),onClick:null,onClickEvent:e=>{b.current=0===e.detail,y(!g)},ariaHasPopup:"true",ariaExpanded:g,ariaControls:g?k:void 0,ariaLabel:s,ariaHidden:o,disabled:m,onKeydown:e=>{"ArrowDown"!==e.key||g||(b.current=!0,y(!0))}}),g&&(0,i.jsx)(He,{role:"menu",className:"common-menu-dropdown-pane",id:k,arrowKeyNavigation:!0,onEscape:()=>{y(!1),x&&x.focus()},includeOutsideTabOrder:!0,dontTrapFocus:!0,dontRestoreFocus:!0,focusFirstItem:!1,ariaLabelledby:n,tagName:"ul",children:C.map((t,n)=>(0,i.jsxs)(e.Fragment,{children:[t.items.map((t,r)=>{const i=`${n}-${r}`;return"menuitem"===t.role?(0,e.createElement)(Ye,{...t,key:i,onClick:()=>{var e;E(),null===(e=t.onClick)||void 0===e||e.call(t)}}):"link"===t.role?(0,e.createElement)(Qe,{...t,key:i,onClick:()=>{var e;E(),null===(e=t.onClick)||void 0===e||e.call(t)}}):(0,e.createElement)(Ke,{...t,key:i,onChange:e=>{var n;v||E(),null===(n=t.onChange)||void 0===n||n.call(t,e)}})}),n<C.length-1&&(0,i.jsx)("li",{role:"separator",className:a("common-menu-dropdown-separator",t.className)})]},n))})]})},Ye=e=>{const t=Le(e);return(0,i.jsx)("li",{...t,className:a("common-menu-dropdown-item",t.className),role:"menuitem",tabIndex:-1,children:(0,i.jsx)(Re,{...e})})},Ke=e=>{const{label:t,isChecked:n,onChange:r,id:s,className:l,ariaLabel:c,ariaHidden:u,ariaDescribedBy:d}=e;return(0,i.jsxs)("li",{role:"menuitemcheckbox",tabIndex:-1,className:a("common-menu-dropdown-item","common-menu-dropdown-checkbox-item",l),"aria-label":c,"aria-hidden":u,"aria-describedby":d,"aria-checked":n?"true":"false",onClick:()=>r(!n),onKeyDown:o,id:s,children:[(0,i.jsx)(Ge,{isChecked:n}),(0,i.jsx)("span",{children:t})]})},Qe=e=>{const{href:t,label:n,id:r,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,onClick:d}=e;return(0,i.jsx)("li",{role:"none",children:(0,i.jsx)("a",{role:"menuitem",className:a("common-menu-dropdown-item","common-menu-dropdown-link-item",s),"aria-label":l,"aria-hidden":c,"aria-describedby":u,id:r,tabIndex:-1,href:t,target:"_blank",rel:"noopener noreferrer",onClick:d,onKeyDown:o,children:n})})};function Je(e){const{dispatch:t}=Ee();t({type:"SHOW_MODAL",modalOptions:e})}function Ze(){const{state:e,dispatch:t}=Ee();void 0!==e.modalOptions?t({type:"HIDE_MODAL"}):X("Trying to hide model when no modal is active")}function et(e){var t;const{state:n,dispatch:r}=Ee(),i=null!=e&&e.id?e:void 0;X("Set user profile",{oldProfile:n.userProfile,incomingProfile:e,finalProfile:i}),r(Ie(i)),i?"sign-in"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)&&Ze():Je({modal:"sign-in"})}function tt(e){const{dispatch:t}=Ee();t(Ce(e))}class nt extends pxt.auth.AuthClient{async onSignedIn(){X("User signed in");const e=await pxt.auth.getUserStateAsync(),t=pxt.auth.firstName(null==e?void 0:e.profile);tt(w("success",t?lf("Welcome {0}",t):lf("Welcome!")))}async onSignedOut(){return X("User signed out"),et(void 0),Promise.resolve()}async onSignInFailed(){return G(H.signInFailed),Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();X("User profile changed",e.profile),null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),et(e.profile)}async onUserPreferencesChanged(e){return X("User preferences changed",e),Promise.resolve()}async onProfileDeleted(e){return X("Profile deleted",e),Promise.resolve()}async onApiError(e){return G(H.loginApiError,"API error"),X("API error details",e),Promise.resolve()}async onStateCleared(){return X("State cleared"),Promise.resolve()}}let rt;async function it(){if(pxt.auth.hasIdentity())return rt||(rt=new Promise(async(e,t)=>{const n=new nt;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)}),rt)}const ot=()=>{var t,n,r,o,s,l,c;const{state:u}=(0,e.useContext)(Se),d=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme;function f(){var e,t,n,r,i;if(u.userProfile)return null!==(e=null!==(t=null===(n=u.userProfile.idp)||void 0===n?void 0:n.pictureUrl)&&void 0!==t?t:null===(r=u.userProfile.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.dataUrl)&&void 0!==e?e:function(e){var t,n,r,i;const o=null==e||null===(t=e.idp)||void 0===t||null===(n=t.picture)||void 0===n?void 0:n.mimeType,a=null==e||null===(r=e.idp)||void 0===r||null===(i=r.picture)||void 0===i?void 0:i.encoded;return o&&a?`data:${o};base64,${a}`:void 0}(u.userProfile)}async function p(){pxt.tickEvent(g.UserMenuSignout),await async function(e){const t=await it();return await(null==t?void 0:t.logoutAsync(e))}(location.hash)}const h=null===(n=pxt)||void 0===n||null===(r=n.appTarget)||void 0===r||null===(o=r.appTheme)||void 0===o?void 0:o.privacyUrl,v=null===(s=pxt)||void 0===s||null===(l=s.appTarget)||void 0===l||null===(c=l.appTheme)||void 0===c?void 0:c.termsOfUseUrl,y=(()=>{const e=[];return h&&e.push({role:"link",id:"privacy",label:m.Privacy,onClick:()=>pxt.tickEvent(g.PrivacyStatementClicked),href:h}),v&&e.push({role:"link",id:"termsOfUse",label:m.TermsOfUse,onClick:()=>pxt.tickEvent(g.TermsOfUseClicked),href:v}),e})();return(0,i.jsxs)(Be,{className:Ne.header,ariaLabel:lf("Header"),role:"navigation",children:[(0,i.jsxs)("div",{className:Ne["left-menu"],children:[(0,i.jsx)("div",{className:Ne.org,onClick:function(){pxt.tickEvent(g.OrgLink),null!=d&&d.organizationUrl&&window.open(d.organizationUrl)},children:d.organizationWideLogo||d.organizationLogo?(0,i.jsxs)(i.Fragment,{children:[d.organizationWideLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"min-sm"),src:d.organizationWideLogo,alt:lf("{0} Logo",d.organization)}),d.organizationLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"max-sm"),src:d.organizationLogo,alt:lf("{0} Logo",d.organization)})]}):(0,i.jsx)("span",{className:Ne["organization-name"],children:d.organization})}),(0,i.jsx)("div",{className:Ne.brand,"aria-label":lf("{0} Logo",d.boardName),role:"menuitem",onClick:function(){pxt.tickEvent(g.BrandLink),null!=d&&d.logoUrl&&window.open(d.logoUrl)},children:d.useTextLogo?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:a(Ne["brand-text"],"min-sm"),children:d.organizationText},"org-name"),(0,i.jsx)("span",{className:a(Ne["brand-text-short"],"max-sm"),children:d.organizationShortText||d.organizationText},"org-name-short")]}):d.logo||d.portraitLogo?(0,i.jsxs)(i.Fragment,{children:[d.logo&&(0,i.jsx)("img",{className:a(Ne.logo,"min-2sm"),src:d.logo,alt:lf("{0} Logo",d.boardName)}),d.portraitLogo&&(0,i.jsx)("img",{className:a(Ne.logo,"max-2sm"),src:d.portraitLogo,alt:lf("{0} Logo",d.boardName)})]}):(0,i.jsx)("span",{className:Ne["brand-text"],children:d.boardName})})]}),(0,i.jsxs)("div",{className:Ne["centered-panel"],children:[(0,i.jsx)("div",{className:a(Ne["app-title"],"min-2md"),children:m.AppTitle}),(0,i.jsx)("div",{className:a(Ne["app-title"],"min-xs max-2md"),children:m.AppTitleShort})]}),(0,i.jsxs)("div",{className:Ne["right-menu"],children:[(0,i.jsx)("div",{children:(0,i.jsx)(Me,{className:Ne["feedback-btn"],labelClassName:"min-sm",leftIcon:"xicon feedback",title:m.GiveFeedback,label:m.GiveFeedback,onClick:()=>{pxt.tickEvent(g.FeedbackForm)},href:"https://aka.ms/teachertool-feedback"})}),(0,i.jsx)(Xe,{id:"settings-dropdown",items:y,icon:"fas fa-cog large",title:lf("Settings")}),function(){const e=[];u.userProfile&&e.push({role:"menuitem",id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:p});const t=f()?(0,i.jsx)("div",{className:Ne.avatar,children:(0,i.jsx)("img",{src:f(),alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=u.userProfile?(0,i.jsx)("span",{children:(0,i.jsx)("div",{className:Ne["avatar-initials"],"aria-hidden":"true",children:pxt.auth.userInitials(u.userProfile)})}):(0,i.jsx)(i.Fragment,{});return(0,i.jsx)("div",{className:Ne["user-menu"],children:u.userProfile?(0,i.jsx)(Xe,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}):(0,i.jsx)(Me,{className:a("inverted",Ne["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:()=>{pxt.tickEvent(g.UserMenuSignIn),Je({modal:"sign-in"})}})})}()]})]})},at={"split-pane":"SplitPane_split-pane__5QjT3",left:"SplitPane_left__aUKhs",right:"SplitPane_right__bep0n","resizing-overlay":"SplitPane_resizing-overlay__eglta","split-vertical":"SplitPane_split-vertical__gKApo",splitter:"SplitPane_splitter__WgA5G","splitter-inner":"SplitPane_splitter-inner__hAcVZ","split-horizontal":"SplitPane_split-horizontal__8n39G"},st=({className:t,split:n,defaultSize:r,startingSize:o,left:s,right:l,leftMinSize:c,rightMinSize:u,onResizeEnd:d})=>{const[f,p]=e.useState(o||r),[h,m]=e.useState(!1),v=e.useRef(null);function g(e){b(e.clientX,e.clientY)}function y(e){e.touches.length>=1&&b(e.touches[0].clientX,e.touches[0].clientY)}function b(e,t){var r;const i=null===(r=v.current)||void 0===r?void 0:r.getBoundingClientRect();if(i){m(!0);const r="vertical"===n?(e-i.left)/i.width*100+"%":(t-i.top)/i.height*100+"%";p(r)}}function w(e){e.preventDefault(),document.addEventListener("mousemove",g),document.addEventListener("mouseup",x),document.addEventListener("touchmove",y),document.addEventListener("touchend",x)}function x(){document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),m(!1)}e.useEffect(()=>{h||null==d||d(f)},[h]);const E={flexBasis:f};return"vertical"===n?(E.minWidth=c,E.maxWidth=`calc(100% - ${u})`):(E.minHeight=c,E.maxHeight=`calc(100% - ${u})`),(0,i.jsxs)("div",{ref:v,className:a(at["split-pane"],at[`split-${n}`],t),children:[(0,i.jsx)("div",{className:at.left,style:E,children:s}),(0,i.jsx)("div",{className:at.splitter,onMouseDown:w,onTouchStart:w,onDoubleClick:function(){p(r),null==d||d(r)},children:(0,i.jsx)("div",{className:at["splitter-inner"]})}),(0,i.jsx)("div",{className:at.right,children:l}),(0,i.jsx)("div",{className:a(at["resizing-overlay"],h?void 0:"hidden")})]})},lt={toolbar:"Toolbar_toolbar__X-piR","toolbar-control-group":"Toolbar_toolbar-control-group__HsuUX","toggle-button":"Toolbar_toggle-button__I9YQc"},ct=Object.assign(({left:e,center:t,right:n,className:r})=>(0,i.jsxs)("div",{className:a(lt.toolbar,"tt-toolbar",r),children:[(0,i.jsx)("div",{className:a(lt.left,"tt-toolbar-left"),children:e}),(0,i.jsx)("div",{className:a(lt.center,"tt-toolbar-center"),children:t}),(0,i.jsx)("div",{className:a(lt.right,"tt-toolbar-right"),children:n})]}),{Button:e=>(0,i.jsx)(Me,{...e,className:a(lt["toolbar-button"],"tt-toolbar-button",e.className),rightIcon:e.icon}),ControlGroup:({children:e,className:t})=>(0,i.jsx)("div",{className:a(lt["toolbar-control-group"],"tt-toolbar-control-group",t),children:e}),MenuDropdown:e=>{const t=(0,i.jsx)("i",{className:"fas fa-ellipsis-v"});return(0,i.jsx)(Xe,{...e,className:a(lt["toolbar-menu-dropdown"],"tt-toolbar-menu-dropdown",e.className),label:t})},Toggle:t=>{const{label:n,title:r,isChecked:o,onToggle:s,className:l}=t,[c,u]=e.useState(o);return(0,i.jsx)(Me,{...t,className:a(lt["toggle-button"],l),title:r,label:n,ariaLabel:n,onClick:()=>{u(!c),s(!c)},rightIcon:c?"fas fa-toggle-on":"fas fa-toggle-off",ariaPressed:c})}});function ut(e){const{state:t,dispatch:n}=Ee();t.activeTab!==e&&n((e=>({type:"SET_ACTIVE_TAB",tabName:e}))(e))}const dt=({children:t,name:n,disabled:r})=>{const{state:o}=(0,e.useContext)(Se),s=a("tt-tabgroup-tab",o.activeTab===n?"tt-tabgroup-tab-active":void 0);return(0,i.jsx)(Me,{className:s,title:n,onClick:()=>{ut(n)},disabled:r,children:t})},ft=({children:e})=>(0,i.jsx)("div",{className:a("TabGroup_tabgroup__I4Tyj","tt-tabgroup"),children:e}),pt=({children:t,name:n})=>{const{state:r}=(0,e.useContext)(Se);return r.activeTab===n?(0,i.jsx)("div",{className:a("TabPanel_tabpanel__cf7Oq","tt-tabpanel"),children:t}):null},ht="HomeScreen_carouselRow__VrI5G",mt="HomeScreen_rowTitle__vi0Bn",vt="HomeScreen_cardContainer__DPPm9",gt="HomeScreen_cardButton__MS1lx",yt="HomeScreen_cardDiv__aK5MF",bt="HomeScreen_cardTitle__NhV5m",wt="HomeScreen_loadingGradient__2Tcfd",xt=e.forwardRef((e,t)=>{const{id:n,className:r,ariaLabel:o,href:s,target:l,children:c,tabIndex:u,title:d}=e,f=a("common-link",r);return(0,i.jsx)("a",{id:n,className:f,ref:t,"aria-label":o,href:s,target:l,rel:"_blank"===l?"noopener noreferrer":"",tabIndex:null!=u?u:0,title:d,children:c})});function Et(e){var t;const{state:n}=Ee();return null===(t=n.catalog)||void 0===t?void 0:t.find(t=>t.id===e)}function St(e,t){return e.checklist.criteria.find(e=>e.instanceId===t)}function kt(e){const t=Et(e.catalogCriteriaId);if(!t)throw new Error("Unrecognized catalog id in criteria instance.");for(const i of null!==(n=e.params)&&void 0!==n?n:[]){var n,r;if(null==t||null===(r=t.params)||void 0===r||!r.find(e=>e.name===i.name))throw new Error("Unrecognized parameter in criteria instance.")}}function Ct(e){if(!e||!e.criteria)return{valid:!1,validCriteria:[],invalidCriteria:[]};const t=[],n=[];for(const r of e.criteria)try{kt(r),t.push(r)}catch(e){G(H.unableToLoadCriteriaInstance,e),n.push(r)}return{valid:0===n.length,validCriteria:t,invalidCriteria:n}}function _t(e){return!!e.projectMetadata}function Tt(e){return e.checklist.name||m.UntitledChecklist}let Pt=function(e){return e[e.Pass=0]="Pass",e[e.Fail=1]="Fail",e[e.CompleteWithNoResult=2]="CompleteWithNoResult",e[e.InProgress=3]="InProgress",e[e.NotStarted=4]="NotStarted",e}({});function It({overwriteExistingEntries:e,checklist:t}){const{state:n,dispatch:r}=Ee();let i={};const o=t||n.checklist;for(const t of o.criteria){const r=t.instanceId;n.evalResults[r]&&!e||(i[r]={result:Pt.NotStarted})}e||(i={...n.evalResults,...i}),r({type:"SET_EVAL_RESULTS_BATCH",criteriaResults:i})}function At(e){const{dispatch:t}=Ee();t((e=>({type:"SET_CHECKLIST",checklist:e}))(e)),It({checklist:e})}async function Ot(e){var t;const{state:n}=Ee(),r=e.name||null!==(t=e.criteria)&&void 0!==t&&t.length?lf("Import '{0}'?",e.name?e.name:m.UntitledChecklist):m.CreateEmptyChecklist;return!(function(e){return!!e.checklist.criteria.length}(n)&&!await async function(e,t){return new Promise(n=>{Je({modal:"confirmation",title:e,message:t,onCancel:()=>n(!1),onContinue:()=>n(!0)})})}(r,m.ConfirmReplaceChecklistMsg)||(At(e),ut("results"),0))}async function jt(e){const t=await Ae(e);if(!t)return void tt(w("error",m.ErrorLoadingChecklistMsg));const{valid:n}=Ct(t);if(!n)return G(H.invalidPremadeChecklist,{checklistUrl:e}),void tt(w("error",m.ErrorLoadingChecklistMsg));pxt.tickEvent(g.LoadChecklistFromUrl,{checklistUrl:e,checklistHash:_(t)}),await Ot(t)}function Nt(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Mt(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Nt(t[n])&&Nt(e[n])&&Object.keys(t[n]).length>0&&Mt(e[n],t[n])})}const Rt={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Lt(){const e="undefined"!=typeof document?document:{};return Mt(e,Rt),e}const Dt={document:Rt,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Ft(){const e="undefined"!=typeof window?window:{};return Mt(e,Dt),e}var Bt=n(3705);function Ut(e,t=0){return setTimeout(e,t)}function zt(){return Date.now()}function Vt(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function $t(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ht(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const r=e[n];if(null!=r&&!$t(r)){const e=Object.keys(Object(r)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,i=e.length;n<i;n+=1){const i=e[n],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(Vt(t[i])&&Vt(r[i])?r[i].__swiper__?t[i]=r[i]:Ht(t[i],r[i]):!Vt(t[i])&&Vt(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:Ht(t[i],r[i])):t[i]=r[i])}}}return t}function qt(e,t,n){e.style.setProperty(t,n)}function Wt({swiper:e,targetPosition:t,side:n}){const r=Ft(),i=-e.translate;let o,a=null;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),d=.5-Math.cos(l*Math.PI)/2;let f=i+d*(t-i);if(c(f,t)&&(f=t),e.wrapperEl.scrollTo({[n]:f}),c(f,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:f})}),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Gt(e,t=""){const n=Ft(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function Xt(e){try{return void Bt.warn(e)}catch(e){}}function Yt(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function Kt(e,t){return Ft().getComputedStyle(e,null).getPropertyValue(t)}function Qt(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Jt(e,t,n){const r=Ft();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Zt(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function en(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let tn,nn,rn;function on(){return tn||(tn=function(){const e=Ft(),t=Lt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),tn}function an(e={}){return nn||(nn=function({userAgent:e}={}){const t=on(),n=Ft(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let p="MacIntel"===r;return!c&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(e)),nn}function sn(){return rn||(rn=function(){const e=Ft(),t=an();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),rn}var ln={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};const cn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},un=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},dn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},fn=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},pn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&fn(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&fn(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&fn(e,r)};var hn={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Kt(r,"padding-left")||0,10)-parseInt(Kt(r,"padding-right")||0,10),n=n-parseInt(Kt(r,"padding-top")||0,10)-parseInt(Kt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:o,wrongRTL:a}=e,s=e.virtual&&n.virtual.enabled,l=s?e.virtual.slides.length:e.slides.length,c=Gt(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:c.length;let d=[];const f=[],p=[];let h=n.slidesOffsetBefore;"function"==typeof h&&(h=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-h-m;let b=n.spaceBetween,w=-h,x=0,E=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b-h-m,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(qt(r,"--swiper-centered-offset-before",""),qt(r,"--swiper-centered-offset-after","")),n.cssMode&&(qt(r,"--swiper-slides-offset-before",`${h}px`),qt(r,"--swiper-slides-offset-after",`${m}px`));const S=n.grid&&n.grid.rows>1&&e.grid;let k;S?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let r=0;r<u;r+=1){k=0;const i=c[r];if(!i||(S&&e.grid.updateSlide(r,i,c),"none"!==Kt(i,"display"))){if(s&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&i&&(n.roundLengths&&(k=Math.floor(k)),i.style[e.getDirectionLabel("width")]=`${k}px`);else if("auto"===n.slidesPerView){C&&(i.style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),o=i.style.transform,a=i.style.webkitTransform;if(o&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)k=e.isHorizontal()?Jt(i,"width",!0):Jt(i,"height",!0);else{const e=t(r,"width"),n=t(r,"padding-left"),o=t(r,"padding-right"),a=t(r,"margin-left"),s=t(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+a+s;else{const{clientWidth:t,offsetWidth:r}=i;k=e+n+o+a+s+(r-t)}}o&&(i.style.transform=o),a&&(i.style.webkitTransform=a),n.roundLengths&&(k=Math.floor(k))}else k=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),i&&(i.style[e.getDirectionLabel("width")]=`${k}px`);i&&(i.swiperSlideSize=k),p.push(k),n.centeredSlides?(w=w+k/2+x/2+b,0===x&&0!==r&&(w=w-y/2-b),0===r&&(w=w-y/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),E%n.slidesPerGroup===0&&d.push(w),f.push(w)):(n.roundLengths&&(w=Math.floor(w)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&d.push(w),f.push(w),w=w+k+b),e.virtualSize+=k+b,x=k,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),S&&e.grid.updateWrapperSize(k,d),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let i=d.length;if(r){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?b:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}const o=[];for(let t=0;t<d.length;t+=1){let a=d[t];n.roundLengths&&(a=Math.floor(a)),r?t<=i&&o.push(a):d[t]<=e.virtualSize-y&&o.push(a)}d=o,Math.floor(e.virtualSize-y)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-y))}if(s&&n.loop){const t=p[0]+b;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==b){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>y?e-y:0;d=d.map(e=>e<=0?-h:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(b||0)}),e-=b,e<y){const t=(y-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){qt(r,"--swiper-centered-offset-before",-d[0]+"px"),qt(r,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==l&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==g&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(s||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(a+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),f=-(a-c),p=f+t.slidesSizesGrid[e],h=f>=0&&f<=t.size-t.slidesSizesGrid[e],m=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),cn(l,m,n.slideVisibleClass),cn(l,h,n.slideFullyVisibleClass),l.progress=i?-u:u,l.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>Gt(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${t}"]`)}else l=s(`[data-swiper-slide-index="${i}"]`);else a?(l=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),c=t.find(e=>e.column===i-1)):l=t[i];l&&(a||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{un(e,e===l,n.slideActiveClass),un(e,e===u,n.slideNextClass),un(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:c}),t.initialized&&pn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==f&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,a=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},mn={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=function(e,t="x"){const n=Ft();let r,i,o;const a=function(e){const t=Ft();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,o.updateProgress(u),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Wt({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function vn({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let a=n;a||(a=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${r}`),t&&"reset"===a?e.emit(`slideResetTransition${r}`):t&&i!==o&&(e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}var gn={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),vn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),vn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},yn={slideTo:function(e=0,t,n=!0,r,i){"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(!h&&!r&&!i||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let v=m+Math.floor((a-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(s.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?a=e:t>=n&&t<r&&(a=e+1):t>=n&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate()))return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==a)return!1}let y;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),y=a>d?"next":a<d?"prev":"reset";const b=o.virtual&&o.params.virtual.enabled;if((!b||!i)&&(f&&-g===o.translate||!f&&g===o.translate))return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(g),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(s.cssMode){const e=o.isHorizontal(),n=f?g:-g;if(0===t)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Wt({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=sn().isSafari;return b&&!i&&w&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,r){"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:l}=i.params,c=n||!!s||!!l;let u=i.params.slidesPerView;"auto"===u?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),r&&c&&"auto"!==i.params.slidesPerView&&!o&&(d=!1),d){const n=c?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?i.realIndex:void 0})}if(o){const e=a*i.params.grid.rows;a=i.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const f=d(s?r.translate:-r.translate),p=o.map(e=>d(e)),h=i.freeMode&&i.freeMode.enabled;let m=o[p.indexOf(f)-1];if(void 0===m&&(i.cssMode||h)){let e;o.forEach((t,n)=>{f>=t&&(e=n)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=a.indexOf(m),v<0&&(v=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(v,e,t,n)}),!0):r.slideTo(v,e,t,n)},slideReset:function(e,t=!0,n){const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.getSlideIndexWhenGrid(e.clickedIndex);const a=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):o>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(Gt(n,`${a}[data-swiper-slide-index="${i}"]`)[0]),Ut(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},bn={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{Gt(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&(()=>{const e=Gt(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const s=r.slidesPerGroup*(a?r.grid.rows:1),l=n.slides.length%s!==0,c=a&&n.slides.length%r.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?Yt("swiper-slide",[r.slideBlankClass]):Yt("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(u(s-n.slides.length%s),n.recalcSlides(),n.updateSlides()):Xt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):c?(r.loopAddBlankSlides?(u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):Xt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o();const d=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:d?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:o,byController:a,byMousewheel:s}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=l,{centeredSlides:h,slidesOffsetBefore:m,slidesOffsetAfter:v,initialSlide:g}=p,y=h||!!m||!!v;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return t&&(y||0!==l.snapIndex?y&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,void l.emit("loopFix");let b=p.slidesPerView;"auto"===b?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(p.slidesPerView,10)),y&&b%2==0&&(b+=1));const w=p.slidesPerGroupAuto?b:p.slidesPerGroup;let x=y?Math.max(w,Math.ceil(b/2)):w;x%w!==0&&(x+=w-x%w),x+=p.loopAdditionalSlides,l.loopedSlides=x;const E=l.grid&&p.grid&&p.grid.rows>1;c.length<b+x||"cards"===l.params.effect&&c.length<b+2*x?Xt("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&"row"===p.grid.fill&&Xt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],k=[],C=E?Math.ceil(c.length/p.grid.rows):c.length,_=o&&C-g<b&&!y;let T=_?g:l.activeIndex;void 0===i?i=l.getSlideIndex(c.find(e=>e.classList.contains(p.slideActiveClass))):T=i;const P="next"===n||!n,I="prev"===n||!n;let A=0,O=0;const j=(E?c[i].column:i)+(y&&void 0===r?-b/2+.5:0);if(j<x){A=Math.max(x-j,w);for(let e=0;e<x-j;e+=1){const t=e-Math.floor(e/C)*C;if(E){const e=C-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&S.push(t)}else S.push(C-t-1)}}else if(j+b>C-x){O=Math.max(j-(C-2*x),w),_&&(O=Math.max(O,b-C+g+1));for(let e=0;e<O;e+=1){const t=e-Math.floor(e/C)*C;E?c.forEach((e,n)=>{e.column===t&&k.push(n)}):k.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<b+2*x&&(k.includes(i)&&k.splice(k.indexOf(i),1),S.includes(i)&&S.splice(S.indexOf(i),1)),I&&S.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),P&&k.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():E&&(S.length>0&&I||k.length>0&&P)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t)if(S.length>0&&I){if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T+A]-e;s?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(A),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=E?S.length/p.grid.rows:S.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(k.length>0&&P)if(void 0===e){const e=l.slidesGrid[T],t=l.slidesGrid[T-O]-e;s?l.setTranslate(l.translate-t):(l.slideTo(T-O,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=E?k.length/p.grid.rows:k.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const o={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}},wn={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}};function xn(e,t,n){const r=Ft(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function En(e){const t=this;if(t.destroyed)return;const n=Lt();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void xn(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=t;if(!s)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Ft();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(f?function(e,t=this){return function t(n){if(!n||n===Lt()||n===Ft())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const p=a.currentX,h=a.currentY;if(!xn(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=h,i.touchStartTime=zt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(i.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Sn(e){const t=Lt(),n=this;if(n.destroyed)return;const r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=zt()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(a&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(f))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=h,h*=i.touchRatio,a&&(h=-h,m=-m);const v=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&v!==n.touchesDirection&&g&&y&&Math.abs(h)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let b=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),h>0?(g&&y&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**w))):h<0&&(g&&y&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-h)**w))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function kn(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let r,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find(e=>e.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=zt(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=zt(),Ut(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const p=f>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(p||f>=l[e]&&f<l[e+t])&&(h=e,m=l[e+t]-l[e]):(p||f>=l[e])&&(h=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;o.rewind&&(t.isBeginning?g=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(f-l[h])/m,b=h<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:h+b):t.slideTo(h)),"prev"===t.swipeDirection&&(y>1-o.longSwipesRatio?t.slideTo(h+b):null!==g&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==v?v:h+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:h)):i.target===t.navigation.nextEl?t.slideTo(h+b):t.slideTo(h)}}function Cn(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function _n(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Tn(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Pn(e){const t=this;t.destroyed||(dn(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function In(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const An=(e,t)=>{const n=Lt(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cn,!0):e[c]("observerUpdate",Cn,!0),i[l]("load",e.onLoad,{capture:!0}))};var On={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=En.bind(e),e.onTouchMove=Sn.bind(e),e.onTouchEnd=kn.bind(e),e.onDocumentTouchStart=In.bind(e),t.cssMode&&(e.onScroll=Tn.bind(e)),e.onClick=_n.bind(e),e.onLoad=Pn.bind(e),An(e,"on")},detachEvents:function(){An(this,"off")}};const jn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Nn={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=Lt(),s="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:a.querySelector(r.breakpointsBase),c=e.getBreakpoint(o,s,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=jn(e,r),f=jn(e,u),p=e.params.grabCursor,h=u.grabCursor,m=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!h?e.unsetGrabCursor():!p&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});const v=u.direction&&u.direction!==r.direction,g=r.loop&&(u.slidesPerView!==r.slidesPerView||v),y=r.loop;v&&n&&e.changeDirection(),Ht(e.params,u);const b=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i=Ft(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=o):s<=n.clientWidth&&(r=o)}return r||"max"}},Mn={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},Rn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ln(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Ht(t,n)):Ht(t,n)):Ht(t,n)}}const Dn={eventsEmitter:ln,update:hn,translate:mn,transition:gn,slide:yn,loop:bn,grabCursor:wn,events:On,breakpoints:Nn,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Mn},Fn={};class Bn{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=Ht({},n),t&&!n.el&&(n.el=t);const r=Lt();if(n.el&&"string"==typeof n.el&&r.querySelectorAll(n.el).length>1){const e=[];return r.querySelectorAll(n.el).forEach(t=>{const r=Ht({},n,{el:t});e.push(new Bn(r))}),e}const i=this;i.__swiper__=!0,i.support=on(),i.device=an({userAgent:n.userAgent}),i.browser=sn(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&i.modules.indexOf(e)<0&&i.modules.push(e)});const o={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:Ln(n,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const a=Ht({},Rn,o);return i.params=Ht({},a,Fn,n),i.originalParams=Ht({},i.params),i.passedParams=Ht({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=Qt(Gt(t,`.${n.slideClass}, swiper-slide`)[0]);return Qt(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Gt(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<r.length;e+=1)(t?i[e]+o[e]-i[s]<a:i[e]-i[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)i[s]-i[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&dn(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Gt(n,r())[0];return!i&&t.params.createElements&&(i=Yt("div",t.params.wrapperClass),n.append(i),Gt(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Kt(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Kt(n,"direction")),wrongRTL:"-webkit-box"===Kt(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?dn(t,e):e.addEventListener("load",e=>{dn(t,e.target)})}),pn(t),t.initialized=!0,pn(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Ht(Fn,e)}static get extendedDefaults(){return Fn}static get defaults(){return Rn}static installModule(e){Bn.prototype.__modules__||(Bn.prototype.__modules__=[]);const t=Bn.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Bn.installModule(e)),Bn):(Bn.installModule(e),Bn)}}Object.keys(Dn).forEach(e=>{Object.keys(Dn[e]).forEach(t=>{Bn.prototype[t]=Dn[e][t]})}),Bn.use([function({swiper:e,on:t,emit:n}){const r=Ft();let i=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=r.requestAnimationFrame(()=>{const{width:n,height:r}=e;let i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,o=n?n.height:(t[0]||t).blockSize)}),i===n&&o===r||a()})}),i.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",s))}),t("destroy",()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",s)})},function({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Ft(),a=(t,n={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void r("observerUpdate",t[0]);const n=function(){r("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)});a.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=function(e){const t=[];let n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t}(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const Un=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zn(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Vn(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:zn(t[n])&&zn(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Vn(e[n],t[n]):e[n]=t[n]})}function $n(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function Hn(e={}){return e.pagination&&void 0===e.pagination.el}function qn(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function Wn(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(" ")}function Gn(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Xn(){return Xn=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},Xn.apply(this,arguments)}function Yn(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Kn(t){const n=[];return e.Children.toArray(t).forEach(e=>{Yn(e)?n.push(e):e.props&&e.props.children&&Kn(e.props.children).forEach(e=>n.push(e))}),n}function Qn(t,n){return"undefined"==typeof window?(0,e.useEffect)(t,n):(0,e.useLayoutEffect)(t,n)}const Jn=(0,e.createContext)(null),Zn=(0,e.createContext)(null),er=(0,e.forwardRef)(({className:t,tag:n="div",wrapperTag:r="div",children:i,onSwiper:o,...a}={},s)=>{let l=!1;const[c,u]=(0,e.useState)("swiper"),[d,f]=(0,e.useState)(null),[p,h]=(0,e.useState)(!1),m=(0,e.useRef)(!1),v=(0,e.useRef)(null),g=(0,e.useRef)(null),y=(0,e.useRef)(null),b=(0,e.useRef)(null),w=(0,e.useRef)(null),x=(0,e.useRef)(null),E=(0,e.useRef)(null),S=(0,e.useRef)(null),{params:k,passedParams:C,rest:_,events:T}=function(e={},t=!0){const n={on:{}},r={},i={};Vn(n,Rn),n._emitClasses=!0,n.init=!1;const o={},a=Un.map(e=>e.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?zn(e[s])?(n[s]={},i[s]={},Vn(n[s],e[s]),Vn(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(a),{slides:P,slots:I}=function(t){const n=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(t).forEach(e=>{if(Yn(e))n.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){const t=Kn(e.props.children);t.length>0?t.forEach(e=>n.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:n,slots:r}}(i),A=()=>{h(!p)};Object.assign(k.on,{_containerClasses(e,t){u(t)}});const O=()=>{Object.assign(k.on,T),l=!0;const e={...k};if(delete e.wrapperClass,g.current=new Bn(e),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:f,renderExternalUpdate:!1};Vn(g.current.params.virtual,e),Vn(g.current.originalParams.virtual,e)}};return v.current||O(),g.current&&g.current.on("_beforeBreakpoint",A),(0,e.useEffect)(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",A)}),(0,e.useEffect)(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),Qn(()=>{if(s&&(s.current=v.current),v.current)return g.current.destroyed&&O(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){$n(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),Hn(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),qn(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:v.current,nextEl:w.current,prevEl:x.current,paginationEl:E.current,scrollbarEl:S.current,swiper:g.current},k),o&&!g.current.destroyed&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Qn(()=>{!l&&T&&g.current&&Object.keys(T).forEach(e=>{g.current.on(e,T[e])});const e=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return Un.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(zn(e[n])&&zn(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),o}(C,y.current,P,b.current,e=>e.key);return y.current=C,b.current=P,e.length&&g.current&&!g.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,v,g,y,b,w,x,E;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&f&&!f.el&&(y=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&d&&!d.prevEl&&!d.nextEl&&(b=!0);const S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),c[t].prevEl=void 0,c[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),c[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?w=!0:!c.loop&&n.loop?x=!0:E=!0),l.forEach(e=>{if(zn(c[e])&&zn(n[e]))Object.assign(c[e],n[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in n[e])||n[e].enabled||S(e);else{const t=n[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=n[e]:!1===t&&S(e)}}),l.includes("controller")&&!v&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled?(p.slides=t,p.update(!0)):r.includes("virtual")&&p&&c.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes("children")&&t&&c.loop&&(E=!0),m&&h.init()&&h.update(!0),v&&(e.controller.control=c.controller.control),g&&(!e.isElement||s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(c.pagination.el=s),u.init(),u.render(),u.update()),y&&(!e.isElement||a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),b&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),en(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),en(o,e.navigation.arrowSvg),o.part.add("button-prev"),e.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||E)&&e.loopDestroy(),(x||E)&&e.loopCreate(),e.update()}({swiper:g.current,slides:P,passedParams:C,changedParams:e,nextEl:w.current,prevEl:x.current,scrollbarEl:S.current,paginationEl:E.current}),()=>{T&&g.current&&Object.keys(T).forEach(e=>{g.current.off(e,T[e])})}}),Qn(()=>{(e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())})(g.current)},[d]),e.createElement(n,Xn({ref:v,className:Wn(`${c}${t?` ${t}`:""}`)},_),e.createElement(Zn.Provider,{value:g.current},I["container-start"],e.createElement(r,{className:Gn(k.wrapperClass)},I["wrapper-start"],k.virtual?function(t,n,r){if(!r)return null;const i=e=>{let t=e;return e<0?t=n.length+e:t>=n.length&&(t-=n.length),t},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:a,to:s}=r,l=t.params.loop?-n.length:0,c=t.params.loop?2*n.length:n.length,u=[];for(let e=l;e<c;e+=1)e>=a&&e<=s&&u.push(n[i(e)]);return u.map((n,r)=>e.cloneElement(n,{swiper:t,style:o,key:n.props.virtualIndex||n.key||`slide-${r}`}))}(g.current,P,d):P.map((t,n)=>e.cloneElement(t,{swiper:g.current,swiperSlideIndex:n})),I["wrapper-end"]),$n(k)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:x,className:"swiper-button-prev"}),e.createElement("div",{ref:w,className:"swiper-button-next"})),qn(k)&&e.createElement("div",{ref:S,className:"swiper-scrollbar"}),Hn(k)&&e.createElement("div",{ref:E,className:"swiper-pagination"}),I["container-end"]))});er.displayName="Swiper";const tr=(0,e.forwardRef)(({tag:t="div",children:n,className:r="",swiper:i,zoom:o,lazy:a,virtualIndex:s,swiperSlideIndex:l,...c}={},u)=>{const d=(0,e.useRef)(null),[f,p]=(0,e.useState)("swiper-slide"),[h,m]=(0,e.useState)(!1);function v(e,t,n){t===d.current&&p(n)}Qn(()=>{if(void 0!==l&&(d.current.swiperSlideIndex=l),u&&(u.current=d.current),d.current&&i){if(!i.destroyed)return i.on("_slideClass",v),()=>{i&&i.off("_slideClass",v)};"swiper-slide"!==f&&p("swiper-slide")}}),Qn(()=>{i&&d.current&&!i.destroyed&&p(i.getSlideClasses(d.current))},[i]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isFullyVisible:f.indexOf("swiper-slide-fully-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>"function"==typeof n?n(g):n;return e.createElement(t,Xn({ref:d,className:Wn(`${f}${r?` ${r}`:""}`),"data-swiper-slide-index":s,onLoad:()=>{m(!0)}},c),o&&e.createElement(Jn.Provider,{value:g},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},y(),a&&!h&&e.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!o&&e.createElement(Jn.Provider,{value:g},y(),a&&!h&&e.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});function nr({swiper:e,extendParams:t,on:n,emit:r}){const i=Ft();let o;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,s=zt();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function d(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&zt()-s<e.params.mousewheel.thresholdTime||!(t.delta>=6&&zt()-s<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),r("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),r("scroll",t.raw)),s=(new i.Date).getTime(),1))}function f(t){let n=t,i=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const s=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const u=c&&c.contains(n.target);if(!e.mouseEntered&&!u&&!s.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let f=0;const p=e.rtlTranslate?-1:1,h=function(e){let t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(n);if(s.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(h.pixelX)>Math.abs(h.pixelY)))return!0;f=-h.pixelX*p}else{if(!(Math.abs(h.pixelY)>Math.abs(h.pixelX)))return!0;f=-h.pixelY}else f=Math.abs(h.pixelX)>Math.abs(h.pixelY)?-h.pixelX*p:-h.pixelY;if(0===f)return!0;s.invert&&(f=-f);let m=e.getTranslate()+f*s.sensitivity;if(m>=e.minTranslate()&&(m=e.minTranslate()),m<=e.maxTranslate()&&(m=e.maxTranslate()),i=!!e.params.loop||!(m===e.minTranslate()||m===e.maxTranslate()),i&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:zt(),delta:Math.abs(f),direction:Math.sign(f)},i=a&&t.time<a.time+500&&t.delta<=a.delta&&t.direction===a.direction;if(!i){a=void 0;let c=e.getTranslate()+f*s.sensitivity;const u=e.isBeginning,d=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!u&&e.isBeginning||!d&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,r=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&t.time-r.time<500&&r.delta-t.delta>=1&&t.delta<=6){const n=f>0?.8:.2;a=t,l.splice(0),o=Ut(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}o||(o=Ut(()=>{!e.destroyed&&e.params&&(a=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(i||r("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),s.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:zt(),delta:Math.abs(f),direction:Math.sign(f),raw:t};l.length>=2&&l.shift();const r=l.length?l[l.length-1]:void 0;if(l.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&d(n):d(n),function(t){const n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function p(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",u),n[t]("wheel",f)}function h(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):!e.mousewheel.enabled&&(p("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):!!e.mousewheel.enabled&&(p("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&m(),e.params.mousewheel.enabled&&h()}),n("destroy",()=>{e.params.cssMode&&h(),e.mousewheel.enabled&&m()}),Object.assign(e.mousewheel,{enable:h,disable:m})}tr.displayName="SwiperSlide";const rr='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function ir({swiper:e,extendParams:t,on:n,emit:r}){function i(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const r=e.params.navigation;(t=Zt(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=function(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&!0===n.auto){let o=Gt(e.el,`.${r[i]}`)[0];o||(o=Yt("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=Zt(n),r=Zt(r);const o=(n,r)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");en(e,rr),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===r?l:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>o(e,"next")),r.forEach(e=>o(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=Zt(t),n=Zt(n);const r=(t,n)=>{t.removeEventListener("click","next"===n?l:s),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:rr},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=Zt(t),n=Zt(n),e.enabled?a():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:i,prevEl:o}=e.navigation;i=Zt(i),o=Zt(o);const a=n.target;let s=o.includes(a)||i.includes(a);if(e.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||o.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:u})}function or(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ar({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let r,i,o=null,a=(new Date).getTime();function s(e){const t=o;0!==t.length&&en(t,e)}function l(e){(e=Zt(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=Zt(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("role",t)})}function d(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function p(e){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function h(e){(e=Zt(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function m(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,r=t.target;if(!e.pagination||!e.pagination.el||r!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(or(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=Zt(e.navigation.prevEl);Zt(e.navigation.nextEl).includes(r)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(n.lastSlideMessage):s(n.nextSlideMessage)),t.includes(r)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(n.firstSlideMessage):s(n.prevSlideMessage))}e.pagination&&r.matches(or(e.params.pagination.bulletClass))&&r.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function g(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",m)),f(e,n)},b=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},w=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},x=e=>{a=(new Date).getTime()},E=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;i=n;const o=e.virtual&&e.params.virtual.enabled,s=(o?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);s||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):o?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),r=!1)}))},S=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((r,i)=>{const o=e.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):i;f(r,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{o=Yt("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(o);const n=e.el;t.containerRoleDescriptionMessage&&d(n,t.containerRoleDescriptionMessage),t.containerMessage&&f(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const r=e.wrapperEl,i=t.id||r.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;(function(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("id",t)})})(r,i),t.wrapperLiveRegion&&function(e,t){(e=Zt(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite"),S();let{nextEl:a,prevEl:s}=e.navigation?e.navigation:{};a=Zt(a),s=Zt(s),a&&a.forEach(e=>y(e,0,t.nextSlideMessage)),s&&s.forEach(e=>y(e,0,t.prevSlideMessage)),g()&&Zt(e.pagination.el).forEach(e=>{e.addEventListener("keydown",m)}),Lt().addEventListener("visibilitychange",x),e.el.addEventListener("focus",E,!0),e.el.addEventListener("pointerdown",b,!0),e.el.addEventListener("pointerup",w,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&S()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(p(n),c(n)):(h(n),l(n))),t&&(e.isEnd?(p(t),c(t)):(h(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),f(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,Qt(n)+1)))),n.matches(or(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=Zt(t),n=Zt(n),t&&t.forEach(e=>e.removeEventListener("keydown",m)),n&&n.forEach(e=>e.removeEventListener("keydown",m)),g()&&Zt(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",m)}),Lt().removeEventListener("visibilitychange",x),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",E,!0),e.el.removeEventListener("pointerdown",b,!0),e.el.removeEventListener("pointerup",w,!0))}()})}const sr=()=>(0,i.jsxs)("div",{className:"HomeScreen_welcome__aApRq",children:[(0,i.jsx)("h1",{children:lf("Welcome to MakeCode Code Evaluation!")}),(0,i.jsxs)("p",{children:[lf("This tool is designed to help you evaluate student projects using an automated checklist.")," ",(0,i.jsx)(xt,{target:"_blank",href:b.LearnMoreLink,children:lf("Learn More.")})]})]}),lr=({title:e,className:t,icon:n,onClick:r})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,t),title:e,onClick:r,children:(0,i.jsxs)("div",{className:yt,children:[n&&(0,i.jsx)("div",{className:"HomeScreen_cardIcon__jvgov",children:(0,i.jsx)("i",{className:n})}),(0,i.jsx)("div",{className:bt,children:(0,i.jsx)("h3",{children:e})})]})})}),cr=({delay:e})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,wt,e?"HomeScreen_loadingGradientDelay__gWkBN":void 0),title:"",onClick:()=>{},children:(0,i.jsx)("div",{className:yt,children:(0,i.jsx)("div",{className:wt})})})}),ur=({cardTitle:e,imageUrl:t,checklistUrl:n})=>(0,i.jsx)("div",{className:vt,children:(0,i.jsx)(Me,{className:a(gt,"HomeScreen_checklistResource__LQarV"),title:e,onClick:async()=>{await jt(n)},children:(0,i.jsx)("div",{className:a(yt),style:{backgroundImage:`url("${t}")`,backgroundSize:"cover"},children:(0,i.jsx)("div",{className:a(bt,"HomeScreen_checklistResourceCardTitle__3CP1f"),children:(0,i.jsx)("h3",{children:e})})})})}),dr=({children:t})=>{const n=e.Children.toArray(t);return(0,i.jsx)(er,{spaceBetween:0,slidesPerView:"auto",allowTouchMove:!0,slidesOffsetBefore:32,navigation:!0,mousewheel:{forceToAxis:!0},modules:[ir,nr,ar],a11y:{prevSlideMessage:lf("Previous slide"),nextSlideMessage:lf("Next slide"),firstSlideMessage:lf("This is the first slide"),lastSlideMessage:lf("This is the last slide"),slideLabelMessage:lf("Slide {0} of {1}","{{index}}","{{slidesLength}}")},className:"HomeScreen_swiperCarousel__fo58O",children:n.map((e,t)=>(0,i.jsx)(tr,{className:"HomeScreen_swiperSlide__dNUEM",children:e},t))})},fr=()=>(0,i.jsxs)("div",{className:ht,children:[(0,i.jsx)("div",{className:mt,children:(0,i.jsx)("h2",{children:lf("Get Started")})}),(0,i.jsxs)(dr,{children:[(0,i.jsx)(lr,{title:m.NewChecklist,icon:"fas fa-plus-circle",className:"HomeScreen_newChecklist__i-DgD",onClick:async()=>{pxt.tickEvent(g.NewChecklist),await async function(){const{dispatch:e}=Ee();await Ot(x())&&e({type:"CLEAR_ALL_EVAL_RESULTS"})}()}}),(0,i.jsx)(lr,{title:m.ImportChecklist,icon:"fas fa-file-upload",className:"HomeScreen_importChecklist__GLc4v",onClick:()=>{pxt.tickEvent(g.ImportChecklistOpen),Je({modal:"import-checklist"})}})]})]}),pr=({title:t,cardsUrl:n})=>{var r;const[o,a]=(0,e.useState)(),[s,l]=(0,e.useState)();return function(t,n,r){const[i,o]=(0,e.useState)();(0,e.useEffect)(()=>{i||(o(!0),n("loading"),Promise.resolve().then(async()=>{const e=await Ae(t);e?(n("success"),r(e)):n("error")}).catch(()=>{n("error")}))},[i])}(n,l,a),null!=o&&null!==(r=o.cards)&&void 0!==r&&r.length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:ht,children:[(0,i.jsx)("div",{className:mt,children:(0,i.jsx)("h2",{children:t})}),("loading"===s||"error"===s)&&(0,i.jsxs)(dr,{children:[(0,i.jsx)(cr,{}),(0,i.jsx)(cr,{delay:!0})]}),"success"===s&&(0,i.jsx)(dr,{children:null==o?void 0:o.cards.map((e,t)=>(e=>"object"==typeof e&&"checklist-resource"===e.cardType)(e)?(0,i.jsx)(ur,{...e},t):(0,i.jsx)(cr,{}))})]})}):null},hr=()=>{const{state:t}=(0,e.useContext)(Se),{targetConfig:n}=t,r=null==n?void 0:n.teachertool,o=null==r?void 0:r.carousels;return(0,i.jsx)(i.Fragment,{children:null==o?void 0:o.map((e,t)=>(0,i.jsx)(pr,{title:e.title,cardsUrl:e.cardsUrl},t))})},mr=()=>(0,i.jsxs)("div",{className:"HomeScreen_page__UD33z",children:[(0,i.jsx)(sr,{}),(0,i.jsx)(fr,{}),(0,i.jsx)(hr,{})]}),vr="EvalResultDisplay_control-button__V6Crg",gr="EvalResultDisplay_result-toolbar-button__KnBiu",yr="EvalResultDisplay_separator__ImacW",br="EvalResultDisplay_notes-container__UmXK9",wr="EvalResultDisplay_checklist-name__iNQwC";var xr=n(5418);function Er(e,t){const{dispatch:n}=Ee();!function(e,t){const{state:n}=Ee(),r=n.evalResults[e],i=St(n,e);var o,a,s,l,c,u;(null==r?void 0:r.result)!=(null==t?void 0:t.result)&&pxt.tickEvent(g.SetEvalResultOutcome,{catalogCriteriaId:null!==(o=null==i?void 0:i.catalogCriteriaId)&&void 0!==o?o:"",newValue:Pt[t.result],oldValue:null!=r&&r.result?Pt[r.result]:"",newValueIsManual:(null==t?void 0:t.resultIsManual)+"",oldValueIsManual:(null==r?void 0:r.resultIsManual)+""}),(null==r?void 0:r.notes)!=(null==t?void 0:t.notes)&&pxt.tickEvent(g.SetEvalResultNotes,{catalogCriteriaId:null!==(a=null==i?void 0:i.catalogCriteriaId)&&void 0!==a?a:"",newLength:null!==(s=null==t||null===(l=t.notes)||void 0===l?void 0:l.length)&&void 0!==s?s:0,oldLength:null!==(c=null==r||null===(u=r.notes)||void 0===u?void 0:u.length)&&void 0!==c?c:0})}(e,t),n(((e,t)=>({type:"SET_EVAL_RESULT",criteriaInstanceId:e,result:t}))(e,t))}function Sr(e,t,n){const{state:r}=Ee();Er(e,{...r.evalResults[e],result:t,resultIsManual:n})}const kr=t=>{var n;const{id:r,className:o,ariaHidden:s,ariaLabel:l,getAriaLabel:c,role:u,items:d,tabIndex:f,selectedId:p,onItemSelected:h}=t,[m,v]=e.useState(!1),g=e.useRef(),y=e.useRef(),b=e.useRef({});e.useEffect(()=>{m&&Object.keys(b.current).length&&b.current[null!=p?p:0].focus()},[m]);const w=a("common-dropdown",o),x=d.find(e=>e.id===p)||d[0];return(0,i.jsxs)("div",{className:w,ref:g,onBlur:e=>{g.current&&m&&!g.current.contains(e.relatedTarget)&&v(!1)},children:[(0,i.jsx)(Me,{...x,id:r,buttonRef:e=>y.current=e,tabIndex:f,rightIcon:m?"fas fa-chevron-up":"fas fa-chevron-down",role:u,className:a("common-dropdown-button",m&&"expanded",x.className),onClick:()=>{v(!m)},onKeydown:e=>{const t=d.indexOf(x);"ArrowDown"===e.key?(m?t<d.length-1&&h(d[t+1].id):v(!0),e.preventDefault(),e.stopPropagation()):"ArrowUp"===e.key?t>0&&(h(d[t-1].id),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(v(!0),e.preventDefault(),e.stopPropagation())},ariaHasPopup:"listbox",ariaExpanded:m,ariaLabel:null!==(n=null!=l?l:null==c?void 0:c(x.title))&&void 0!==n?n:x.title,ariaHidden:s}),m&&(0,i.jsx)(Fe,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:p,"aria-labelledby":r,useUpAndDownArrowKeys:!0,onClose:()=>{v(!1),y.current.focus()},onItemReceivedFocus:e=>{e.id&&d.some(t=>t.id===e.id)&&h(e.id)},children:(0,i.jsx)("ul",{role:"presentation",children:d.map(e=>(0,i.jsx)("li",{role:"presentation",children:(0,i.jsx)(Me,{...e,buttonRef:t=>b.current[e.id]=t,className:a("common-dropdown-item",e.className),onClick:()=>{var t;v(!1),h(e.id),null===(t=y.current)||void 0===t||t.focus()},ariaSelected:e.id===p,role:"option"})},e.id))})})]})},Cr={notevaluated:Pt.CompleteWithNoResult,fail:Pt.Fail,pass:Pt.Pass,notstarted:Pt.NotStarted},_r={[Pt.CompleteWithNoResult]:"notevaluated",[Pt.Fail]:"fail",[Pt.Pass]:"pass",[Pt.NotStarted]:"notstarted"},Tr=[{id:"notevaluated",title:lf("not applicable"),label:lf("N/A")},{id:"fail",title:lf("needs work"),label:lf("Needs work")},{id:"pass",title:lf("looks good!"),label:lf("Looks good!")},{id:"notstarted",title:lf("not started"),label:lf("Not started")}],Pr=({result:t,criteriaId:n})=>{const r=(0,e.useMemo)(()=>_r[t],[t]);return(0,i.jsx)(kr,{id:"project-eval-result-dropdown",selectedId:r,className:a("rounded",r),items:Tr,onItemSelected:e=>Sr(n,Cr[e],!0)})},Ir=t=>{const{id:n,className:r,role:o,ariaHidden:s,ariaLabel:l,initialValue:c,label:u,title:d,placeholder:f,autoComplete:p,cols:h,rows:m,disabled:v,minLength:g,maxLength:y,readOnly:b,resize:w,wrap:x,autoResize:E,onChange:S,onEnterKey:k,showRemainingCharacterCount:C}=t,[_,T]=e.useState(c||""),P=e.useRef(null),I=e.useRef(0),A=()=>{P.current&&(P.current.style.height="1px",P.current.style.height=`${P.current.scrollHeight}px`)};e.useEffect(()=>{T(c),E&&P.current&&A()},[c]),e.useEffect(()=>{if(!E)return()=>{};const e=new ResizeObserver(e=>{const t=e[0].contentRect.width;I.current!=t&&(requestAnimationFrame(()=>A()),I.current=t)});return P.current&&e.observe(P.current),()=>{e.disconnect()}},[E]);let O=void 0!==y&&!!C;return O&&"number"==typeof C&&(O=_.length>=y-C),(0,i.jsxs)("div",{className:a("common-textarea-wrapper",v&&"disabled",w&&`resize-${w}`,r),children:[u&&(0,i.jsx)("label",{className:"common-textarea-label",children:u}),(0,i.jsxs)("div",{className:"common-textarea-group",children:[(0,i.jsx)("textarea",{id:n,className:"common-textarea",title:d,role:o||"textbox",tabIndex:v?-1:0,"aria-label":l,"aria-hidden":s,placeholder:f,value:_||"",cols:h,rows:m,minLength:g,maxLength:y,wrap:x,readOnly:!!b,ref:P,onChange:e=>{const t=e.target.value;b||_===t||T(t),S&&S(t),E&&P.current&&A()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||k&&(e.preventDefault(),k(_))},autoComplete:p?"":"off",autoCorrect:p?"":"off",autoCapitalize:p?"":"off",spellCheck:p,disabled:v}),O&&(0,i.jsx)("div",{className:"common-textarea-character-count",role:"presentation","aria-hidden":"true",children:y-_.length})]})]})},Ar=({intervalMs:t=500,...n})=>{const r=(0,e.useRef)(void 0),o=(0,e.useRef)(""),a=()=>{n.onChange&&n.onChange(o.current)};return(0,e.useEffect)(()=>()=>{r.current&&(clearTimeout(r.current),a())},[]),(0,i.jsx)(Ir,{...n,onChange:e=>{o.current=e,r.current&&clearTimeout(r.current),r.current=setTimeout(a,t)}})},Or="ThreeDotsLoadingDisplay_circle__7P1A0",jr=({className:e})=>(0,i.jsxs)("div",{className:a(e,"ThreeDotsLoadingDisplay_loading-ellipsis__0uvx0","no-print"),"aria-label":m.Loading,children:[(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-1__b0XeZ"),"aria-hidden":!0}),(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-2__ic0v9"),"aria-hidden":!0}),(0,i.jsx)("i",{className:a("far fa-circle",Or,"ThreeDotsLoadingDisplay_circle-3__UuuMW"),"aria-hidden":!0})]}),Nr="CriteriaFeedback_feedback-button__75Re4";function Mr(e,t){const{dispatch:n}=Ee();n(((e,t)=>({type:"SET_USER_FEEDBACK",criteriaInstanceId:e,userFeedback:t}))(e,t))}const Rr=({className:t,criteriaInstanceId:n})=>{const{state:r}=(0,e.useContext)(Se),o=(0,e.useMemo)(()=>St(r,n),[r,n]),s=null==o?void 0:o.userFeedback,l=null==o?void 0:o.catalogCriteriaId,c=(0,e.useCallback)(e=>{l&&(Mr(n,e?"helpful":"not-helpful"),pxt.tickEvent(g.CriteriaFeedback,{criteriaId:l,helpful:e+""}))},[l]),u="helpful"===s?"fas fa-thumbs-up":"far fa-thumbs-up",d="not-helpful"===s?"fas fa-thumbs-down":"far fa-thumbs-down";return(0,i.jsxs)("div",{className:a("CriteriaFeedback_criteria-feedback-container__SvXWm",t),children:[(0,i.jsx)("span",{className:"CriteriaFeedback_label__W9t26",children:s?lf("Thanks for your feedback!"):lf("Was this response helpful?")}),(0,i.jsxs)("span",{className:"CriteriaFeedback_rate-buttons__aoQ-H",children:[(0,i.jsx)(Me,{className:Nr,title:lf("Helpful"),onClick:()=>c(!0),rightIcon:u,disabled:!!s}),(0,i.jsx)(Me,{className:Nr,title:lf("Unhelpful"),onClick:()=>c(!1),rightIcon:d,disabled:!!s})]})]})},Lr={"criteria-instance-display":"CriteriaInstanceDisplay_criteria-instance-display__a+aVo","segment-container":"CriteriaInstanceDisplay_segment-container__eKe2z",segment:"CriteriaInstanceDisplay_segment__KFJyQ",long:"CriteriaInstanceDisplay_long__iOAmQ","block-input-btn":"CriteriaInstanceDisplay_block-input-btn__OWvdF","block-readable-name":"CriteriaInstanceDisplay_block-readable-name__uWCXM","block-name-segment":"CriteriaInstanceDisplay_block-name-segment__6SW8D","block-name-param":"CriteriaInstanceDisplay_block-name-param__35MBw",error:"CriteriaInstanceDisplay_error__Z-71F","inline-input-wrapper":"CriteriaInstanceDisplay_inline-input-wrapper__cCZt5","inline-input":"CriteriaInstanceDisplay_inline-input__3wCk8","string-input":"CriteriaInstanceDisplay_string-input__oWDDa","number-input":"CriteriaInstanceDisplay_number-input__xo7jt","criteria-description":"CriteriaInstanceDisplay_criteria-description__cfngZ","for-print":"CriteriaInstanceDisplay_for-print__hKgmF"};function Dr(e,t,n){var r,i;const{state:o}=Ee();X(`Setting parameter '${t}' to '${n}' for criteria instance '${e}'`);const a=St(o,e);if(!a)return void G(H.missingCriteriaInstance,`Unable to find criteria instance with id '${e}'`);const s=null===(r=a.params)||void 0===r?void 0:r.find(e=>e.name===t);if(!s)return void G(H.missingParameter,`Unable to find parameter with name '${t}' in criteria instance '${e}'`);const l={...s,value:n},c={...a,params:null===(i=a.params)||void 0===i?void 0:i.map(e=>e.name===t?l:e)},u=o.checklist.criteria.map(t=>t.instanceId===e?c:t);At({...o.checklist,criteria:u}),Sr(e,Pt.NotStarted,!1)}const Fr=t=>{var n;const{id:r,className:o,inputClassName:s,groupClassName:l,role:c,ariaHidden:u,ariaLabel:d,initialValue:f,label:p,title:h,placeholder:m,icon:v,iconTitle:g,disabled:y,type:b,readOnly:w,autoFocus:x,autoComplete:E,selectOnClick:S,onChange:k,onEnterKey:C,onIconClick:_,onFocus:T,onBlur:P,onOptionSelected:I,handleInputRef:A,preserveValueOnBlur:O=!0,options:j,validator:N}=t,[M,R]=e.useState(f||""),[L,D]=e.useState(!1),[F]=e.useState(t.filter?new RegExp(t.filter):void 0),B=e.useMemo(()=>j?Object.values(j):[],[j]);let U;e.useEffect(()=>{R(f||"")},[f]);const z=()=>{j&&D(!L)},V=e=>{if(!B.length)return;const t=B.indexOf(e);var n;return-1!==t?`dropdown-item-${t}-${(n=e)?n.replace(/[^a-zA-Z0-9_-]/g,"-")||"option":""}`:void 0};return(0,i.jsxs)("div",{className:a("common-input-wrapper",y&&"disabled",o),onBlur:e=>{L&&!U.contains(e.relatedTarget)&&D(!1)},ref:e=>{e&&(U=e)},children:[p&&(0,i.jsx)("label",{className:"common-input-label",htmlFor:r,children:p}),(0,i.jsxs)("div",{className:a("common-input-group",l),children:[(0,i.jsx)("input",{id:r,className:a("common-input",v&&"has-icon",s),title:h,role:c||"textbox",tabIndex:y?-1:0,"aria-label":d,"aria-hidden":u,type:b||"text",placeholder:m,value:M,readOnly:!!w,autoFocus:x,onClick:e=>{S&&e.target.select(),j&&!L&&D(!0)},onChange:e=>{let t=e.target.value;var n;t&&F&&(t=(null===(n=t.match(F))||void 0===n?void 0:n.join(""))||""),w||M===t||R(t),k&&k(t)},onKeyDown:e=>{const n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n){let t=M;N&&(t=N(M,f||""),R(t)),C&&(e.preventDefault(),C(t))}else if(j&&"ArrowDown"===e.key){var r;L?null===(r=document.getElementById(V(B[0])))||void 0===r||r.focus():(z(),setTimeout(()=>{var e;null===(e=document.getElementById(V(B[0])))||void 0===e||e.focus()},0)),e.preventDefault(),e.stopPropagation()}else if(j&&L&&"ArrowUp"===e.key){var i;null===(i=document.getElementById(V(B[B.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{let e=M;N&&(e=N(M,f||""),R(e)),P&&P(e),O||R("")},onFocus:()=>{T&&T(M)},autoComplete:E?"":"off",autoCorrect:E?"":"off",autoCapitalize:E?"":"off",spellCheck:E,disabled:y,ref:A}),v&&(_?(0,i.jsx)(Me,{leftIcon:v,title:g,disabled:y,onClick:()=>{_&&_(M)}}):(0,i.jsx)("i",{className:v,"aria-hidden":!0})),j&&(0,i.jsx)(Me,{leftIcon:L?"fas fa-chevron-up":"fas fa-chevron-down",title:g,disabled:y,ariaHasPopup:"listbox",ariaExpanded:L,ariaLabel:d,tabIndex:-1,onClick:z})]}),L&&(0,i.jsx)(Fe,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=V(M))&&void 0!==n?n:V(B[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,i.jsx)("ul",{role:"presentation",onKeyDown:e=>{var t;"Escape"===e.code&&(e.target.blur(),z(),null===(t=document.getElementById(r))||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())},children:Object.keys(j).map(e=>(0,i.jsx)("li",{role:"presentation",children:(0,i.jsx)(Me,{title:e,label:e,id:V(j[e]),className:a("common-dropdown-item"),onClick:()=>(e=>{var t;D(!1);const n=j[e];R(n),I&&I(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:V(j[e])===V(null!=M?M:f),role:"option"})},e))})})]})};function Br(e,t){switch(e.type){case"string":case"longString":return function(e,t){return function(e,t){return t&&e.maxCharacters&&t.length>e.maxCharacters?{valid:!1,message:m.ExceedsMaxLength}:{valid:!0}}(e,t)}(e,t);case"number":return function(e,t){const n=Number(t);return isNaN(n)?{valid:!1,message:m.MustBeANumber}:void 0!==e.min&&n<e.min?{valid:!1,message:m.BelowMin}:void 0!==e.max&&n>e.max?{valid:!1,message:m.ExceedsMax}:{valid:!0}}(e,t);default:return{valid:!0}}}class Ur{constructor(e){this.iframe=e,this.readyForMessages=!1,this.messageQueue=[],this.nextId=0,this.pendingMessages={},this.editorEventListeners={},this.port=void 0,this.portRequestPending=void 0,this.frameId=void 0,this.onMessageReceived=e=>{const t=e.data;if(t){if(this.frameId&&t.frameId!==this.frameId)return;if("iframeclientready"===t.type)return void(this.frameId&&!this.port?this.createMessagePort():(this.readyForMessages=!0,this.sendMessageCore()));if("iframeclientsetmessageport"===t.type)return}this.handleMessage(e)};const t=new URLSearchParams(new URL(e.src).search);t.has("frameid")&&(this.frameId=t.get("frameid")),window.addEventListener("message",this.onMessageReceived),e.contentWindow&&e.contentWindow.postMessage({type:"iframeclientready"},"*")}dispose(){window.removeEventListener("message",this.onMessageReceived),this.port&&this.port.close()}addEventListener(e,t){this.editorEventListeners[e]||(this.editorEventListeners[e]=[]),this.editorEventListeners[e].push(t)}removeEventListener(e,t){if(this.editorEventListeners[e]){const n=this.editorEventListeners[e].filter(e=>e!==t);0===n.length?delete this.editorEventListeners[e]:this.editorEventListeners[e]=n}}resolvePendingMessage(e){const t=e.data;if(t.id&&this.pendingMessages[t.id]){const t=e.data,n=this.pendingMessages[t.id];delete this.pendingMessages[t.id],t.success?n.resolve(t):n.reject(t.error||new Error("Unknown error: iFrame returned failure"))}}fireEvent(e,t){const n=this.editorEventListeners[e];if(n)for(const e of n)try{e(t)}catch(e){pxt.error(e)}}sendRequest(e){return new Promise((t,n)=>{e.response=!0,e.id=this.nextId+++"",this.pendingMessages[e.id]={original:e,resolve:t,reject:n},this.sendMessageCore(e)})}sendMessageCore(e){if(e&&this.messageQueue.push(e),this.readyForMessages)for(;this.messageQueue.length;){const e=this.messageQueue.shift();var t;this.port?this.port.postMessage(e):null===(t=this.iframe.contentWindow)||void 0===t||t.postMessage(e,"*"),this.fireEvent("sent",e)}}createMessagePort(){if(this.port||this.portRequestPending)return;this.portRequestPending=!0;const e=new MessageChannel;e.port1.onmessage=t=>{this.port||(this.port=e.port1,this.frameId=void 0,window.removeEventListener("message",this.onMessageReceived),this.readyForMessages=!0,this.sendMessageCore()),this.onMessageReceived(t)},this.iframe.contentWindow.postMessage({type:"iframeclientsetmessageport"},"*",[e.port2])}}class zr extends Ur{constructor(e,t){super(e),this.iframe=e,this.host=t}async switchEditorLanguage(e){let t;switch(e){case"blocks":t="switchblocks";break;case"typescript":t="switchjavascript";break;case"python":t="switchpython"}await this.sendRequest({type:"pxteditor",action:t})}async setLanguageRestriction(e){await this.sendRequest({type:"pxteditor",action:"setlanguagerestriction",restriction:e})}async startSimulator(){await this.sendRequest({type:"pxteditor",action:"startsimulator"})}async stopSimulator(e=!1){await this.sendRequest({type:"pxteditor",action:"stopsimulator",unload:e})}async restartSimulator(){await this.sendRequest({type:"pxteditor",action:"restartsimulator"})}async hideSimulator(){await this.sendRequest({type:"pxteditor",action:"hidesimulator"})}async showSimulator(){await this.sendRequest({type:"pxteditor",action:"showsimulator"})}async setSimulatorFullscreen(e){await this.sendRequest({type:"pxteditor",action:"setsimulatorfullscreen",enabled:e})}async closeFlyout(){await this.sendRequest({type:"pxteditor",action:"closeflyout"})}async unloadProject(){await this.sendRequest({type:"pxteditor",action:"unloadproject"})}async saveProject(){await this.sendRequest({type:"pxteditor",action:"saveproject"})}async compile(){await this.sendRequest({type:"pxteditor",action:"compile"})}async undo(){await this.sendRequest({type:"pxteditor",action:"undo"})}async redo(){await this.sendRequest({type:"pxteditor",action:"redo"})}async setHighContrast(e){await this.sendRequest({type:"pxteditor",action:"sethighcontrast",on:e})}async showThemePicker(){await this.sendRequest({type:"pxteditor",action:"showthemepicker"})}async showExtensions(){await this.sendRequest({type:"pxteditor",action:"showextensions"})}async toggleHighContrast(){await this.sendRequest({type:"pxteditor",action:"togglehighcontrast"})}async toggleGreenScreen(){await this.sendRequest({type:"pxteditor",action:"togglegreenscreen"})}async toggleAccessibleBlocks(){await this.sendRequest({type:"pxteditor",action:"togglekeyboardcontrols"})}async toggleSloMo(e){await this.sendRequest({type:"pxteditor",action:"toggletrace",intervalSpeed:e})}async setSloMoEnabled(e,t){await this.sendRequest({type:"pxteditor",action:"settracestate",enabled:e,intervalSpeed:t})}async printProject(){await this.sendRequest({type:"pxteditor",action:"print"})}async getInfo(){return(await this.sendRequest({type:"pxteditor",action:"info"})).resp}async newProject(e){await this.sendRequest({type:"pxteditor",action:"newproject",options:e})}async importProject(e,t,n){await this.sendRequest({type:"pxteditor",action:"importproject",project:e,filters:t,searchBar:n})}async importExternalProject(e){return(await this.sendRequest({type:"pxteditor",action:"importexternalproject",project:e})).resp.importUrl}async openHeader(e){await this.sendRequest({type:"pxteditor",action:"openheader",headerId:e})}async shareHeader(e,t){return(await this.sendRequest({type:"pxteditor",action:"shareproject",headerId:e,projectName:t})).resp}async startActivity(e,t,n,r,i){await this.sendRequest({type:"pxteditor",action:"startactivity",activityType:e,path:t,title:n,previousProjectHeaderId:r,carryoverPreviousCode:i})}async importTutorial(e){await this.sendRequest({type:"pxteditor",action:"importtutorial",markdown:e})}async pair(){await this.sendRequest({type:"pxteditor",action:"pair"})}async decompileToBlocks(e,t,n){return(await this.sendRequest({type:"pxteditor",action:"renderblocks",ts:e,snippetMode:t,layout:n})).resp}async decompileToPython(e){return(await this.sendRequest({type:"pxteditor",action:"renderpython",ts:e})).resp.python}async renderXml(e){return(await this.sendRequest({type:"pxteditor",action:"renderxml",xml:e})).resp}async renderByBlockId(e){return(await this.sendRequest({type:"pxteditor",action:"renderbyblockid",blockId:e})).resp}async getToolboxCategories(e){return(await this.sendRequest({type:"pxteditor",action:"gettoolboxcategories",advanced:e})).resp.categories}async getBlockAsText(e){var t;return null===(t=(await this.sendRequest({type:"pxteditor",action:"getblockastext",blockId:e})).resp)||void 0===t?void 0:t.blockAsText}async runValidatorPlan(e,t){return(await this.sendRequest({type:"pxteditor",action:"runeval",validatorPlan:e,planLib:t})).resp}async saveLocalProjectsToCloud(e){return(await this.sendRequest({type:"pxteditor",action:"savelocalprojectstocloud",headerIds:e})).resp}async convertCloudProjectsToLocal(e){await this.sendRequest({type:"pxteditor",action:"convertcloudprojectstolocal",userId:e})}async requestProjectCloudStatus(e){await this.sendRequest({type:"pxteditor",action:"requestprojectcloudstatus",headerIds:e})}async precacheTutorial(e){await this.sendRequest({type:"pxteditor",action:"precachetutorial",data:e})}async setColorTheme(e,t){await this.sendRequest({type:"pxteditor",action:"setcolorthemebyid",colorThemeId:e,savePreference:t})}addEventListener(e,t){super.addEventListener(e,t)}sendMessage(e){return this.sendRequest(e)}handleMessage(e){const t=e.data;t&&/^pxt(host|editor|pkgext|sim)$/.test(t.type)&&("pxteditor"===t.type?this.resolvePendingMessage(e):"pxthost"===t.type&&("editorcontentloaded"===t.action?(this.readyForMessages=!0,this.sendMessageCore()):"workspacesync"!==t.action&&"workspacesave"!==t.action&&"workspacereset"!==t.action&&"workspaceloaded"!==t.action||this.handleWorkspaceSync(t),this.fireEvent(t.action,t)),this.fireEvent("message",t))}async handleWorkspaceSync(e){if(!this.host)return;let t;try{if("workspacesync"===e.action){const t=await this.host.getWorkspaceProjects();this.sendMessageCore({type:"pxthost",id:e.id,success:!!t,projects:null==t?void 0:t.projects,editor:null==t?void 0:t.editor,controllerId:null==t?void 0:t.controllerId})}else"workspacereset"===e.action?await this.host.resetWorkspace():"workspacesave"===e.action?await this.host.saveProject(e.project):"workspaceloaded"===e.action&&this.host.onWorkspaceLoaded&&await this.host.onWorkspaceLoaded()}catch(e){t=e,pxt.error(e)}finally{e.response&&this.sendMessageCore({type:"pxthost",id:e.id,success:!t,error:t})}}}var Vr=n(9349),$r=n.n(Vr);function Hr(e,t){var n;if("SHARE_ID"===e)return null===(n=t.projectMetadata)||void 0===n?void 0:n.id;G(H.unrecognizedSystemParameter,"Unrecognized system parameter",{key:e})}async function qr(e,t){const{state:n,dispatch:r}=Ee(),{projectMetadata:i}=n;if(!i)return;const o=St(n,e);if(!o)return void G(H.criteriaInstanceNotFound,"Attempting to evaluate criteria that does not exist",{criteriaInstanceId:e});const a=new Promise(async i=>{var a;const s=null===(a=n.evalResults[o.instanceId])||void 0===a?void 0:a.result;if(!t&&void 0!==s&&s!==Pt.NotStarted)return i(!0);Sr(o.instanceId,Pt.InProgress,!1);const l=n.validatorPlans;if(!l)return G(H.validatorPlansNotFound,"Attempting to evaluate criteria without any plans"),r(Pe(o.instanceId)),i(!1);const c=function(e,t){var n;const{state:r}=Ee(),i=Et(e.catalogCriteriaId);if(!i)return void G(H.evalMissingCriteria,"Attempting to evaluate criteria with unrecognized catalog id",{id:e.catalogCriteriaId});const o=null===(n=r.validatorPlans)||void 0===n?void 0:n.find(e=>e.name===i.use);if(!o)return void G(H.evalMissingPlan,"Attempting to evaluate criteria with unrecognized plan",{plan:i.use});const a=pxt.Util.deepCopy(o);for(const n of null!==(s=e.params)&&void 0!==s?s:[]){var s,l;const o=null===(l=i.params)||void 0===l?void 0:l.find(e=>e.name===n.name);if(!o)return void(t&&G(H.evalMissingCatalogParameter,"Attempting to evaluate criteria with unrecognized parameter",{catalogId:e.catalogCriteriaId,paramName:n.name}));if("system"===o.type){const e=o;e.key&&(n.value=Hr(e.key,r)),n.value||(n.value=o.default)}if(!n.value)return void(t&&G(H.evalParameterUnset,"Attempting to evaluate criteria with unset parameter value",{catalogId:e.catalogCriteriaId,paramName:n.name}));const c=Br(o,n.value);if(!c.valid)return void(t&&G(H.invalidParameterValue,c.message,{catalogId:e.catalogCriteriaId,paramName:n.name}));for(const e of o.paths)$r().apply(a,e,()=>n.value)}return a}(o,t);if(X(`${o.instanceId}: Generated Plan`,c),!c)return r(Pe(o.instanceId)),i(!1);try{var u;let t=await async function(e){if("ai_question"===e.name)return await async function(e){if(1!==e.checks.length||"aiQuestion"!==e.checks[0].validator)return void G(H.invalidValidatorPlan,{planName:e.name,checks:e.checks});const t=e.checks[0],n=(t.question||"").trim();if(n.length<b.MinAIQuestionLength)return X(`Skipping AI validation: question below min length (${n.length}/${b.MinAIQuestionLength}).`),{executionSuccess:!1,result:void 0,notes:void 0,executionErrorMsg:m.QuestionTooShort};X(`Asking question: '${n}' on project with shareId: '${t.shareId}'`);const r=await async function(e,t){const n=pxt.BrowserUtils.appendCopilotServerQueryParam("/api/copilot/question"),r={id:e,question:t=pxt.Util.cleanData(t)};let i="";try{const e=await pxt.auth.AuthClient.staticApiAsync(n,r,"POST");if(!e.success)throw new Error(e.err||lf("Unable to reach AI. Error code: {0}",e.statusCode));i=await e.resp}catch(e){G(H.askAIQuestion,e)}return i}(t.shareId,n);return X(`Response: ${r}`),{executionSuccess:!!r,result:void 0,notes:r,executionErrorMsg:r?void 0:m.UnableToReachAI}}(e)}(c);if(t||(t=await async function(e,t){let n;try{if(n=await Gr.runValidatorPlan(e,t),!n)throw new Error("Missing response data.")}catch(e){G(H.runEval,e)}return n}(c,l)),null!==(u=t)&&void 0!==u&&u.executionSuccess){const e=void 0===t.result?Pt.CompleteWithNoResult:t.result?Pt.Pass:Pt.Fail;return function(e,t,n,r){const{state:i,dispatch:o}=Ee(),a={...i.evalResults[e]};a.error=void 0,void 0!==n&&(a.result=n,a.resultIsManual=!1),void 0!==r&&(a.notes!==r&&Mr(e,void 0),a.notes=r),Er(e,a)}(o.instanceId,0,e,t.notes),i(!0)}var d,f;return Er(o.instanceId,{result:Pt.NotStarted,resultIsManual:!1,error:null!==(d=null===(f=t)||void 0===f?void 0:f.executionErrorMsg)&&void 0!==d?d:m.UnexpectedError}),Mr(e,void 0),i(!1)}catch(t){return pxt.tickEvent(g.UnhandledEvalError,{catalogCriteriaId:o.catalogCriteriaId,error:null==t?void 0:t.message}),Mr(e,void 0),Er(o.instanceId,{result:Pt.NotStarted,resultIsManual:!1,error:m.UnexpectedError}),i(!1)}});return await a}async function Wr(e){const{state:t}=Ee(),{projectMetadata:n}=t;if(!n)return;e&&ut("results");const r=t.checklist.criteria.map(t=>qr(t.instanceId,e));if(0===r.length)return;const i=await Promise.all(r);if(e){const e=i.filter(e=>!e).length;e===t.checklist.criteria.length?tt(w("error",m.UnableToEvaluate)):tt(e>0?w("error",m.UnableToEvaluatePartial):w("success",m.EvaluationComplete))}}let Gr;async function Xr(e){return Gr?await Gr.getToolboxCategories(e):void 0}const Yr=({initialValue:t,instance:n,param:r,shouldExpand:o,numeric:s,minLength:l})=>{const[c,u]=(0,e.useState)(t?"":m.ValueRequired),d=(0,e.useMemo)(()=>function(e,t){var n;const r=Et(e);return null==r||null===(n=r.params)||void 0===n?void 0:n.find(e=>e.name===t)}(n.catalogCriteriaId,r.name),[r]),f=(0,e.useMemo)(()=>{var e;if(null!=d&&null!==(e=d.options)&&void 0!==e&&e.length)return d.options.reduce((e,t)=>{var n;const r=t.label||t.value,i=null!==(n=t.value)&&void 0!==n?n:r;return r&&i&&(e[r]=i),e},{})},[d]);function p(e){e||u(m.ValueRequired),l&&e.trim().length<l&&u(m.QuestionTooShort),Dr(n.instanceId,r.name,e)}(0,e.useEffect)(()=>{if(!d)return;if(!t)return void u(m.ValueRequired);if(l&&t.trim().length<l)return void u(m.QuestionTooShort);const e=Br(d,t);var n;e.valid?u(""):u(null!==(n=e.message)&&void 0!==n?n:m.InvalidValue)},[t]);const h=c?`${r.name}: ${c}`:r.name;return(0,i.jsx)("div",{title:h,className:Lr["inline-input-wrapper"],children:(0,i.jsx)(Fr,{className:a(Lr["inline-input"],s?Lr["number-input"]:Lr["string-input"],o?Lr.long:void 0,c?Lr.error:void 0),options:f,icon:c?"fas fa-exclamation-triangle":void 0,initialValue:t,onChange:p,onOptionSelected:p,preserveValueOnBlur:!0,placeholder:s?"0":r.name,title:h,filter:s&&!f?"[0-9]{1,2}":void 0})})},Kr=({blockId:t})=>{const{state:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(void 0);(0,e.useEffect)(()=>{!async function(e){let t;e&&(t=e?await async function(e){let t=function(e){const t=ae(e);try{const e=te(t);return e?JSON.parse(e):void 0}catch(e){return void G(H.localStorageReadError,e)}}(e);return t||(t=await async function(e){return Gr?await Gr.getBlockAsText(e):void 0}(e),t&&function(e,t){const n=ae(e);try{ne(n,JSON.stringify(t))}catch(e){G(H.localStorageWriteError,e)}}(e,t),t)}(e):void 0),t?o(t):n.toolboxCategories?o({parts:[{kind:"label",content:e}]}):o(void 0)}(t)},[t,n.toolboxCategories]);const s=null==r?void 0:r.parts.map((e,t)=>{let n="";return"param"===e.kind?n=lf("value"):"label"===e.kind&&e.content&&(n=e.content),(0,i.jsx)("span",{className:a(Lr["block-name-segment"],"param"===e.kind?Lr["block-name-param"]:Lr["block-name-label"]),children:n},`block-name-part-${t}`)});return(0,i.jsx)("span",{className:Lr["block-readable-name"],children:s||(0,i.jsx)("div",{className:"common-spinner"})})},Qr=({instance:t,param:n})=>{const{state:r}=(0,e.useContext)(Se),o=(0,e.useMemo)(()=>{if(n.value&&r.toolboxCategories)for(const t of Object.values(r.toolboxCategories)){var e;const r=null===(e=t.blocks)||void 0===e?void 0:e.find(e=>e.blockId===n.value);if(r)return{category:t,block:r}}},[n.value,r.toolboxCategories]),s=o?{backgroundColor:o.category.color,color:"white"}:void 0,l=n.value?(0,i.jsx)(Kr,{blockId:n.value}):n.name;return(0,i.jsx)(Me,{label:l,className:a(Lr["block-input-btn"],n.value?void 0:Lr.error),onClick:function(){pxt.tickEvent(g.BlockPickerOpened,{criteriaCatalogId:t.catalogCriteriaId}),Je({modal:"block-picker",criteriaInstanceId:t.instanceId,paramName:n.name})},title:n.value?m.SelectBlock:`${m.SelectBlock}: ${m.ValueRequired}`,leftIcon:n.value?void 0:"fas fa-exclamation-triangle",style:s})},Jr=({criteriaInstance:e})=>{const t=Et(e.catalogCriteriaId);if(!t)return null;const n=S(t.template).map(n=>{return"plain-text"===n.type?(r=n.content)?(0,i.jsx)("div",{className:Lr["text-segment"],children:r}):null:function(n){var r,o;if(!n)return null;const a=null==t||null===(r=t.params)||void 0===r?void 0:r.find(e=>e.name===n),s=null==e||null===(o=e.params)||void 0===o?void 0:o.find(e=>e.name===n);if(!a||!s)return X(`Missing info for '${n}': paramDef=${a}, paramInstance=${s}`),null;if("block"===a.type)return(0,i.jsx)(Qr,{param:s,instance:e});{const n="ai_question"===(null==t?void 0:t.use)&&"question"===a.name?b.MinAIQuestionLength:void 0;return(0,i.jsx)(Yr,{initialValue:s.value,param:s,instance:e,shouldExpand:"longString"===a.type,numeric:"number"===a.type,minLength:n})}}(n.content);var r});return t?(0,i.jsxs)("div",{className:Lr["criteria-instance-display"],children:[(0,i.jsx)("div",{className:Lr["segment-container"],children:n.map((e,t)=>(0,i.jsx)("span",{className:Lr.segment,children:e},t))}),(0,i.jsx)("div",{className:a(Lr["criteria-description"],"no-print"),children:t.description}),(0,i.jsx)("div",{className:a(Lr["criteria-description"],Lr["for-print"],"only-print"),children:t.description})]}):null},Zr=({criteriaId:t})=>{var n;const{state:r}=(0,e.useContext)(Se),o=null===(n=r.evalResults[t])||void 0===n?void 0:n.notes;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:a(br,"no-print"),children:(0,i.jsx)(Ar,{placeholder:lf("Write your notes here"),ariaLabel:lf("Feedback regarding the criteria result"),label:lf("Feedback"),title:lf("Write your notes here"),initialValue:o,autoResize:!0,onChange:e=>{!function(e,t){const{state:n,dispatch:r}=Ee();Er(e,{...n.evalResults[e],notes:t})}(t,e)},autoComplete:!1,intervalMs:500})}),o&&(0,i.jsx)("div",{className:a(br,"EvalResultDisplay_for-print__Rnqa+","only-print"),children:o})]})},ei=({criteriaInstanceId:e,error:t})=>(0,i.jsxs)("div",{className:a("EvalResultDisplay_result-error__a+sfL","no-print"),children:[(0,i.jsx)("i",{className:"fas fa-exclamation-circle"}),(0,i.jsxs)("div",{className:"EvalResultDisplay_error-info-container__jqhSa",children:[(0,i.jsx)("span",{className:"EvalResultDisplay_error-title__xcwl+",children:m.UnableToEvaluate}),(0,i.jsx)("span",{className:"EvalResultDisplay_error-details__xm+u3",children:t})]}),(0,i.jsx)(Me,{className:"EvalResultDisplay_dismiss-button__UtBgi",leftIcon:"fas fa-times-circle",title:m.Dismiss,onClick:()=>Er(e,{result:Pt.NotStarted,resultIsManual:!1,error:void 0})})]}),ti=({criteriaId:t})=>{const{state:n}=(0,e.useContext)(Se),r=!_t(n);return(0,i.jsxs)("div",{className:a("EvalResultDisplay_result-toolbar-tray__RV0m1","no-print"),children:[(0,i.jsx)(Me,{className:a("secondary",vr,gr),rightIcon:"fas fa-trash",title:m.Remove,onClick:async function(){confirm(m.ConfirmDeleteCriteriaInstance)&&function(e){const{state:t}=Ee();X(`Removing criteria with id: ${e}`);const n=St(t,e),r=null==n?void 0:n.catalogCriteriaId;At({...t.checklist,criteria:t.checklist.criteria.filter(t=>t.instanceId!==e)}),r&&pxt.tickEvent(g.RemoveCriteria,{catalogCriteriaId:r})}(t)}}),(0,i.jsx)(Me,{className:a("secondary",vr,gr,r?"EvalResultDisplay_disabled__ZOCV4":""),rightIcon:"fas fa-play",title:m.Evaluate,onClick:async function(){var e,r;const i=St(n,t);pxt.tickEvent(g.SingleEvaluate,{catalogCriteriaId:null!==(e=null==i?void 0:i.catalogCriteriaId)&&void 0!==e?e:"",checklistHash:_(n.checklist),projectId:T(null===(r=n.projectMetadata)||void 0===r?void 0:r.id)}),tt(await qr(t,!0)?w("success",m.EvaluationComplete):w("error",m.UnableToEvaluate))},disabled:r})]})},ni=({criteriaId:t})=>{const{state:n}=(0,e.useContext)(Se),r=n.evalResults[t],o=r?r.result:Pt.NotStarted,s=!(null==r||!r.notes),l=!(null==r||!r.error),c=St(n,t),u=c?Et(c.catalogCriteriaId):void 0,d=o===Pt.InProgress,f=o===Pt.NotStarted;return(0,i.jsx)(i.Fragment,{children:u&&c&&(0,i.jsxs)("div",{className:"EvalResultDisplay_specific-criteria-result__9RJhy","aria-busy":d,children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_result-details__PzpKE",children:[(0,i.jsx)(Jr,{criteriaInstance:c}),!d&&(0,i.jsxs)("div",{className:"EvalResultDisplay_result-controls__qd+FO",children:[(0,i.jsx)(Pr,{result:o,criteriaId:t}),(0,i.jsx)(ti,{criteriaId:t})]})]}),d?(0,i.jsx)(jr,{className:"EvalResultDisplay_loading-display__k9vcu"}):l?(0,i.jsx)(ei,{criteriaInstanceId:c.instanceId,error:r.error}):(0,i.jsx)("div",{className:a("EvalResultDisplay_result-notes__yMfib",s?void 0:"no-print"),children:(0,i.jsx)(Zr,{criteriaId:t})}),!d&&!f&&!l&&u.requestFeedback&&(0,i.jsx)(Rr,{criteriaInstanceId:c.instanceId,className:a("no-print","EvalResultDisplay_criteria-feedback__hjU79")}),(0,i.jsx)("div",{className:yr})]},t)})};var ri,ii=Object.defineProperty,oi=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,li=(e,t,n)=>t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n,i=1,a=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const r=8*t.getNumDataCodewords(u,n),i=s.getTotalBits(e,u);if(i<=r){d=i;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(u,n);o(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach((e,t)=>h[t>>>3]|=e<<7-(7&t)),new t(u,n,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);o(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(r,e));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(r,o,n),this.setFunctionModule(o,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,a=t+n;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,c=Math.floor(s/i);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+c-a+(n<l?0:1));r+=i.length;const o=t.reedSolomonComputeRemainder(i,d);n<l&&i.push(0),u.push(i.concat(o))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=c-a||n>=l)&&f.push(t[e])});return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let o=0;o<2;o++){const a=t-o,s=t+1&2?r:this.size-1-r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][a],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const i of e){const e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(ri||(ri={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(ri||(ri={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(ri||(ri={}));var ci=ri,ui={L:ci.QrCode.Ecc.LOW,M:ci.QrCode.Ecc.MEDIUM,Q:ci.QrCode.Ecc.QUARTILE,H:ci.QrCode.Ecc.HIGH},di=128,fi="L",pi="#FFFFFF",hi="#000000",mi=!1;function vi(t){const n=t,{value:r,size:i=di,level:o=fi,bgColor:a=pi,fgColor:s=hi,includeMargin:l=mi,imageSettings:c}=n,u=((e,t)=>{var n={};for(var r in e)ai.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oi)for(var r of oi(e))t.indexOf(r)<0&&si.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=ci.QrCode.encodeText(r,ui[o]).getModules();const f=l?4:0,p=d.length+2*f,h=function(e,t,n,r){if(null==r)return null;const i=n?4:0,o=e.length+2*i,a=Math.floor(.1*t),s=o/t,l=(r.width||a)*s,c=(r.height||a)*s,u=null==r.x?e.length/2-l/2:r.x*s,d=null==r.y?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:f}}(d,i,l,c);let m=null;null!=c&&null!=h&&(null!=h.excavation&&(d=function(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}(d,h.excavation)),m=e.createElement("image",{xlinkHref:c.src,height:h.h,width:h.w,x:h.x+f,y:h.y+f,preserveAspectRatio:"none"}));const v=function(e,t=0){const n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(o,a){if(!o&&null!==i)return n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${i+t},${r+t} h${a+1-i}v1H${i+t}z`)}})}),n.join("")}(d,f);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))ai.call(t,n)&&li(e,n,t[n]);if(oi)for(var n of oi(t))si.call(t,n)&&li(e,n,t[n]);return e})({height:i,width:i,viewBox:`0 0 ${p} ${p}`},u),e.createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),e.createElement("path",{fill:s,d:v,shapeRendering:"crispEdges"}),m)}function gi(e){const{state:t,dispatch:n}=Ee();e&&t.catalogOpen&&yi(!1),t.askAiOpen!==e&&n((e=>({type:"SET_ASK_AI_OPEN",open:e}))(e))}function yi(e){const{state:t,dispatch:n}=Ee();e&&t.askAiOpen&&gi(!1),t.catalogOpen!=e&&n((e=>({type:"SET_CATALOG_OPEN",open:e}))(e))}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();const bi=({})=>{const{state:t}=(0,e.useContext)(Se),n=!!t.catalogOpen;return(0,i.jsx)(Me,{className:a("inline","outline-button"),label:m.AddCriteria,onClick:()=>yi(!n),title:m.AddCriteria,leftIcon:"fas fa-plus-circle",rightIcon:n?"fas fa-check":void 0})},wi=({})=>{const{state:t}=(0,e.useContext)(Se),n=!!t.askAiOpen;return(0,i.jsx)(Me,{className:a("inline","outline-button"),label:m.AskAI,onClick:()=>gi(!n),title:m.AskAI,leftIcon:"fas fa-robot",rightIcon:n?"fas fa-check":void 0})},xi=({intervalMs:t=500,...n})=>{const r=(0,e.useRef)(void 0),o=(0,e.useRef)(""),a=()=>{n.onChange&&n.onChange(o.current)};return(0,e.useEffect)(()=>()=>{r.current&&(clearTimeout(r.current),a())},[]),(0,i.jsx)(Fr,{...n,onChange:e=>{o.current=e,r.current&&clearTimeout(r.current),r.current=setTimeout(a,t)}})};function Ei(e){const{state:t}=Ee();t.checklist.name!==e&&At({...t.checklist,name:e})}const Si=({printRef:t})=>{var n,r,o,s;const{state:l}=(0,e.useContext)(Se),{checklist:c,projectMetadata:u}=l;let{name:d}=c;const[f,p]=(0,e.useState)(),h=(0,xr.useReactToPrint)({content:()=>t.current,onPrintError:()=>Ce(w("error",lf("Unable to print evaluation results"),2e3)),documentTitle:`${pxt.Util.sanitizeFileName(Tt(l))} - ${pxt.Util.sanitizeFileName((null===(n=l.projectMetadata)||void 0===n?void 0:n.name)||m.UntitledProject)}`});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_header__XkIrv",children:[(0,i.jsxs)("div",{className:wr,children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_checklist-name-input__wG5OM",children:[(0,i.jsx)("div",{className:a(wr,"only-print"),children:(0,i.jsx)("h2",{children:d})}),(0,i.jsx)(xi,{className:"no-print",ariaLabel:m.Name,onChange:Ei,placeholder:m.ChecklistNamePlaceholder,initialValue:d,preserveValueOnBlur:!0,handleInputRef:p,onFocus:()=>null==f?void 0:f.select()})]}),u&&(0,i.jsxs)("div",{className:a("EvalResultDisplay_project-details__0IJH+","only-print"),children:[(0,i.jsxs)("div",{className:"EvalResultDisplay_project-text__C+-Wn",children:[(0,i.jsx)("h3",{children:null==l||null===(r=l.projectMetadata)||void 0===r?void 0:r.name}),(0,i.jsx)("p",{children:E(null===(o=l.projectMetadata)||void 0===o?void 0:o.inputText)})]}),(0,i.jsx)("div",{className:"EvalResultDisplay_project-qrcode__Bo6ad",children:(0,i.jsx)(vi,{size:60,value:E(null===(s=l.projectMetadata)||void 0===s?void 0:s.inputText)})})]})]}),(0,i.jsxs)("div",{className:a("EvalResultDisplay_checklist-control-tray__D15BX","no-print"),children:[(0,i.jsx)(Me,{className:a("secondary",vr),label:m.Export,title:m.ExportChecklist,rightIcon:"fas fa-download",onClick:()=>{pxt.tickEvent(g.ExportChecklist),function(e){const t=`${(e.name?pxt.Util.sanitizeFileName(e.name):"")||lf("unnamed-checklist")}.json`,n=JSON.stringify(e,null,4);try{return pxt.BrowserUtils.browserDownloadText(n,t),!0}catch(e){return G(H.unableToExportChecklist,e),!1}}(c)},disabled:0===c.criteria.length}),(0,i.jsx)(Me,{className:a("secondary",vr),label:m.Print,title:m.PrintChecklist,rightIcon:"fas fa-print",onClick:()=>{pxt.tickEvent(g.Print),h()},disabled:0===c.criteria.length}),(0,i.jsx)(Me,{className:a("primary",vr),label:m.Evaluate,title:m.EvaluateChecklist,rightIcon:"fas fa-play",onClick:async()=>{pxt.tickEvent(g.BulkEvaluate,{fromUserInteraction:!0+"",runOnLoad:!1+"",criteriaCount:c.criteria.length,catalogCriteriaIds:JSON.stringify(c.criteria.map(e=>e.catalogCriteriaId)),checklistHash:_(c),projectId:T(null==u?void 0:u.id)}),await Wr(!0)},disabled:!_t(l)||0===c.criteria.length})]})]}),(0,i.jsx)("div",{className:yr})]})},ki=()=>{const{state:t}=(0,e.useContext)(Se),{checklist:n}=t,{criteria:r}=n;return(0,i.jsx)("div",{className:"EvalResultDisplay_results-list__iAYMf",children:Object.values(r).map(e=>(0,i.jsx)(ni,{criteriaId:e.instanceId},e.instanceId))})},Ci=()=>(0,i.jsxs)("div",{className:a("EvalResultDisplay_footer__W5dJw","no-print"),children:[(0,i.jsx)(wi,{}),(0,i.jsx)(bi,{})]}),_i=({resultsRef:e})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"EvalResultDisplay_eval-results-container__9XZK7",ref:e,children:[(0,i.jsx)(Si,{printRef:e}),(0,i.jsx)(ki,{}),(0,i.jsx)(Ci,{})]})}),Ti=()=>(0,i.jsxs)(ft,{children:[(0,i.jsx)(dt,{name:"home",children:m.Home}),(0,i.jsx)(dt,{name:"results",children:m.Checklist})]}),Pi=({resultsRef:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(pt,{name:"home",children:(0,i.jsx)(mr,{})}),(0,i.jsx)(pt,{name:"results",children:(0,i.jsx)(_i,{resultsRef:e})})]}),Ii=()=>{const t=(0,e.useRef)(null);return(0,i.jsxs)("div",{className:"ChecklistWorkspace_panel__MBC+K",children:[(0,i.jsx)(ct,{left:(0,i.jsx)(Ti,{})}),(0,i.jsx)(Pi,{resultsRef:t})]})};async function Ai(e,t,n){const{dispatch:r}=Ee(),i=pxt.Cloud.parseScriptId(t);if(!i)return tt(w("error",lf("Invalid share link"))),void r(Te(void 0));const o=await async function(e){try{const t=`${pxt.Cloud.apiRoot}/${e}`,n=await fetch(t);if(n.ok)return await n.json();throw new Error("Unable to fetch the project meta information")}catch(e){G(H.getProjectMetaAsync,e)}}(i);if(!o)return tt(w("error",lf("Failed to load project"))),void r(Te(void 0));if(o.target!==pxt.appTarget.id)return tt(w("error",lf("That project was built with a different MakeCode editor"))),void r(Te(void 0));const a={...o,inputText:e};r(Te(a,n)),function(){const{dispatch:e}=Ee();It({overwriteExistingEntries:!0}),e({type:"CLEAR_ALL_EVAL_RESULT_NOTES"})}(),X("Loaded project metadata",o)}const Oi=()=>{const{state:t}=(0,e.useContext)(Se),{projectMetadata:n}=t,[r,o]=(0,e.useState)(""),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)();(0,e.useEffect)(()=>{const e=pxt.Cloud.parseScriptId(r);l(!!e&&!(e===(null==n?void 0:n.shortid)||e===(null==n?void 0:n.persistId)))},[r,null==n?void 0:n.shortid,null==n?void 0:n.persistId]),(0,e.useEffect)(()=>{const e=(null==n?void 0:n.shortid)||(null==n?void 0:n.persistId);if(!r&&e){const t=new URL(e,pxt.Util.getHomeUrl()).toString();o(t)}},[null==n?void 0:n.shortid,null==n?void 0:n.persistId]);const d=(0,e.useCallback)(()=>{const e=pxt.Cloud.parseScriptId(r);if(!e)return pxt.tickEvent(g.LoadProjectInvalid),void tt(w("error",m.InvalidShareLink));const i=e===(null==n?void 0:n.shortid)||e===(null==n?void 0:n.persistId);pxt.tickEvent(g.LoadProjectFromInput,{checklistHash:_(t.checklist),isReload:i.toString()}),Ai(r,e,!0)},[r,null==n?void 0:n.shortid,null==n?void 0:n.persistId]),f=(0,e.useMemo)(()=>s?"fas fa-arrow-right":void 0,[s]);return(0,i.jsx)("div",{className:a("ShareLinkInput_share-link-input__fFei9","tt-share-link-input"),children:(0,i.jsx)(Fr,{placeholder:lf("Enter Project Link or Share ID"),ariaLabel:lf("Project Link or Share ID"),icon:f,iconTitle:lf("Submit project link or share ID"),onChange:e=>{o(e)},onEnterKey:d,onIconClick:d,onFocus:()=>null==c?void 0:c.select(),preserveValueOnBlur:!0,autoComplete:!1,handleInputRef:u,initialValue:r})})},ji=()=>(0,i.jsxs)("div",{className:"MakecodeFramePlaceholder_makecode-frame-placeholder__j3n33",children:[(0,i.jsx)("i",{className:"far fa-hand-point-up"}),(0,i.jsx)("span",{children:lf("No project loaded.")}),(0,i.jsx)("span",{children:lf("Enter a share link above to evaluate!")})]}),Ni=()=>{var t,n;const{state:r}=(0,e.useContext)(Se),[o,s]=(0,e.useState)(pxt.Util.guidGen()),[l,c]=(0,e.useState)(""),u=(0,e.useRef)(null);function d(){s(pxt.Util.guidGen())}(0,e.useEffect)(()=>{var e;const t=function(e){const t=pxt.BrowserUtils.isLocalHost()?"http://localhost:3232/index.html":(e=>{var t,n;if(!pxt.webConfig&&window.pxtConfig&&pxt.setupWebConfig(window.pxtConfig),null!==(t=pxt.webConfig)&&void 0!==t&&t.targetUrl&&null!==(n=pxt.webConfig)&&void 0!==n&&n.relprefix)return pxt.webConfig.targetUrl+pxt.webConfig.relprefix.substr(0,pxt.webConfig.relprefix.length-3);const r=/\/([\da-zA-Z\.]+)(?:--)?/i.exec(window.location.pathname);return`${e.replace(/\/$/,"")}/${(null==r?void 0:r[1])||""}`})(window.pxtTargetBundle.appTheme.embedUrl);let n=t;"/"!==t.charAt(t.length-1)||pxt.BrowserUtils.isLocalHost()||(n=t.substr(0,t.length-1));const r=e?`#pub:${e}`:"";let i="";return pxt.options.debug&&(i+="&dbg=1"),pxt.analytics.consoleTicks&&(i+="&consoleticks=1"),n+=`?controller=1&teachertool=1&readonly=1&ws=mem&nocookiebanner=1&frameid=${o}${r}${i}`,n}((null===(e=r.projectMetadata)||void 0===e?void 0:e.id)||"");l==t?d():c(t)},[o,null===(t=r.projectMetadata)||void 0===t?void 0:t.id,r.projectReloadCounter]);const f=!(null===(n=r.projectMetadata)||void 0===n||!n.id);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("iframe",{id:"code-eval-project-view-frame",className:a("MakeCodeFrame_makecode-frame__K4VQc",f?void 0:"MakeCodeFrame_invisible__FWWvH"),src:l,title:"title",ref:function(e){u.current=e,e&&function(e,t){if(Gr){if(Gr.iframe===e)return;Gr.dispose(),Gr=void 0}e&&(Gr=new zr(e),Gr.addEventListener("message",e=>{X(`Message received from iframe. ID: ${null==e?void 0:e.id}`,e)}),Gr.addEventListener("sent",e=>{X(`Sent message to iframe. ID: ${null==e?void 0:e.id}`,e)}),Gr.addEventListener("serviceworkerregistered",e=>{X("Service worker registered. Reloading iframe."),t()}),Gr.addEventListener("editorcontentloaded",e=>{const{state:t}=Ee(),{runOnLoad:n,projectMetadata:r}=t;var i;n&&r&&(pxt.tickEvent(g.BulkEvaluate,{fromUserInteraction:!0+"",runOnLoad:!0+"",criteriaCount:t.checklist.criteria.length,catalogCriteriaIds:JSON.stringify(t.checklist.criteria.map(e=>e.catalogCriteriaId)),checklistHash:_(t.checklist),projectId:T(null===(i=t.projectMetadata)||void 0===i?void 0:i.id)}),Wr(!0)),async function(){const{dispatch:e}=Ee(),[t,n]=await Promise.all([Xr(!1),Xr(!0)]),r=(null!=t?t:[]).concat(null!=n?n:[]);if(0===r.length)return;const i=r.reduce((e,t)=>{if(function(e){var t;return e.name&&0!=(null===(t=e.blocks)||void 0===t?void 0:t.length)}(t)){var n;const r=null===(n=t.blocks)||void 0===n?void 0:n.filter((e,t,n)=>n.findIndex(t=>t.blockId===e.blockId)===t);e[t.name]={...t,blocks:r}}return e},{});e((e=>({type:"SET_TOOLBOX_CATEGORIES",categories:e}))(i))}()}),Gr.setHighContrast(!1))}(e,d)}}),!f&&(0,i.jsx)(ji,{})]})},Mi={"criteria-display":"ReadonlyCriteriaDisplay_criteria-display__HTFDh","criteria-template":"ReadonlyCriteriaDisplay_criteria-template__bw5da","plain-text-segment":"ReadonlyCriteriaDisplay_plain-text-segment__Ear1R","param-segment":"ReadonlyCriteriaDisplay_param-segment__IwtzK","criteria-description":"ReadonlyCriteriaDisplay_criteria-description__G8hLB"},Ri=({catalogCriteria:t,criteriaInstance:n,showDescription:r})=>{const{state:o}=(0,e.useContext)(Se);function a(e){var t;return n&&"plain-text"!==e.type?null!==(t=function(e,t,n){var r,i;const o=St(e,t);return null==o||null===(r=o.params)||void 0===r||null===(i=r.find(e=>e.name===n))||void 0===i?void 0:i.value}(o,n.instanceId,e.content))&&void 0!==t?t:"":e.content}const s=(0,e.useMemo)(()=>S(t.template),[t.template]);return(0,i.jsxs)("div",{className:Mi["criteria-display"],children:[t.template&&(0,i.jsx)("div",{className:Mi["criteria-template"],children:s.map((e,t)=>(0,i.jsx)("span",{className:Mi[`${e.type}-segment`],children:a(e)},t))}),r&&t.description&&(0,i.jsx)("div",{className:Mi["criteria-description"],children:t.description})]})},Li=e.createContext(null),Di=e.createContext(null),Fi=({multiExpand:t,defaultExpandedIds:n,children:r})=>{const[o,a]=e.useReducer(Bi,{expanded:null!=n?n:[],multiExpand:t});return(0,i.jsx)(Li.Provider,{value:o,children:(0,i.jsx)(Di.Provider,{value:a,children:r})})};function Bi(e,t){switch(t.type){case"SET_EXPANDED":return{...e,expanded:e.multiExpand?[...e.expanded,t.id]:[t.id]};case"REMOVE_EXPANDED":return{...e,expanded:e.expanded.filter(e=>e!==t.id)}}}const Ui=Object.assign(e=>{const{children:t,id:n,className:r,ariaLabel:o,ariaHidden:s,ariaDescribedBy:l,role:c,multiExpand:u,defaultExpandedIds:d}=e;return(0,i.jsx)(Fi,{multiExpand:u,defaultExpandedIds:d,children:(0,i.jsx)("div",{className:a("common-accordion",r),id:n,"aria-label":o,"aria-hidden":s,"aria-describedby":l,role:c,children:t})})},{Header:e=>{const{id:t,className:n,ariaLabel:r,children:o}=e;return(0,i.jsx)("div",{id:t,className:a("common-accordion-header",n),"aria-label":r,children:o})},Item:t=>{const{children:n,id:r,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,role:d,noChevron:f,itemId:p,onExpandToggled:h}=t,{expanded:m}=e.useContext(Li),v=e.useContext(Di),g=null!=p?p:e.useMemo(()=>pxt.Util.guidGen(),[]),y=e.Children.toArray(n),b=-1!==m.indexOf(g),w=e.useCallback(()=>{v(b?(e=>({type:"REMOVE_EXPANDED",id:e}))(g):(e=>({type:"SET_EXPANDED",id:e}))(g)),null==h||h(!b)},[b]);return(0,i.jsxs)("div",{className:a("common-accordion",s),id:r,"aria-label":l,"aria-hidden":c,"aria-describedby":u,role:d,children:[(0,i.jsx)("button",{className:"common-accordion-header-outer","aria-expanded":b,"aria-controls":g,onClick:w,onKeyDown:o,children:(0,i.jsxs)("div",{children:[!f&&(0,i.jsx)("div",{className:"common-accordion-chevron",children:(0,i.jsx)("i",{className:a("fas",b?"fa-chevron-down":"fa-chevron-right"),"aria-hidden":!0})}),(0,i.jsx)("div",{className:"common-accordion-header-content",children:y[0]})]})}),(0,i.jsx)("div",{id:g,className:"common-accordion-panel-outer",style:{display:b?"block":"none"},children:b&&y[1]})]})},Panel:e=>{const{id:t,className:n,ariaLabel:r,children:o}=e;return(0,i.jsx)("div",{id:t,className:a("common-accordion-body",n),"aria-label":r,children:o})}}),zi="CatalogOverlay_hide-indicator__yApKo",Vi=({onClose:e})=>(0,i.jsxs)("div",{className:"CatalogOverlay_header__sjmbq",children:[(0,i.jsx)("span",{className:"CatalogOverlay_title__onPIB",children:m.SelectCriteriaDescription}),(0,i.jsx)(Me,{className:"CatalogOverlay_close-button__b7Lzu",rightIcon:"fas fa-times-circle",onClick:e,title:m.Close})]}),$i=({catalogCriteria:e,isMaxed:t,recentlyAdded:n})=>(0,i.jsxs)("div",{className:"CatalogOverlay_catalog-item-label__0zJI4",children:[(0,i.jsx)("div",{className:"CatalogOverlay_action-indicators__UIaXM",children:t?(0,i.jsx)("i",{className:"fas fa-check",title:m.MaxReached}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{className:a("fas fa-check","CatalogOverlay_recently-added-indicator__4roV1",n?void 0:zi),title:lf("Added!")}),(0,i.jsx)("i",{className:a("fas fa-plus",n?zi:void 0),title:m.AddToChecklist})]})}),(0,i.jsx)(Ri,{catalogCriteria:e,showDescription:!0})]}),Hi=({catalogCriteria:t,recentlyAddedIds:n,onItemClicked:r})=>{const{state:o}=(0,e.useContext)(Se),a=o.checklist.criteria.filter(e=>e.catalogCriteriaId===t.id).length,s=void 0!==t.maxCount&&a>=t.maxCount;return t.template?(0,i.jsx)(Me,{title:k(t),className:"CatalogOverlay_catalog-item__jSGMy",label:(0,i.jsx)($i,{catalogCriteria:t,isMaxed:s,recentlyAdded:void 0!==n[t.id]}),onClick:()=>r(t),disabled:s},t.id):null},qi=()=>{const{state:t}=(0,e.useContext)(Se),[n,o]=(0,e.useState)({}),a=(0,e.useMemo)(()=>{var e;const n={};return null===(e=function(e){var t,n;return null!==(t=null===(n=e.catalog)||void 0===n?void 0:n.filter(e=>!e.hideInCatalog&&"ai_question"!==e.use))&&void 0!==t?t:[]}(t))||void 0===e||e.forEach(e=>{if(!e.tags||0===e.tags.length)return void G(H.missingTag,{message:"Catalog criteria missing tag",criteria:e});const t=e.tags[0];n[t]||(n[t]=[]),n[t].push(e)}),n},[t.catalog]);function s(e,t){o(n=>{const r={...n};return t?r[e]=t:delete r[e],r})}function l(e){!function(e){var t;const{state:n,dispatch:i}=Ee(),o={...n.checklist,criteria:[...null!==(t=n.checklist.criteria)&&void 0!==t?t:[]]};for(const t of e){var a;const e=Et(t);if(!e){G(H.addingMissingCriteria,"Attempting to add criteria with unrecognized id",{id:t});continue}const n=null===(a=e.params)||void 0===a?void 0:a.map(e=>({name:e.name,value:e.default})),i=r();X(`Adding criteria with Catalog ID '${t}' and Instance ID '${i}'`);const s={catalogCriteriaId:t,instanceId:i,params:n};o.criteria.push(s)}At(o),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify(e)})}([e.id]),n[e.id]&&clearTimeout(n[e.id]);const t=setTimeout(()=>{s(e.id,void 0)},500);s(e.id,t),function(e){const{dispatch:t}=Ee();t((e=>({type:"SET_SCREEN_READER_ANNOUNCEMENT",announcement:e}))(e))}(lf("Added '{0}' to checklist.",k(e)))}function c(e){return`accordion-item-${e}`}const u=Object.keys(a);if(0===u.length)return G(H.noCatalogCriteria),null;let d=ue();d||(fe(u[0]),d=[u[0]]);const f=d.map(e=>c(e));return(0,i.jsx)(Ui,{className:"CatalogOverlay_catalog-list__xYFxU",multiExpand:!0,defaultExpandedIds:f,children:u.map(e=>(0,i.jsxs)(Ui.Item,{itemId:c(e),onExpandToggled:t=>function(e,t){t?fe(e):function(e){let t=ue();if(t){const n=t.indexOf(e);-1!==n&&(t.splice(n,1),de(t))}else de([])}(e)}(e,t),children:[(0,i.jsx)(Ui.Header,{children:e}),(0,i.jsx)(Ui.Panel,{children:a[e].map(e=>(0,i.jsx)(Hi,{catalogCriteria:e,recentlyAddedIds:n,onItemClicked:l},`catalog-item-${e.id}`))})]},c(e)))})},Wi=({})=>{const{state:t}=(0,e.useContext)(Se);return t.catalogOpen?(0,i.jsx)(He,{onEscape:()=>{},children:(0,i.jsx)("div",{className:"CatalogOverlay_catalog-overlay__dPVh1",children:(0,i.jsxs)("div",{className:"CatalogOverlay_catalog-content-container__opkVF",children:[(0,i.jsx)(Vi,{onClose:function(){yi(!1)}}),(0,i.jsx)(qi,{})]})})}):null},Gi={"ask-ai-overlay":"AskAIOverlay_ask-ai-overlay__wliiU","ask-ai-content-container":"AskAIOverlay_ask-ai-content-container__ht289",header:"AskAIOverlay_header__FBOY2",title:"AskAIOverlay_title__v6i7S","close-button":"AskAIOverlay_close-button__Dsp+a",content:"AskAIOverlay_content__-JFRF","ask-ai-accordion":"AskAIOverlay_ask-ai-accordion__foF0t","custom-actions":"AskAIOverlay_custom-actions__STdjS","custom-add-button":"AskAIOverlay_custom-add-button__XWJei","custom-list":"AskAIOverlay_custom-list__0DMBu","custom-item":"AskAIOverlay_custom-item__C3ItY","custom-header":"AskAIOverlay_custom-header__OSFv5",checkbox:"AskAIOverlay_checkbox__zNNHv","custom-delete-button":"AskAIOverlay_custom-delete-button__3Qcq2","prompt-list":"AskAIOverlay_prompt-list__+P0P4","custom-textarea-wrapper":"AskAIOverlay_custom-textarea-wrapper__HyrdN","textarea-error":"AskAIOverlay_textarea-error__kiN6o","validation-icon":"AskAIOverlay_validation-icon__a6lre",footer:"AskAIOverlay_footer__e6fUN","footer-button":"AskAIOverlay_footer-button__X+HrS"};function Xi(e){return(e||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}const Yi=()=>{const{state:t}=(0,e.useContext)(Se),n=t.catalog,o=e.useMemo(()=>function(e){return null==e?void 0:e.find(e=>"ai_question"===e.use)}(n),[n]),s=e.useMemo(()=>function(e){var t;const n=null==e||null===(t=e.params)||void 0===t?void 0:t.find(e=>"question"===e.name),r=null==n?void 0:n.maxCharacters;return"number"==typeof r?r:void 0}(o),[o]),l=e.useMemo(()=>function(e){var t;const n=null==e||null===(t=e.params)||void 0===t?void 0:t.find(e=>"question"===e.name),r=null==n?void 0:n.options;if(!r||!Array.isArray(r)||0===r.length)return[];const i=[],o={};return r.forEach(e=>{const t="string"==typeof e.value?e.value:void 0;if(!t)return;const n="string"==typeof e.category&&e.category.trim()?e.category.trim():lf("Prompts"),r="string"==typeof e.label&&e.label.trim()?e.label:t;let a=o[n];a||(a={title:n,items:[]},o[n]=a,i.push(a)),a.items.push({label:r,value:t})}),i.filter(e=>e.items.length>0)}(o),[o]),c=null==o?void 0:o.maxCount,u=e.useMemo(()=>o?t.checklist.criteria.filter(e=>e.catalogCriteriaId===o.id).length:0,[t.checklist.criteria,o]),d=void 0!==c?Math.max(c-u,0):void 0,[f,p]=e.useState({}),[h,v]=e.useState([{id:1,text:"",checked:!0}]),y=e.useRef(2),x=e.useRef(void 0),E=e.useCallback(()=>gi(!1),[]),S=e.useCallback(e=>{p(t=>({...t,[e]:!t[e]}))},[]),k=e.useMemo(()=>{const e=[];h.forEach(t=>{if(!t.checked)return;const n=(t.text||"").trim();n&&e.push(n)}),Object.keys(f).forEach(t=>{f[t]&&e.push(t)});const t={};return e.filter(e=>!t[e]&&(t[e]=!0))},[f,h]),C=e.useMemo(()=>Object.keys(f).reduce((e,t)=>e+(f[t]?1:0),0),[f]),_=e.useMemo(()=>h.filter(e=>e.checked).length,[h]),T=h.length>1,P=void 0===d||C+_+1<=d,I=void 0===d||P?void 0:lf("Only {0} more question(s) can be added. Remove a selection to add another custom question.",d),A=void 0===d||d>0,O=!!k.length&&A,j=e.useCallback(()=>{if(!k.length)return;const e=void 0!==d?k.slice(0,d):k;e.length&&(function(e){var t;const{state:n}=Ee(),i=null===(o=n.catalog)||void 0===o?void 0:o.find(e=>"ai_question"===(e.use||"").toLocaleLowerCase());var o;if(!i)return void G(H.addingMissingCriteria,"Attempting to add AI question criteria without catalog entry");const a=void 0!==i.maxCount?i.maxCount-n.checklist.criteria.filter(e=>e.catalogCriteriaId===i.id).length:void 0;if(void 0!==a&&a<=0)return;const s=e.map(e=>e.trim()).filter(e=>!!e),l=Array.from(new Set(s)),c=void 0!==a?l.slice(0,a):l;if(0===c.length)return;const u={...n.checklist,criteria:[...null!==(t=n.checklist.criteria)&&void 0!==t?t:[]]};for(const e of c){var d;const t=null===(d=i.params)||void 0===d?void 0:d.map(t=>{const n="question"===(t.name||"").toLocaleLowerCase()?e:t.default;return{name:t.name,value:n}}),n=r();X(`Adding AI question criteria with Catalog ID '${i.id}' and Instance ID '${n}'`);const o={catalogCriteriaId:i.id,instanceId:n,params:t};u.criteria.push(o)}At(u),pxt.tickEvent(g.AddCriteria,{ids:JSON.stringify([i.id])})}(e),e.length!==k.length&&tt(w("warning",lf("Only added {0} of {1} questions (maximum reached).",e.length,k.length))),p({}),v([{id:1,text:"",checked:!0}]),y.current=2,x.current=void 0,E())},[k,d,E]),N=e.useCallback(()=>{const e=y.current++;x.current=e,v(t=>t.concat([{id:e,text:"",checked:!0}]))},[]);e.useEffect(()=>{const e=x.current;if(void 0===e)return;const t=document.getElementById(`ask-ai-custom-text-${e}`);null==t||t.focus(),x.current=void 0},[h.length]);const M=e.useCallback((e,t)=>{v(n=>n.map(n=>n.id===e?{...n,checked:t}:n))},[]),R=e.useCallback((e,t)=>{v(n=>n.map(n=>n.id===e?{...n,text:t}:n))},[]),L=e.useCallback(e=>{v(t=>t.length>1?t.filter(t=>t.id!==e):t)},[]);return t.askAiOpen?(0,i.jsx)(He,{onEscape:()=>{},children:(0,i.jsx)("div",{className:Gi["ask-ai-overlay"],role:"dialog","aria-modal":"true","aria-label":m.AskAI,children:(0,i.jsxs)("div",{className:Gi["ask-ai-content-container"],children:[(0,i.jsxs)("div",{className:Gi.header,children:[(0,i.jsx)("span",{className:Gi.title,children:m.AskAI}),(0,i.jsx)(Me,{className:Gi["close-button"],rightIcon:"fas fa-times-circle",onClick:E,title:m.Close})]}),(0,i.jsx)("div",{className:Gi.content,children:(0,i.jsx)(Ui,{className:Gi["ask-ai-accordion"],multiExpand:!0,defaultExpandedIds:["ask-ai-custom",...l.map(e=>`ask-ai-cat-${Xi(e.title)}`)],children:[(0,i.jsxs)(Ui.Item,{itemId:"ask-ai-custom",children:[(0,i.jsx)(Ui.Header,{children:m.Custom}),(0,i.jsxs)(Ui.Panel,{children:[h.length>0&&(0,i.jsx)("div",{className:Gi["custom-list"],children:h.map((e,t)=>{const n=e.text.trim(),r=n&&n.length<b.MinAIQuestionLength;return(0,i.jsxs)("div",{className:Gi["custom-item"],children:[(0,i.jsxs)("div",{className:Gi["custom-header"],children:[(0,i.jsx)(We,{id:`ask-ai-custom-check-${e.id}`,className:Gi.checkbox,label:lf("Question {0}",t+1),isChecked:e.checked,onChange:t=>M(e.id,t)}),T&&(0,i.jsx)(Me,{className:a("text-only",Gi["custom-delete-button"]),rightIcon:"fas fa-trash",title:m.Remove,ariaLabel:m.Remove,onClick:()=>L(e.id)})]}),(0,i.jsxs)("div",{className:a(Gi["custom-textarea-wrapper"],r?Gi["textarea-error"]:void 0),title:r?m.QuestionTooShort:void 0,children:[(0,i.jsx)(Ir,{id:`ask-ai-custom-text-${e.id}`,className:Gi.textarea,placeholder:m.CustomPromptPlaceholder,initialValue:e.text,maxLength:s,showRemainingCharacterCount:100,resize:"vertical",title:r?m.QuestionTooShort:void 0,onChange:t=>R(e.id,t)}),r&&(0,i.jsx)("i",{className:a(Gi["validation-icon"],"fas","fa-exclamation-triangle"),"aria-hidden":"true"})]})]},e.id)})}),(0,i.jsx)("div",{className:Gi["custom-actions"],children:(0,i.jsx)(Me,{id:"ask-ai-custom-add",className:Gi["custom-add-button"],label:lf("Add custom question"),title:null!=I?I:lf("Add custom question"),onClick:N,rightIcon:"fas fa-plus",disabled:!P})})]})]},"ask-ai-custom"),...l.map(e=>(0,i.jsxs)(Ui.Item,{itemId:`ask-ai-cat-${Xi(e.title)}`,children:[(0,i.jsx)(Ui.Header,{children:e.title}),(0,i.jsx)(Ui.Panel,{children:(0,i.jsx)("div",{className:Gi["prompt-list"],children:e.items.map((t,n)=>(0,i.jsx)(We,{id:`ask-ai-opt-${Xi(e.title)}-${n}`,className:Gi.checkbox,label:t.label,isChecked:!!f[t.value],onChange:()=>S(t.value)},t.value))})})]},e.title))]})}),(0,i.jsxs)("div",{className:Gi.footer,children:[(0,i.jsx)(Me,{className:a("secondary",Gi["footer-button"]),label:m.Cancel,onClick:E,title:m.Cancel}),(0,i.jsx)(Me,{className:a(O?"primary":"secondary",Gi["footer-button"]),label:m.AddSelected,onClick:j,disabled:!O,title:m.AddSelected})]})]})})}):null};const Ki=()=>{const{state:t}=(0,e.useContext)(Se),n=function(e){var t;if(e.projectMetadata)return null!==(t=e.projectMetadata.name)&&void 0!==t?t:m.UntitledProject}(t);return n?(0,i.jsx)("div",{className:"ProjectWorkspace_projectName__DC+1K",children:n}):null},Qi=()=>{const{state:t}=(0,e.useContext)(Se),{runOnLoad:n}=t;return(0,i.jsx)(ct.ControlGroup,{children:(0,i.jsx)(ct.Toggle,{label:m.RunOnLoad,title:m.RunOnLoadDescription,isChecked:n,onToggle:e=>{pxt.tickEvent(g.RunOnLoad,{checked:e?"true":"false"}),function(e){const{dispatch:t}=Ee();t((e=>({type:"SET_RUN_ON_LOAD",runOnLoad:e}))(e)),function(e){try{ne(K,e.toString())}catch(e){G(H.localStorageWriteError,e)}}(e)}(e)}})})},Ji=()=>(0,i.jsxs)("div",{className:"ProjectWorkspace_panel__FKcHF",children:[(0,i.jsx)(Wi,{}),(0,i.jsx)(Yi,{}),(0,i.jsx)(ct,{left:(0,i.jsx)(Ki,{}),right:(0,i.jsx)(Qi,{})}),(0,i.jsx)(Oi,{}),(0,i.jsx)(Ni,{})]}),Zi=()=>{const e=function(){try{var e;return null!==(e=te(J))&&void 0!==e?e:""}catch(e){return G(H.localStorageReadError,e),""}}();return(0,i.jsx)("div",{className:"MainPanel_main-panel__ZlyxZ",children:(0,i.jsx)(st,{split:"vertical",defaultSize:"50%",startingSize:e,primary:"left",left:(0,i.jsx)(Ii,{}),right:(0,i.jsx)(Ji,{}),leftMinSize:"5rem",rightMinSize:"5rem",onResizeEnd:function(e){!function(e){try{ne(J,e)}catch(e){G(H.localStorageWriteError,e)}}(e.toString())}})})};var eo=function(e,t){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},eo(e,t)};function to(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var no=function(){return no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},no.apply(this,arguments)};function ro(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function io(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function oo(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,n(5224);const ao=1/60*1e3,so="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),lo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(so()),ao);let co=!0,uo=!1,fo=!1;const po={delta:0,timestamp:0},ho=["read","update","preRender","render","postRender"],mo=ho.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&i,c=l?t:n;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}(()=>uo=!0),e),{}),vo=ho.reduce((e,t)=>{const n=mo[t];return e[t]=(e,t=!1,r=!1)=>(uo||xo(),n.schedule(e,t,r)),e},{}),go=ho.reduce((e,t)=>(e[t]=mo[t].cancel,e),{}),yo=ho.reduce((e,t)=>(e[t]=()=>mo[t].process(po),e),{}),bo=e=>mo[e].process(po),wo=e=>{uo=!1,po.delta=co?ao:Math.max(Math.min(e-po.timestamp,40),1),po.timestamp=e,fo=!0,ho.forEach(bo),fo=!1,uo&&(co=!1,lo(wo))},xo=()=>{uo=!0,co=!0,fo||lo(wo)},Eo=()=>po,So=vo;var ko="undefined"!=typeof document,Co=ko?e.useLayoutEffect:e.useEffect;function _o(){var t=(0,e.useRef)(!1);return Co(function(){return t.current=!0,function(){t.current=!1}},[]),t}var To=(0,e.createContext)(null);function Po(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var Io=0,Ao=function(){return Io++},Oo=function(){return Po(Ao)},jo=function(t){var n=t.children,r=t.initial,i=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=Po(No),c=Oo(),u=(0,e.useMemo)(function(){return{id:c,initial:r,isPresent:i,custom:a,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},s?void 0:[i]);return(0,e.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[i]),e.useEffect(function(){!i&&!l.size&&(null==o||o())},[i]),e.createElement(To.Provider,{value:u},n)};function No(){return new Map}var Mo=(0,e.createContext)({});function Ro(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}n(3705);var Lo=function(e){return e.key||""},Do=function(t){var n=t.children,r=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,c=void 0===l||l,u=io(function(){var t=_o(),n=io((0,e.useState)(0),2),r=n[0],i=n[1],o=(0,e.useCallback)(function(){t.current&&i(r+1)},[r]);return[(0,e.useCallback)(function(){return So.postRender(o)},[o]),r]}(),1),d=u[0],f=(0,e.useContext)(Mo).forceRender;f&&(d=f);var p=_o(),h=function(t){var n=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&n.push(t)}),n}(n),m=h,v=new Set,g=(0,e.useRef)(m),y=(0,e.useRef)(new Map).current,b=(0,e.useRef)(!0);if(Co(function(){b.current=!1,function(e,t){e.forEach(function(e){var n=Lo(e);t.set(n,e)})}(h,y),g.current=m}),Ro(function(){b.current=!0,y.clear(),v.clear()}),b.current)return e.createElement(e.Fragment,null,m.map(function(t){return e.createElement(jo,{key:Lo(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},t)}));m=oo([],io(m),!1);for(var w=g.current.map(Lo),x=h.map(Lo),E=w.length,S=0;S<E;S++){var k=w[S];-1===x.indexOf(k)&&v.add(k)}return s&&v.size&&(m=[]),v.forEach(function(t){if(-1===x.indexOf(t)){var n=y.get(t);if(n){var i=w.indexOf(t);m.splice(i,0,e.createElement(jo,{key:Lo(n),isPresent:!1,onExitComplete:function(){y.delete(t),v.delete(t);var e=g.current.findIndex(function(e){return e.key===t});if(g.current.splice(e,1),!v.size){if(g.current=h,!1===p.current)return;d(),a&&a()}},custom:r,presenceAffectsLayout:c},n))}}}),m=m.map(function(t){var n=t.key;return v.has(n)?t:e.createElement(jo,{key:Lo(t),isPresent:!0,presenceAffectsLayout:c},t)}),e.createElement(e.Fragment,null,v.size?m:m.map(function(t){return(0,e.cloneElement)(t)}))},Fo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Bo={measureLayout:Fo(["layout","layoutId","drag"]),animation:Fo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Fo(["exit"]),drag:Fo(["drag","dragControls"]),focus:Fo(["whileFocus"]),hover:Fo(["whileHover","onHoverStart","onHoverEnd"]),tap:Fo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Fo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Fo(["whileInView","onViewportEnter","onViewportLeave"])},Uo=function(){},zo=(0,e.createContext)({strict:!1}),Vo=Object.keys(Bo),$o=Vo.length,Ho=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),qo=(0,e.createContext)({}),Wo={current:null},Go=!1;function Xo(t,n,r,i){var o=(0,e.useContext)(zo),a=(0,e.useContext)(qo).visualElement,s=(0,e.useContext)(To),l=function(){var t=(!Go&&function(){if(Go=!0,ko)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Wo.current=e.matches};e.addListener(t),t()}else Wo.current=!1}(),io((0,e.useState)(Wo.current),1)[0]),n=(0,e.useContext)(Ho).reducedMotion;return"never"!==n&&("always"===n||t)}(),c=(0,e.useRef)(void 0);i||(i=o.renderer),!c.current&&i&&(c.current=i(t,{visualState:n,parent:a,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var u=c.current;return Co(function(){null==u||u.syncRender()}),(0,e.useEffect)(function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()}),Co(function(){return function(){return null==u?void 0:u.notifyUnmount()}},[]),u}function Yo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ko(e){return Array.isArray(e)}function Qo(e){return"string"==typeof e||Ko(e)}function Jo(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Zo(e,t,n){var r=e.getProps();return Jo(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function ea(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Qo(e.initial)||Qo(e.animate)||Qo(e.whileHover)||Qo(e.whileDrag)||Qo(e.whileTap)||Qo(e.whileFocus)||Qo(e.exit)}function ta(e){return Boolean(ea(e)||e.variants)}function na(e){return Array.isArray(e)?e.join(" "):e}var ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ia=1,oa=(0,e.createContext)({}),aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function sa(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Bo.projectionNodeConstructor=e[t]:Bo[t].Component=e[t])}(n),(0,e.forwardRef)(function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(Mo))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=no(no({},t),{layoutId:l});var c=(0,e.useContext)(Ho),u=null,d=function(t){var n=function(e,t){if(ea(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Qo(n)?n:void 0,animate:Qo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(qo)),r=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:r,animate:i}},[na(r),na(i)])}(t),f=c.isStatic?void 0:Po(function(){if(ra.hasEverUpdated)return ia++}),p=a(t,c.isStatic);return!c.isStatic&&ko&&(d.visualElement=Xo(s,p,no(no({},c),t),r),function(t,n,r,i){var o,a=n.layoutId,s=n.layout,l=n.drag,c=n.dragConstraints,u=n.layoutScroll,d=(0,e.useContext)(oa);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(o=r.parent)||void 0===o?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(l)||c&&Yo(c),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:u}))}(f,t,d.visualElement,i||Bo.projectionNodeConstructor),u=function(t,n){var r=[];if((0,e.useContext)(zo),!n)return null;for(var i=0;i<$o;i++){var o=Vo[i],a=Bo[o],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(e.createElement(l,no({key:o},t,{visualElement:n})))}return r}(t,d.visualElement)),e.createElement(aa,{visualElement:d.visualElement,props:no(no({},c),t)},u,e.createElement(qo.Provider,{value:d},o(s,t,f,function(t,n,r){return(0,e.useCallback)(function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Yo(r)&&(r.current=e))},[n])}(p,d.visualElement,n),p,c.isStatic,d.visualElement)))})}var la=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ca(e){return"string"==typeof e&&!e.includes("-")&&!!(la.indexOf(e)>-1||/[A-Z]/.test(e))}var ua={},da=["","X","Y","Z"],fa=["transformPerspective","x","y","z"];function pa(e,t){return fa.indexOf(e)-fa.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return da.forEach(function(t){return fa.push(e+t)})});var ha=new Set(fa);function ma(e){return ha.has(e)}var va=new Set(["originX","originY","originZ"]);function ga(e){return va.has(e)}function ya(e,t){var n=t.layout,r=t.layoutId;return ma(e)||ga(e)||(n||void 0!==r)&&(!!ua[e]||"opacity"===e)}var ba=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},wa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function xa(e){return e.startsWith("--")}var Ea=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Sa=(e,t)=>n=>Math.max(Math.min(n,t),e),ka=e=>e%1?Number(e.toFixed(5)):e,Ca=/(-)?([\d]*\.?[\d])+/g,_a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pa(e){return"string"==typeof e}const Ia=e=>({test:t=>Pa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Aa=Ia("deg"),Oa=Ia("%"),ja=Ia("px"),Na=Ia("vh"),Ma=Ia("vw"),Ra=Object.assign(Object.assign({},Oa),{parse:e=>Oa.parse(e)/100,transform:e=>Oa.transform(100*e)}),La={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Da=Object.assign(Object.assign({},La),{transform:Sa(0,1)}),Fa=Object.assign(Object.assign({},La),{default:1});var Ba=no(no({},La),{transform:Math.round}),Ua={borderWidth:ja,borderTopWidth:ja,borderRightWidth:ja,borderBottomWidth:ja,borderLeftWidth:ja,borderRadius:ja,radius:ja,borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomRightRadius:ja,borderBottomLeftRadius:ja,width:ja,maxWidth:ja,height:ja,maxHeight:ja,size:ja,top:ja,right:ja,bottom:ja,left:ja,padding:ja,paddingTop:ja,paddingRight:ja,paddingBottom:ja,paddingLeft:ja,margin:ja,marginTop:ja,marginRight:ja,marginBottom:ja,marginLeft:ja,rotate:Aa,rotateX:Aa,rotateY:Aa,rotateZ:Aa,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Aa,skewX:Aa,skewY:Aa,distance:ja,translateX:ja,translateY:ja,translateZ:ja,x:ja,y:ja,z:ja,perspective:ja,transformPerspective:ja,opacity:Da,originX:Ra,originY:Ra,originZ:ja,zIndex:Ba,fillOpacity:Da,strokeOpacity:Da,numOctaves:Ba};function za(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(xa(p))a[p]=h;else{var m=Ua[p],v=Ea(h,m);if(ma(p)){if(u=!0,s[p]=v,l.push(p),!f)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(f=!1)}else ga(p)?(c[p]=v,d=!0):o[p]=v}}u?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(pa);for(var d=!1,f=o.length,p=0;p<f;p++){var h=o[p];u+="".concat(wa[h]||h,"(").concat(i[h],") "),"z"===h&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(c))}function Va(e,t,n){for(var r in t)ba(t[r])||ya(r,n)||(e[r]=t[r])}function $a(t,n,r){var i={};return Va(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};za(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return no(no({},e.vars),t)},[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Ha(e,t,n){var r={},i=$a(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var qa=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Wa(e){return qa.has(e)}var Ga,Xa=function(e){return!Wa(e)};try{(Ga=require("@emotion/is-prop-valid").default)&&(Xa=function(e){return e.startsWith("on")?!Wa(e):Ga(e)})}catch(e){}function Ya(e,t,n){return"string"==typeof e?e:ja.transform(t+n*e)}var Ka={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qa={offset:"strokeDashoffset",array:"strokeDasharray"};function Ja(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,f=void 0===d?0:d;za(e,ro(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=Ya(t,e.x,e.width),i=Ya(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?Ka:Qa;e[o.offset]=ja.transform(-r);var a=ja.transform(t),s=ja.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,l,u,f,!1)}var Za=function(){return no(no({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function es(t,n){var r=(0,e.useMemo)(function(){var e=Za();return Ja(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),no(no({},e.attrs),{style:no({},e.style)})},[n]);if(t.style){var i={};Va(i,t.style,t),r.style=no(no({},i),r.style)}return r}function ts(t){return void 0===t&&(t=!1),function(n,r,i,o,a,s){var l=a.latestValues,c=(ca(n)?es:Ha)(r,l,s),u=function(e,t,n){var r={};for(var i in e)(Xa(i)||!0===n&&Wa(i)||!t&&!Wa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),d=no(no(no({},u),c),{ref:o});return i&&(d["data-projection-id"]=i),(0,e.createElement)(n,d)}}var ns=/([a-z])([A-Z])/g,rs=function(e){return e.replace(ns,"$1-$2").toLowerCase()};function is(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var os=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function as(e,t,n,r){for(var i in is(e,t,void 0,r),t.attrs)e.setAttribute(os.has(i)?i:rs(i),t.attrs[i])}function ss(e){var t=e.style,n={};for(var r in t)(ba(t[r])||ya(r,e))&&(n[r]=t[r]);return n}function ls(e){var t=ss(e);for(var n in e)ba(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function cs(e){return"object"==typeof e&&"function"==typeof e.start}var us=function(e){return Array.isArray(e)},ds=function(e){return us(e)?e[e.length-1]||0:e};function fs(e){var t,n=ba(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function ps(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:ms(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var hs=function(t){return function(n,r){var i=(0,e.useContext)(qo),o=(0,e.useContext)(To);return r?ps(t,n,i,o):Po(function(){return ps(t,n,i,o)})}};function ms(e,t,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)i[s]=fs(a[s]);var l=e.initial,c=e.animate,u=ea(e),d=ta(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=o||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!cs(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=Jo(e,t);if(n){var r=n.transitionEnd;n.transition;var o=ro(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}),i}var vs,gs={useVisualState:hs({scrapeMotionValuesFromProps:ls,createRenderState:Za,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ja(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),as(t,r)}})},ys={useVisualState:hs({scrapeMotionValuesFromProps:ss,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function bs(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function ws(t,n,r,i){(0,e.useEffect)(function(){var e=t.current;if(r&&e)return bs(e,n,r,i)},[t,n,r,i])}function xs(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Es(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(vs||(vs={}));var Ss={pageX:0,pageY:0};function ks(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ss;return{x:n[t+"X"],y:n[t+"Y"]}}function Cs(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function _s(e,t){return void 0===t&&(t="page"),{point:Es(e)?ks(e,t):Cs(e,t)}}var Ts=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,_s(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Ps={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Is={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function As(e){return ko&&null===window.onpointerdown?e:ko&&null===window.ontouchstart?Is[e]:ko&&null===window.onmousedown?Ps[e]:e}function Os(e,t,n,r){return bs(e,As(t),Ts(n,"pointerdown"===t),r)}function js(e,t,n,r){return ws(e,As(t),n&&Ts(n,"pointerdown"===t),r)}function Ns(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ms=Ns("dragHorizontal"),Rs=Ns("dragVertical");function Ls(e){var t=!1;if("y"===e)t=Rs();else if("x"===e)t=Ms();else{var n=Ms(),r=Rs();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Ds(){var e=Ls(!0);return!e||(e(),!1)}function Fs(e,t,n){return function(r,i){var o;xs(r)&&!Ds()&&(null===(o=e.animationState)||void 0===o||o.setActive(vs.Hover,t),null==n||n(r,i))}}var Bs=function(e,t){return!!t&&(e===t||Bs(e,t.parentElement))};const Us=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Us);n(3705),new Set;var Vs=new WeakMap,$s=new WeakMap,Hs=function(e){var t;null===(t=Vs.get(e.target))||void 0===t||t(e)},qs=function(e){e.forEach(Hs)};var Ws={some:0,all:1};function Gs(t,n,r,i){var o=i.root,a=i.margin,s=i.amount,l=void 0===s?"some":s,c=i.once;(0,e.useEffect)(function(){if(t){var e={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof l?l:Ws[l]};return function(e,t,n){var r=function(e){var t=e.root,n=ro(e,["root"]),r=t||document;$s.has(r)||$s.set(r,{});var i=$s.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(qs,no({root:t},n))),i[o]}(t);return Vs.set(e,n),r.observe(e),function(){Vs.delete(e),r.unobserve(e)}}(r.getInstance(),e,function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!c||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(vs.InView,i);var o=r.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[t,o,a,l])}function Xs(t,n,r,i){var o=i.fallback,a=void 0===o||o;(0,e.useEffect)(function(){t&&a&&requestAnimationFrame(function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(vs.InView,!0)})},[t])}var Ys=function(e){return function(t){return e(t),null}},Ks={inView:Ys(function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(r||i||o);s.once&&l.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?Xs:Gs)(c,l.current,n,s)}),tap:Ys(function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(!1),c=(0,e.useRef)(null),u={passive:!(r||n||i||m)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return d(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(vs.Tap,!1),!Ds()}function p(e,t){f()&&(Bs(a.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){f()&&(null==i||i(e,t))}function m(e,t){var n;d(),l.current||(l.current=!0,c.current=zs(Os(window,"pointerup",p,u),Os(window,"pointercancel",h,u)),null===(n=a.animationState)||void 0===n||n.setActive(vs.Tap,!0),null==r||r(e,t))}js(a,"pointerdown",s?m:void 0,u),Ro(d)}),focus:Ys(function(e){var t=e.whileFocus,n=e.visualElement;ws(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(vs.Focus,!0)}:void 0),ws(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(vs.Focus,!1)}:void 0)}),hover:Ys(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;js(i,"pointerenter",t||r?Fs(i,!0,t):void 0,{passive:!t}),js(i,"pointerleave",n||r?Fs(i,!1,n):void 0,{passive:!n})})};function Qs(){var t=(0,e.useContext)(To);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,o=Oo();return(0,e.useEffect)(function(){return i(o)},[]),!n&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function Js(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Zs=(e,t,n)=>Math.min(Math.max(n,e),t);const el=12;function tl(e,t){return e*Math.sqrt(1-t*t)}const nl=["duration","bounce"],rl=["stiffness","damping","mass"];function il(e,t){return t.some(t=>void 0!==e[t])}function ol(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=ro(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!il(e,rl)&&il(e,nl)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=Zs(.05,1,a),e=Zs(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e;return.001-(r-n)/tl(t,a)*Math.exp(-i)},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=tl(Math.pow(t,2),a);return(.001-i(t)>0?-1:1)*((o-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<el;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=al,h=al;function m(){const e=u?-u/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=tl(a,o);p=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);p=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],m()}}}ol.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const al=e=>0,sl=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ll=(e,t,n)=>-n*e+n*t+e,cl=(e,t)=>n=>Boolean(Pa(n)&&Ta.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ul=(e,t,n)=>r=>{if(!Pa(r))return r;const[i,o,a,s]=r.match(Ca);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},dl=Sa(0,255),fl=Object.assign(Object.assign({},La),{transform:e=>Math.round(dl(e))}),pl={test:cl("rgb","red"),parse:ul("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fl.transform(e)+", "+fl.transform(t)+", "+fl.transform(n)+", "+ka(Da.transform(r))+")"},hl={test:cl("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:pl.transform},ml={test:cl("hsl","hue"),parse:ul("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Oa.transform(ka(t))+", "+Oa.transform(ka(n))+", "+ka(Da.transform(r))+")"};function vl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=vl(s,r,e+1/3),o=vl(s,r,e),a=vl(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const yl=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},bl=[hl,pl,ml],wl=e=>bl.find(t=>t.test(e)),xl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,El=(e,t)=>{let n=wl(e),r=wl(t);xl(e),xl(t);let i=n.parse(e),o=r.parse(t);n===ml&&(i=gl(i),n=pl),r===ml&&(o=gl(o),r=pl);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=yl(i[t],o[t],e));return a.alpha=ll(i.alpha,o.alpha,e),n.transform(a)}},Sl={test:e=>pl.test(e)||hl.test(e)||ml.test(e),parse:e=>pl.test(e)?pl.parse(e):ml.test(e)?ml.parse(e):hl.parse(e),transform:e=>Pa(e)?e:e.hasOwnProperty("red")?pl.transform(e):ml.transform(e)},kl="${c}",Cl="${n}";function _l(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(_a);r&&(n=r.length,e=e.replace(_a,kl),t.push(...r.map(Sl.parse)));const i=e.match(Ca);return i&&(e=e.replace(Ca,Cl),t.push(...i.map(La.parse))),{values:t,numColors:n,tokenised:e}}function Tl(e){return _l(e).values}function Pl(e){const{values:t,numColors:n,tokenised:r}=_l(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?kl:Cl,r<n?Sl.transform(e[r]):ka(e[r]));return t}}const Il=e=>"number"==typeof e?0:e,Al={test:function(e){var t,n,r,i;return isNaN(e)&&Pa(e)&&(null!==(n=null===(t=e.match(Ca))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(_a))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Tl,createTransformer:Pl,getAnimatableNone:function(e){const t=Tl(e);return Pl(e)(t.map(Il))}},Ol=e=>"number"==typeof e;function jl(e,t){return Ol(e)?n=>ll(e,t,n):Sl.test(e)?El(e,t):Ll(e,t)}const Nl=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>jl(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Ml=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=jl(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Rl(e){const t=Al.parse(e),n=t.length;let r=0,i=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const Ll=(e,t)=>{const n=Al.createTransformer(t),r=Rl(e),i=Rl(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?zs(Nl(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},Dl=(e,t)=>n=>ll(e,t,n);function Fl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Dl:"string"==typeof o?Sl.test(o)?El:Ll:Array.isArray(o)?Nl:"object"==typeof o?Ml:void 0);var o;const a=e.length-1;for(let n=0;n<a;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=zs(e,o)}r.push(o)}return r}(t,r,i),s=2===o?function([e,t],[n]){return r=>n(sl(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=sl(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(Zs(e[0],e[o-1],t)):s}const Bl=e=>t=>1-e(1-t),Ul=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zl=e=>t=>t*t*((e+1)*t-e),Vl=4/11,$l=8/11,Hl=e=>e,ql=e=>Math.pow(e,2);const Wl=Bl(ql),Gl=Ul(ql),Xl=e=>1-Math.sin(Math.acos(e)),Yl=Bl(Xl),Kl=Ul(Yl),Ql=zl(1.525),Jl=Bl(Ql),Zl=Ul(Ql),ec=(()=>{const e=zl(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),tc=4356/361,nc=35442/1805,rc=16061/1805,ic=e=>{if(1===e||0===e)return e;const t=e*e;return e<Vl?7.5625*t:e<$l?9.075*t-9.9*e+3.4:e<.9?tc*t-nc*e+rc:10.8*e*e-20.52*e+10.72},oc=Bl(ic);function ac(e,t){return e.map(()=>t||Gl).splice(0,e.length-1)}function sc({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(a),i);function l(){return Fl(s,a,{ease:Array.isArray(n)?n:ac(a,n)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}const lc={keyframes:sc,spring:ol,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};function cc(e,t,n=0){return e-t-n}const uc=e=>{const t=({delta:t})=>e(t);return{start:()=>So.update(t,!0),stop:()=>go.update(t)}};function dc(e){var t,n,{from:r,autoplay:i=!0,driver:o=uc,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=ro(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=m,w=0,x=m.duration,E=!1,S=!0;const k=function(e){if(Array.isArray(e.to))return sc;if(lc[e.type])return lc[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?sc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ol:sc}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Fl([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=k(Object.assign(Object.assign({},m),{from:r,to:b}));return i&&(null==u||u(),v=o(function(e){if(S||(e=-e),a+=e,!E){const e=C.next(Math.max(0,a));g=e.value,y&&(g=y(g)),E=S?e.done:a<=0}null==h||h(g),E&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,c,S)&&(w++,"reverse"===l?(S=w%2==0,a=function(e,t,n=0,r=!0){return r?cc(t+-e,t,n):t-(e-t)+n}(a,x,c,S)):(a=cc(a,x,c),"mirror"===l&&C.flipTarget()),E=!1,p&&p()):(v.stop(),f&&f()))}),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function fc(e,t){return t?e*(1e3/t):0}var pc=function(e){return 1e3*e};const hc=(e,t)=>1-3*t+3*e,mc=(e,t)=>3*t-6*e,vc=e=>3*e,gc=(e,t,n)=>((hc(t,n)*e+mc(t,n))*e+vc(t))*e,yc=(e,t,n)=>3*hc(t,n)*e*e+2*mc(t,n)*e+vc(t),bc=.1;var wc={linear:Hl,easeIn:ql,easeInOut:Gl,easeOut:Wl,circIn:Xl,circInOut:Kl,circOut:Yl,backIn:Ql,backInOut:Zl,backOut:Jl,anticipate:ec,bounceIn:oc,bounceInOut:e=>e<.5?.5*(1-ic(1-2*e)):.5*ic(2*e-1)+.5,bounceOut:ic},xc=function(e){if(Array.isArray(e)){e.length;var t=io(e,4);return function(e,t,n,r){if(e===t&&n===r)return Hl;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=gc(t*bc,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=bc;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*bc,s=yc(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=yc(t,n,r);if(0===i)return t;t-=(gc(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=gc(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+bc,e,n)}return e=>0===e||1===e?e:gc(o(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),wc[e]):e},Ec=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Al.test(t)||t.startsWith("url(")))},Sc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},kc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Cc=function(){return{type:"keyframes",ease:"linear",duration:.3}},_c=function(e){return{type:"keyframes",duration:.8,values:e}},Tc={x:Sc,y:Sc,z:Sc,rotate:Sc,rotateX:Sc,rotateY:Sc,rotateZ:Sc,scaleX:kc,scaleY:kc,scale:kc,opacity:Cc,backgroundColor:Cc,color:Cc,default:kc};const Pc=new Set(["brightness","contrast","saturate","opacity"]);function Ic(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ca)||[];if(!r)return e;const i=n.replace(r,"");let o=Pc.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Ac=/([a-z-]*)\(.*?\)/g,Oc=Object.assign(Object.assign({},Al),{getAnimatableNone:e=>{const t=e.match(Ac);return t?t.map(Ic).join(" "):e}});var jc=no(no({},Ua),{color:Sl,backgroundColor:Sl,outlineColor:Sl,fill:Sl,stroke:Sl,borderColor:Sl,borderTopColor:Sl,borderRightColor:Sl,borderBottomColor:Sl,borderLeftColor:Sl,filter:Oc,WebkitFilter:Oc}),Nc=function(e){return jc[e]};function Mc(e,t){var n,r=Nc(e);return r!==Oc&&(r=Al),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Rc(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=oo([],io(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ro(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=no(no({},e),function(e,t){var n;return n=us(t)?_c:Tc[e]||Tc.default,no({to:t},n(t))}(n,t.to))),no(no({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=ro(e,["ease","times","yoyo","flip","loop"]),s=no({},a);return n&&(s.offset=n),a.duration&&(s.duration=pc(a.duration)),a.repeatDelay&&(s.repeatDelay=pc(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(xc):xc(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Lc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Dc(e){return"number"==typeof e?0:Mc("",e)}function Fc(e,t){return e[t]||e.default||e}function Bc(e,t,n,r){return void 0===r&&(r={}),t.start(function(i){var o,a,s=function(e,t,n,r,i){var o,a=Fc(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=Ec(e,n);"none"===s&&l&&"string"==typeof n?s=Mc(e,n):Lc(s)&&"string"==typeof n?s=Dc(n):!Array.isArray(n)&&Lc(n)&&"string"==typeof s&&(n=Dc(s));var c=Ec(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==h||h.stop(),h=dc(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r=i*t+e;void 0!==c&&(r=c(r));const a=v(r),s=a===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=fc(e-u,Eo().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(no(no({},r),a)):dc(no(no({},Rc(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=ds(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Fc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?o=window.setTimeout(c,pc(l)):c(),function(){clearTimeout(o),null==a||a.stop()}})}var Uc=function(e){return/^\-?\d*\.?\d+$/.test(e)},zc=function(e){return/^0[^.\s]+$/.test(e)};function Vc(e,t){-1===e.indexOf(t)&&e.push(t)}function $c(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Hc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Vc(this.subscriptions,e),function(){return $c(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),qc=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Hc,this.velocityUpdateSubscribers=new Hc,this.renderSubscribers=new Hc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Eo(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,So.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return So.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?fc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Wc(e){return new qc(e)}var Gc=function(e){return function(t){return t.test(e)}},Xc=[La,ja,Oa,Aa,Ma,Na,{test:function(e){return"auto"===e},parse:function(e){return e}}],Yc=function(e){return Xc.find(Gc(e))},Kc=oo(oo([],io(Xc),!1),[Sl,Al],!1),Qc=function(e){return Kc.find(Gc(e))};function Jc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wc(n))}function Zc(e,t){if(t)return(t[e]||t.default||t).from}function eu(e,t,n){var r;void 0===n&&(n={});var i=Zo(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return tu(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(nu).forEach(function(e,r){a.push(eu(e,t,no(no({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=io("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function tu(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=ro(c,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),y=p[v];if(!(!g||void 0===y||m&&ru(m,v))){var b=no({delay:a},d);e.shouldReduceMotion&&ma(v)&&(b=no(no({},b),{type:!1,delay:0}));var w=Bc(v,g,y,b);h.push(w)}}return Promise.all(h).then(function(){f&&function(e,t){var n=Zo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=ro(r,["transitionEnd","transition"]);for(var s in a=no(no({},a),o))Jc(e,s,ds(a[s]))}(e,f)})}function nu(e,t){return e.sortNodePosition(t)}function ru(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var iu=[vs.Animate,vs.InView,vs.Focus,vs.Hover,vs.Tap,vs.Drag,vs.Exit],ou=oo([],io(iu),!1).reverse(),au=iu.length;function su(e){var t=function(e){return function(t){return Promise.all(t.map(function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map(function(t){return eu(e,t,n)});r=Promise.all(i)}else if("string"==typeof t)r=eu(e,t,n);else{var o="function"==typeof t?Zo(e,t,n.custom):t;r=tu(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,n,r)}))}}(e),n=function(){var e;return(e={})[vs.Animate]=lu(!0),e[vs.InView]=lu(),e[vs.Hover]=lu(),e[vs.Tap]=lu(),e[vs.Drag]=lu(),e[vs.Focus]=lu(),e[vs.Exit]=lu(),e}(),r={},i=!0,o=function(t,n){var r=Zo(e,n);if(r){r.transition;var i=r.transitionEnd,o=ro(r,["transition","transitionEnd"]);t=no(no(no({},t),o),i)}return t};function a(a,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(t){var r=ou[t],m=n[r],v=null!==(l=c[r])&&void 0!==l?l:u[r],g=Qo(v),y=r===s?m.isActive:null;!1===y&&(h=t);var b=v===u[r]&&v!==c[r]&&g;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=no({},p),!m.isActive&&null===y||!v&&!m.prevProp||cs(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Ko(t)&&!Js(t,e)}(m.prevProp,v),x=w||r===s&&m.isActive&&!b&&g||t>h&&g,E=Array.isArray(v)?v:[v],S=E.reduce(o,{});!1===y&&(S={});var k=m.prevResolvedValues,C=void 0===k?{}:k,_=no(no({},C),S),T=function(e){x=!0,f.delete(e),m.needsAnimating[e]=!0};for(var P in _){var I=S[P],A=C[P];p.hasOwnProperty(P)||(I!==A?us(I)&&us(A)?!Js(I,A)||w?T(P):m.protectedKeys[P]=!0:void 0!==I?T(P):f.add(P):void 0!==I&&f.has(P)?T(P):m.protectedKeys[P]=!0)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(p=no(no({},p),S)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,oo([],io(E.map(function(e){return{animation:e,options:no({type:r},a)}})),!1))},v=0;v<au;v++)m(v);if(r=no({},p),f.size){var g={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)}),d.push({animation:g})}var y=Boolean(d.length);return i&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var s=a(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function lu(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var cu={animation:Ys(function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=su(n)),cs(r)&&(0,e.useEffect)(function(){return r.subscribe(n)},[r])}),exit:Ys(function(t){var n=t.custom,r=t.visualElement,i=io(Qs(),2),o=i[0],a=i[1],s=(0,e.useContext)(To);(0,e.useEffect)(function(){var e,t;r.isPresent=o;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(vs.Exit,!o,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!o&&(null==i||i.then(a))},[o])})};const uu=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),du=e=>uu(e)&&e.hasOwnProperty("z"),fu=(e,t)=>Math.abs(e-t);function pu(e,t){if(Ol(e)&&Ol(t))return fu(e,t);if(uu(e)&&uu(t)){const n=fu(e.x,t.x),r=fu(e.y,t.y),i=du(e)&&du(t)?fu(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var hu=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=gu(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=pu(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Eo().timestamp;r.history.push(no(no({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=mu(t,r.transformPagePoint),xs(e)&&0===e.buttons?r.handlePointerUp(e,t):So.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=gu(mu(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Es(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=mu(_s(e),this.transformPagePoint),a=o.point,s=Eo().timestamp;this.history=[no(no({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,gu(o,this.history)),this.removeListeners=zs(Os(window,"pointermove",this.handlePointerMove),Os(window,"pointerup",this.handlePointerUp),Os(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),go.update(this.updatePoint)},e}();function mu(e,t){return t?{point:t(e.point)}:e}function vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gu(e,t){var n=e.point;return{point:n,delta:vu(n,bu(t)),offset:vu(n,yu(t)),velocity:wu(t,.1)}}function yu(e){return e[0]}function bu(e){return e[e.length-1]}function wu(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=bu(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pc(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xu(e){return e.max-e.min}function Eu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),pu(e,t)<n}function Su(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=ll(t.min,t.max,e.origin),e.scale=xu(n)/xu(t),(Eu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ll(n.min,n.max,e.origin)-e.originPoint,(Eu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ku(e,t,n,r){Su(e.x,t.x,n.x,null==r?void 0:r.originX),Su(e.y,t.y,n.y,null==r?void 0:r.originY)}function Cu(e,t,n){e.min=n.min+t.min,e.max=e.min+xu(t)}function _u(e,t,n){e.min=t.min-n.min,e.max=e.min+xu(t)}function Tu(e,t,n){_u(e.x,t.x,n.x),_u(e.y,t.y,n.y)}function Pu(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Iu(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=io([i,r],2))[0],i=n[1]),{min:r,max:i}}var Au=.35;function Ou(e,t,n){return{min:ju(e,t),max:ju(e,n)}}function ju(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Nu=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Mu(e){return[e("x"),e("y")]}function Ru(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Lu(e){return void 0===e||1===e}function Du(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Lu(t)||!Lu(n)||!Lu(r)}function Fu(e){return Du(e)||Bu(e.x)||Bu(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Bu(e){return e&&"0%"!==e}function Uu(e,t,n){return n+t*(e-n)}function zu(e,t,n,r,i){return void 0!==i&&(e=Uu(e,i,r)),Uu(e,n,r)+t}function Vu(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=zu(e.min,t,n,r,i),e.max=zu(e.max,t,n,r,i)}function $u(e,t){var n=t.x,r=t.y;Vu(e.x,n.translate,n.scale,n.originPoint),Vu(e.y,r.translate,r.scale,r.originPoint)}function Hu(e,t){e.min=e.min+t,e.max=e.max+t}function qu(e,t,n){var r=io(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=ll(e.min,e.max,s);Vu(e,t[i],t[o],l,t.scale)}var Wu=["x","scaleX","originX"],Gu=["y","scaleY","originY"];function Xu(e,t){qu(e.x,t,Wu),qu(e.y,t,Gu)}function Yu(e,t){return Ru(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Ku=new WeakMap,Qu=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new hu(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(_s(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ls(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Mu(function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(Oa.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(i=xu(o)*(parseFloat(i)/100))}n.originPoint[e]=i}),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(vs.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(vs.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ju(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?ll(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?ll(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Yo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Pu(e.x,r,o),y:Pu(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=Au),!1===e?e=0:!0===e&&(e=Au),{x:Ou(e,"left","right"),y:Ou(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Mu(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Yo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=Yu(e,n),i=t.scroll;return i&&(Hu(r.x,i.x),Hu(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Iu(e.x,t.x),y:Iu(e.y,t.y)}}(i.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ru(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=Mu(function(n){var l;if(Ju(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=o?200:1e6,f=o?40:1e7,p=no(no({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,p)}});return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Bc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Mu(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Mu(function(n){if(Ju(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-ll(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(Yo(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Mu(function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=xu(e),i=xu(t);return i>r?n=sl(t.min,t.max-r,e.min):r>i&&(n=sl(e.min,e.max-i,t.min)),Zs(0,1,n)}({min:r,max:r},t.constraints[e])}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Mu(function(e){if(Ju(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(ll(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;Ku.set(this.visualElement,this);var n=Os(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),r=function(){Yo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=bs(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Mu(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?Au:c,d=e.dragMomentum,f=void 0===d||d;return no(no({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function Ju(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Zu={pan:Ys(function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(null),c=(0,e.useContext)(Ho).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)(function(){null!==l.current&&l.current.updateHandlers(u)}),js(a,"pointerdown",s&&function(e){l.current=new hu(e,u,{transformPagePoint:c})}),Ro(function(){return l.current&&l.current.end()})}),drag:Ys(function(t){var n=t.dragControls,r=t.visualElement,i=Po(function(){return new Qu(r)});(0,e.useEffect)(function(){return n&&n.subscribe(i)},[i,n]),(0,e.useEffect)(function(){return i.addListeners()},[i])})},ed=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],td=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,x=v.latestValues,E=v.renderState,S=function(){var e=ed.map(function(){return new Hc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){ed.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+ed[t]]=function(t){return e.add(t)},n["notify"+ed[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,oo([],io(t),!1))}}),n}(),k=new Map,C=new Map,_={},T=no({},x);function P(){y&&w&&(I(),s(y,E,p.style,D.projection))}function I(){r(D,E,x,t,p)}function A(){S.notifyUpdate(x)}function O(e,t){var n=t.onChange(function(t){x[e]=t,p.onUpdate&&So.update(A,!1,!0)}),r=t.onRenderRequest(D.scheduleRender);C.set(e,function(){n(),r()})}var j=d(p);for(var N in j){var M=j[N];void 0!==x[N]&&ba(M)&&M.set(x[N],!1)}var R=ea(p),L=ta(p),D=no(no({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,shouldReduceMotion:g,variantChildren:L?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=D.current=e,D.projection&&D.projection.mount(e),L&&f&&!R&&(b=null==f?void 0:f.addVariantChild(D)),k.forEach(function(e,t){return O(t,e)}),null==f||f.children.add(D),D.setProps(p)},unmount:function(){var e;null===(e=D.projection)||void 0===e||e.unmount(),go.update(A),go.render(P),C.forEach(function(e){return e()}),null==b||b(),null==f||f.children.delete(D),S.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=D.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(D.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return L?D:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){D.isVisible!==e&&(D.isVisible=e,D.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(D,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){D.hasValue(e)&&D.removeValue(e),k.set(e,t),x[e]=t.get(),O(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete x[e],c(e,E)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Wc(t),D.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!ba(t))return t}return T[e]}},S),{build:function(){return I(),E},scheduleRender:function(){So.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&D.scheduleRender(),p=e,S.updatePropListeners(e),_=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(ba(o))e.addValue(i,o);else if(ba(a))e.addValue(i,Wc(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Wc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(D,d(p),_)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!R){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<rd;r++){var i=nd[r],o=p[i];(Qo(o)||!1===o)&&(n[i]=o)}return n}});return D}},nd=oo(["initial"],io(iu),!1),rd=nd.length;function id(e){return"string"==typeof e&&e.startsWith("var(--")}var od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ad(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=io(function(e){var t=od.exec(e);if(!t)return[,];var n=io(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():id(o)?ad(o,t,n+1):o}}var sd,ld=new Set(["width","height","top","left","right","bottom","x","y"]),cd=function(e){return ld.has(e)},ud=function(e,t){e.set(t,!1),e.set(t)},dd=function(e){return e===La||e===ja};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(sd||(sd={}));var fd=function(e,t){return parseFloat(e.split(", ")[t])},pd=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return fd(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?fd(a[1],e):0}},hd=new Set(["x","y","z"]),md=fa.filter(function(e){return!hd.has(e)}),vd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:pd(4,13),y:pd(5,14)};function gd(e,t,n,r){return function(e){return Object.keys(e).some(cd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=no({},t),r=no({},r);var i=Object.keys(t).filter(cd),o=[],a=!1,s=[];if(i.forEach(function(i){var l=e.getValue(i);if(e.hasValue(i)){var c,u=n[i],d=Yc(u),f=t[i];if(us(f)){var p=f.length,h=null===f[0]?1:0;u=f[h],d=Yc(u);for(var m=h;m<p;m++)c?Uo(Yc(f[m])):(c=Yc(f[m]),Uo(c===d||dd(d)&&dd(c)))}else c=Yc(f);if(d!==c)if(dd(d)&&dd(c)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&c===ja&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[i]=d.transform(f):(a||(o=function(e){var t=[];return md.forEach(function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],ud(l,f))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=vd[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);ud(r,s[n]),e[n]=vd[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=io(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var yd={treeType:"dom",readValueFromInstance:function(e,t){if(ma(t)){var n=Nc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(xa(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Yu(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=ro(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=Zc(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(i=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==i?i:t[u]),null!=f&&("string"==typeof f&&(Uc(f)||zc(f))?f=parseFloat(f):!Qc(f)&&Al.test(d)&&(f=Mc(u,d)),e.addValue(u,Wc(f)),null!==(o=(a=n)[u])&&void 0!==o||(a[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,n,r){var i=function(e,t,n){var r,i=ro(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=no({},n)),e.forEachValue(function(e){var t=e.get();if(id(t)){var n=ad(t,o);n&&e.set(n)}}),i){var s=i[a];if(id(s)){var l=ad(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return gd(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,a);a=c.transitionEnd,s=c.target}return no({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:ss,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),za(t,n,r,i.transformTemplate)},render:is},bd=td(yd),wd=td(no(no({},yd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ma(t)?(null===(n=Nc(t))||void 0===n?void 0:n.default)||0:(t=os.has(t)?t:rs(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ls,build:function(e,t,n,r,i){Ja(t,n,r,i.transformTemplate)},render:as})),xd=function(e,t){return ca(e)?wd(t,{enableHardwareAcceleration:!1}):bd(t,{enableHardwareAcceleration:!0})};function Ed(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Sd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ja.test(e))return e;e=parseFloat(e)}var n=Ed(e,t.target.x),r=Ed(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},kd="_$css",Cd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(od,function(e){return a.push(e),kd}));var s=Al.parse(e);if(s.length>5)return i;var l=Al.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=ll(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(o){var h=0;p=p.replace(kd,function(){var e=a[h];return h++,e})}return p}},_d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=Td,Object.assign(ua,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(no(no({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),ra.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||So.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),Td={borderRadius:no(no({},Sd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Sd,borderTopRightRadius:Sd,borderBottomLeftRadius:Sd,borderBottomRightRadius:Sd,boxShadow:Cd},Pd={measureLayout:function(t){var n=io(Qs(),2),r=n[0],i=n[1],o=(0,e.useContext)(Mo);return e.createElement(_d,no({},t,{layoutGroup:o,switchLayoutGroup:(0,e.useContext)(oa),isPresent:r,safeToRemove:i}))}},Id=["TopLeft","TopRight","BottomLeft","BottomRight"],Ad=Id.length,Od=function(e){return"string"==typeof e?parseFloat(e):e},jd=function(e){return"number"==typeof e||ja.test(e)};function Nd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Md=Ld(0,.5,Yl),Rd=Ld(.5,.95,Hl);function Ld(e,t,n){return function(r){return r<e?0:r>t?1:n(sl(e,t,r))}}function Dd(e,t){e.min=t.min,e.max=t.max}function Fd(e,t){Dd(e.x,t.x),Dd(e.y,t.y)}function Bd(e,t,n,r,i){return e=Uu(e-=t,1/n,r),void 0!==i&&(e=Uu(e,1/i,r)),e}function Ud(e,t,n,r,i){var o=io(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),Oa.test(t)&&(t=parseFloat(t),t=ll(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=ll(o.min,o.max,r);e===o&&(s-=t),e.min=Bd(e.min,t,n,s,i),e.max=Bd(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var zd=["x","scaleX","originX"],Vd=["y","scaleY","originY"];function $d(e,t,n,r){Ud(e.x,t,zd,null==n?void 0:n.x,null==r?void 0:r.x),Ud(e.y,t,Vd,null==n?void 0:n.y,null==r?void 0:r.y)}function Hd(e){return 0===e.translate&&1===e.scale}function qd(e){return Hd(e.x)&&Hd(e.y)}function Wd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Gd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Vc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if($c(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Xd(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(u,")"))?"none":o}var Yd=function(e,t){return e.depth-t.depth},Kd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Vc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){$c(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Yd),this.isDirty=!1,this.children.forEach(e)},e}();function Qd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(of),i.nodes.forEach(af)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?oo(oo([],io(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Hc),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,oo([],io(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,a=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var c,u=function(){return i.root.updateBlockedByResize=!1};t(e,function(){i.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,i.nodes.forEach(rf))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,a,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var f=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:pf,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!i.targetLayout||!Wd(i.targetLayout,d)||u,g=!c&&u;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||g||c&&(v||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,g);var y=no(no({},Fc(f,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(y.delay=0,y.type=!1),i.startAnimation(y)}else c||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));i.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,go.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sf))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(tf);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(hf),this.potentialNodes.clear()),this.nodes.forEach(nf),this.nodes.forEach(Jd),this.nodes.forEach(Zd),this.clearAllSnapshots(),yo.update(),yo.preRender(),yo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ef),this.sharedNodes.forEach(cf)},e.prototype.scheduleUpdateProjection=function(){So.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;So.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));vf(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();vf(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!qd(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||Fu(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Hu(t.x,n.x),Hu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Fd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){Fd(t,e);var s=this.root.scroll;s&&(Hu(t.x,-s.x),Hu(t.y,-s.y))}Hu(t.x,i.x),Hu(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Fd(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Xu(n,{x:-i.scroll.x,y:-i.scroll.y}),Fu(i.latestValues)&&Xu(n,i.latestValues)}return Fu(this.latestValues)&&Xu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Fd(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Fu(i.latestValues)){Du(i.latestValues)&&i.updateSnapshot();var o=Nu();Fd(o,i.measure()),$d(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return Fu(this.latestValues)&&$d(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=no(no(no({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Fd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,Cu(t.x,n.x,r.x),Cu(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Fd(this.target,this.layout.actual),$u(this.target,this.targetDelta)):Fd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Fd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Fu(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Fd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Xu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,$u(e,l)),r&&Fu(s.latestValues)&&Xu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;ku(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Xd(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=no({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==i?void 0:i.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(ff));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i,f,p,h,m=t/1e3;uf(s.x,e.x,m),uf(s.y,e.y,m),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Tu(l,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,f=r.relativeTargetOrigin,p=l,h=m,df(i.x,f.x,p.x,h),df(i.y,f.y,p.y,h)),c&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,c;i?(e.opacity=ll(0,null!==(a=n.opacity)&&void 0!==a?a:1,Md(r)),e.opacityExit=ll(null!==(s=t.opacity)&&void 0!==s?s:1,0,Rd(r))):o&&(e.opacity=ll(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Ad;u++){var d="border".concat(Id[u],"Radius"),f=Nd(t,d),p=Nd(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||jd(f)===jd(p)?(e[d]=Math.max(ll(Od(f),Od(p),r),0),(Oa.test(p)||Oa.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=ll(t.rotate||0,n.rotate||0,r))}(a,o,r.latestValues,m,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=m},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(go.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=So.update(function(){ra.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ba(0)?0:Wc(0);return Bc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,no(no({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Fd(t,n),Xu(t,i),ku(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<da.length;r++){var i="rotate"+da[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=fs(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=fs(e.pointerEvents)||""),this.hasProjected&&!Fu(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Xd(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,ua)if(void 0!==d[m]){var v=ua[m],g=v.correct,y=v.applyTo,b=g(d[m],c);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=c===this?fs(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(tf),this.root.sharedNodes.clear()},e}()}function Jd(e){e.updateLayout()}function Zd(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Mu(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=xu(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&Mu(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=xu(s[e]);t.max=t.min+n});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ku(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?ku(u,e.applyTransform(l,!0),o.measured):ku(u,s,o.layout);var d=!qd(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Tu(v,o.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Tu(g,s,m.actual),Wd(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function ef(e){e.clearSnapshot()}function tf(e){e.clearMeasurements()}function nf(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function rf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function of(e){e.resolveTargetDelta()}function af(e){e.calcProjection()}function sf(e){e.resetRotation()}function cf(e){e.removeLeadSnapshot()}function uf(e,t,n){e.translate=ll(t.translate,0,n),e.scale=ll(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function df(e,t,n,r){e.min=ll(t.min,n.min,r),e.max=ll(t.max,n.max,r)}function ff(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var pf={duration:.45,ease:[.4,0,.1,1]};function hf(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function mf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function vf(e){mf(e.x),mf(e.y)}var gf=Qd({attachResizeListener:function(e,t){return bs(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),yf={current:void 0},bf=Qd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!yf.current){var e=new gf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),yf.current=e}return yf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),wf=no(no(no(no({},cu),Ks),Zu),Pd),xf=function(e){function t(t,n){return void 0===n&&(n={}),sa(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}(function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=ca(e)?gs:ys;return no(no({},s),{preloadedFeatures:n,useRender:ts(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,wf,xd,bf)});const Ef={"toast-container":"Toasts_toast-container__y-Lf4",toast:"Toasts_toast__XCKjV",success:"Toasts_success__-Nlb6",info:"Toasts_info__WN7dx",warning:"Toasts_warning__D7Z9u",error:"Toasts_error__KRbGr","toast-content":"Toasts_toast-content__9jW74","icon-container":"Toasts_icon-container__x7hY3","text-container":"Toasts_text-container__6fxjF",text:"Toasts_text__DpqMN",detail:"Toasts_detail__iz+1a","dismiss-btn":"Toasts_dismiss-btn__dK4qJ",icon:"Toasts_icon__WpL+z",spinner:"Toasts_spinner__54CjX","slider-container":"Toasts_slider-container__oEiLc",slider:"Toasts_slider__Uv4U7"},Sf={success:"😊",info:"🔔",warning:"😮",error:"😢"},kf=({toast:t})=>{var n;const{dispatch:r}=(0,e.useContext)(Se),[o,s]=(0,e.useState)(!1),l=(0,e.useRef)(null);(0,e.useEffect)(()=>{let e,n;return t.timeoutMs&&(e=setTimeout(()=>r(_e(t.id)),300+t.timeoutMs),n=setTimeout(()=>s(!0),300)),()=>{clearTimeout(e),clearTimeout(n)}},[r,t.id,t.timeoutMs]);const c=(0,e.useCallback)(()=>o?"0%":"100%",[o]);return(0,i.jsxs)("div",{className:a(Ef.toast,Ef[t.type],t.className),children:[(0,i.jsxs)("div",{className:a(Ef["toast-content"],Ef[t.type]),children:[!t.hideIcon&&(0,i.jsx)("div",{className:a(Ef["icon-container"],Ef[t.type]),children:null!==(n=t.icon)&&void 0!==n?n:Sf[t.type]}),(0,i.jsxs)("div",{className:Ef["text-container"],children:[t.text&&(0,i.jsx)("div",{className:a(Ef.text,"tt-toast-text"),children:t.text}),t.detail&&(0,i.jsx)("div",{className:Ef.detail,children:t.detail}),t.jsx&&(0,i.jsx)("div",{children:t.jsx})]}),!t.hideDismissBtn&&!t.showSpinner&&(0,i.jsx)("div",{className:Ef["dismiss-btn"],onClick:()=>{r(_e(t.id))},children:(0,i.jsx)("i",{className:a("far fa-times-circle",Ef.icon)})}),t.showSpinner&&(0,i.jsx)("div",{className:Ef.spinner,children:(0,i.jsx)("i",{className:"fas fa-circle-notch fa-spin"})})]}),t.timeoutMs&&(0,i.jsx)("div",{className:a(Ef["slider-container"],Ef[t.type]),children:(0,i.jsx)("div",{ref:l,className:a(Ef.slider,Ef[t.type]),style:{width:c(),transitionDuration:`${t.timeoutMs}ms`}})})]})},Cf=({})=>{const{state:t}=(0,e.useContext)(Se);return(0,i.jsx)("div",{className:a(Ef["toast-container"]),children:(0,i.jsx)(Do,{children:t.toasts.map(e=>(0,i.jsx)(xf.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,i.jsx)(kf,{toast:e})},e.id))})})},_f=["/teachertool/catalog-shared.json","/teachertool/catalog.json"];const Tf=["/teachertool/validator-plans.json","/teachertool/validator-plans-shared.json"],Pf=n=>{const{children:r,id:o,className:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,role:d,title:f,hideTitle:p,leftIcon:h,actions:m,onClose:v,parentElement:g,fullscreen:y,hideDismissButton:b,rightHeader:w}=n,x=e=>{v&&v()},E=a("common-modal-container",y&&"fullscreen",s),S=e.useRef(null);return e.useEffect(()=>{var e;const t=g||document.body,n=null===(e=S.current)||void 0===e?void 0:e.parentElement,r=[];for(const e of t.children)e!==n&&(e.hasAttribute("aria-hidden")&&"false"!==e.getAttribute("aria-hidden")||(e.setAttribute("aria-hidden","true"),r.push(e)));return()=>{for(const e of r)e.removeAttribute("aria-hidden")}},[g]),t.createPortal((0,i.jsx)(He,{className:E,onEscape:x,children:(0,i.jsxs)("div",{id:o,className:"common-modal",ref:S,role:d||"dialog","aria-hidden":c,"aria-label":l,"aria-describedby":u,"aria-labelledby":"modal-title",children:[(0,i.jsxs)("div",{className:"common-modal-header",children:[y&&!b&&(0,i.jsx)("div",{className:"common-modal-back",children:(0,i.jsx)(Me,{className:"menu-button",onClick:x,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,i.jsxs)("div",{id:"modal-title",className:a("common-modal-title",p&&"sr-only"),children:[h&&(0,i.jsx)("i",{className:h,"aria-hidden":!0}),f]}),w&&(0,i.jsx)("div",{className:"common-modal-right-menu",children:w}),!y&&!b&&(0,i.jsx)("div",{className:"common-modal-close",children:(0,i.jsx)(Me,{className:"menu-button",onClick:x,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,i.jsx)("div",{className:"common-modal-body",children:r}),(null==m?void 0:m.length)&&(0,i.jsx)("div",{className:"common-modal-footer",children:m.map((e,t)=>{var n;return(0,i.jsx)(Me,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)})})]})}),g||document.body)};const If={"notice-label-background":"NoticeLabel_notice-label-background__S8h7b","notice-label-container":"NoticeLabel_notice-label-container__gKJ5B","error-notice-label-container":"NoticeLabel_error-notice-label-container__jM73c","warning-notice-label-container":"NoticeLabel_warning-notice-label-container__zMjO-","info-notice-label-container":"NoticeLabel_info-notice-label-container__YPcBC","neutral-notice-label-container":"NoticeLabel_neutral-notice-label-container__KB8v8",icon:"NoticeLabel_icon__IXZIF"},Af=e=>{let t;switch(e.severity){case"info":t="fas fa-exclamation-circle";break;case"warning":t="fas fa-exclamation-triangle";break;case"error":t="fas fa-times"}return(0,i.jsx)("div",{className:If["notice-label-background"],children:(0,i.jsxs)("div",{className:a(If["notice-label-container"],If[`${e.severity}-notice-label-container`]),children:["neutral"!==e.severity&&(0,i.jsx)("i",{className:a(t,If.icon)}),(0,i.jsx)("label",{className:"notice-label",children:e.children})]})})},Of=({onFileDroppedAsync:t,errorMessage:n})=>{const[r,o]=(0,e.useState)(!1),[s,l]=(0,e.useState)(0),c=(0,e.useRef)(null);function u(e){l(s+1),t(e)}return(0,i.jsxs)("div",{className:"DragAndDropFileSurface_drag-and-drop-file-surface__CGJg4",onDragEnter:function(e){e.stopPropagation(),e.preventDefault(),o(!0)},children:[(0,i.jsxs)("div",{className:"DragAndDropFileSurface_instruction-container__WjVOu",children:[(0,i.jsx)("i",{className:a("fas fa-file-upload","DragAndDropFileSurface_upload-icon__gZxir")}),(0,i.jsx)("div",{className:"no-select",children:r?m.ReleaseToUpload:m.DragAndDrop}),(0,i.jsxs)("div",{className:"DragAndDropFileSurface_or-browse-container__Q8Y6R",children:[(0,i.jsx)("span",{className:"DragAndDropFileSurface_or-container__lvbPp",children:lf("or")}),(0,i.jsx)(Me,{className:a("link-button","DragAndDropFileSurface_browse-button__BZ1Qx"),title:m.Browse,onClick:()=>{var e;return null==c||null===(e=c.current)||void 0===e?void 0:e.click()},children:m.Browse}),(0,i.jsx)("input",{type:"file",ref:c,className:"hidden",onChange:function(e){var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&u(n)},"aria-label":m.SelectChecklistFile,accept:".json"})]})]}),n&&(0,i.jsx)("div",{className:"DragAndDropFileSurface_error-label-container__iWbcy",role:"alert",title:n,children:(0,i.jsx)(Af,{severity:"error",children:n})},s),(0,i.jsx)("div",{className:a("DragAndDropFileSurface_droppable-surface__AEZcb",r?"DragAndDropFileSurface_dragging__x+kg6":void 0),onDrop:function(e){e.stopPropagation(),e.preventDefault(),o(!1);const t=e.dataTransfer.files[0];t&&u(t)},onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),o(!1)},onDragOver:function(e){e.stopPropagation(),e.preventDefault()}})]})},jf=()=>{var t;const{state:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(void 0);function a(e){pxt.tickEvent(g.ImportChecklistClose,{hasImported:e+""}),o(void 0),Ze()}return"import-checklist"===(null===(t=n.modalOptions)||void 0===t?void 0:t.modal)?(0,i.jsx)(Pf,{title:m.ImportChecklist,onClose:()=>a(!1),className:"ImportChecklistModal_import-checklist-modal__dbQFL",children:(0,i.jsx)("div",{className:"ImportChecklistModal_import-checklist__AYZta",children:(0,i.jsx)(Of,{onFileDroppedAsync:async function(e){const t=await async function(e,t){let n=await async function(e){let t;try{const n=await pxt.Util.fileReadAsTextAsync(e);t=JSON.parse(n)}catch(e){G(H.unableToReadChecklistFile,e)}return t}(e);if(n){X("Loading checklist from file...",{file:e,checklist:n});const r=Ct(n);r.valid||(n=t?{...n,criteria:r.validCriteria}:void 0)}return n}(e,!1);t?(pxt.tickEvent(g.ImportChecklistSuccess),o(void 0),a(!0),Ot(t)):(pxt.tickEvent(g.ImportChecklistInvalidFile),o(m.InvalidChecklistFile))},errorMessage:r})})}):null},Nf=()=>{const{state:t}=(0,e.useContext)(Se),[n,r]=(0,e.useState)(void 0);function o(){var e;Ze(),null==n||null===(e=n.onCancel)||void 0===e||e.call(n)}(0,e.useEffect)(()=>{var e;"confirmation"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?r(t.modalOptions):r(void 0)},[t.modalOptions]);const a=[{label:m.Cancel,className:"secondary",onClick:o},{label:m.Continue,className:"primary",onClick:function(){var e;Ze(),null==n||null===(e=n.onContinue)||void 0===e||e.call(n)}}];return n?(0,i.jsx)(Pf,{title:n.title,onClose:o,actions:a,children:n.message}):null};let Mf;const Rf=e=>{const{id:t,className:n,role:r,src:o,alt:a,title:s,ariaLabel:l,ariaHidden:c,ariaDescribedBy:u,loadingElement:d}=e;let f;return function(){if(Mf)return;Mf=new IntersectionObserver(e=>{e.forEach(e=>{if(e.intersectionRatio>0){Mf.unobserve(e.target);const t=e.target.getAttribute("data-src");e.target.src=t;const n=e.target;n.src=t,n.onload=()=>{n.parentElement.classList.add("loaded"),n.parentElement.classList.remove("error")},n.onerror=()=>{n.parentElement.classList.add("error"),n.parentElement.classList.remove("loaded")}}})},{rootMargin:"50px 0px",threshold:.01})}(),(0,i.jsxs)("div",{className:"common-lazy-image-wrapper",children:[(0,i.jsx)("div",{className:"loading-element",children:d||(0,i.jsx)("div",{className:"common-spinner"})}),(0,i.jsx)("img",{id:t,ref:e=>{e&&(f&&Mf.unobserve(f),f=e,Mf.observe(e))},className:n,"data-src":o,alt:a,title:s,role:r,"aria-label":l,"aria-hidden":c,"aria-describedby":u}),(0,i.jsx)("i",{className:"fas fa-image","aria-hidden":!0})]})};var Lf=n(3705);const Df="BlockPickerModal_bottom-border__0nTNr",Ff=({block:t,category:n,onBlockSelected:r})=>{var o;const{state:a}=(0,e.useContext)(Se);let s=t.blockId?a.blockImageCache[t.blockId]:void 0;const l=(0,i.jsx)("div",{className:"BlockPickerModal_block-placeholder__i+3Wr",children:C(t.name)});return(0,i.jsx)(Me,{className:"BlockPickerModal_block-button__3rKXi",title:null!==(o=t.jsDoc)&&void 0!==o?o:C(t.name),ariaLabel:t.name,label:s?(0,i.jsx)(Rf,{src:s,alt:t.name,loadingElement:l,ariaHidden:!0}):l,onClick:()=>r(t)})},Bf=({category:t,onBlockSelected:n})=>{const[r,o]=(0,e.useState)(!1);function s(e){var t;pxt.tickEvent(g.BlockPickerBlockSelected,{blockId:null!==(t=e.blockId)&&void 0!==t?t:""}),null==n||n(e)}const l=t.color?{"--category-color":t.color}:{},c=`${t.name}-block-list`;return t.name&&t.blocks&&t.blocks.length>0?(0,i.jsx)("div",{className:Df,children:(0,i.jsxs)("div",{className:"BlockPickerModal_category-container__+Gqcm",style:l,children:[(0,i.jsx)(Me,{className:a("BlockPickerModal_category-button__Qn83F",r?Df:void 0),title:t.name,label:pxt.Util.capitalize(t.name),onClick:function(){r||async function(e){e.blocks?pxt.Util.promisePoolAsync(4,e.blocks,async e=>{try{await async function(e){const{state:t}=Ee();if(!e.blockId)return;if(t.blockImageCache[e.blockId])return;const n=e.blockXml?await async function(e){return Gr?await Gr.renderXml(e):void 0}(e.blockXml):await async function(e){return Gr?await Gr.renderByBlockId(e):void 0}(e.blockId);if(n){const{dispatch:t}=Ee();t(((e,t)=>({type:"SET_BLOCK_IMAGE_URI",blockId:e,imageUri:t}))(e.blockId,n))}}(e)}catch(t){Lf.warn(`Failed to load image for block ${e.name}: ${t}`)}}):Promise.resolve()}(t),o(!r)},ariaExpanded:r,ariaControls:c}),(0,i.jsx)(Fe,{id:c,role:"group",ariaLabel:lf("{0} Blocks",t.name),className:a("BlockPickerModal_category-block-list__71uBq",r?"BlockPickerModal_expanded__wJ-8m":"BlockPickerModal_collapsed__-7UXk"),children:t.blocks.map(e=>(0,i.jsx)(Ff,{block:e,category:t,onBlockSelected:s},e.blockId))})]})}):null},Uf=()=>(0,i.jsx)("div",{className:"BlockPickerModal_loading-container__UaRXi",children:(0,i.jsx)("div",{className:"common-spinner"})}),zf=({})=>{const{state:t}=(0,e.useContext)(Se),[n,r]=(0,e.useState)(void 0);(0,e.useEffect)(()=>{var e;"block-picker"===(null===(e=t.modalOptions)||void 0===e?void 0:e.modal)?r(t.modalOptions):r(void 0)},[t.modalOptions]);const o=[{label:m.Cancel,className:"secondary",onClick:Ze}];return n?(0,i.jsxs)(Pf,{className:"BlockPickerModal_block-picker-modal__2YDwQ",title:m.SelectBlock,onClose:Ze,actions:o,children:[t.toolboxCategories&&Object.values(t.toolboxCategories).map(e=>(0,i.jsx)(Bf,{category:e,onBlockSelected:e=>function(e){n?Dr(n.criteriaInstanceId,n.paramName,e.blockId):G(H.selectedBlockWithoutOptions,"Block selected without block picker options."),Ze()}(e)},e.name)),!t.toolboxCategories&&(0,i.jsx)(Uf,{})]}):null},Vf=()=>{const{state:t}=(0,e.useContext)(Se);return(0,i.jsx)(i.Fragment,{children:t.screenReaderAnnouncement&&(0,i.jsx)("div",{className:"sr-only","aria-live":"polite",children:t.screenReaderAnnouncement})})},$f=t=>{var n,r;const{onSignIn:o,onClose:a,appMessage:s,dialogMessages:l,hideDismissButton:c,lastUsedIdentityProvider:u}=t,{signInMessage:d,signUpMessage:f}=l||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},p=null!==(n=t.resolvePath)&&void 0!==n?n:e=>e,[h,m]=e.useState(!1),[v,g]=e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),y=e.useMemo(()=>"signin"===v?lf("Sign in"):lf("Sign up"),[v]),b=e.useMemo(()=>"signin"===v?d:f,[v,d,f]),w=e.useMemo(()=>"signin"===v?(0,i.jsxs)("div",{className:"switch",children:[(0,i.jsx)("span",{children:lf("Don't have an account?")}),(0,i.jsx)(Me,{className:"link-button",onClick:()=>g("signup"),title:lf("Sign up"),label:lf("Sign up")})]}):(0,i.jsxs)("div",{className:"switch",children:[(0,i.jsx)("span",{children:lf("Have an account?")}),(0,i.jsx)(Me,{className:"link-button",onClick:()=>g("signin"),title:lf("Sign in"),label:lf("Sign in")})]}),[v]);return(0,i.jsx)(Pf,{title:y,onClose:a,hideDismissButton:c,children:(0,i.jsxs)("div",{className:"signin-form",children:[(0,i.jsxs)("div",{className:"signin-header",children:[s||void 0," ",b]}),(0,i.jsx)("div",{className:"signin-body",children:(0,i.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map((e,t)=>{const n=e.id===u,r="signin"===v?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name),a=n?lf("{0}. You last used this option.",r):r;return(0,i.jsx)(Me,{className:"provider",onClick:()=>o(e,h),title:r,ariaLabel:a,label:(0,i.jsxs)("div",{className:"label",children:[n&&(0,i.jsx)("div",{className:"ui orange right ribbon label last-used-ribbon","aria-hidden":"true",children:lf("Last used")}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"logo",src:p(e.icon)})}),(0,i.jsx)("div",{className:"title",children:r})]})},t)}),(0,i.jsx)("div",{className:"rememberme",children:(0,i.jsx)(We,{id:"rememberme",label:lf("Remember me"),isChecked:h,onChange:m})})]})}),(0,i.jsxs)("div",{className:"signin-footer",children:[w,(0,i.jsx)("div",{className:"learn",children:(0,i.jsx)(xt,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})},Hf=()=>{var t,n,r;const{state:o}=(0,e.useContext)(Se),a={hash:window.location.hash,params:pxt.Util.parseQueryString(window.location.href)};return null===(t=o.projectMetadata)||void 0===t||!t.persistId||null!==(n=a.params)&&void 0!==n&&n.project||(a.params||(a.params={}),a.params.project=o.projectMetadata.persistId),"sign-in"===(null===(r=o.modalOptions)||void 0===r?void 0:r.modal)?(0,i.jsx)($f,{onClose:Ze,onSignIn:async(e,t)=>{await async function(e,t,n){const r=await it();return await(null==r?void 0:r.loginAsync(e,t,n))}(e.id,t,a)},dialogMessages:{signInMessage:lf("Sign in to use MakeCode Code Evaluation."),signUpMessage:lf("Sign up to use MakeCode Code Evaluation.")},hideDismissButton:!0}):null},qf={"signed-out-container":"SignedOutPanel_signed-out-container__zVi8m","signed-out-panel":"SignedOutPanel_signed-out-panel__ETF9s"},Wf=()=>(0,i.jsx)("div",{className:qf["signed-out-container"],children:(0,i.jsxs)("div",{className:qf["signed-out-panel"],children:[(0,i.jsx)("h1",{children:lf("Sign In Required")}),(0,i.jsx)("div",{children:lf("Sign in is required to use this tool.")}),(0,i.jsx)(Me,{className:a("primary",qf["sign-in-button"]),rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:()=>{pxt.tickEvent(g.SignedOutPanelSignIn),Je({modal:"sign-in"})}})]})}),Gf=()=>{const e=pxt.U.getHomeUrl(),t={label:lf("Go Back"),onClick:function(){pxt.tickEvent("unsupportedexperience.goback")},className:"primary",url:e};return(0,i.jsx)(Pf,{title:lf("Unsupported Experience"),hideDismissButton:!0,actions:[t],children:(0,i.jsx)("div",{className:"ui unsupported-modal-content",children:(0,i.jsx)("p",{children:lf("The current experience is not supported in {0}.",pxt.appTarget.nickname||pxt.appTarget.id)})})})};class Xf{constructor(e){this.currentTheme=void 0,this.subscribers=void 0,this.document=void 0,this.document=e}static getInstance(e=document){return Xf.instances.has(e)||Xf.instances.set(e,new Xf(e)),Xf.instances.get(e)}static isCurrentThemeHighContrast(e=document){var t;const n=Xf.getInstance(e);return n.isHighContrast(null===(t=n.getCurrentColorTheme())||void 0===t?void 0:t.id)}getCurrentColorTheme(){return this.currentTheme}isKnownTheme(e){var t,n;return!(null===(t=pxt.appTarget)||void 0===t||null===(n=t.colorThemeMap)||void 0===n||!n[e])}getAllColorThemes(){var e;return(null!==(e=pxt.appTarget)&&void 0!==e&&e.colorThemeMap?Object.values(pxt.appTarget.colorThemeMap):[]).sort((e,t)=>{var n,r;return e.weight!==t.weight?(null!==(n=e.weight)&&void 0!==n?n:1/0)-(null!==(r=t.weight)&&void 0!==r?r:1/0):e.id.localeCompare(t.id)})}isHighContrast(e){var t,n;return e&&e===(null===(t=pxt.appTarget)||void 0===t||null===(n=t.appTheme)||void 0===n?void 0:n.highContrastColorTheme)}performHighContrastWorkaround(e){this.isHighContrast(e)?(this.document.body.classList.add("high-contrast"),this.document.body.classList.add("hc")):(this.document.body.classList.remove("high-contrast"),this.document.body.classList.remove("hc"))}switchColorTheme(e){var t,n,r;if(e===(null===(t=this.getCurrentColorTheme())||void 0===t?void 0:t.id))return;const i=null===(n=pxt.appTarget)||void 0===n||null===(r=n.colorThemeMap)||void 0===r?void 0:r[e];if(i){const t=function(e){let t="";for(const[n,r]of Object.entries(e.colors))t+=`--${n}: ${r};\n`;return e.overrideCss&&(t+=`${e.overrideCss}\n`),t=DOMPurify.sanitize(t),t}(i),n="theme-override";let r=this.document.getElementById(n);r||(r=this.document.createElement("style"),r.id=n,this.document.head.appendChild(r)),r.textContent=`.pxt-theme-root { ${t} }`,this.performHighContrastWorkaround(e),this.currentTheme=i,this.notifySubscribers()}}subscribe(e,t){var n;null!==(n=this.subscribers)&&void 0!==n&&n.some(t=>t.subscriberId===e)||(this.subscribers||(this.subscribers=[]),this.subscribers.push({subscriberId:e,onColorThemeChange:t}))}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t.subscriberId!==e)}notifySubscribers(){var e;null===(e=this.subscribers)||void 0===e||e.forEach(e=>e.onColorThemeChange())}}Xf.instances=new Map;const Yf=()=>{const{state:t,dispatch:n}=(0,e.useContext)(Se),[r,o]=(0,e.useState)(!1),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(void 0),u=function(t){const[n,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{t.then(r)},[]),n}(xe);return(0,e.useEffect)(()=>{u&&!r&&Promise.resolve().then(async()=>{var e;const t=await async function(){try{return await pxt.targetConfigAsync()}catch(e){G(H.downloadTargetConfigAsync,e)}}();n({type:"SET_TARGET_CONFIG",config:t||{}}),pxt.BrowserUtils.initTheme(),await async function(){var e,t;const n=null===(e=pxt.appTarget)||void 0===e||null===(t=e.appTheme)||void 0===t?void 0:t.defaultColorTheme;if(n){var r;const e=Xf.getInstance(document);n!==(null===(r=e.getCurrentColorTheme())||void 0===r?void 0:r.id)&&e.switchColorTheme(n)}}(),await async function(){const{dispatch:e}=Ee(),t=function(e){const t=[],n=new Map;for(const i of e){var r;const e=null===(r=i.id)||void 0===r?void 0:r.toLocaleLowerCase();if(e){const r=n.get(e);if(void 0!==r){t[r]=i;continue}n.set(e,t.length)}t.push(i)}return t}(await je(_f,"criteria"));t.forEach(e=>{var t;null===(t=e.params)||void 0===t||t.forEach(e=>{e.name=e.name.toLocaleLowerCase()}),e.tags&&0!==e.tags.length||(e.tags=[m.Other])}),e({type:"SET_CATALOG",catalog:t})}(),await async function(){const{dispatch:e}=Ee();e({type:"SET_VALIDATOR_PLANS",plans:await je(Tf,"validatorPlans")})}(),await async function(){const e=await async function(){const e=le();return await async function(e){const t=await oe;let n;return n=await t.getChecklist(e),n}(e)}();if(e){X("Loading last active checklist...",e);const t=Ct(e);t.valid||tt(w("error",lf("Some criteria could not be loaded."))),At({...e,criteria:t.validCriteria})}else X("No last active checklist to load.")}(),o(!0),await async function(e){var t;const{state:n}=Ee(),r=/project=([^&]+)/,i=null===(t=window.location.href.match(r))||void 0===t?void 0:t[1];if(i){const t=decodeURIComponent(i),a=pxt.Cloud.parseScriptId(t);if(a){var o;pxt.tickEvent(g.LoadProjectFromUrl),window.history.replaceState({},"",window.location.href.replace(r,"")),await Ai(t,a);const i=n.checklist&&(null===(o=n.checklist.criteria)||void 0===o?void 0:o.length)>0;e&&!i&&await jt(e),ut("results")}}}(null==t||null===(e=t.teachertool)||void 0===e?void 0:e.defaultChecklistUrl),X("App initialized")})},[u,r]),(0,e.useEffect)(()=>{!async function(){if(pxt.BrowserUtils.isLocalHostDev()&&/noauth=1/i.test(window.location.href))n(Ie({id:"?"}));else try{await async function(){const e=await it(),t=pxt.Util.parseQueryString(window.location.href);if(!t.authcallback)return await(null==e?void 0:e.authCheckAsync());await pxt.auth.loginCallbackAsync(t)}()}catch(e){G(H.authCheckFailed),X("Auth check failed details",e)}s(!0)}()},[]),(0,e.useEffect)(()=>{c(pxt.U.isExperienceSupported(b.ExperienceId))},[]),r&&a?l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ot,{}),t.userProfile?(0,i.jsx)(Zi,{}):(0,i.jsx)(Wf,{}),(0,i.jsx)(Hf,{}),(0,i.jsx)(jf,{}),(0,i.jsx)(Nf,{}),(0,i.jsx)(zf,{}),(0,i.jsx)(Cf,{}),(0,i.jsx)(Vf,{})]}):(0,i.jsx)(Gf,{}):(0,i.jsx)("div",{className:"ui active dimmer",children:(0,i.jsx)("div",{className:"ui large main loader msft"})})};window.addEventListener("DOMContentLoaded",()=>{const n=window.pxtTargetBundle,r=pxt.Util.parseQueryString(window.location.href.toLowerCase());pxt.options.debug="1"==r.dbg,pxt.options.debug&&pxt.setLogLevel(pxt.LogLevel.Debug),"1"==r.consoleticks||"verbose"==r.consoleticks?pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Verbose:"2"!=r.consoleticks&&"short"!=r.consoleticks||(pxt.analytics.consoleTicks=pxt.analytics.ConsoleTickOptions.Short),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());const e={};if("undefined"!=typeof window){const t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();const n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent(g.Loaded,e)}(),t.render((0,i.jsx)(e.StrictMode,{children:(0,i.jsx)(ke,{children:(0,i.jsx)(Yf,{})})}),document.getElementById("root"))})})()})();